{"_id":"@drpiou/expo-secure-storage","_rev":"1-2dd8ac65e58ef4b790c727d238f5f379","name":"@drpiou/expo-secure-storage","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@drpiou/expo-secure-storage","version":"0.0.1","description":"Wraps the expo-secure-store package.","keywords":[],"author":{"name":"Alex","email":"dr.piou@gmail.com"},"homepage":"https://github.com/drpiou/expo-secure-storage#readme","license":"ISC","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/drpiou/expo-secure-storage.git"},"scripts":{"pack":"npm pack","build":"rollup -c","watch":"rollup -cw","prepare":"yarn build && yarn test","toc":"gh-md-toc --insert","test":"npx jest __tests__"},"bugs":{"url":"https://github.com/drpiou/expo-secure-storage/issues"},"peerDependencies":{"expo-secure-store":"~11.2.0"},"devDependencies":{"@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.22.0","@typescript-eslint/parser":"^5.22.0","eslint":"^8.14.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-react":"^7.29.4","eslint-plugin-react-hooks":"^4.5.0","jest":"^28.1.0","prettier":"^2.6.2","rollup":"^2.75.1","rollup-plugin-typescript2":"^0.31.2","typescript":"^4.7.2"},"gitHead":"0ff6e8d65ae35729b1b13136a7a8948357eb0ec6","_id":"@drpiou/expo-secure-storage@0.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-QJzaVahqSVfFHxM9ek4XIimCOWvrw774AEKjvDD2m5hSki6WlOaDrnTR4jx1wGLcVLyNGKvpdXW5LE0Zfh7dfA==","shasum":"8f582d26d5a88bfdfdda60bb5d1da64b5653d25f","tarball":"https://registry.npmjs.org/@drpiou/expo-secure-storage/-/expo-secure-storage-0.0.1.tgz","fileCount":9,"unpackedSize":7353,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgzmDxas46s6ptVserBPJUN6i/wioPYjf8owBU10m9JQIhALE9wNZPd6JBePrtdALV/UBFFEn3tEtFQ9Aak9dlnZJo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJir5YJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoj+g/8DZ3/ZndWBzB/71EWnkLIElCPMtbiuQ+w+rR2V7gdZ1VoB2iQ\r\nwpEfb4puHOVqMSd5rD0Gyl/i6f3baCcGS1kCoRzICbwKKvRVGPJf/tGpY6D5\r\nUt49GOtfoj9ir6H1/t4vpOluW0GMtQFv6iirz50Ct6Vu4QmFLzP04BpwyNBL\r\nIFAEzIvbXMYStJka2iHBp01ZWEdc8pVarJNKf+zUoHtiIh7i3pFBWa2QiyBH\r\n0RrMiHhu/U37jFfSduM7evYZ+v8aBvNcrsRUbuhgFyPbRGUdJA2nGKSs8VMR\r\n1wkh3A/gyPZ3orv1Xl8KPPBLtvMkeprgWsTRUcqyE4d+1ZDhU3UhBC/1Qnue\r\nQ/C3oFAJ3lClHsqmaGCpkTgUbgqyeJIXQROC24JHd5CQmaVek1m7wJQFev+A\r\nz6aaPtiGjQo7WbtGIUgMCyomj1EaxJXGj/MnYCCNVYlusbQRJ+m5OZp3Dhdp\r\nT+NMOiuOgFWSLaBLNmjiWABPMut9DKQzSovamYso4pzpiadD9XrqJIhVNfOz\r\ngifD6MXs3HNoOC4U8SqqsFjqo/Q40xGhfxSXjZmFtcstZN/8ky2F7+YqxR5E\r\nhkGPaYsu/E12Nx7+IN4IX2PgCwh4g9JYJ+nSMBwdu74G0KYNjFIiqYaDFuBl\r\nTV9I858tIrRZnmslxZhk6ki4c5uZgPzX+es=\r\n=WhMC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dr.piou","email":"dr.piou@gmail.com"},"maintainers":[{"name":"dr.piou","email":"dr.piou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expo-secure-storage_0.0.1_1655674377561_0.061109122629632306"},"_hasShrinkwrap":false},"0.0.2":{"name":"@drpiou/expo-secure-storage","version":"0.0.2","description":"Wraps the expo-secure-store package.","keywords":[],"author":{"name":"Alex","email":"hello@drpiou.dev"},"homepage":"https://github.com/drpiou/expo-secure-storage#readme","license":"ISC","main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/esm/index.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/drpiou/expo-secure-storage.git"},"scripts":{"pack":"npm pack","build":"rollup -c","watch":"rollup -cw","prepare":"yarn build && yarn test","publish-npm":"npm publish --access public","toc":"gh-md-toc --insert","test":"npx jest __tests__"},"bugs":{"url":"https://github.com/drpiou/expo-secure-storage/issues"},"peerDependencies":{"expo-secure-store":"~11.2.0"},"devDependencies":{"@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.22.0","@typescript-eslint/parser":"^5.22.0","eslint":"^8.14.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-react":"^7.29.4","eslint-plugin-react-hooks":"^4.5.0","jest":"^28.1.0","prettier":"^2.6.2","rollup":"^2.75.1","rollup-plugin-typescript2":"^0.31.2","typescript":"^4.7.2"},"gitHead":"89859a34a48fe0ed023925a989ced01576ab4d6a","_id":"@drpiou/expo-secure-storage@0.0.2","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-8Wy9YhblDRnhKAEECCDH6HpmZ9NR/UOQJoTfgHoK3IorChDyEXf4tup5xnytr5eYzuHSnEmuzFEvEJZckAfC7w==","shasum":"58c2073503944c0363c2e2c4f4adc819016c257c","tarball":"https://registry.npmjs.org/@drpiou/expo-secure-storage/-/expo-secure-storage-0.0.2.tgz","fileCount":9,"unpackedSize":7305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsGJ1awnkHYG/JnV1MUqUB5QQyZvNm06l0LZbS0Yu7TAiAu95CUOSGL03tPiRgZD+dtFmXVQLNHVRfzZMQo1r7pCg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizI1dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpVA//ZqluDgoZhB4oPGcZ4UuCmi+rx9Q2VopQbvNf4WHdsOpV2F8G\r\nEhKLNWQvFxdaUA0Xtf+Xx0rJfHGlk3IZ4HUDmsFlchbAJIWLZ8m/nTyjCUF1\r\n9qdGLkmjYmvdsFPy4O+2KMR7yJklSo4pGEO2sSrgdPCZy2DlXF4BlifNEstE\r\n6Ubn8dLEjhQLVpEeAeu+WAOHhJgv3vHhnMX1dfptLe8WMcS0IjB+kg0A/OsT\r\nY9hwzNOPGECqPOzKa8wkTMsIA9S+lQ3JKqGLqlbodKuScKG4S1UtHm2YqKqe\r\nhP71/wrRum4EuUbQ2JO3xdQWoRpX8QHLJmByA9KQHd/6PTvNxTr7ZJjGlmDB\r\n37b2ykPejkJoTaGIMoJm8949AvQJks9kVQw/bmYc4rtkM2K6sVsC0AP4ggXn\r\njidJo2KY+hOM2QvjjXdttsUdGijMf51aIxELZiSIEy1jWuZuXcGm1WdCCeyU\r\n68NTpK/s9P2oZu2ndJi7bVsr1Q5lXNjLLp0BUpnkrczJWrec2N/frPCDx/ie\r\nbQTYfUvnOX2se+shH0NqnKFLzwpLlq6R5jnR0nsQVNfoRga6JKDfAjR7hWS9\r\naB3B1IPXcvoFBMO40qv/knSj7g0qxj8Rf4FCFlqM4kbX5aQFbr8iAlMG/H6+\r\nEUy+UYu63FkwV00kY9t32Qs9sk91K/tUhRY=\r\n=OvXj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dr.piou","email":"hello@drpiou.dev"},"maintainers":[{"name":"dr.piou","email":"hello@drpiou.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expo-secure-storage_0.0.2_1657572701189_0.583317682676121"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-19T21:32:57.486Z","0.0.1":"2022-06-19T21:32:57.726Z","modified":"2022-07-11T20:51:41.460Z","0.0.2":"2022-07-11T20:51:41.335Z"},"maintainers":[{"name":"dr.piou","email":"hello@drpiou.dev"}],"description":"Wraps the expo-secure-store package.","homepage":"https://github.com/drpiou/expo-secure-storage#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/drpiou/expo-secure-storage.git"},"author":{"name":"Alex","email":"hello@drpiou.dev"},"bugs":{"url":"https://github.com/drpiou/expo-secure-storage/issues"},"license":"ISC","readme":"# `@drpiou/expo-secure-store`\n\n![GitHub](https://img.shields.io/github/license/drpiou/expo-secure-storage)\n![GitHub package.json version](https://img.shields.io/github/package-json/v/drpiou/expo-secure-storage)\n![Jest tests](https://img.shields.io/badge/stage-experimental-important)\n\nThe `@drpiou/expo-secure-store` package wraps the `expo-secure-store` package.\n\n> - type SecureStore.\n> - written in TypeScript.\n\n<!--ts-->\n\n- [Compatibility](#compatibility)\n- [Installation](#installation)\n- [Example](#example)\n- [Documentation](#documentation)\n\n<!--te-->\n\n## Compatibility\n\n- Expo (43+)\n\n## Installation\n\n```shell\nyarn add @drpiou/expo-secure-store\n```\n\n### Peer Dependencies\n\nExpo project:\n\n```shell\nexpo install expo-secure-store\n```\n\n## Example\n\n```typescript\nimport { SecureStore } from '@drpiou/expo-secure-store';\n\ntype StorageItemValueMap = {\n  credentials: {\n    access_token: string;\n    refresh_token: string;\n  };\n};\n\nconst storage = new SecureStore<StorageItemValueMap>();\n```\n\n## Documentation\n\n```typescript\nclass SecureStore<S extends Record<string, unknown>> {\n  getItem: <K extends keyof S, D extends S[K] | undefined>(\n    key: K,\n    defaultValue?: D,\n    autoSet?: boolean,\n  ) => Promise<D extends undefined ? S[K] | undefined : S[K]>;\n\n  setItem: <K extends keyof S>(key: K, value: S[K]) => Promise<void>;\n\n  hasItem: (key: keyof S) => Promise<boolean>;\n\n  removeItem: (key: keyof S) => Promise<void>;\n}\n```\n","readmeFilename":"README.md"}