{"_id":"@dokhna-tech/zatca-storage-memory","_rev":"6-70e283c31ffc618bdd6a237a97acece0","name":"@dokhna-tech/zatca-storage-memory","dist-tags":{"latest":"4.0.1"},"versions":{"1.0.0":{"name":"@dokhna-tech/zatca-storage-memory","version":"1.0.0","license":"BUSL-1.1","_id":"@dokhna-tech/zatca-storage-memory@1.0.0","maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"dist":{"shasum":"2a3031baf112c01dac2853b7afbc7bc6fdf348ae","tarball":"https://registry.npmjs.org/@dokhna-tech/zatca-storage-memory/-/zatca-storage-memory-1.0.0.tgz","fileCount":9,"integrity":"sha512-V0ARaXAAJ5Y0FWADZ4z8VbJ8p8pNoNnVjFM18JjgWpUZnZ0aMgcL0ge0TSLr+L2/AiNOuY0bNjkkdrNa0zDfWw==","signatures":[{"sig":"MEQCICOkmrnDyApiPcrAbcUMYFkaU+9tne0pl+mK3NW4O4ejAiBg64RizpkEb8kwZfShyPfQh0LBZ8eJzlInlr1iSmkErg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48713},"main":"./dist/index.cjs","type":"module","_from":"file:dokhna-tech-zatca-storage-memory-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ameensom","email":"amin4mail@yahoo.com"},"_resolved":"/private/var/folders/14/y1m00gyx24b054fzqk4wb_2c0000gn/T/8162688a39809b175b8ab92a7ab41278/dokhna-tech-zatca-storage-memory-1.0.0.tgz","_integrity":"sha512-V0ARaXAAJ5Y0FWADZ4z8VbJ8p8pNoNnVjFM18JjgWpUZnZ0aMgcL0ge0TSLr+L2/AiNOuY0bNjkkdrNa0zDfWw==","_npmVersion":"11.6.4","description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","directories":{},"_nodeVersion":"22.18.0","dependencies":{"debug":"^4.3.7","async-mutex":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/debug":"^4.1.12","@dokhna-tech/zatca":"2.0.0"},"peerDependencies":{"@dokhna-tech/zatca":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zatca-storage-memory_1.0.0_1778762266492_0.10049544425080725","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@dokhna-tech/zatca-storage-memory","version":"2.0.2","license":"BUSL-1.1","_id":"@dokhna-tech/zatca-storage-memory@2.0.2","maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"dist":{"shasum":"006cce587312c264553c21ec677d55fce5696178","tarball":"https://registry.npmjs.org/@dokhna-tech/zatca-storage-memory/-/zatca-storage-memory-2.0.2.tgz","fileCount":9,"integrity":"sha512-EIR0ARG40j+R+c4yjUDKCrbfEyw2PVYClEi5qDrcAgkIGnbWrdBecYidsCGAa/j1V9Qx+82CiB8QCKf4XTd/5A==","signatures":[{"sig":"MEUCIBfZFoIwnHEcYeadeB5sb+3jT/0v249Mp6Btxlww5fvHAiEAz4dQDCfeUGD/cO0XukwtIS7zSPfduaIDkD+Bsxh1JDI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49673},"main":"./dist/index.cjs","type":"module","_from":"file:dokhna-tech-zatca-storage-memory-2.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ameensom","email":"amin4mail@yahoo.com"},"_resolved":"/tmp/dc814a25a535048469a2f4666ec6e2be/dokhna-tech-zatca-storage-memory-2.0.2.tgz","_integrity":"sha512-EIR0ARG40j+R+c4yjUDKCrbfEyw2PVYClEi5qDrcAgkIGnbWrdBecYidsCGAa/j1V9Qx+82CiB8QCKf4XTd/5A==","_npmVersion":"10.9.7","description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","directories":{},"_nodeVersion":"22.22.2","dependencies":{"debug":"^4.3.7","async-mutex":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/debug":"^4.1.12","@dokhna-tech/zatca":"2.0.2"},"peerDependencies":{"@dokhna-tech/zatca":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/zatca-storage-memory_2.0.2_1778766203391_0.9958801339185266","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@dokhna-tech/zatca-storage-memory","version":"2.0.3","license":"BUSL-1.1","_id":"@dokhna-tech/zatca-storage-memory@2.0.3","maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"homepage":"https://github.com/dokhna/dokhna-tech-zatca#readme","bugs":{"url":"https://github.com/dokhna/dokhna-tech-zatca/issues"},"dist":{"shasum":"4858fb3df4a78e2a97ca5481cf5d7f9d0a437b3b","tarball":"https://registry.npmjs.org/@dokhna-tech/zatca-storage-memory/-/zatca-storage-memory-2.0.3.tgz","fileCount":9,"integrity":"sha512-+8Hw8VrgjMha3+cGHzjSspY4Yydi+EvQmf7ZlHiAOYs9eaO9lBIInCowGzfoJ8OK92McKdkr/o+URNSPvv4JMw==","signatures":[{"sig":"MEYCIQDQO3OGf7efWgaQn5UGvNhpq2RuhglC3GwNOGCNiCfyNgIhAIKUXwrmIokSt3b4wYmKr4UM66YAwxLiHreTn2qscBnY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49973},"main":"./dist/index.cjs","type":"module","_from":"file:dokhna-tech-zatca-storage-memory-2.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ameensom","email":"amin4mail@yahoo.com"},"_resolved":"/tmp/09a810d290b9ba24038d82efe237f862/dokhna-tech-zatca-storage-memory-2.0.3.tgz","_integrity":"sha512-+8Hw8VrgjMha3+cGHzjSspY4Yydi+EvQmf7ZlHiAOYs9eaO9lBIInCowGzfoJ8OK92McKdkr/o+URNSPvv4JMw==","repository":{"url":"git+https://github.com/dokhna/dokhna-tech-zatca.git","type":"git","directory":"packages/storage-memory"},"_npmVersion":"10.9.7","description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","directories":{},"_nodeVersion":"22.22.2","dependencies":{"debug":"^4.3.7","async-mutex":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/debug":"^4.1.12","@dokhna-tech/zatca":"2.0.3"},"peerDependencies":{"@dokhna-tech/zatca":"2.0.3"},"_npmOperationalInternal":{"tmp":"tmp/zatca-storage-memory_2.0.3_1778781332444_0.37086019651740143","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"@dokhna-tech/zatca-storage-memory","version":"2.0.4","license":"BUSL-1.1","_id":"@dokhna-tech/zatca-storage-memory@2.0.4","maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"homepage":"https://github.com/dokhna/dokhna-tech-zatca#readme","bugs":{"url":"https://github.com/dokhna/dokhna-tech-zatca/issues"},"dist":{"shasum":"fa1697604e62f9e75ff4cc7264b220089d71cd11","tarball":"https://registry.npmjs.org/@dokhna-tech/zatca-storage-memory/-/zatca-storage-memory-2.0.4.tgz","fileCount":9,"integrity":"sha512-10a3bF6o4EqNZ2nIMQ4Hdw82qYyjmkuRb5IFofpywyH3L/6wGOC8FMY2t6IgSBS/i0iB4SODb4puI5wS0PiwlA==","signatures":[{"sig":"MEQCIHTf5RWbfmIBJMqk2T5ZJUnIJ6b0rJp36kXi+WRb/4e8AiBFbadVk+7DPYKiX4L0Xfe3Z5WxVmw/80CcxcqXDMyhrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50042},"main":"./dist/index.cjs","type":"module","_from":"file:dokhna-tech-zatca-storage-memory-2.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage --passWithNoTests"},"_npmUser":{"name":"ameensom","email":"amin4mail@yahoo.com"},"_resolved":"/tmp/17704a5a63d00900ce934ca649e45497/dokhna-tech-zatca-storage-memory-2.0.4.tgz","_integrity":"sha512-10a3bF6o4EqNZ2nIMQ4Hdw82qYyjmkuRb5IFofpywyH3L/6wGOC8FMY2t6IgSBS/i0iB4SODb4puI5wS0PiwlA==","repository":{"url":"git+https://github.com/dokhna/dokhna-tech-zatca.git","type":"git","directory":"packages/storage-memory"},"_npmVersion":"10.9.7","description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","directories":{},"_nodeVersion":"22.22.2","dependencies":{"debug":"^4.3.7","async-mutex":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/debug":"^4.1.12","@dokhna-tech/zatca":"2.0.4"},"peerDependencies":{"@dokhna-tech/zatca":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/zatca-storage-memory_2.0.4_1778842975529_0.9341889890580197","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@dokhna-tech/zatca-storage-memory","version":"4.0.0","license":"BUSL-1.1","_id":"@dokhna-tech/zatca-storage-memory@4.0.0","maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"homepage":"https://github.com/dokhna/dokhna-tech-zatca#readme","bugs":{"url":"https://github.com/dokhna/dokhna-tech-zatca/issues"},"dist":{"shasum":"bac80e6ecfbfb26e9acd83f2e13727595a1772e0","tarball":"https://registry.npmjs.org/@dokhna-tech/zatca-storage-memory/-/zatca-storage-memory-4.0.0.tgz","fileCount":9,"integrity":"sha512-vkqJpmqQPN68jJJnWmjKNAnZSSC8Ypr8OiCeLDfkIzvb5fDbwZN6QzEdsXmBCWgIVu0nMp9z3nutyhk8nYtsxw==","signatures":[{"sig":"MEQCIFMnnEbbgFomNus8hozOJImgNvR/TilFaE1zLBPiHeDzAiAi1fy7QiLh99RPqiGLIBRuYy2ZMW0QnIBuqBWFDAtcpw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50042},"main":"./dist/index.cjs","type":"module","_from":"file:dokhna-tech-zatca-storage-memory-4.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage --passWithNoTests"},"_npmUser":{"name":"ameensom","email":"amin4mail@yahoo.com"},"_resolved":"/tmp/b0a134b36dc43e899fac665cada550db/dokhna-tech-zatca-storage-memory-4.0.0.tgz","_integrity":"sha512-vkqJpmqQPN68jJJnWmjKNAnZSSC8Ypr8OiCeLDfkIzvb5fDbwZN6QzEdsXmBCWgIVu0nMp9z3nutyhk8nYtsxw==","repository":{"url":"git+https://github.com/dokhna/dokhna-tech-zatca.git","type":"git","directory":"packages/storage-memory"},"_npmVersion":"10.9.7","description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","directories":{},"_nodeVersion":"22.22.2","dependencies":{"debug":"^4.3.7","async-mutex":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/debug":"^4.1.12","@dokhna-tech/zatca":"4.0.0"},"peerDependencies":{"@dokhna-tech/zatca":"4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zatca-storage-memory_4.0.0_1779089787864_0.5743102936605615","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"@dokhna-tech/zatca-storage-memory","version":"4.0.1","description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","license":"BUSL-1.1","repository":{"type":"git","url":"git+https://github.com/dokhna/dokhna-tech-zatca.git","directory":"packages/storage-memory"},"homepage":"https://github.com/dokhna/dokhna-tech-zatca#readme","bugs":{"url":"https://github.com/dokhna/dokhna-tech-zatca/issues"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"engines":{"node":">=20.19.0"},"publishConfig":{"access":"public"},"dependencies":{"async-mutex":"^0.5.0","debug":"^4.3.7"},"peerDependencies":{"@dokhna-tech/zatca":"4.0.1"},"devDependencies":{"@types/debug":"^4.1.12","@dokhna-tech/zatca":"4.0.1"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","test":"vitest run --passWithNoTests","test:coverage":"vitest run --coverage --passWithNoTests"},"_id":"@dokhna-tech/zatca-storage-memory@4.0.1","_integrity":"sha512-TVMWlYu7KLEf5cOWwu+F9HTjky/fjYmzSGgLT18PKW0KfUhtE4fXyj9HZ2WISIJOZ/AmnDKqCdoJcZLrPnBECg==","_resolved":"/tmp/f1d4078da8d9124fd137a9bd17ccba43/dokhna-tech-zatca-storage-memory-4.0.1.tgz","_from":"file:dokhna-tech-zatca-storage-memory-4.0.1.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-TVMWlYu7KLEf5cOWwu+F9HTjky/fjYmzSGgLT18PKW0KfUhtE4fXyj9HZ2WISIJOZ/AmnDKqCdoJcZLrPnBECg==","shasum":"0095753fdf335e405f9582e5ae44166cf254cbf6","tarball":"https://registry.npmjs.org/@dokhna-tech/zatca-storage-memory/-/zatca-storage-memory-4.0.1.tgz","fileCount":9,"unpackedSize":50042,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDiRCsnA9I2bRfDySukUSh5wRq8V1ovHBl0RD90Ze6arQIhAP9nNaE2N1dIn1et5WOwuZojSv9tbHOPrUcxZY8mnwck"}]},"_npmUser":{"name":"ameensom","email":"amin4mail@yahoo.com"},"directories":{},"maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/zatca-storage-memory_4.0.1_1781527871402_0.39144829840313555"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-14T12:37:46.396Z","modified":"2026-06-15T12:51:11.730Z","1.0.0":"2026-05-14T12:37:46.626Z","2.0.2":"2026-05-14T13:43:23.552Z","2.0.3":"2026-05-14T17:55:32.618Z","2.0.4":"2026-05-15T11:02:55.686Z","4.0.0":"2026-05-18T07:36:28.022Z","4.0.1":"2026-06-15T12:51:11.561Z"},"bugs":{"url":"https://github.com/dokhna/dokhna-tech-zatca/issues"},"license":"BUSL-1.1","homepage":"https://github.com/dokhna/dokhna-tech-zatca#readme","repository":{"type":"git","url":"git+https://github.com/dokhna/dokhna-tech-zatca.git","directory":"packages/storage-memory"},"description":"In-memory storage adapter for @dokhna-tech/zatca (testing/dev).","maintainers":[{"name":"ameensom","email":"amin4mail@yahoo.com"}],"readme":"# @dokhna-tech/zatca-storage-memory\n\nIn-memory `StorageAdapter` for [`@dokhna-tech/zatca`](https://www.npmjs.com/package/@dokhna-tech/zatca). For testing and development only — data is lost on process restart and is not shared across processes.\n\n[![npm](https://img.shields.io/npm/v/@dokhna-tech/zatca-storage-memory.svg)](https://www.npmjs.com/package/@dokhna-tech/zatca-storage-memory)\n[![license](https://img.shields.io/badge/license-BUSL--1.1-blue.svg)](./LICENSE)\n\n## Install\n\n```bash\nnpm install @dokhna-tech/zatca @dokhna-tech/zatca-storage-memory\n```\n\n`@dokhna-tech/zatca` is a peer dependency.\n\n## Usage\n\n```ts\nimport { createMemoryStorageAdapter } from \"@dokhna-tech/zatca-storage-memory\";\nimport { issueSimplifiedTaxInvoice, asVATNumber, asEGSUuid } from \"@dokhna-tech/zatca\";\n\nconst storage = createMemoryStorageAdapter();\n\nconst result = await issueSimplifiedTaxInvoice({\n  storage,\n  vatNumber: asVATNumber(\"310123456700003\"),\n  egsUuid: asEGSUuid(\"11111111-2222-3333-4444-555555555555\"),\n  // ...rest of the invoice payload\n});\n```\n\nThe factory accepts an optional `options` object for clock injection and custom invoice-number formatting — see the TypeScript signature for details.\n\n## When to use\n\n- **Yes:** unit and integration tests, local development without a database, spike / proof-of-concept work.\n- **No:** production. Data is lost on restart and never shared between processes — use [`@dokhna-tech/zatca-storage-mongo`](https://www.npmjs.com/package/@dokhna-tech/zatca-storage-mongo) or [`@dokhna-tech/zatca-storage-postgres`](https://www.npmjs.com/package/@dokhna-tech/zatca-storage-postgres) instead.\n\n## License\n\nBUSL-1.1 — see [LICENSE](./LICENSE). The license converts to Apache 2.0 on 2030-05-13. SaaS / multi-tenant production use requires a commercial license; see the [main repo](https://github.com/dokhna-tech/zatca) for terms.\n","readmeFilename":"README.md"}