{"_id":"@berish/stateful-local-storage-adapter","_rev":"1-7dc455d055aaf6c2260b79ee80202a81","name":"@berish/stateful-local-storage-adapter","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@berish/stateful-local-storage-adapter","version":"1.0.0","description":"Localstorage storage adapter for @berish/stateful state managment","main":"build/index.js","typings":"build/index.d.ts","repository":{"type":"git","url":"git@gitlab.com:berish/packages/berish-stateful-local-storage-adapter.git"},"author":{"name":"Berishev Ravil","email":"quadraticteam@gmail.com"},"license":"MIT","private":false,"keywords":["state","stateful","react","berish","helper","native","js","ts","typescript","standart","Berishev","Ravil","Fartix","quadraticteam","jest","package"],"scripts":{"test":"jest --config jestconfig.json","test:dev":"jest --config jestconfig.json --watch --verbose=false","build":"rm -rf build && tsc -p .","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"peerDependencies":{"@berish/stateful":"^0.3.1"},"devDependencies":{"@berish/stateful":"^0.3.1","@types/faker":"^5.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.5","@types/react":"^17.0.0","faker":"^5.1.0","jest":"26.6.0","prettier":"^2.1.2","ts-jest":"^26.4.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.5"},"dependencies":{},"_id":"@berish/stateful-local-storage-adapter@1.0.0","dist":{"shasum":"dedad2b89b95f84e03bce46686b4c14238d1efa7","integrity":"sha512-20zFBcZ0AgG/qJoyo+zCGo1EkHdHWtjqORt4pMLWxG5SQ5a1UPbR90ZsqEuCP/ZRdPYrYyJ8pKBeEc8QYbZDhw==","tarball":"https://registry.npmjs.org/@berish/stateful-local-storage-adapter/-/stateful-local-storage-adapter-1.0.0.tgz","fileCount":7,"unpackedSize":5328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglfU7CRA9TVsSAnZWagAAKrYP/1C4mITP3unFFFgta1IP\nvmyFv1pcmUHGsZex+EdTNUlv6iEP0hB/0Y1wRxTOoURIJ+4I73UH4LU2oueO\ncFI8I6rtMnSVgo0skT43NdWqWAXvAFjifmhe/5Lq8t+S6vEu78I5inT5wF2r\n/Q7gvwqh30H0PUL53EzGyU42HL6mgJpqjUoNMoP0aUypn+28LkNUFn3o2kRb\nc7JV2Xg9bOGcSjnWLrzApLaZLeh0L8iH6GFYJk3HrjNfLseKNisE5QP4fjLt\nw88J1MS80Qw5RUgZ0L9eBKrk5L3ootDZP4v/toeKR4VxmtI8xiQYB1CvFv7p\nhHNOMw26T+JiL/HDOM/iQRrvlLVa9p5VF0QpNoLDkXAAPbOLLyuUKwEEN1Q4\n+wYV/2AFe6G7ZS8FXXNAtlZXR8w1+zNiWL4ZfAVo4Yf95qJtkusMw29h7HN7\nVfqYX0/VFgN3BEutATPpiPrswUEAfhyfhTdHcKa61NukYP4wtdow8x/051Xg\nMfIIFZ3KnAchC7JK2O/3SpneALs1NOhmIQ03poBqV5TUA9gFyyxdYthdM4n/\np0RWSJ3GLzHmGnbqyB+GQZx4vNA8SPj15bvtYf0vxqFC8NJOkiYRkzd088ld\n9RQ4hdXD5d1r6X41ISIcq5G5pqCKJZpz5mFpfsVQI7VEntAzOHTB4Uen8OGy\n86q8\r\n=MDfi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBEz9z3RrHy6ESL+WaAeb2P8Mg1vsUnzjXuYBkRH9fPgIhAKn8w3/0UP86utoaqgMwrh/rUep96B61rUK2Gt3Puc2h"}]},"_npmUser":{"name":"quadraticstudio","email":"quadraticteam@gmail.com"},"directories":{},"maintainers":[{"name":"quadraticstudio","email":"quadraticteam@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stateful-local-storage-adapter_1.0.0_1620440378673_0.7543730310783237"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-08T02:19:38.412Z","1.0.0":"2021-05-08T02:19:39.020Z","modified":"2022-04-04T18:29:07.016Z"},"maintainers":[{"name":"quadraticstudio","email":"quadraticteam@gmail.com"}],"description":"Localstorage storage adapter for @berish/stateful state managment","keywords":["state","stateful","react","berish","helper","native","js","ts","typescript","standart","Berishev","Ravil","Fartix","quadraticteam","jest","package"],"repository":{"type":"git","url":"git@gitlab.com:berish/packages/berish-stateful-local-storage-adapter.git"},"author":{"name":"Berishev Ravil","email":"quadraticteam@gmail.com"},"license":"MIT","readme":"# @berish/stateful-react-connect\n\nReactJS connector for @berish/stateful state managment\n\n## Installation\n\n```\n$ npm install @berish/stateful-react-connect --save\n```\n\nor\n\n```\n$ yarn add @berish/stateful-react-connect\n```\n\n**Supports typescript**\n\n# Usage\n\n```typescript\nimport * as React from 'react';\nimport { createStateful } from '@berish/stateful';\nimport { connect } from '@berish/stateful-react-connect';\n\nconst store = createStateful({ count: 0, name: 'Ravil' });\n\nfunction _ViewCountComponent(props: { prop: string }) {\n  return (\n    <div>\n      {props.prop}: {store[props.prop]}\n    </div>\n  );\n}\n\nconst ViewCountComponent = connect([hub])(_ViewCountComponent); // === const ViewCountComponent = connect([hub], _ViewCountComponent);\n\nexport function TestComponent() {\n  return (\n    <>\n      <ViewCountComponent prop=\"count\" />\n      <ViewCountComponent prop=\"name\" />\n      <button onClick={() => store.count++}>Plus one</button>\n      <button onClick={() => (store.name = `${store.name}${store.count}`)}>Change name</button>\n    </>\n  );\n}\n```\n","readmeFilename":"README.md"}