{"_id":"@domain-first/handlers-mock-rest-adapter","_rev":"6-f30c59b9af51f680d2e23db8171e4c03","name":"@domain-first/handlers-mock-rest-adapter","dist-tags":{"latest":"2.0.1"},"versions":{"0.0.1":{"name":"@domain-first/handlers-mock-rest-adapter","version":"0.0.1","_id":"@domain-first/handlers-mock-rest-adapter@0.0.1","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"dist":{"shasum":"7c566bf7dc67e4bea486122ffb775b4cc7e6efcd","tarball":"https://registry.npmjs.org/@domain-first/handlers-mock-rest-adapter/-/handlers-mock-rest-adapter-0.0.1.tgz","fileCount":7,"integrity":"sha512-mksi9rXCfSWFQc3YWPMjekBTNYcotJIjoCT21MN2xtGALM6VSCaO6hDZ+/khDC2kQke/yFHTJvhCD4arHVFKEw==","signatures":[{"sig":"MEYCIQDSERdb1XmFxDuOjxssBHQtqvAH8eMOB5k8rhGVqm6kiAIhAN4ljGAOA3l0+hnkBDXSdrkhxIsoOsw3ZC1Sp54nbLq6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5370},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2bad3280fe770fce5614fd73e5c4f6903c14ef2b","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"alevnyacow","email":"alevnyacow@gmail.com"},"_npmVersion":"11.9.0","description":"Mock REST Adapter for @domain-first/handlers.","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","@rstest/adapter-rslib":"^0.10.6","@domain-first/handlers-rest":"^2.0.0"},"peerDependencies":{"@domain-first/handlers-rest":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/handlers-mock-rest-adapter_0.0.1_1786786874371_0.4112074547989255","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.0":{"name":"@domain-first/handlers-mock-rest-adapter","version":"1.0.0","license":"MIT","_id":"@domain-first/handlers-mock-rest-adapter@1.0.0","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"homepage":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter#readme","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter/issues"},"dist":{"shasum":"ea0ba10e3c24a3aa70da41fc9fdc77b2aa599081","tarball":"https://registry.npmjs.org/@domain-first/handlers-mock-rest-adapter/-/handlers-mock-rest-adapter-1.0.0.tgz","fileCount":8,"integrity":"sha512-1ls5uH6calWtgjHPin7/ZIuv5w7bigfOSm3gO9ZdIIEPuc1L1z5UCPr2HNABfyru05b9p5cnFjAJ6aZgDDM8IQ==","signatures":[{"sig":"MEQCIDeL4asKn3bWBxYh1eA0mQSjDV48Tohe7rF6HrqnwetKAiBBmliwmIuCapiy54d3zJQ/GW1u+OzknziaBoBhO0q2tQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-mock-rest-adapter@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6583},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d5028b3444c57d1b0abdb63248315028ff5783c7","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:827563fd-559a-43ec-a9a3-8a83c8c64419"}},"repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter.git","type":"git"},"_npmVersion":"11.19.0","description":"- [@domain-first/handlers](https://www.npmjs.com/package/@domain-first/handlers) (^4.0.0) - [@domain-first/handlers-rest](https://www.npmjs.com/package/@domain-first/handlers-rest) (^2.0.0)","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.4.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","semantic-release":"^25.0.9","@rstest/adapter-rslib":"^0.10.6","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@domain-first/handlers":"^4.0.3","@domain-first/handlers-rest":"^2.0.0","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"@domain-first/handlers-rest":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/handlers-mock-rest-adapter_1.0.0_1786791646674_0.5716799058527058","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"@domain-first/handlers-mock-rest-adapter","version":"1.0.1","license":"MIT","_id":"@domain-first/handlers-mock-rest-adapter@1.0.1","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"homepage":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter#readme","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter/issues"},"dist":{"shasum":"78ece41b8cb5714efbc57601510bfd65a33f369e","tarball":"https://registry.npmjs.org/@domain-first/handlers-mock-rest-adapter/-/handlers-mock-rest-adapter-1.0.1.tgz","fileCount":8,"integrity":"sha512-fkZDO/ndBc+i+1zxTYl3YSaO00SCWxnQmWtsUgRzhkyrrAd2+Zo3FSMIZctAmGNx1mWDlE8/HLkXoccempq/Iw==","signatures":[{"sig":"MEUCIDJ3h3XTJ+ipnQIiJ8BCDqahL0FCvdzuzEnoBwJvqQcJAiEAp7gqMocn736r7/cSa/eVUL/42VmRDALy3Bkf7ZsDRl4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-mock-rest-adapter@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6650},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"22a2a24590ebef84a0e906d964660a8dde835f69","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:827563fd-559a-43ec-a9a3-8a83c8c64419"}},"repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter.git","type":"git"},"_npmVersion":"11.19.0","description":"Mock REST Adapter for @domain-first/handlers","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.4.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","semantic-release":"^25.0.9","@rstest/adapter-rslib":"^0.10.6","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@domain-first/handlers":"^4.0.3","@domain-first/handlers-rest":"^2.0.0","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"@domain-first/handlers-rest":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/handlers-mock-rest-adapter_1.0.1_1786791954072_0.1739287701243628","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0":{"name":"@domain-first/handlers-mock-rest-adapter","version":"2.0.0","license":"MIT","_id":"@domain-first/handlers-mock-rest-adapter@2.0.0","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"homepage":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter#readme","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter/issues"},"dist":{"shasum":"93b295626a344ed4d19989583940dc3490743f65","tarball":"https://registry.npmjs.org/@domain-first/handlers-mock-rest-adapter/-/handlers-mock-rest-adapter-2.0.0.tgz","fileCount":8,"integrity":"sha512-xehr6ValSulVoqQrrLz1hyayHvjv03SqZ6z8mR41wqHwd0Q14cmBj4pPBE7rKe/hS1oXsS4wR49vqzlJY6gbWA==","signatures":[{"sig":"MEYCIQC6Yf3ADl2mzGWaaNtPfqISUvhsh3ON6VX6DygLrwPmfAIhAJuBrBYNiDRAIq+aBjR9nukSEFuTyKd0e5iKU9Z1Ugyy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-mock-rest-adapter@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6650},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"dd006054e8858216cf28b73f31665eeb082dd25b","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:827563fd-559a-43ec-a9a3-8a83c8c64419"}},"repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter.git","type":"git"},"_npmVersion":"11.19.0","description":"Mock REST Adapter for @domain-first/handlers","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.4.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","semantic-release":"^25.0.9","@rstest/adapter-rslib":"^0.10.6","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@domain-first/handlers":"^4.0.3","@domain-first/handlers-rest":"^2.0.0","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"@domain-first/handlers-rest":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/handlers-mock-rest-adapter_2.0.0_1787231293945_0.5325292394565353","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.1":{"name":"@domain-first/handlers-mock-rest-adapter","version":"2.0.1","license":"MIT","_id":"@domain-first/handlers-mock-rest-adapter@2.0.1","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"homepage":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter#readme","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter/issues"},"dist":{"shasum":"6e52962f0ab9204ea4450575fb805bb0a31ecad4","tarball":"https://registry.npmjs.org/@domain-first/handlers-mock-rest-adapter/-/handlers-mock-rest-adapter-2.0.1.tgz","fileCount":8,"integrity":"sha512-IC4onldHa5sKxNoqEr8sAAHSDrstbfLmy+GCBt0qSceYGhCoBZ7jsvexoTWVUyF7GB+IXSpA0dI08KN8beeGMw==","signatures":[{"sig":"MEYCIQC1GCoHfb7LSXzu+ewkGzAKu1R62+svFYsNi3DUXsNFwQIhAKqakBe7ZmNWZhm0jqcQbLPCpQb2oH/jKmmsnH2aRg8M","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIEwh2bzIvx5dbdg4H+UaSL9NOVUrlgQo9k43h3kEzQdXAiBv6umstoW80TjX0u98yQtdNNARtmUoVpA5bCbOLV782g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-mock-rest-adapter@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6647},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4dda1564be3d5a3f9819b7d48c5807461c2d0849","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:827563fd-559a-43ec-a9a3-8a83c8c64419"}},"repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter.git","type":"git"},"_npmVersion":"11.19.0","description":"Mock REST Adapter for @domain-first/handlers","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.4.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","semantic-release":"^25.0.9","@rstest/adapter-rslib":"^0.10.6","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@domain-first/handlers":"^4.0.3","@domain-first/handlers-rest":"^2.0.0","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"@domain-first/handlers-rest":">=3"},"_npmOperationalInternal":{"tmp":"tmp/handlers-mock-rest-adapter_2.0.1_1788765176592_0.04117567124883137","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2026-08-15T09:41:14.131Z","modified":"2026-09-30T11:52:20.102Z","0.0.1":"2026-08-15T09:41:14.506Z","1.0.0":"2026-08-15T11:00:46.828Z","1.0.1":"2026-08-15T11:05:54.215Z","2.0.0":"2026-08-20T13:08:14.155Z","2.0.1":"2026-09-07T07:12:56.667Z"},"bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter/issues"},"license":"MIT","homepage":"https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter#readme","repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-mock-rest-adapter.git","type":"git"},"description":"Mock REST Adapter for @domain-first/handlers","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"readme":"# Mock REST adapter for @domain-first/handlers\n\n## Requirements\n\n- [@domain-first/handlers](https://www.npmjs.com/package/@domain-first/handlers) (^4.0.0)\n- [@domain-first/handlers-rest](https://www.npmjs.com/package/@domain-first/handlers-rest) (^2.0.0)\n\n## About\n\nMock REST Adapter for @domain-first/handlers.\n\n## Usage\n\n```ts\nimport { createEndpoint } from \"@domain-first/handlers-rest\";\n// { a: number, b: number } => number\nimport { sumHandler } from \"./handlers\";\nimport mockAdapter from \"@domain-first/handlers-mock-rest-adapter\";\n\nconst createMockEndpoint = createEndpoint(mockAdapter);\n\nconst sumMockEnpoint = createMockEndpoint(\n    sumHandler,\n).withRequestSchemas((inputSchema) => {\n    return {\n        body: inputSchema,\n    };\n});\n\nconst response = await sumMockEnpoint({ body: { a: 10, b: 20 } });\n/**\n * response.body = 30\n */\n```\n","readmeFilename":"README.md"}