@substrate/local-storage
Advanced tools
Comparing version 2.2.3 to 2.2.4
{ | ||
"name": "@substrate/local-storage", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Fork: React hook for local-storage", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
# `@rehooks/local-storage` | ||
# `@substrate/local-storage` | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
@@ -8,4 +8,4 @@ [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-) | ||
[![npm version](https://badge.fury.io/js/%40rehooks%2Flocal-storage.svg)](https://www.npmjs.com/package/@rehooks/local-storage) | ||
[![npm downloads](https://img.shields.io/npm/dw/@rehooks/local-storage)](https://www.npmjs.com/package/@rehooks/local-storage) | ||
[![npm version](https://badge.fury.io/js/%40rehooks%2Flocal-storage.svg)](https://www.npmjs.com/package/@substrate/local-storage) | ||
[![npm downloads](https://img.shields.io/npm/dw/@substrate/local-storage)](https://www.npmjs.com/package/@substrate/local-storage) | ||
@@ -16,3 +16,3 @@ API Docs can be found [here](https://rehooks.github.io/local-storage). | ||
- [`@rehooks/local-storage`](#rehookslocal-storage) | ||
- [`@substrate/local-storage`](#rehookslocal-storage) | ||
- [Table of Contents](#Table-of-Contents) | ||
@@ -34,3 +34,3 @@ - [Install](#Install) | ||
```sh | ||
yarn add @rehooks/local-storage | ||
yarn add @substrate/local-storage | ||
``` | ||
@@ -41,3 +41,3 @@ | ||
```sh | ||
npm i @rehooks/local-storage --save | ||
npm i @substrate/local-storage --save | ||
``` | ||
@@ -56,3 +56,3 @@ | ||
import React from 'react'; | ||
import { writeStorage } from '@rehooks/local-storage'; | ||
import { writeStorage } from '@substrate/local-storage'; | ||
@@ -77,3 +77,3 @@ let counter = 0; | ||
import React from 'react'; | ||
import { useLocalStorage } from '@rehooks/local-storage'; | ||
import { useLocalStorage } from '@substrate/local-storage'; | ||
@@ -94,3 +94,3 @@ function MyComponent() { | ||
import React from 'react'; | ||
import { useLocalStorage } from '@rehooks/local-storage'; | ||
import { useLocalStorage } from '@substrate/local-storage'; | ||
@@ -114,3 +114,3 @@ function MyComponent() { | ||
import React from 'react'; | ||
import { useLocalStorage } from '@rehooks/local-storage'; | ||
import { useLocalStorage } from '@substrate/local-storage'; | ||
@@ -133,3 +133,3 @@ function MyComponent() { | ||
```js | ||
import { writeStorage, deleteFromStorage } from '@rehooks/local-storage'; | ||
import { writeStorage, deleteFromStorage } from '@substrate/local-storage'; | ||
@@ -153,3 +153,3 @@ writeStorage('name', 'Homer Simpson'); // Add an item first | ||
import { render } from 'react-dom'; | ||
import { writeStorage, deleteFromStorage, useLocalStorage } from '@rehooks/local-storage'; | ||
import { writeStorage, deleteFromStorage, useLocalStorage } from '@substrate/local-storage'; | ||
@@ -156,0 +156,0 @@ const startingNum = 0; |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
11974
3
0
2