mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-29 13:03:55 +03:00
10bf7bc084
* chore(*): upgrade prettier * chore(*): upgrade prettier
24 lines
594 B
JavaScript
24 lines
594 B
JavaScript
var jsan = require('jsan');
|
|
var serialize = require('./serialize');
|
|
var options = require('../constants/options');
|
|
|
|
module.exports = function (Immutable, refs, customReplacer, customReviver) {
|
|
return {
|
|
stringify: function (data) {
|
|
return jsan.stringify(
|
|
data,
|
|
serialize(Immutable, refs, customReplacer, customReviver).replacer,
|
|
null,
|
|
options
|
|
);
|
|
},
|
|
parse: function (data) {
|
|
return jsan.parse(
|
|
data,
|
|
serialize(Immutable, refs, customReplacer, customReviver).reviver
|
|
);
|
|
},
|
|
serialize: serialize,
|
|
};
|
|
};
|