Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "jrestore", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Strebler", | ||
@@ -5,0 +5,0 @@ "description": "Use your localStorage as a reactive JSON store (usable via React hooks or without React)", |
@@ -41,3 +41,4 @@ # Install | ||
jrestore.setItem('mykey', -452) // Prints "Value changed : -452" | ||
jrestore.setItem('mykey', []) // Prints "Value changed : []" | ||
jrestore.setItem('mykey', [1, 2]) // Prints "Value changed : [1, 2]" | ||
jrestore.setItem('mykey', arr => [...arr, 3]) // Prints "Value changed : [1, 2, 3]" | ||
jrestore.clear() // Prints "Value changed : undefined" | ||
@@ -54,3 +55,3 @@ jrestore.setItem('mykey', true) // Prints "Value changed : true" | ||
```jsx | ||
```javascript | ||
import React from 'react | ||
@@ -57,0 +58,0 @@ import jrestore from 'jrestore' |
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
104829
105