New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

use-storage-state

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-storage-state - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

index.d.ts

169

package.json
{
"name": "use-storage-state",
"version": "1.0.1",
"description": "",
"author": "kibolho",
"license": "MIT",
"repository": "kibolho/use-storage-state",
"main": "dist/index.js",
"module": "dist/index.es.js",
"jsnext:main": "dist/index.es.js",
"engines": {
"node": ">=8",
"npm": ">=5"
},
"scripts": {
"test": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"build": "rollup -c",
"start": "rollup -c -w",
"prepare": "yarn run build",
"predeploy": "cd example && yarn install && yarn run build",
"deploy": "gh-pages -d example/build",
"postPublish": "git push --tags"
},
"peerDependencies": {
"react": "^16.8.6"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-external-helpers": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@react-native-community/async-storage": "^1.11.0",
"@rollup/plugin-typescript": "^8.2.0",
"@types/faker": "^5.1.7",
"@types/jest": "^26.0.21",
"@types/react": "^17.0.3",
"babel-eslint": "^10.0.1",
"cross-env": "^5.2.0",
"eslint-config-standard": "^11.0.0",
"eslint-config-standard-react": "^6.0.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-standard": "^3.1.0",
"faker": "^5.4.0",
"gh-pages": "^2.0.1",
"mock-async-storage": "^2.2.0",
"react": "^16.8.6",
"react-scripts": "^3.0.1",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-peer-deps-external": "^2.2.0",
"rollup-plugin-url": "^2.1.0",
"typescript": "^3.9.5"
}
"name": "use-storage-state",
"version": "2.0.0",
"description": "React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/astoilkov/use-storage-state.git"
},
"funding": "https://github.com/sponsors/astoilkov",
"homepage": "https://github.com/astoilkov/use-storage-state",
"author": {
"name": "Antonio Stoilkov",
"email": "hello@astoilkov.com",
"url": "https://astoilkov.com"
},
"keywords": [
"react",
"hook",
"Storage",
"localStorage",
"sessionStorage",
"persistent",
"state",
"useState",
"hooks",
"local storage",
"session storage",
"store"
],
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"scripts": {
"build": "tsc",
"size": "yarn build && size-limit",
"test": "yarn build && vitest run --coverage",
"release": "yarn build && np",
"prettier": "prettier --write --config .prettierrc.yaml {*.ts,*.json}"
},
"engines": {
"node": ">=14"
},
"files": [
"index.js",
"index.d.ts",
"src/**/*.js",
"src/**/*.d.ts"
],
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^11.1.1",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitest/coverage-v8": "^1.4.0",
"confusing-browser-globals": "^1.0.11",
"eslint": "^8.21.0",
"eslint-config-strictest": "^0.8.1",
"eslint-formatter-pretty": "^5.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-unicorn": "^43.0.2",
"jsdom": "^22.1.0",
"np": "^7.6.3",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.1.0",
"size-limit": "^11.1.1",
"superjson": "^2.2.1",
"typescript": "^5.4.2",
"vitest": "^1.4.0"
},
"size-limit": [
{
"name": "import *",
"path": "index.js",
"limit": "1.5 kB",
"brotli": false
},
{
"name": "import *",
"path": "index.js",
"limit": "700 B"
}
]
}
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