{"_id":"@abstractest/localstorage","_rev":"1-fbe7701f6ba287db0c6ccce6f96b23b5","name":"@abstractest/localstorage","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"@abstractest/localstorage","version":"0.0.0","description":"Localstorage fake API implementation","publishConfig":{"access":"public"},"type":"module","main":"./target/cjs/index.cjs","exports":{".":{"types":"./target/dts/index.d.ts","require":"./target/cjs/index.cjs","import":"./target/esm/index.mjs","default":"./target/esm/index.mjs"}},"module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","dependencies":{"@abstractest/types":"0.5.0"},"devDependencies":{"@abstractest/infra":"workspace:*","@types/node":"^20.4.1"},"scripts":{"build":"concurrently --kill-others-on-fail 'npm:build:*'","build:esm":"node ../infra/scripts/build.mjs","build:cjs":"node ../infra/scripts/build.mjs --cjs","build:dts":"tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","test":"concurrently --kill-others-on-fail 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r lcov -r text -o target/coverage -x src/test node --loader ts-node/esm --experimental-specifier-resolution=node ../infra/scripts/test.mjs"},"repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"license":"MIT","bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"homepage":"https://github.com/antongolub/abstractest#readme","gitHead":"9e36313e2d4b5d8d8112841827be7ece06ab663f","_id":"@abstractest/localstorage@0.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-E7iO84ik1zSo7LjlK1d7JlMEb7Wp/dDqLnXkLuZU91W6NC4u2/6nxpJavQaJEduQbGHf2NiqnyzfotYzR6r6AA==","shasum":"65535986447b180e5be5c8506db8b1137ba31460","tarball":"https://registry.npmjs.org/@abstractest/localstorage/-/localstorage-0.0.0.tgz","fileCount":8,"unpackedSize":7782,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstractest%2flocalstorage@0.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRvdPIsYt0dQcCMPJGBOdrwrUbv4daw0h3qywPzCfDFQIgJK0Jppycti9hPU47xhyr432S3n+GugM5wmbW5UmOxPM="}]},"_npmUser":{"name":"antongolub","email":"golub.anton@gmail.com"},"directories":{},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localstorage_0.0.0_1689101829269_0.9734640916474053"},"_hasShrinkwrap":false},"0.0.1":{"name":"@abstractest/localstorage","version":"0.0.1","description":"Localstorage fake API implementation","publishConfig":{"access":"public"},"type":"module","main":"./target/cjs/index.cjs","exports":{".":{"types":"./target/dts/index.d.ts","require":"./target/cjs/index.cjs","import":"./target/esm/index.mjs","default":"./target/esm/index.mjs"}},"module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","dependencies":{"@abstractest/types":"0.5.1"},"devDependencies":{"@abstractest/infra":"workspace:*","@types/node":"^20.4.5"},"scripts":{"build":"concurrently --kill-others-on-fail 'npm:build:*'","build:esm":"node ../infra/scripts/build.mjs","build:cjs":"node ../infra/scripts/build.mjs --cjs","build:dts":"tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","test":"concurrently --kill-others-on-fail 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r lcov -r text -o target/coverage -x src/test node --loader ts-node/esm --experimental-specifier-resolution=node ../infra/scripts/test.mjs"},"repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"license":"MIT","bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"homepage":"https://github.com/antongolub/abstractest#readme","_id":"@abstractest/localstorage@0.0.1","gitHead":"2d4e0a8954ee5a0ed4bbd9af2879f3f8c00b9883","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-NA0GwkNOS3VglGb6bw5rCSIwQudsU8H4r13fIK7e1hXqA6cMJGStgVYaNp+1beq9Y6lpyvYsFaMfj475lh1w0g==","shasum":"451f976190e01066384a8af71cf424294b596a64","tarball":"https://registry.npmjs.org/@abstractest/localstorage/-/localstorage-0.0.1.tgz","fileCount":8,"unpackedSize":7782,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abstractest%2flocalstorage@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9I0RBMRdRuW1l57qFPlYNhZ6ZQ72lhtoIrqdTvNKWnAIhAIA2D1dTUN4K56SzVhPt+TcFb2mPs8Mf9Gz1HMs6Qokx"}]},"_npmUser":{"name":"antongolub","email":"golub.anton@gmail.com"},"directories":{},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localstorage_0.0.1_1690895255739_0.4707120361085546"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-11T18:57:09.176Z","0.0.0":"2023-07-11T18:57:09.528Z","modified":"2023-08-01T13:07:36.212Z","0.0.1":"2023-08-01T13:07:35.873Z"},"maintainers":[{"name":"antongolub","email":"golub.anton@gmail.com"}],"description":"Localstorage fake API implementation","homepage":"https://github.com/antongolub/abstractest#readme","repository":{"type":"git","url":"git+https://github.com/antongolub/abstractest.git"},"author":{"name":"Anton Golub","email":"antongolub@antongolub.com"},"bugs":{"url":"https://github.com/antongolub/abstractest/issues"},"license":"MIT","readme":"# @abstractest/localstorage\n> Localstorage fake API implementation\n\n## Usage\n```ts\nimport {init} from '@abstractest/localstorage'\n\ninit()\nconst { localStorage } = globalThis || window\n\nlocalStorage.setItem('foo', 'bar')\nlocalStorage.getItem('foo')\n```\n\nMockify the instance if necessary:\n```ts\nimport {mock} from '@abstractest/mock'\nimport {init, destroy} from '@abstractest/localstorage'\n\ninit(mock) // or jest\nlocalStorage.setItem('foo', 'bar')\nlocalStorage.setItem.calls // invocation data\n\ndestroy()\n// localStorage === undefined\n```\n\n## License\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}