redux-persist-immutable
Advanced tools
Comparing version 1.0.2 to 1.0.3
14
index.js
@@ -1,10 +0,16 @@ | ||
var transit = require('transit-immutable-js'); | ||
var transit = require('transit-immutable-js') | ||
module.exports = { | ||
in: function(state){ | ||
return transit.toJSON(state) | ||
if(typeof state === 'object'){ | ||
return transit.toJSON(state) | ||
} | ||
return state | ||
}, | ||
out: function(state){ | ||
return transit.fromJSON(state) | ||
out: function(raw){ | ||
if(typeof raw === 'string'){ | ||
return transit.fromJSON(raw) | ||
} | ||
return raw | ||
} | ||
} |
{ | ||
"name": "redux-persist-immutable", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "immutable.js transform for redux-persist", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1276
15
0