{"_id":"svelte-capacitor-store","_rev":"32-2a52bff4383c9609e083abd709e4dee3","name":"svelte-capacitor-store","dist-tags":{"latest":"0.3.6"},"versions":{"0.0.1":{"name":"svelte-capacitor-store","version":"0.0.1","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.1","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"dist":{"shasum":"8d4fda12e0a79d4a214e280eb5d3eca441fbdb57","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.1.tgz","fileCount":4,"integrity":"sha512-MTi89HRwN/MhfTJWU0MPVSGb3cZD7cym2WnHZ+ulbzsIqifKLe2DWgqoiuOkNDRrw7qL6Vra+xMreCeklRApeA==","signatures":[{"sig":"MEUCIQDD/HSUsSNv2Y8IP3a+Zp43GxFTNQUD75Qnx0QVXKuZTQIgcos16c3KxaRGdrXdMfAAN2WlFiB/FzoeqS99TTWWH8k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7098},"main":"src/index.ts","gitHead":"ce4f5c00e3f2529bf29a18f062c3abdad552562b","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"_npmVersion":"8.19.4","description":"Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.1_1690100841931_0.4623452433547066","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"svelte-capacitor-store","version":"0.0.2","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.2","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"5cb46ae59bd3afb387dcfadc1cebb8009f3e24ea","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.2.tgz","fileCount":4,"integrity":"sha512-xYs0nLb8qjd89X16lw/GJePIKmh5DTrj5+s6asyJhB0nCuN2lDu1riwNswBJE8mryOTWvNzA4m4h/2BPjneZog==","signatures":[{"sig":"MEUCIDblM/ROIr5aSRRXSE8Gkl0zZH++QaFPzDxVAJAgbf7gAiEAvuWgZe+DEVzaiA43weYu16WwXYhFgh41zxTrElNcduE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7296},"main":"src/index.ts","gitHead":"0d0b97c1848beec1e650d367b52888afd0080469","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.2_1690101198633_0.5533896835072232","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"svelte-capacitor-store","version":"0.0.3","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.3","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"775a2ee24a17218cff92778051530b1ae3d9d8b6","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.3.tgz","fileCount":4,"integrity":"sha512-83xdjGWWKMOGwBuh1igI/5jdsHzs7/4ED/bPwYvKTR+tCzlwl8hfoN6zf4aVpjEKVtX2mZaCISqR07GuI0iwag==","signatures":[{"sig":"MEUCIF+S+Ozl2Kj0TzRiypvzNed+BNCFUpMHhbST2NzufIVzAiEA6yMVIIyYDIdClpfd3i3QbVz728C5iV06/0P/EfJV/68=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7762},"main":"src/index.ts","gitHead":"0d0b97c1848beec1e650d367b52888afd0080469","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.3_1690103077135_0.7181161878408249","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"svelte-capacitor-store","version":"0.0.4","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.4","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"4b429c5dfec7d567c8d8ca2a0176c88894bee546","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.4.tgz","fileCount":4,"integrity":"sha512-kef+A0lDfpWbkVL4BKRmJPLZQFmjaJUnUi9J/aJznzhQmQu/waR9wU1PrBThqewdSNRPvpyL/8EIGkRlJvjB2g==","signatures":[{"sig":"MEUCIGeRZ1OeperIhyE1OQ7q/rUwZNmyhGDKuDGw+UUdsSxHAiEAzJFwXEzgFJwlZbrdL6CCYirJwfaNWMo11Rw2Dd6oOBU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8237},"main":"src/index.ts","gitHead":"43bd98849cc51f45b424c2706045df6c94994437","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.4_1690104202803_0.5625393343204916","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"svelte-capacitor-store","version":"0.0.5","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.5","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"5236895461f6b4942b06aaa6381b22439d7340c8","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.5.tgz","fileCount":4,"integrity":"sha512-Li+V/xdtVOS3nwA0Rjxbf8TRQjd0oN4xEQbHoDb5k1+JaxxHIMlUAhKGdMqscokLPsLIRiH+7mxD/l04RyoLZg==","signatures":[{"sig":"MEUCIATWgkcSTHvfQ/nP92guuoNVg6kyy7wWlp02AX/LhT3WAiEAoW99O9Vza+f8MKXV0xufsuGJ85lawq/Me0xAYGoSSFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8243},"main":"src/index.ts","gitHead":"43bd98849cc51f45b424c2706045df6c94994437","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.5_1690104462865_0.21587396703843775","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"svelte-capacitor-store","version":"0.0.6","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.6","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"91452b52bfd9373797d691adf1526bcb6bb90703","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.6.tgz","fileCount":4,"integrity":"sha512-8+QDCYbDlNOyqMacvgbiKMPqKUM3b1MedCg20BipG7gkniN951poEz2TyQU8SCQF/yi70sKnJslNml3Q6zXzAA==","signatures":[{"sig":"MEYCIQDv0nVzqQNHCLKzAOm27AxcZjIJ7LMhqwBX0vjK4hQuoQIhAJaUA/LZWKjy73Yv8JDGxw8nJqHUcn1TL7ZjPCEGLowL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8166},"main":"src/index.ts","gitHead":"04092925cdba76ae8211d56461308f28bd317777","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.6_1690144805513_0.5485682954900037","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"svelte-capacitor-store","version":"0.0.7","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.7","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"1f398ec775f831940922feb64d7f1e43b5c0f2b6","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.7.tgz","fileCount":4,"integrity":"sha512-Kvca4jKqnZKzF4isNwh+fjS82KmXQZ+ywvknMochY7hydxum2ka5Wctwf3Z97joZy8pThM1d8E7p5fhFXShkxA==","signatures":[{"sig":"MEYCIQDsbGqD2m+DYYlSKU0Fu+tNB/V9610hw2NrwhxXVc8ovgIhAPgSreJMtsCuFWGYUSzFh3gYmBMYnRBJgYu2A3y0qZm8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9743},"main":"src/index.ts","gitHead":"9cc94744df70684443195f01533f848d9e8a5a65","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.7_1690155343931_0.27746161343293774","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"svelte-capacitor-store","version":"0.0.8","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.8","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"cd18bf1438fd61214fc1b81f2cfa2e6a7cf3d9aa","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.8.tgz","fileCount":4,"integrity":"sha512-Dg0c6zDBC+UT3KQE+Okdx30IAygSKUr8cPKTkxWC4FL293zBpyNhHjXxuC2YvPCnhrUFId6qCZ9E3614QJWV5w==","signatures":[{"sig":"MEUCICM3YbHs4X5LSi9+QhxRz3DQVJMt7h+yiqAmLgy/OWF6AiEA2Zfe4gzmm/xu8aSdiAHo3sIZfan1rcOv3oBjL0SlQ2g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11331},"main":"src/index.ts","gitHead":"057f1f555a48c483aad0a00058419826fbc989ad","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.8_1690286367265_0.5523033356324811","host":"s3://npm-registry-packages"}},"0.0.81":{"name":"svelte-capacitor-store","version":"0.0.81","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.0.81","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"f207b3494965f7d10fbb57f5790b6449b04c0af3","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.0.81.tgz","fileCount":4,"integrity":"sha512-kjZ1z0DwAdYJfmf7ZZOesLrd221Nm/QAxg+61eJfw2yCkzSOFOK9HYN8gxPpCUQI1raTV+s/hTqkJZasnnlaoQ==","signatures":[{"sig":"MEUCIQDuaLP7Gf3useSilp8NiVAjxDYA7pEEFACqBe9MwsKT7AIgfZH2Nuy9XnBknteqBkWzIWsIMpnnZS/BOr+6MAREsUQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11326},"main":"src/index.ts","gitHead":"b8ff16a29976df73d43959b2d38f895b21d7f2a9","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.0.81_1690289744066_0.9444728009383732","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"svelte-capacitor-store","version":"0.1.0","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.1.0","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"7a0597374135812a4ccb937389e564b49f19cd99","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.1.0.tgz","fileCount":4,"integrity":"sha512-jug3noLQw21ytyHcgI6NFZa2yZJputoovVkH62uz2OaVbHXSbywdfxpmfwicHow21ZfNjTLuaMo1smqZBtAdmw==","signatures":[{"sig":"MEYCIQDlhoUk5PLbYe2Lx5XMdeu2RkVxb//jZXT6ADrPnpzmVgIhAPrD96BqS3QwrrlueiZBAVtxMFeXONLn2f3zS5GJR16M","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17407},"main":"src/index.ts","gitHead":"aea82317075743cae09642203169d6d12873c666","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.1.0_1690417817300_0.639216474550339","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"svelte-capacitor-store","version":"0.1.1","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.1.1","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"8835c02d46f27cba1caaefec463d90c94f0500c3","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.1.1.tgz","fileCount":4,"integrity":"sha512-k4WrTflOiZJWocDa0kio6uaGhSczHLOdawtCkKGb1FGzaAWsuQg43S1UiWq68FYO4LtluClV7pd7R+EpRbf/zw==","signatures":[{"sig":"MEUCIH/1hNp5GtjBgwqYz6SmFXppYVtKXkDkgwc5Gr6q6AsnAiEAzqXThsncSEvHblFw2S9Ku4QNaoMHqXDVcMX5EVIX5PE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17323},"main":"src/index.ts","gitHead":"aea82317075743cae09642203169d6d12873c666","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.1.1_1690418317282_0.05044691540466295","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"svelte-capacitor-store","version":"0.1.2","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.1.2","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"9be3b68dc5561731ec50d8fae3c68772f676eee6","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.1.2.tgz","fileCount":4,"integrity":"sha512-xONkM9zTwIhGBS0Cd8dSQomeeSo1IUqZZ4hU9Ooa1g+/4+ahMmioqY9DfwIbdK05TqEhN3aJN4FXtxaT0+wGSg==","signatures":[{"sig":"MEUCIDp6SwcxzKJbRPEEnUYZL6wWngdRnxiAhdTfblWUE+K7AiEAsGdZ/PxiSeBZJk5ciM8CZ0hGLyCBj/tHGMYmHXVH2Hc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18357},"main":"src/index.ts","gitHead":"619ea7000319ce2c8045c779b65c3cd99d3d8989","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.1.2_1690423816837_0.4417088314069548","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"svelte-capacitor-store","version":"0.1.3","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.1.3","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"275400f9823946fc10481d2ee33efdc34d26a77e","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.1.3.tgz","fileCount":5,"integrity":"sha512-30br7uQQ+Firmvv0fdPkCPqQ2OaKxNe91ad8n7FWTec4rA/i1YrkG8B83nge50bo5Gxqw75UN1o9lX2ZLIHvyA==","signatures":[{"sig":"MEYCIQCRuguBk7kNizwclNM6EG4ETreFBdGmCj2r3yLd7WLA9QIhAJiv78ijuoSyGaxkmrlDS4LXJDSEoEwortlQccwu4swt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18416},"main":"src/index.ts","gitHead":"0da42eb11c6a4dbf253c38a9f8abb0eef220d07d","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.1","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.1.3_1690807353914_0.28848261075464965","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"svelte-capacitor-store","version":"0.2.0","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.2.0","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"bb8fcd6f0cb739303b1c80877c2d989fb1043810","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.2.0.tgz","fileCount":4,"integrity":"sha512-BeTqlvi7zeFtGyLvd1s6U0V4xNo6Q479Fjp+JXwZ04/434x2A06zHBsLFD4D1f/Dn1bC3RtlwevJtywLR7qtoA==","signatures":[{"sig":"MEYCIQDna1ZzdqqL/N7+D0J2Uku0maUy+vsz5LYsSlo0XDFEcgIhAKAsJFHYpbMAycN3d0uciKNpOKBxBhfKkVK3JoQJvvkz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25389},"main":"src/index.ts","gitHead":"0da42eb11c6a4dbf253c38a9f8abb0eef220d07d","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.2","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.2.0_1691427797028_0.3491558293993213","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"svelte-capacitor-store","version":"0.2.1","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.2.1","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"856f33b09c507847288a54c8c96e4478c0df4618","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.2.1.tgz","fileCount":4,"integrity":"sha512-FNsDusvr8evj+3v4iqMkRXKAhxGnhn0MvlmjbUpa61sbBPp/C41Kgij2BpNDyr2ObZMxTrRhrwaDiVOTIVMONg==","signatures":[{"sig":"MEUCIQD0/tmdF1t0ekQSKQ5vrN6rEVY6m5MhvblXBgCPFT9DHQIgWjj+u+4h15YNLkBfslfmGhGZgVQ1LMjcL9GF45r7JNs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25871},"main":"src/index.ts","gitHead":"51924ca9950521097d923fb6621f76105fc969ad","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.2","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.2.1_1691434866432_0.06119754943965949","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"svelte-capacitor-store","version":"0.2.2","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.2.2","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"cef0d14210de6f6c529d05ab6741e80bb126ba87","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.2.2.tgz","fileCount":4,"integrity":"sha512-9DnWlafJv1Wo1QeT7tgVKDixRQrzBxXlrJIYjlSNLuNk4+hj9z9k81BtxZRXotwvweR12A3UH7XbVDl+8B034Q==","signatures":[{"sig":"MEYCIQCZVyzWnZAlWOS8Gs1yY0aBES0STFpd2IcrnsziFbBAtAIhAPK0QWh/AG9AfM146ytAjx8x/miprQy7IiqyOFkZz393","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26007},"main":"src/index.ts","gitHead":"8ad0cd15eb8b9a7b5d3082abcf64c8c387e8bf38","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.2","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.2.2_1691445881449_0.5394036792675327","host":"s3://npm-registry-packages"}},"0.2.3":{"name":"svelte-capacitor-store","version":"0.2.3","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.2.3","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"587714b2170e67d089e23aff580f230eafd64049","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.2.3.tgz","fileCount":4,"integrity":"sha512-v1/HUxb8dOlEZsgQs5VLoXPrVjSNho6y1mXplkeY7c1DyzTQZG9d3rpeOsIJ2ortLXOde21WVEYXYMmSD98/4Q==","signatures":[{"sig":"MEUCIQDX3UTDgFAKh6Z1kaxOHeENhVPFayADfbEcttGIWj4XwAIgLyKEla+xBiI3hsE/7pAVZDCL7LQ0UvchiwSX50sR0B4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29347},"main":"src/index.ts","gitHead":"efb540435854f87bb110ee544591718bd2a71edc","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.2","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.2.3_1691539837901_0.8651561970338726","host":"s3://npm-registry-packages"}},"0.2.4":{"name":"svelte-capacitor-store","version":"0.2.4","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.2.4","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"0b5caf6dea9b147b340ec22a2b01746321a39626","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.2.4.tgz","fileCount":4,"integrity":"sha512-bEM1G5rBBOv52KvNQdQcZ5wxPGQLBXTf+yaxdcXk577/WB67IbrXfsQrI1yDfswMe5PfTswEOkKjmUSqKWasIg==","signatures":[{"sig":"MEUCIQDg7FwQy9OsfQc+Wl6maoeiAByelRQ3f91r0Tt/9PQijQIgS6giv/8I8WUls4at9+cBzbIRt5j0u6P5XGCdPLCTJlo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29383},"main":"src/index.ts","gitHead":"4432d5d61d84adc4859125f7f1854d84fd5da523","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A persistent store using capacitor storage on native devices, and localStorage otherwise, with some svelte spices","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"svelte":"^4.1.2","typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.2.4_1691541070923_0.7532103754946367","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"svelte-capacitor-store","version":"0.3.0","keywords":[],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.3.0","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"510108f1d8ad05ea13e5290b7146dbc6d28df160","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.3.0.tgz","fileCount":5,"integrity":"sha512-W67IB8FYFvr5ErLZBRAdn3qSQ/YjJcyFlaBjw2xgX8LZjbMdBKMJyBtkO5PTXP+lvrwePEbUgwtaZ56ByD7fRw==","signatures":[{"sig":"MEQCIFOHiuf+424ULDWO5s8QTdHL5dmpaFa1V9n9XRCMM6rlAiBzvaRRc9RGD7X7T6psyQXWPlMKw1zaqJl55XlLeb4LZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36232},"main":"src/index.ts","gitHead":"6a16f5323e640655be8f9edeee35f15261911b68","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A whole new svelte stores implementation that persists its values using capacitor storage on native devices, and indexedDB/localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.3.0_1692401647235_0.3154249862341052","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"svelte-capacitor-store","version":"0.3.1","keywords":["svelte","capacitor","svelte-store","storage"],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.3.1","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"2a256c07b4563b60520460a5982b365ba1633617","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.3.1.tgz","fileCount":5,"integrity":"sha512-vre5eQz50zkQSsTjL8Z03tH0Ow8VgfuRShRaIsEzQ7ZWBf/2GeJMlc5wSmonU4udtoy2fW+dQrXvgF8Ty2NZ8w==","signatures":[{"sig":"MEUCIDmeEBKAGOEvnKGEe0rVCiAM6j9Vlfr0LTpOoN2Hq57uAiEAiEE5blkKqFbGm5mQkJMXkLYdQnyT0pNGGpRekPlsU+4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36283},"main":"src/index.ts","gitHead":"6a16f5323e640655be8f9edeee35f15261911b68","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A whole new svelte stores implementation that persists its values using capacitor storage on native devices, and indexedDB/localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.3.1_1692401968517_0.445721563051761","host":"s3://npm-registry-packages"}},"0.3.2":{"name":"svelte-capacitor-store","version":"0.3.2","keywords":["svelte","capacitor","svelte-store","state-management","reactivity","indexeddb","localStorage"],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.3.2","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"b017b48552847c206d0136fdbc1ff83f8d94d610","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.3.2.tgz","fileCount":5,"integrity":"sha512-re/NzNJzVLJ7+GVqHmx9FdQW1j99Aedxv668PevsQu36BrrjMYifPh+iMDJiqSDCX3CSPN1q72ymoMKSQ8X4ZA==","signatures":[{"sig":"MEUCIQCFFEU34l/64vX8Zya88ZQQD6NJMmCjD8d5RTZGZ4XZrQIgf3E13ufwP1cWbY1grtpyhQvbYfJiou31AmERGGOmH7U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36511},"main":"src/index.ts","gitHead":"2a75ea97f735562510e4ef94990c86bd19c26cdb","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A whole new svelte stores implementation that persists its values using capacitor storage on native devices, and indexedDB/localStorage otherwise.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.1.6","@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"peerDependencies":{"@capacitor/core":"^5.2.2","@capacitor/preferences":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.3.2_1692429784229_0.37448806662636147","host":"s3://npm-registry-packages"}},"0.3.5":{"name":"svelte-capacitor-store","version":"0.3.5","keywords":["svelte","capacitor","svelte-store","state-management","reactivity","indexeddb","localStorage"],"author":"","license":"ISC","_id":"svelte-capacitor-store@0.3.5","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"dist":{"shasum":"99741724e0f3559af70d0bb26c415dfa7aebbcbf","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.3.5.tgz","fileCount":9,"integrity":"sha512-pITBa5uRxpQHYxDWpEdiaSrpT3G8s/6QbibeDNiD2cPHSZr38NEx99JPXBN1ZAoy8aXRiQMJS72v5EGvI6Xvrg==","signatures":[{"sig":"MEUCIFX5kF8ColqbHFk3pYmUcCWL9EY3wDQwXIszm7dnrvc2AiEAl6Jv378lZNVnFxSxSmyr0a//Hvg36zHvlgXOC9or2Do=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83203},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"dc1988c09954eb12964a728605bb6e65e82ef8e3","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"repository":{"url":"git+https://github.com/sdekna/svelte-capacitor-store.git","type":"git"},"_npmVersion":"8.19.4","description":"A whole new svelte stores implementation that persists its values using capacitor storage on native devices, and indexedDB/localStorage otherwise.","directories":{},"_nodeVersion":"16.20.2","dependencies":{"@capacitor/core":"^5.2.3","@capacitor/preferences":"^5.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/svelte-capacitor-store_0.3.5_1694419113053_0.14749160023011632","host":"s3://npm-registry-packages"}},"0.3.6":{"name":"svelte-capacitor-store","version":"0.3.6","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc"},"keywords":["svelte","capacitor","svelte-store","state-management","reactivity","indexeddb","localStorage"],"author":"","license":"ISC","description":"A whole new svelte stores implementation that persists its values using capacitor storage on native devices, and indexedDB/localStorage otherwise.","repository":{"type":"git","url":"git+https://github.com/sdekna/svelte-capacitor-store.git"},"dependencies":{"@capacitor/core":"^6.1.2","@capacitor/preferences":"^6.0.2"},"devDependencies":{"typescript":"^5.6.2"},"_id":"svelte-capacitor-store@0.3.6","gitHead":"c9a12ece01af3086d56157bc1b45ab395912d2d8","bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-HAi85MQ4K57f4U3hZthiDC1b8K3A/5EZVTXbNlV/Ha7fQEJLiAwH8mFfbgJsiONDTEZUzI5Dp8iYwNCrntvhwg==","shasum":"cbe0b48d1a07735f5eef653af106b3741d212d78","tarball":"https://registry.npmjs.org/svelte-capacitor-store/-/svelte-capacitor-store-0.3.6.tgz","fileCount":9,"unpackedSize":83474,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMOp1X5VHA6V7BY2o0mPDZl2n0RZElDw+bkRRr1Dy5zAiApuECy9CktbBvwQjYnmk90Lgl+bQND1EC0/V8ufqWfDQ=="}]},"_npmUser":{"name":"sdekna","email":"sdekna@shaggaga.cloud"},"directories":{},"maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-capacitor-store_0.3.6_1726352437950_0.7676427967257617"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-23T08:27:21.930Z","modified":"2024-09-14T22:20:38.320Z","0.0.1":"2023-07-23T08:27:22.091Z","0.0.2":"2023-07-23T08:33:18.786Z","0.0.3":"2023-07-23T09:04:37.277Z","0.0.4":"2023-07-23T09:23:22.952Z","0.0.5":"2023-07-23T09:27:43.046Z","0.0.6":"2023-07-23T20:40:05.684Z","0.0.7":"2023-07-23T23:35:44.092Z","0.0.8":"2023-07-25T11:59:27.400Z","0.0.81":"2023-07-25T12:55:44.201Z","0.1.0":"2023-07-27T00:30:17.469Z","0.1.1":"2023-07-27T00:38:37.444Z","0.1.2":"2023-07-27T02:10:16.980Z","0.1.3":"2023-07-31T12:42:34.072Z","0.2.0":"2023-08-07T17:03:17.203Z","0.2.1":"2023-08-07T19:01:06.644Z","0.2.2":"2023-08-07T22:04:41.617Z","0.2.3":"2023-08-09T00:10:38.037Z","0.2.4":"2023-08-09T00:31:11.085Z","0.3.0":"2023-08-18T23:34:07.433Z","0.3.1":"2023-08-18T23:39:28.719Z","0.3.2":"2023-08-19T07:23:04.410Z","0.3.3":"2023-09-11T07:14:54.469Z","0.3.31":"2023-09-11T07:32:37.239Z","0.3.33":"2023-09-11T07:38:00.255Z","0.3.34":"2023-09-11T07:49:53.557Z","0.3.4":"2023-09-11T07:56:42.159Z","0.3.5":"2023-09-11T07:58:33.229Z","0.3.6":"2024-09-14T22:20:38.142Z"},"bugs":{"url":"https://github.com/sdekna/svelte-capacitor-store/issues"},"license":"ISC","homepage":"https://github.com/sdekna/svelte-capacitor-store#readme","keywords":["svelte","capacitor","svelte-store","state-management","reactivity","indexeddb","localStorage"],"repository":{"type":"git","url":"git+https://github.com/sdekna/svelte-capacitor-store.git"},"description":"A whole new svelte stores implementation that persists its values using capacitor storage on native devices, and indexedDB/localStorage otherwise.","maintainers":[{"name":"sdekna","email":"sdekna@shaggaga.cloud"}],"readme":"#### update: 0.3.5:\n- Apart from capacitor dependencies, the library is now free of any dependencies.\n- Library is compiled to js with types for reduced size for production cases.\n\n#### update: 0.3.0 (major - non-breaking):\n-  Build-in svelte stores creation and operation logic can be restrictive especially when dealing with async operations, thus built-in svelte-stores were ditched entirely and opted for more tuned and specialized implementation, while behaving/used the same as built-in stores.\n\n- Optimized Non-Native Browser Storage: For better performance and reduced blocking, non-native browser storage now defaults to using `IndexedDB`. Each store is stored in a separate indexedDB document providing a non-blocking performance boost for reads and writes. Should you prefer a different approach. Could be set to `localStorage` via the `browserStorage` option.\n\n- To avoid any breaking changes, an automatic migration logic is introduced. In non-native devices, during store initialization, if the value could not be retrieved from `indexedDB`, the store will try to retrieve it from `localStorage`, if it exists, it will migrate it to `indexedDB` then delete the `localStorage` record.\n\n- a new method (sync) `store.get()` now returns the store value synchronously, which is much more performant than the standard `get(store)` (though it could still be used), and eliminates unnecessary and possibly costly subscribe and unsubscribe.\n\n#### update: 0.2.3: \n  - Each store now exports an async `.init()` method, and accepts an optional `noDuplication` option.\n  - `initialValue` will now only be set to the store if no persisted values are in storage (if persisted `true`).\n\n#### update: 0.2.2:\n  - bug fix for `Cannot read properties of undefined (reading 'unsubscribe')` during ssr.\n#### update: 0.2.1:\n  - Major update... complete persistance logic rewrite. New features and complete typescript support.\n#### update: 0.1.3:\n  - bug fix in native capacitor storage.\n\n\n## Introduction\nThe **Svelte Capacitor Store** library is designed to provide advanced state management capabilities for Svelte applications. With support for persistent storage through `Capacitor Preferences` in native devices and `indexedDB` (default) or `localStorage`, which can enhance your ability to manage and maintain valid data across multiple platforms on a single code-base, with extra svelte sauces...\n\n## Installation\nTo install the library: `npm install svelte-capacitor-store` or copy `src/index.ts` and `src/indexeddb-wrapper.ts` directly to your project. Add `@capacitor/preferences` plugin to your capacitor app and let capacitor update the required changes:\n```bash\nnpm install @capacitor/preferences\nnpx cap sync\n```\nMore about setting up `@capacitor/preferences` at https://capacitorjs.com/docs/apis/preferences#install.\n\n## Usage\n#### Configuration Options:\nAll exported store functions accept the following configuration options:\n\nstoreName (required) (string): A unique identifier for the store.\n- `initialValue` (required): The initial value for the store. It will only be set if the store has no persisted value in storage.\n- `persist` (optional): Set to `true` to enable persistent storage.\n- `validationStatement` (optional): A function that validates the incoming value before updating the store. The function provides 1 parameter:\n\t- `value`: the value that needs to be validated before updating the store. The `value` is guaranteed to not be `null` or `undefined` so no need for `if(value)`, in case of `arrayStore` it is guaranteed to not be `null` or `undefined` and also is an array, so no need for `if(Array.isArray(value))`.\n- `initFunction` (optional) (async): An async function that gets executed inside a try/catch block on store initialization. The function provides 4 parameters:\n\t- `currentValue`: the current stored value. (could be `null`)\n\t- `previousValue`: the previous stored value. (could be `null`)\n\t- `set`: the `customSet` function to update the store value if needed.\n\t- `reset`: reset the store value to `initialValue` if needed.\n- `noDuplication` (optional) (boolean): If set to `true`, on each new update request, it will compare new update value with the current store value, before making any further validations, and will only continue if the new value is different from the current value. It works recursively for objects, arrays, and variables. It can be used to avoid unnecessary updates/triggers/reads/writes.\n- `browserStorage` (optional) ('indexedDB' | 'localStorage'): Set to `'localStorage'` for browser storage using localStorage. Defaults to `'IndexedDB'`.\n\n#### Methods\nEach store  (`arrayStore`, `objectStore`, `variableStore`) instance provides the following methods:\n\n- `getValue` (async):  `const { value, previousValue } = await getValue()` returns the stored current and previous values directly from the persisted storage. Useful to read the store value of a store that is not yet initialized (e.g. needing the values on `onMount`).\n- `reset`: This method should be used to reset the store to the `initialValue`. This is especially important in `objectStore` , as `objectStore.set(null)` will not update the store value.\n- `set(value)`: Sets a new value for the store.\n- `update(currentValue, previousValue(optional))`: Updates the store using a callback function providing current and previous values.\n- `subscribe(currentValue, previousValue(optional))`: Subscribes to changes in the store, providing current and previous values.\n- `init()` (async): Manually initialize the store before it having to be read. Could be useful in critical stores like auth or profile stores.\n- `get()`(sync): returns the current store value (not from storage) synchronously, which is much more performant than the standard `get(store)` (though it could still be used), as it eliminates unnecessary and possibly costly subscribe and unsubscribe.\n\n\n#### Creating an Array Store\nThe `arrayStore` function creates a store for arrays. The `arrayStore` will only allow defined array values, thus in the `validationStatement`, the `value` is already defined and is an array. Any update that does not pass the `validationStatement` (i.e. the function returns `false`) will not be set and thus will not be persisted.\n```js\nimport { arrayStore } from 'svelte-capacitor-store';\nconst myArrayStore = arrayStore<StoreType[]>({\n  storeName: 'myArrayStore',\n  initialValue: [],\n  persist: true,\n  browserStorage: 'localStorage' // Optional: defaults to 'indexedDB'\n  validationStatement: (value) => {\n  // if(!Array.isArray(value)) return false // this is not necessary as it is already applied to every update by default\n  return value.every((item)=>item.price > 0)\n  },\n\n});\n```\n\n#### Creating an Object Store\nThe `objectStore` function creates a store for objects. It supports validation and can persist data based on the platform.\n```js\nimport { objectStore } from 'svelte-capacitor-store';\nconst myObjectStore = objectStore<StoreType>({\n  storeName: 'myObjectStore',\n  initialValue: {},\n  persist: true,\n  validationStatement: (value) => {\n  // if(!value) return false // this is unecessary as it is already applied to every update by default\n  return value.id ? true : false\n  }\n});\n```\n\n#### Creating a Variable Store\nThe `variableStore` function creates a store for general variables. It provides options for validation and persistence.\n```js\nimport { variableStore } from 'svelte-capacitor-store';\nconst myVariableStore = variableStore<number>({\n  storeName: 'myVariableStore',\n  initialValue: 0,\n  persist: true,\n  validationStatement: (value) => typeof value === 'number' && value > 5 && value <11,\n});\n```\n\n#### Subscribing to Store Changes\nYou can subscribe to changes in the store's value using the `subscribe` method.\n```js\nconst unsubscribe = myArrayStore.subscribe((newValue, oldValue) => {\n  console.log('New value:', newValue);\n  console.log('Old value:', oldValue);\n});\n\n// To unsubscribe, call the function returned by `subscribe`\nunsubscribe();\n\n// OR simply\n$myArrayStore\n```\n\n#### Updating Store Values\nYou can update the store's value using the `update` method, which accepts a callback to compute the new value based on the old value.\n```js\nmyStore.update((currentValue, previousValue) => {\n  // Compute and return the new value\n  return (currentValue + previousValue) / 2\n});\n```\n\n#### Getting Store Values Directly from Storage (async)\nTo retrieve the current and previous values of the store, use the `getValue` method.\n```js\nconst { value, previousValue } = await myStore.getValue();\n```\n\n#### Getting Store Value\nTo retrieve the current store value, use the `get` method or svelte `get()`.\n```js\nconst value = myStore.get();\n// or\nimport { get } from 'svelte/store';\nconst value = get(myStore)\n\n```\n\n#### Resetting Store Values\nResetting the store to its initial value can be done using the `reset` method.\n```js\nmyStore.reset();\n```\n\n## Examples\n\n#### Example 1: Using the `validationStatement` Function\n```js\nconst persistedStore = variableStore({\n  initialValue: 0,\n  persist: true,\n  storeName: 'persistedCounter',\n  validationStatement: (value) => value > 15 && value < 29,\n});\n```\n\n#### Example 2: Non Persisted Store with `initFunction`\n\n```js\nconst profileStore = objectStore<ProfileType | null>({\n  initialValue: null,\n  storeName: 'profileStore',\n  initFunction: async (currentValue, oldValue, set, reset) => {\n    const data = await fetchData();\n    if (data?.id) set(data);\n  }\n});\n```\n#### Example 3: Combining Functions\n\n```js\nconst ordersStore = arrayStore<Orders[]>({\n  initialValue: [],\n  storeName: 'ordersStore',\n  persist: true,\n  validationStatement: (value) => value.every((order) => order.id),\n  initFunction: async (currentValue, oldValue, set, reset) => {\n    if (currentValue) return\n    const res = await fetch(''/* endpoint, {options} */)\n    const data = await res.json() as Orders[] | null\n    if(Array.isArray(data) && data.length > 0) set(data)\n    else reset()\n  }\n});\n```\n\n#### Example 4: Persisted Store as an SDK\n\n```js\nfunction createOrdersStore() {\n  const store = arrayStore<Order[]>({\n    initialValue: [],\n    storeName: 'ordersStore',\n    persist: true,\n    validationStatement: (value) => value.every((order) => order.id),\n    initFunction: async (currentValue, oldValue, set, reset) => {\n      if (!currentValue) await handlers.getOrders();\n    }\n  });\n\n  const { update, set, reset } = store;\n  \n  const handlers = {\n    getOrders: async () => {\n      const res = await fetch('' /*endpoint*/, {/*opetions*/});\n      const data = (await res.json()) as Order[] | null;\n      if (!data) return;\n      if (Array.isArray(data)) set(data);\n      // else reset();\n    },\n    postOrder: async (order): Promise<{ success: boolean; data: Order | null }> => {\n      const res = await fetch('' /*endpoint*/, {/*opetions*/});\n      const data = (await res.json()) as Order | null;\n      if (!data) return { success: false, data: null };\n      update((store) => [...store, data]);\n      return { success: true, data };\n    },\n    deleteOrder: async (orderId: string) => {\n    const res = await fetch('' /*endpoint*/, {/*opetions*/});\n      const data = (await res.json()) as string | null;\n      if (data) {\n      update((store) => store.filter((order) => order.id !== data));\n      }\n    }\n  };\n\nreturn { ...store, ...handlers };\n}\n\nconst ordersStore = createOrdersStore();\n```\nThe store will already be populated using the `initFunction`... any other interactions with the store can be done via the handlers, making it something like an \"sdk\".\n\nStore data can be accessed as normal via `$ordersStore` or other methods. Interactions and mutations to the store are done in a single unified place, and could be used like this: \n- `await ordersStore.postOrder(orderData)`\n- `await ordersStore.deleteOrder(orderId)`\n\n\n### Support and Contributions\nYour feedback, bug reports, and feature ideas are highly valuable. Feel free to create an issue or a discussion to share your thoughts. If you're interested, you can also contribute by submitting pull requests with your code changes or new features. Contributions, corrections, and enhancements are always welcome.\n","readmeFilename":"README.md"}