{"_id":"@billsdk/time-travel","_rev":"7-52c28f0b4a55b30567a5132f4a952908","name":"@billsdk/time-travel","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"@billsdk/time-travel","version":"0.1.0","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"author":{"url":"https://github.com/decker-dev","name":"decker"},"license":"MIT","_id":"@billsdk/time-travel@0.1.0","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"dist":{"shasum":"9e3cc6168e82a36534ff521d5e68c8af7cccf57d","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.1.0.tgz","fileCount":8,"integrity":"sha512-PlUZ40RtStrx109SxCYj7Zn4YiKYPuffRzijVAiDeL8ahd5EgKvQ/nCMg27qnO354y2v7AjE/YmFy8fcmc0S9w==","signatures":[{"sig":"MEQCIFt1zSYLnFMTMnBx8RgqhJCCdLPOCnDQ1ztUVKLnQVLMAiAGdj+04FDrS6P4GRuvy3f/2YPcdwnBxcI5ilkyr8YbGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98389},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"gitHead":"b3967db707245669f62681f730e472b943f953e4","scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist .turbo node_modules","lint:fix":"biome check . --write","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"0xdecker","email":"deckerurbano@gmail.com"},"repository":{"url":"git+https://github.com/commet-labs/billsdk.git","type":"git","directory":"packages/time-travel"},"_npmVersion":"10.9.3","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"zod":"4.3.5","tsup":"8.5.1","react":"19.1.0","vitest":"4.0.17","typescript":"5.9.3","@types/node":"22.15.29","@types/react":"19.1.8","@billsdk/core":"workspace:*","@biomejs/biome":"2.3.11"},"peerDependencies":{"zod":">=4","react":">=18","@billsdk/core":"workspace:*"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/time-travel_0.1.0_1769782826853_0.9459936603925003","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@billsdk/time-travel","version":"0.1.1","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"author":{"url":"https://github.com/decker-dev","name":"decker"},"license":"MIT","_id":"@billsdk/time-travel@0.1.1","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"dist":{"shasum":"0bc0fcddd15de2e18679f716c5da0e0b250f1c52","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.1.1.tgz","fileCount":9,"integrity":"sha512-r490JDREoJqPf+6DdFHNM2zKaOnchPcDRvdOYWQ4GMu9Zo8a+OgFcMr9RwHbCwfunGdmlDUmZ1mRsiz1ZftXbQ==","signatures":[{"sig":"MEUCIGhpkMKfWBOno3J1fGHlg9a5BuHB1sQ3I9+sD8X8npIlAiEAyIspZq/TSEUPkc4jjmp9u3WBRiCq5cY0JagAbPxFVAg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@billsdk%2ftime-travel@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":99440},"main":"./dist/index.js","type":"module","_from":"file:billsdk-time-travel-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist .turbo node_modules","lint:fix":"biome check . --write","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cc8943f0-ba3b-4c9d-b7a3-62b9903f0bf0"}},"_resolved":"/tmp/cad3af14f192395f31358b1c805f537d/billsdk-time-travel-0.1.1.tgz","_integrity":"sha512-r490JDREoJqPf+6DdFHNM2zKaOnchPcDRvdOYWQ4GMu9Zo8a+OgFcMr9RwHbCwfunGdmlDUmZ1mRsiz1ZftXbQ==","repository":{"url":"git+https://github.com/commet-labs/billsdk.git","type":"git","directory":"packages/time-travel"},"_npmVersion":"11.8.0","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"zod":"4.3.5","tsup":"8.5.1","react":"19.1.0","vitest":"4.0.17","typescript":"5.9.3","@types/node":"22.15.29","@types/react":"19.1.8","@billsdk/core":"0.3.1","@biomejs/biome":"2.3.11"},"peerDependencies":{"zod":">=4","react":">=18","@billsdk/core":"0.3.1"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/time-travel_0.1.1_1769803903307_0.3968253962018642","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@billsdk/time-travel","version":"0.2.0","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"author":{"url":"https://github.com/decker-dev","name":"decker"},"license":"MIT","_id":"@billsdk/time-travel@0.2.0","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"dist":{"shasum":"b975942f1eae54f278f6265b03b6c2fe1d42b517","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.2.0.tgz","fileCount":9,"integrity":"sha512-QpScXrT7+AgdoNKI/9xGf7LOoIjoZbrWIhsLo3+102t+e+mze5Jdzfy61FrlEc1Tnk3aX2eCtLduV1tIBcGWzg==","signatures":[{"sig":"MEQCIBS0QFWQexuP8aWA+EeGdzYjR1GCDtRYFr4Vvto3ejyTAiB3lzxAZJbQm4SddoZxLh3aTgjndnRNzLXzMQ1riFGGMg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@billsdk%2ftime-travel@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":123194},"main":"./dist/index.js","type":"module","_from":"file:billsdk-time-travel-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist .turbo node_modules","lint:fix":"biome check . --write","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cc8943f0-ba3b-4c9d-b7a3-62b9903f0bf0"}},"_resolved":"/tmp/2e0a595f3e49e6f2ba634a94aa8e7752/billsdk-time-travel-0.2.0.tgz","_integrity":"sha512-QpScXrT7+AgdoNKI/9xGf7LOoIjoZbrWIhsLo3+102t+e+mze5Jdzfy61FrlEc1Tnk3aX2eCtLduV1tIBcGWzg==","repository":{"url":"git+https://github.com/commet-labs/billsdk.git","type":"git","directory":"packages/time-travel"},"_npmVersion":"11.8.0","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"zod":"4.3.5","tsup":"8.5.1","react":"19.1.0","vitest":"4.0.17","typescript":"5.9.3","@types/node":"22.15.29","@types/react":"19.1.8","@billsdk/core":"0.3.1","@biomejs/biome":"2.3.11"},"peerDependencies":{"zod":">=4","react":">=18","@billsdk/core":"0.3.1"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/time-travel_0.2.0_1769907656581_0.11844800481698181","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@billsdk/time-travel","version":"0.2.1","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"author":{"url":"https://github.com/decker-dev","name":"decker"},"license":"MIT","_id":"@billsdk/time-travel@0.2.1","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"dist":{"shasum":"45f953aa905af3f84726632e08f8efa2af0047ee","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.2.1.tgz","fileCount":9,"integrity":"sha512-N44zapCDbihZy5vDzXazm5QmO5ntNcH16fzmp+KhWW0wMZUDxqbD61Pcl9G+3Q9tfNSjm1JxPFM6mzVC59Smlg==","signatures":[{"sig":"MEUCIQCOngRb/93FS/UiXDmAW4c3bsRIMDS5HVN8qZCMxAL0OAIgX1G9QHccSLmIeIWi1wxn+18MG+zQ5oxb4lAbNJS1kxA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@billsdk%2ftime-travel@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":123522},"main":"./dist/index.js","type":"module","_from":"file:billsdk-time-travel-0.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist .turbo node_modules","lint:fix":"biome check . --write","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cc8943f0-ba3b-4c9d-b7a3-62b9903f0bf0"}},"_resolved":"/tmp/14ad6bd324703b8e7d1ddf9a42cc3dac/billsdk-time-travel-0.2.1.tgz","_integrity":"sha512-N44zapCDbihZy5vDzXazm5QmO5ntNcH16fzmp+KhWW0wMZUDxqbD61Pcl9G+3Q9tfNSjm1JxPFM6mzVC59Smlg==","repository":{"url":"git+https://github.com/commet-labs/billsdk.git","type":"git","directory":"packages/time-travel"},"_npmVersion":"11.8.0","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"zod":"4.3.5","tsup":"8.5.1","react":"19.1.0","vitest":"4.0.17","typescript":"5.9.3","@types/node":"22.15.29","@types/react":"19.1.8","@billsdk/core":"0.3.1","@biomejs/biome":"2.3.11"},"peerDependencies":{"zod":">=4","react":">=18","@billsdk/core":"0.3.1"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/time-travel_0.2.1_1769915968949_0.4299705927237092","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@billsdk/time-travel","version":"0.2.2","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"author":{"url":"https://github.com/decker-dev","name":"decker"},"license":"MIT","_id":"@billsdk/time-travel@0.2.2","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"dist":{"shasum":"6663ee2a3b65c8ca01b450550dd6d05646bf15d9","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.2.2.tgz","fileCount":9,"integrity":"sha512-8DrPP7n3nneib5LIfITmKDdfJNRlV1KGTD4GeLJ8g/mGMTff5nqXqLqGa05/EP0xngsDYYTYYm8uTrrfwjkTJQ==","signatures":[{"sig":"MEYCIQDMt+ckgZq9CGgjkNqMOxzndPmc8zGrWAW9Rj7OAVes8gIhAIZyPgdYVEz1rNAIWZ1OAbTwAoSA6oCokiOW4s84am7w","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@billsdk%2ftime-travel@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":123522},"main":"./dist/index.js","type":"module","_from":"file:billsdk-time-travel-0.2.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist .turbo node_modules","lint:fix":"biome check . --write","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cc8943f0-ba3b-4c9d-b7a3-62b9903f0bf0"}},"_resolved":"/tmp/1bcdc4d6dd90eab7e27dcef05c7598d1/billsdk-time-travel-0.2.2.tgz","_integrity":"sha512-8DrPP7n3nneib5LIfITmKDdfJNRlV1KGTD4GeLJ8g/mGMTff5nqXqLqGa05/EP0xngsDYYTYYm8uTrrfwjkTJQ==","repository":{"url":"git+https://github.com/commet-labs/billsdk.git","type":"git","directory":"packages/time-travel"},"_npmVersion":"11.8.0","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"zod":"4.3.5","tsup":"8.5.1","react":"19.1.0","vitest":"4.0.17","typescript":"5.9.3","@types/node":"22.15.29","@types/react":"19.1.8","@billsdk/core":"0.4.0","@biomejs/biome":"2.3.11"},"peerDependencies":{"zod":">=4","react":">=18","@billsdk/core":"0.4.0"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/time-travel_0.2.2_1769994524220_0.9473078762958587","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@billsdk/time-travel","version":"0.2.3","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"author":{"url":"https://github.com/decker-dev","name":"decker"},"license":"MIT","_id":"@billsdk/time-travel@0.2.3","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"dist":{"shasum":"77190adb90cd08d7dcc34428ae2c82a66566020b","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.2.3.tgz","fileCount":9,"integrity":"sha512-nC4wJ7RioQbwL+Yeb+S00TnmSBePXgHJ5CIVvtPlVok3vQ32pNnAEMYcalO4juiLBcPsrhm6y8a6gdKdQ1Rnug==","signatures":[{"sig":"MEUCIQDM3sgBV2OXYI1K8dkhpnWLzLe0knXHFCHbwc+0Werk1gIgW+C7FoFEfuQ16OlgmFd/99aRTBkVmFxw9zjVtGNI0pA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@billsdk%2ftime-travel@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":123522},"main":"./dist/index.js","type":"module","_from":"file:billsdk-time-travel-0.2.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"scripts":{"dev":"tsup --watch","lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsup","clean":"rm -rf dist .turbo node_modules","lint:fix":"biome check . --write","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cc8943f0-ba3b-4c9d-b7a3-62b9903f0bf0"}},"_resolved":"/tmp/7735059877cca0c99ea40226dd178589/billsdk-time-travel-0.2.3.tgz","_integrity":"sha512-nC4wJ7RioQbwL+Yeb+S00TnmSBePXgHJ5CIVvtPlVok3vQ32pNnAEMYcalO4juiLBcPsrhm6y8a6gdKdQ1Rnug==","repository":{"url":"git+https://github.com/commet-labs/billsdk.git","type":"git","directory":"packages/time-travel"},"_npmVersion":"11.9.0","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"zod":"4.3.5","tsup":"8.5.1","react":"19.1.0","vitest":"4.0.17","typescript":"5.9.3","@types/node":"22.15.29","@types/react":"19.1.8","@billsdk/core":"0.5.0","@biomejs/biome":"2.3.11"},"peerDependencies":{"zod":">=4","react":">=18","@billsdk/core":"0.5.0"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/time-travel_0.2.3_1770758256395_0.3746287308846652","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@billsdk/time-travel","version":"0.2.4","description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","type":"module","license":"MIT","author":{"name":"decker","url":"https://github.com/decker-dev"},"homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","repository":{"type":"git","url":"git+https://github.com/commet-labs/billsdk.git","directory":"packages/time-travel"},"bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"engines":{"node":">=20"},"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./react":{"types":"./dist/client/index.d.ts","default":"./dist/client/index.js"}},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","peerDependencies":{"react":">=18","zod":">=4","@billsdk/core":"0.6.0"},"peerDependenciesMeta":{"react":{"optional":true}},"devDependencies":{"@biomejs/biome":"2.3.11","@types/node":"22.15.29","@types/react":"19.1.8","react":"19.1.0","tsup":"8.5.1","typescript":"5.9.3","vitest":"4.0.17","zod":"4.3.5","@billsdk/core":"0.6.0"},"keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run --passWithNoTests","test:watch":"vitest","typecheck":"tsc --noEmit","lint":"biome check .","lint:fix":"biome check . --write","clean":"rm -rf dist .turbo node_modules"},"_id":"@billsdk/time-travel@0.2.4","_integrity":"sha512-0i4fbLKZcbMHOBUtErXR5FZaTYFrn9HFG3tdLbPhOL9qU64hjRwKh0wCBugg0GrCVp/s3RqSdGuDMK1k8l0fig==","_resolved":"/tmp/fe35522e7c3bd7d509770afdb17b125b/billsdk-time-travel-0.2.4.tgz","_from":"file:billsdk-time-travel-0.2.4.tgz","_nodeVersion":"20.20.1","_npmVersion":"11.12.0","dist":{"integrity":"sha512-0i4fbLKZcbMHOBUtErXR5FZaTYFrn9HFG3tdLbPhOL9qU64hjRwKh0wCBugg0GrCVp/s3RqSdGuDMK1k8l0fig==","shasum":"873b1546cc31f254fbdfdd170d718149382764e6","tarball":"https://registry.npmjs.org/@billsdk/time-travel/-/time-travel-0.2.4.tgz","fileCount":9,"unpackedSize":123522,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@billsdk%2ftime-travel@0.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC35dYGkCT6zhVJhyCNySdVbQ4GD6wg0ntfTAE8cbFJ8AIgSvPAGNi4ikFZnoHERku744QISIbAs+ta0la2OXanMLI="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cc8943f0-ba3b-4c9d-b7a3-62b9903f0bf0"}},"directories":{},"maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/time-travel_0.2.4_1774211029275_0.834872931872684"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-30T14:20:26.742Z","modified":"2026-03-22T20:23:49.682Z","0.1.0":"2026-01-30T14:20:27.015Z","0.1.1":"2026-01-30T20:11:43.454Z","0.2.0":"2026-02-01T01:00:56.726Z","0.2.1":"2026-02-01T03:19:29.139Z","0.2.2":"2026-02-02T01:08:44.364Z","0.2.3":"2026-02-10T21:17:36.543Z","0.2.4":"2026-03-22T20:23:49.401Z"},"bugs":{"url":"https://github.com/commet-labs/billsdk/issues"},"author":{"name":"decker","url":"https://github.com/decker-dev"},"license":"MIT","homepage":"https://github.com/commet-labs/billsdk/tree/main/packages/time-travel#readme","keywords":["billing","sdk","time-travel","testing","development","plugin","subscription","trial"],"repository":{"type":"git","url":"git+https://github.com/commet-labs/billsdk.git","directory":"packages/time-travel"},"description":"Time travel plugin for BillSDK - test subscription cycles by simulating time","maintainers":[{"name":"0xdecker","email":"deckerurbano@gmail.com"}],"readme":"# @billsdk/time-travel\n\nTime travel plugin for BillSDK - test subscription cycles by simulating time.\n\n## Features\n\n- **Advance time**: Jump forward by days, weeks, or months\n- **Go to specific date**: Set any date for testing\n- **Persistent state**: Simulated time survives server restarts\n- **React overlay**: Beautiful floating UI for controlling time\n- **Zero config**: Just add the plugin and you're ready\n\n## Installation\n\n```bash\nnpm install @billsdk/time-travel\n# or\npnpm add @billsdk/time-travel\n```\n\n## Usage\n\n### 1. Add the plugin (server-side)\n\n```typescript\nimport { billsdk } from \"billsdk\";\nimport { timeTravelPlugin } from \"@billsdk/time-travel\";\n\nconst billing = billsdk({\n  database: drizzleAdapter(db, { schema }),\n  plugins: [\n    timeTravelPlugin(), // Only in development!\n  ],\n});\n```\n\n### 2. Add the overlay (React)\n\n```tsx\nimport { TimeTravelOverlay } from \"@billsdk/time-travel/react\";\n\nfunction App() {\n  return (\n    <>\n      <YourApp />\n      {process.env.NODE_ENV === \"development\" && (\n        <TimeTravelOverlay baseUrl=\"/api/billing\" />\n      )}\n    </>\n  );\n}\n```\n\n## API Endpoints\n\nThe plugin adds these endpoints to your BillSDK API:\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/time-travel/get` | GET | Get current time state |\n| `/time-travel/set` | POST | Set specific simulated time |\n| `/time-travel/advance` | POST | Advance time by days/months/hours |\n| `/time-travel/reset` | POST | Reset to real time |\n\n### Examples\n\n```typescript\n// Get current state\nconst res = await fetch(\"/api/billing/time-travel/get\");\nconst { simulatedTime, isSimulated, realTime } = await res.json();\n\n// Set specific time\nawait fetch(\"/api/billing/time-travel/set\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({ date: \"2024-06-15T12:00:00.000Z\" }),\n});\n\n// Advance by 1 month\nawait fetch(\"/api/billing/time-travel/advance\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({ months: 1 }),\n});\n\n// Reset to real time\nawait fetch(\"/api/billing/time-travel/reset\", { method: \"POST\" });\n```\n\n## How it works\n\n1. The plugin adds a `timeProvider` to the BillSDK context\n2. Business logic (renewals, trials, etc.) uses `ctx.timeProvider.now()` instead of `new Date()`\n3. The simulated time is stored in a database table (`time_travel_state`)\n4. The React overlay calls the plugin endpoints to control the time\n\n## Warning\n\n**This plugin is for development and testing only.** It modifies how BillSDK perceives time, which can affect subscription states, renewals, and other time-based logic.\n\nDo NOT include this plugin in production builds.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}