Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-storage-hooks

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-storage-hooks - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/index.d.ts

74

package.json
{
"name": "react-storage-hooks",
"version": "1.0.0",
"version": "1.1.0",
"description": "React hooks for state sync with localStorage",
"main": "index.js",
"keywords": [
"react",
"hooks",
"storage",
"persistence"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "jest --watch",
"lint": "tslint --fix src/*.{ts,tsx}",
"format": "prettier --write *.md src/*.{ts,tsx}",
"test": "jest",
"coverage": "jest --coverage",
"lint": "eslint src/**/*.{js,jsx}",
"format": "prettier --write *.md src/**/*.{js,jsx}"
"compile": "tsc --noEmit",
"check": "npm run lint && npm run compile && npm run format && npm run coverage",
"prebuild": "del dist",
"build": "tsc",
"prepublishOnly": "npm run check && npm run build"
},
"files": [
"dist"
],
"author": "Ramón Guijarro <hola@soyguijarro.com>",

@@ -20,12 +35,6 @@ "license": "MIT",

"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"eslint": "^5.10.0",
"eslint-config-react-app": "^3.0.5",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"@types/jest": "^23.3.10",
"@types/react": "^16.7.14",
"@types/react-dom": "^16.0.11",
"del-cli": "^1.1.0",
"husky": "^1.2.0",

@@ -38,18 +47,13 @@ "jest": "^23.6.0",

"react-test-renderer": "^16.6.3",
"react-testing-library": "^5.3.1"
"react-testing-library": "^5.3.2",
"ts-jest": "^23.10.5",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.17.0",
"typescript": "^3.2.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run coverage"
"pre-commit": "lint-staged && npm run compile && npm run coverage"
}
},
"babel": {
"presets": [
"env",
"react"
]
},
"eslintConfig": {
"extends": "react-app"
},
"prettier": {

@@ -65,4 +69,4 @@ "semi": true,

],
"*.js": [
"eslint --fix",
"*.{ts,tsx}": [
"tslint --fix",
"prettier --write",

@@ -73,2 +77,16 @@ "git add"

"jest": {
"globals": {
"ts-jest": {
"isolatedModules": true
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"preset": "ts-jest",
"testMatch": [
"**/src/*.test.{ts,tsx}"
],
"coverageThreshold": {

@@ -75,0 +93,0 @@ "global": {

@@ -9,5 +9,5 @@ # React storage hooks

:zap: **Fast and reliable**. Only reads from storage when necessary and always updates application state before writing. Doesn't break if access to `localStorage` fails: informs you about it, but keeps updating the state.
:zap: **Fast and reliable**. No external dependencies. Only reads from storage when necessary and always updates application state before writing. Doesn't break if access to `localStorage` fails.
:package: No external **dependencies**.
:capital_abcd: **Type definitions** included. Written in TypeScript.

@@ -14,0 +14,0 @@ :muscle: Thoroughly backed by **tests**.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc