set-state-compare
Version:
setState for React that compares with the current state and only sets the state if changed.
57 lines (56 loc) • 1.55 kB
JSON
{
"name": "set-state-compare",
"version": "1.0.69",
"description": "setState for React that compares with the current state and only sets the state if changed.",
"files": [
"build/**"
],
"main": "build/index.js",
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"release:patch": "npm version patch -m \"Bump version to %s\" && git push --follow-tags && npm whoami || npm login && npm publish",
"build": "rm -rf build && tsc",
"lint": "eslint",
"prepublishOnly": "npm run build",
"test": "jasmine",
"typecheck": "tsc --noEmit",
"watch": "tsc -w"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/kaspernj/set-state-compare.git"
},
"keywords": [
"react",
"set",
"state"
],
"author": "Kasper Stöckel <kasper@diestoeckels.de>",
"license": "ISC",
"bugs": {
"url": "https://github.com/kaspernj/set-state-compare/issues"
},
"build": "npx babel src --out-dir dist",
"homepage": "https://github.com/kaspernj/set-state-compare#readme",
"devDependencies": {
"@eslint/js": "^9.39.2",
"@types/jasmine": "^5.1.13",
"eslint": "^9.39.2",
"eslint-plugin-jasmine": "^4.2.2",
"eslint-plugin-jsdoc": "^61.5.0",
"globals": "^17.0.0",
"jasmine": "^5.0.0",
"react": "^18.3.1",
"react-test-renderer": "^18.3.1",
"typescript": "^5.9.3"
},
"dependencies": {
"diggerize": "^1.0.5",
"fetching-object": ">= 1.0.5"
},
"peerDependencies": {
"prop-types": ">= 15.8.1",
"react": ">= 18.3.0"
}
}