{"_id":"unctx","_rev":"4194828","name":"unctx","description":"Composition-api in Vanilla js","dist-tags":{"1x":"1.2.0","latest":"2.5.0"},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"time":{"modified":"2026-03-02T02:52:50.000Z","created":"2021-03-30T10:13:29.705Z","2.5.0":"2025-12-16T20:19:44.031Z","2.4.1":"2024-12-17T22:34:50.832Z","2.4.0":"2024-12-10T12:57:11.656Z","2.3.1":"2023-05-24T11:35:55.162Z","2.3.0":"2023-04-18T13:27:34.813Z","2.2.0":"2023-04-10T17:58:55.645Z","2.1.2":"2023-02-10T11:34:46.058Z","2.1.1":"2022-11-28T11:36:58.430Z","2.1.0":"2022-11-14T15:07:51.376Z","2.0.2":"2022-08-29T09:53:43.780Z","1.2.0":"2022-08-04T13:05:45.720Z","2.0.1":"2022-08-04T13:03:23.013Z","2.0.0":"2022-08-03T18:31:08.627Z","1.1.4":"2022-03-31T08:02:52.107Z","1.1.3":"2022-03-25T16:55:48.106Z","1.1.2":"2022-03-24T12:46:04.568Z","1.1.1":"2022-03-24T12:37:22.549Z","1.1.0":"2022-03-22T13:31:03.481Z","1.0.2":"2021-08-24T11:31:26.402Z","1.0.1":"2021-06-24T13:05:12.255Z","1.0.0":"2021-06-24T13:04:07.331Z","0.0.4":"2021-06-24T13:02:13.818Z","0.0.3":"2021-03-30T11:35:10.212Z","0.0.2":"2021-03-30T10:57:00.581Z","0.0.1":"2021-03-30T10:16:24.281Z","0.0.0":"2021-03-30T10:13:29.705Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"versions":{"2.5.0":{"name":"unctx","version":"2.5.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint . && prettier -c src test","lint:fix":"eslint --fix . && prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit"},"dependencies":{"acorn":"^8.15.0","estree-walker":"^3.0.3","magic-string":"^0.30.21","unplugin":"^2.3.11"},"devDependencies":{"@types/estree":"^1.0.8","@types/node":"^25.0.2","@vitest/coverage-v8":"^4.0.16","changelogen":"^0.6.2","eslint":"^9.39.2","eslint-config-unjs":"^0.5.0","jiti":"^2.6.1","prettier":"^3.7.4","typescript":"^5.9.3","unbuild":"^3.6.1","vitest":"^4.0.16"},"packageManager":"pnpm@10.26.0","gitHead":"6c14790eeab905590e7f800f90bd71464c084fcf","_id":"unctx@2.5.0","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_nodeVersion":"24.10.0","_npmVersion":"11.6.1","dist":{"shasum":"a0c3ba03838856d336e815a71403ce1a848e4108","size":8538,"noattachment":false,"key":"/unctx/-/unctx-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.5.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unctx_2.5.0_1765916383885_0.7637169107656474"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-16T20:19:44.031Z","publish_time":1765916384031,"_source_registry_name":"default","_cnpm_publish_time":1765916384031},"2.4.1":{"name":"unctx","version":"2.4.1","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint . && prettier -c src test","lint:fix":"eslint --fix . && prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit"},"dependencies":{"acorn":"^8.14.0","estree-walker":"^3.0.3","magic-string":"^0.30.17","unplugin":"^2.1.0"},"devDependencies":{"@types/estree":"^1.0.6","@types/node":"^22.10.2","@vitest/coverage-v8":"^2.1.8","changelogen":"^0.5.7","eslint":"^9.17.0","eslint-config-unjs":"^0.4.2","jiti":"^2.4.2","prettier":"^3.4.2","typescript":"^5.7.2","unbuild":"^3.0.1","vitest":"^2.1.8"},"packageManager":"pnpm@9.15.0","_id":"unctx@2.4.1","gitHead":"f5dcc925bad1568798f2fb0ec6ddafa01d4b1b3a","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"93346a98d4a38c64cc5861f6098f4ce7c6f8164a","size":8342,"noattachment":false,"key":"/unctx/-/unctx-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.4.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unctx_2.4.1_1734474890665_0.5757425032993477"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-17T22:34:50.832Z","publish_time":1734474890832,"_source_registry_name":"default","_cnpm_publish_time":1734474890832},"2.4.0":{"name":"unctx","version":"2.4.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint . && prettier -c src test","lint:fix":"eslint --fix . && prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit"},"dependencies":{"acorn":"^8.14.0","estree-walker":"^3.0.3","magic-string":"^0.30.15","unplugin":"^2.0.0"},"devDependencies":{"@types/estree":"^1.0.6","@types/node":"^22.10.1","@vitest/coverage-v8":"^2.1.8","changelogen":"^0.5.7","eslint":"^9.16.0","eslint-config-unjs":"^0.4.2","jiti":"^2.4.1","prettier":"^3.4.2","typescript":"^5.7.2","unbuild":"^2.0.0","vitest":"^2.1.8"},"packageManager":"pnpm@9.15.0","_id":"unctx@2.4.0","gitHead":"d8ba0cc16851898a56639ae332836d8457842c96","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"shasum":"5c3d07aac6c6f3d5492ac3c1d1ae5b21faf95295","size":8345,"noattachment":false,"key":"/unctx/-/unctx-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.4.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unctx_2.4.0_1733835431475_0.4732974533706298"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-10T12:57:11.656Z","publish_time":1733835431656,"_source_registry_name":"default","_cnpm_publish_time":1733835431656},"2.3.1":{"name":"unctx","version":"2.3.1","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js . && prettier -c src test","lint:fix":"eslint --fix --ext .ts,.js . && prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"acorn":"^8.8.2","estree-walker":"^3.0.3","magic-string":"^0.30.0","unplugin":"^1.3.1"},"devDependencies":{"@types/estree":"^1.0.1","@types/node":"^20.2.3","@vitest/coverage-c8":"^0.31.1","changelogen":"^0.5.3","eslint":"^8.41.0","eslint-config-unjs":"^0.2.0","jiti":"^1.18.2","prettier":"^2.8.8","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.31.1"},"packageManager":"pnpm@8.5.1","gitHead":"df957e8913c9c0e72eca24d4df505e2f7ec26559","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.3.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"5eb4aa9f96fb5fdac18b88fe5ba8e122fe671a62","size":7927,"noattachment":false,"key":"/unctx/-/unctx-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.3.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.3.1_1684928154958_0.6933680354989591"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-24T11:35:55.162Z","publish_time":1684928155162,"_source_registry_name":"default","_cnpm_publish_time":1684928155162},"2.3.0":{"name":"unctx","version":"2.3.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js . && prettier -c src test","lint:fix":"eslint --fix --ext .ts,.js . && prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"acorn":"^8.8.2","estree-walker":"^3.0.3","magic-string":"^0.30.0","unplugin":"^1.3.1"},"devDependencies":{"@types/estree":"^1.0.0","@types/node":"^18.15.11","@vitest/coverage-c8":"^0.30.1","changelogen":"^0.5.3","eslint":"^8.38.0","eslint-config-unjs":"^0.1.0","jiti":"^1.18.2","prettier":"^2.8.7","typescript":"^5.0.4","unbuild":"^1.2.1","vitest":"^0.30.1"},"packageManager":"pnpm@8.2.0","gitHead":"b75ae03d6cce5ece44b2fdbbe95e99203cff6668","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.3.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"abb1eaf1f5417d9562b3c43a90aba259a869c96d","size":7923,"noattachment":false,"key":"/unctx/-/unctx-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.3.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.3.0_1681824454670_0.2824010824740748"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-18T13:27:34.813Z","publish_time":1681824454813,"_cnpm_publish_time":1681824454813},"2.2.0":{"name":"unctx","version":"2.2.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js . && prettier -c src test","lint:fix":"eslint --fix --ext .ts,.js . && prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"acorn":"^8.8.2","estree-walker":"^3.0.3","magic-string":"^0.30.0","unplugin":"^1.3.1"},"devDependencies":{"@types/estree":"^1.0.0","@types/node":"^18.15.11","@vitest/coverage-c8":"^0.30.0","changelogen":"^0.5.2","eslint":"^8.38.0","eslint-config-unjs":"^0.1.0","jiti":"^1.18.2","prettier":"^2.8.7","typescript":"^5.0.4","unbuild":"^1.2.0","vitest":"^0.30.0"},"packageManager":"pnpm@8.1.1","gitHead":"143cf1033501933e5524298035d210c7f9db475f","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.2.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"454f1a61c9c6bff24d42db3a817d3273eb1be736","size":7212,"noattachment":false,"key":"/unctx/-/unctx-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.2.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.2.0_1681149535268_0.08200512378482583"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-10T17:58:55.645Z","publish_time":1681149535645,"_cnpm_publish_time":1681149535645},"2.1.2":{"name":"unctx","version":"2.1.2","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./transform":{"types":"./dist/transform.d.ts","import":"./dist/transform.mjs"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.mjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js . || prettier -w src test","prepack":"unbuild","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"acorn":"^8.8.2","estree-walker":"^3.0.3","magic-string":"^0.27.0","unplugin":"^1.0.1"},"devDependencies":{"@types/estree":"^1.0.0","@types/node":"^18.13.0","@vitest/coverage-c8":"^0.28.4","changelogen":"^0.4.1","eslint":"^8.33.0","eslint-config-unjs":"^0.1.0","jiti":"^1.17.0","prettier":"^2.8.4","typescript":"^4.9.5","unbuild":"^1.1.1","vitest":"^0.28.4"},"packageManager":"pnpm@7.27.0","gitHead":"c4d1d1dbacec8ae576e1277b64ceecbada0c5c59","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.1.2","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"12d34c540ef4fbaffb2a3b38a0697e42b152d478","size":6827,"noattachment":false,"key":"/unctx/-/unctx-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.1.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.1.2_1676028885839_0.9063152920364219"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-10T11:34:46.058Z","publish_time":1676028886058,"_cnpm_publish_time":1676028886058},"2.1.1":{"name":"unctx","version":"2.1.1","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.8.1","estree-walker":"^3.0.1","magic-string":"^0.26.7","unplugin":"^1.0.0"},"devDependencies":{"@types/estree":"^1.0.0","@types/jest":"^29.2.3","@types/node":"^18.11.9","@vitest/coverage-c8":"^0.25.3","eslint":"^8.28.0","eslint-config-unjs":"^0.0.2","jiti":"^1.16.0","standard-version":"^9.5.0","typescript":"^4.9.3","unbuild":"^1.0.1","vitest":"^0.25.3"},"packageManager":"pnpm@7.17.1","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.1.1","_integrity":"sha512-RffJlpvLOtolWsn0fxXsuSDfwiWcR6cyuykw2e0+zAggvGW1SesXt9WxIWlWpJhwVCZD/WlxxLqKLS50Q0CkWA==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/7c6691d3f10f1a7a845d85b7e49b942c/unctx-2.1.1.tgz","_from":"file:unctx-2.1.1.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"shasum":"415b07cf6ce42fad59ae1e4fa42ace2e71f4372d","size":6847,"noattachment":false,"key":"/unctx/-/unctx-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.1.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.1.1_1669635418242_0.8989629762738365"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-28T11:59:47.299Z","publish_time":1669635418430,"_cnpm_publish_time":1669635418430},"2.1.0":{"name":"unctx","version":"2.1.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.8.1","estree-walker":"^3.0.1","magic-string":"^0.26.7","unplugin":"^1.0.0"},"devDependencies":{"@types/estree":"^1.0.0","@types/jest":"^29.2.2","@types/node":"^18.11.9","@vitest/coverage-c8":"^0.25.2","eslint":"^8.27.0","eslint-config-unjs":"^0.0.2","jiti":"^1.16.0","standard-version":"^9.5.0","typescript":"^4.8.4","unbuild":"^0.9.4","vitest":"^0.25.2"},"packageManager":"pnpm@7.16.0","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.1.0","_integrity":"sha512-Q3UdS5IAlVRIWsWDd8Rr9g2zqBAZaecBgQ+XXFiKbZzovDMMTEU+Ki0SAVf/ZgWsoeG0/c1kzO2/k6BVhbkUHw==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/cabe83a7fca02f1a9e216e6acf21f838/unctx-2.1.0.tgz","_from":"file:unctx-2.1.0.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"shasum":"14cd10e5150e2588e88f94775e7509908f853ed8","size":6834,"noattachment":false,"key":"/unctx/-/unctx-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.1.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.1.0_1668438471188_0.8608365165754126"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-14T15:16:35.223Z","publish_time":1668438471376,"_cnpm_publish_time":1668438471376},"2.0.2":{"name":"unctx","version":"2.0.2","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.8.0","estree-walker":"^3.0.1","magic-string":"^0.26.2","unplugin":"^0.9.5"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/estree":"latest","@types/jest":"latest","@types/node":"latest","@vitest/coverage-c8":"^0.22.1","c8":"latest","eslint":"latest","jiti":"^1.14.0","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@7.9.5","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.0.2","_integrity":"sha512-3lcXTlDoOaguRVC1GqG3mrawy17yoycSAQDDnUayQYZ17v9to+Gn6Zyssroc/GD2ppJ0wF5V8adOcKkrNKVWow==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/5312acde36b1be5e42d96671111ed36a/unctx-2.0.2.tgz","_from":"file:unctx-2.0.2.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"7d14d9290e0879aa7be697b7f35066cffec4ffc4","size":6901,"noattachment":false,"key":"/unctx/-/unctx-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.0.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.0.2_1661766823620_0.2571464342714087"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-29T10:08:19.301Z","publish_time":1661766823780,"_cnpm_publish_time":1661766823780},"1.2.0":{"name":"unctx","version":"1.2.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"require":"./dist/plugin.cjs","import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","prepack":"unbuild","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"dependencies":{"acorn":"^8.7.0","estree-walker":"^2.0.2","magic-string":"^0.26.1","unplugin":"^0.6.1"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@6.32.3","readmeFilename":"README.md","gitHead":"f871cd72ec97b1bb448c030c16feb83e3749811c","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@1.2.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"223537956059c0ed1aa6abd3244388f490c8e402","size":6553,"noattachment":false,"key":"/unctx/-/unctx-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.2.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.2.0_1659618345557_0.3566513443657231"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-04T13:23:59.760Z","publish_time":1659618345720,"_cnpm_publish_time":1659618345720},"2.0.1":{"name":"unctx","version":"2.0.1","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.8.0","estree-walker":"^3.0.1","magic-string":"^0.26.2","unplugin":"^0.8.0"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/estree":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","jiti":"^1.14.0","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@7.8.0","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.0.1","_integrity":"sha512-4VkJKSG+lh1yYkvdI0Xd3Gm7y7PU6F0mG5SoJqCI1j2jtIaHvTLAdBfbhDjbHxT93BsRkzcaxaeBtu8W/mX1Sg==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/a4de149e38e17dd66375bc84e6ac5a1f/unctx-2.0.1.tgz","_from":"file:unctx-2.0.1.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"f87aae922cce02499ff8d591fe33ff5e9b6123fd","size":6816,"noattachment":false,"key":"/unctx/-/unctx-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.0.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.0.1_1659618202866_0.35683778235768693"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-04T13:23:59.655Z","publish_time":1659618203013,"_cnpm_publish_time":1659618203013},"2.0.0":{"name":"unctx","version":"2.0.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.8.0","estree-walker":"^3.0.1","magic-string":"^0.26.2","unplugin":"^0.8.0"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/estree":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","jiti":"^1.14.0","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@7.8.0","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@2.0.0","_integrity":"sha512-Br4VyGxoAYlk2tXkV2NQFUyId6Z8d/RjKBJA5+WCBY2EOa8sOrGV+O+5l3QJZYBam3zLXbUhRXcQ0aIhMiiI+Q==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/eee0c524b72fb6886c100cc8e5c374c2/unctx-2.0.0.tgz","_from":"file:unctx-2.0.0.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"9b73c0d7c7208adccfef13abeb822065615daaeb","size":6830,"noattachment":false,"key":"/unctx/-/unctx-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-2.0.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_2.0.0_1659551468444_0.17721737629957812"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-03T18:46:14.386Z","publish_time":1659551468627,"_cnpm_publish_time":1659551468627},"1.1.4":{"name":"unctx","version":"1.1.4","description":"Composition-api in Vanilla js","repository":"unjs/unctx","license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"require":"./dist/plugin.cjs","import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.7.0","estree-walker":"^2.0.2","magic-string":"^0.26.1","unplugin":"^0.6.1"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@6.32.3","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"_id":"unctx@1.1.4","_integrity":"sha512-fQMML+GjUpIjQa0HBrrJezo2dFpTAbQbU0/KFKw4T5wpc9deGjLHSYthdfNAo2xSWM34csI6arzedezQkqtfGw==","_resolved":"/Users/antfu/i/unctx/unctx-1.1.4.tgz","_from":"file:unctx-1.1.4.tgz","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"18d5c0a81d9ce0a790e89b81715f286ac0fa29bb","size":7095,"noattachment":false,"key":"/unctx/-/unctx-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.1.4.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.1.4_1648713771988_0.2875383347196525"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-31T08:25:31.491Z","publish_time":1648713772107,"_cnpm_publish_time":1648713772107},"1.1.3":{"name":"unctx","version":"1.1.3","description":"Composition-api in Vanilla js","repository":"unjs/unctx","license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"require":"./dist/plugin.cjs","import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.7.0","estree-walker":"^2.0.2","magic-string":"^0.26.1","unplugin":"^0.5.2"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@6.32.3","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"_id":"unctx@1.1.3","_integrity":"sha512-x3sI4ueuHw05zQgbzfpzF9XO+zw0C7sPCPoTRIgVPAXr76HALqcV97cJDEa5Nj+WCAl7V2rgSZR/p4uM78gO2g==","_resolved":"/Users/antfu/i/unctx/unctx-1.1.3.tgz","_from":"file:unctx-1.1.3.tgz","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"c8db9a1b6bf0a9f94185cf01120286e80f8e4f92","size":7095,"noattachment":false,"key":"/unctx/-/unctx-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.1.3.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.1.3_1648227347947_0.5165748590950225"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-25T17:46:18.860Z","publish_time":1648227348106,"_cnpm_publish_time":1648227348106},"1.1.2":{"name":"unctx","version":"1.1.2","description":"Composition-api in Vanilla js","repository":"unjs/unctx","license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"require":"./dist/plugin.cjs","import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"dependencies":{"acorn":"^8.7.0","estree-walker":"^2.0.2","magic-string":"^0.26.1","unplugin":"^0.5.2"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@6.32.3","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"_id":"unctx@1.1.2","_integrity":"sha512-LN1dY02kiTLgwjinsLhdajinpmiZtD7eYsNGOSFgWqGOoMdfjK0+p53DdVAC1L0dQsORqCvfwrBKKC9pT33Yig==","_resolved":"/Users/antfu/i/unctx/unctx-1.1.2.tgz","_from":"file:unctx-1.1.2.tgz","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"4e4bf2e7a09b9816d535468ce974889e17c14609","size":7060,"noattachment":false,"key":"/unctx/-/unctx-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.1.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.1.2_1648125964398_0.13690170322075113"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-24T13:22:02.217Z","publish_time":1648125964568,"_cnpm_publish_time":1648125964568},"1.1.1":{"name":"unctx","version":"1.1.1","description":"Composition-api in Vanilla js","repository":"unjs/unctx","license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"require":"./dist/plugin.cjs","import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/index.d.ts","./dist/*"]}},"dependencies":{"acorn":"^8.7.0","estree-walker":"^2.0.2","magic-string":"^0.26.1","unplugin":"^0.5.2"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@6.32.3","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"_id":"unctx@1.1.1","_integrity":"sha512-PcxvEG2jJnYXaFcd0jSctj91DZrqkmFFSQConV7GxS1bB1O91I+hde4SNcXLhoy7aehxsWjUBTa1fSsN+6HdrQ==","_resolved":"/Users/antfu/i/unctx/unctx-1.1.1.tgz","_from":"file:unctx-1.1.1.tgz","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"4aa0436b3cf67bb1045f15948a422b8e923538ef","size":7058,"noattachment":false,"key":"/unctx/-/unctx-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.1.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.1.1_1648125442409_0.47735849191346014"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-24T13:22:02.111Z","publish_time":1648125442549,"_cnpm_publish_time":1648125442549},"1.1.0":{"name":"unctx","version":"1.1.0","description":"Composition-api in Vanilla js","repository":"unjs/unctx","license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./transform":{"require":"./dist/transform.cjs","import":"./dist/transform.mjs","types":"./dist/transform.d.ts"},"./plugin":{"require":"./dist/plugin.cjs","import":"./dist/plugin.mjs","types":"./dist/plugin.d.ts"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","dependencies":{"acorn":"^8.7.0","estree-walker":"^2.0.2","magic-string":"^0.26.1","unplugin":"^0.5.2"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","c8":"latest","eslint":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest","vitest":"latest"},"packageManager":"pnpm@6.32.3","scripts":{"build":"unbuild","dev":"vitest","lint":"eslint --ext .ts,.js .","release":"pnpm test && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"_id":"unctx@1.1.0","_integrity":"sha512-Ae6vlXs1HC5Sg4PS1aNm8o9vqLonziZzGQ9m8Yiwvlan2CCwkOsdJXiiTmkjWqKn98PhJrpp8CGKfzA0tLuoZA==","_resolved":"/home/pooya/Code/unctx/unctx-1.1.0.tgz","_from":"file:unctx-1.1.0.tgz","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"465b1c71849dfae406c5c8cd713a9001f6f12654","size":7027,"noattachment":false,"key":"/unctx/-/unctx-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.1.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.1.0_1647955863345_0.5631893857996482"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-22T13:31:31.636Z","publish_time":1647955863481,"_cnpm_publish_time":1647955863481},"1.0.2":{"name":"unctx","version":"1.0.2","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"74cefa14f1672afb21e7e6e9bc8fd8e3d85c0c1f","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@1.0.2","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"shasum":"d8d9c83a0965aa277f61058c94548fcee6861e48","size":4452,"noattachment":false,"key":"/unctx/-/unctx-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.0.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.0.2_1629804686260_0.4936628961123386"},"_hasShrinkwrap":false,"publish_time":1629804686402,"_cnpm_publish_time":1629804686402,"_cnpmcore_publish_time":"2021-12-16T19:19:38.735Z"},"1.0.1":{"name":"unctx","version":"1.0.1","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"5d172fdc448fabca71dc43224c026a01cadcc304","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@1.0.1","_nodeVersion":"14.16.1","_npmVersion":"7.12.1","dist":{"shasum":"e976394f22ab00ac4088d86ebfc639861ed3ec24","size":3738,"noattachment":false,"key":"/unctx/-/unctx-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.0.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.0.1_1624539912121_0.48865322394692146"},"_hasShrinkwrap":false,"publish_time":1624539912255,"_cnpm_publish_time":1624539912255,"_cnpmcore_publish_time":"2021-12-16T19:19:38.966Z"},"1.0.0":{"name":"unctx","version":"1.0.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"b900ad4a6cf097af51ed3676a6cbd3155299ae68","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@1.0.0","_nodeVersion":"14.16.1","_npmVersion":"7.12.1","dist":{"shasum":"8d0fd94d7570e7cdb95c2fcee57a53cde1985a91","size":3711,"noattachment":false,"key":"/unctx/-/unctx-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-1.0.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_1.0.0_1624539846940_0.2031421894343144"},"_hasShrinkwrap":false,"publish_time":1624539847331,"_cnpm_publish_time":1624539847331,"_cnpmcore_publish_time":"2021-12-16T19:19:39.205Z"},"0.0.4":{"name":"unctx","version":"0.0.4","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"9a60966fb6191ff72eb4df54f1f3bc3a709632a5","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@0.0.4","_nodeVersion":"14.16.1","_npmVersion":"7.12.1","dist":{"shasum":"70fad87190c96434a2649bed8db6f01593223713","size":3712,"noattachment":false,"key":"/unctx/-/unctx-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-0.0.4.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_0.0.4_1624539733641_0.051969058585065175"},"_hasShrinkwrap":false,"publish_time":1624539733818,"_cnpm_publish_time":1624539733818,"_cnpmcore_publish_time":"2021-12-16T19:19:39.417Z"},"0.0.3":{"name":"unctx","version":"0.0.3","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"caaec505093e12261ae04aa603303da2dd089688","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@0.0.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"e06f67d5bebe2babe5a57c1dc13d77255e3458c0","size":3792,"noattachment":false,"key":"/unctx/-/unctx-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-0.0.3.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_0.0.3_1617104110087_0.015962076210327858"},"_hasShrinkwrap":false,"publish_time":1617104110212,"_cnpm_publish_time":1617104110212,"_cnpmcore_publish_time":"2021-12-16T19:19:39.600Z"},"0.0.2":{"name":"unctx","version":"0.0.2","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"4e9d71fe7bda3db244746948cd11ec8d132bc840","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@0.0.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"d09e5e2d6dcb5a9efbcb1647e51a7c2152f7daa4","size":3686,"noattachment":false,"key":"/unctx/-/unctx-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-0.0.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_0.0.2_1617101820477_0.4022946029008412"},"_hasShrinkwrap":false,"publish_time":1617101820581,"_cnpm_publish_time":1617101820581,"_cnpmcore_publish_time":"2021-12-16T19:19:39.790Z"},"0.0.1":{"name":"unctx","version":"0.0.1","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"0c87aa574aa85beeccf0be237d804f7172036fd3","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@0.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"59af909478f3275546429f94db2613ee35b7f39b","size":3454,"noattachment":false,"key":"/unctx/-/unctx-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-0.0.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_0.0.1_1617099384108_0.09623077144333814"},"_hasShrinkwrap":false,"publish_time":1617099384281,"_cnpm_publish_time":1617099384281,"_cnpmcore_publish_time":"2021-12-16T19:19:40.010Z"},"0.0.0":{"name":"unctx","version":"0.0.0","description":"Composition-api in Vanilla js","repository":{"type":"git","url":"git+https://github.com/unjs/unctx.git"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"siroc build","dev":"jest --watch","lint":"eslint --ext .ts,.js .","prepublishOnly":"yarn build","release":"yarn test && standard-version && git push --follow-tags && npm publish","test":"yarn lint && yarn jest"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"80fe123c7ba597ca827be830fc7f021ad28d94da","bugs":{"url":"https://github.com/unjs/unctx/issues"},"homepage":"https://github.com/unjs/unctx#readme","_id":"unctx@0.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"81999a39f86b79f1bb315f9fff2129189b61369c","size":3244,"noattachment":false,"key":"/unctx/-/unctx-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unctx/download/unctx-0.0.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""},{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unctx_0.0.0_1617099209570_0.7018831891201212"},"_hasShrinkwrap":false,"publish_time":1617099209705,"_cnpm_publish_time":1617099209705,"_cnpmcore_publish_time":"2021-12-16T19:19:40.220Z"}},"readme":"# ???? unctx\n\n> Composition-API in Vanilla js\n\n[![npm version][npm-v-src]][npm-v-href]\n[![npm downloads][npm-dm-src]][npm-dm-href]\n[![package phobia][packagephobia-src]][packagephobia-href]\n[![bundle phobia][bundlephobia-src]][bundlephobia-href]\n[![codecov][codecov-src]][codecov-href]\n\n## What is unctx?\n\n[Vue.js](https://vuejs.org) introduced an amazing pattern called [Composition API](https://v3.vuejs.org/guide/composition-api-introduction.html) that allows organizing complex logic by splitting it into reusable functions and grouping in logical order. `unctx` allows easily implementing composition API pattern in your javascript libraries without hassle.\n\n## Usage\n\nIn your **awesome** library:\n\n```bash\nyarn add unctx\n# or\nnpm install unctx\n```\n\n```js\nimport { createContext } from \"unctx\";\n\nconst ctx = createContext();\n\nexport const useAwesome = ctx.use;\n\n// ...\nctx.call({ test: 1 }, () => {\n  // This is similar to the vue setup function\n  // Any function called here can use `useAwesome` to get { test: 1 }\n});\n```\n\nUser code:\n\n```js\nimport { useAwesome } from \"awesome-lib\";\n\n// ...\nfunction setup() {\n  const ctx = useAwesome();\n}\n```\n\n**Note:** When no context is presented `ctx.use` will throw an error. Use `ctx.tryUse` for tolerant usages (return nullable context).\n\n### Using Namespaces\n\nTo avoid issues with multiple version of the library, `unctx` provides a safe global namespace to access context by key (kept in [`globalThis`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis)). **Important:** Please use a verbose name for the key to avoid conflict with other js libraries. Using the npm package name is recommended. Using symbols has no effect since it still causes multiple context issues.\n\n```js\nimport { useContext, getContext } from \"unctx\";\n\nconst useAwesome = useContext(\"awesome-lib\");\n\n// or\n// const awesomeContext = getContext('awesome-lib')\n```\n\nYou can also create your internal namespace with `createNamespace` utility for more advanced use cases.\n\n## Async Context\n\nUsing context is only possible in non-async usages and only before the first await statement. This is to make sure context is not shared between concurrent calls.\n\n```js\nasync function setup() {\n  console.log(useAwesome()); // Returns context\n  setTimeout(() => {\n    console.log(useAwesome());\n  }, 1); // Returns null\n  await new Promise((resolve) => setTimeout(resolve, 1000));\n  console.log(useAwesome()); // Returns null\n}\n```\n\nA simple workaround is caching context into a local variable:\n\n```js\nasync function setup() {\n  const ctx = useAwesome(); // We can directly access cached version of ctx\n  await new Promise((resolve) => setTimeout(resolve, 1000));\n  console.log(ctx);\n}\n```\n\nThis is not always an elegant and easy way by making a variable and passing it around. After all, this is the purpose of unctx to make sure context is magically available everywhere in composables!\n\n### Native Async Context\n\nUnctx supports Node.js [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage) as a native way to preserve and track async contexts. To enable this mode, you need to set `asyncContext: true` option and also provides an implementation for `AsyncLocalStorage` (or provide `globalThis.AsyncLocalStorage` polyfill).\n\nSee [tc39 proposal for async context](https://github.com/tc39/proposal-async-context) and [cloudflare docs](https://developers.cloudflare.com/workers/runtime-apis/nodejs/asynclocalstorage/) for relevant platform specific docs.\n\n```ts\nimport { createContext } from \"unctx\";\nimport { AsyncLocalStorage } from \"node:async_hooks\";\n\nconst ctx = createContext({\n  asyncContext: true,\n  AsyncLocalStorage,\n});\n\nctx.call(\"123\", () => {\n  setTimeout(() => {\n    // Prints 123\n    console.log(ctx.use());\n  }, 100);\n});\n```\n\n### Async Transform\n\nSince native async context is not supported in all platforms yet, unctx provides a build-time solution that transforms async syntax to automatically restore context after each async/await statement. This requires using a bundler such as Rollup, Vite, or Webpack.\n\nImport and register transform plugin:\n\n```js\nimport { unctxPlugin } from \"unctx/plugin\";\n\n// Rollup\n// TODO: Add to rollup configuration\nunctxPlugin.rollup();\n\n// Vite\n// TODO: Add to vite configuration\nunctxPlugin.vite();\n\n// Webpack\n// TODO: Add to webpack configuration\nunctxPlugin.webpack();\n```\n\nUse `ctx.callAsync` instead of `ctx.call`:\n\n```js\nawait ctx.callAsync(\"test\", setup);\n```\n\n**_NOTE:_** `callAsync` is not transformed by default. You need to add it to the plugin's `asyncFunctions: []` option to transform it.\n\nAny async function that requires context, should be wrapped with `withAsyncContext`:\n\n```js\nimport { withAsyncContext } from \"unctx\";\n\nconst setup = withAsyncContext(async () => {\n  console.log(useAwesome()); // Returns context\n  await new Promise((resolve) => setTimeout(resolve, 1000));\n  console.log(useAwesome()); // Still returns context with dark magic!\n});\n```\n\n## Singleton Pattern\n\nIf you are sure it is safe to use a shared instance (not depending to request), you can also use `ctx.set` and `ctx.unset` for a [singleton pattern](https://en.wikipedia.org/wiki/Singleton_pattern).\n\n**Note:** You cannot combine `set` with `call`. Always use `unset` before replacing the instance otherwise you will get `Context conflict` error.\n\n```js\nimport { createContext } from \"unctx\";\n\nconst ctx = createContext();\nctx.set(new Awesome());\n\n// Replacing instance without unset\n// ctx.set(new Awesome(), true)\n\nexport const useAwesome = ctx.use;\n```\n\n## Typed Context\n\nA generic type exists on all utilities to be set for instance/context type for typescript support.\n\n```ts\n// Return type of useAwesome is Awesome | null\nconst { use: useAwesome } = createContext<Awesome>();\n```\n\n## Under the hood\n\nThe composition of functions is possible using temporary context injection. When calling `ctx.call(instance, cb)`, `instance` argument will be stored in a temporary variable then `cb` is called. Any function inside `cb`, can then implicitly access the instance by using `ctx.use` (or `useAwesome`)\n\n## Pitfalls\n\n**context can be only used before first await**:\n\nPlease check [Async Context](#async-context) section.\n\n**`Context conflict` error**:\n\nIn your library, you should only keep one `call()` running at a time (unless calling with the same reference for the first argument)\n\nFor instance, this makes an error:\n\n```js\nctx.call({ test: 1 }, () => {\n  ctx.call({ test: 2 }, () => {\n    // Throws error!\n  });\n});\n```\n\n## License\n\nMIT. Made with ????\n\n<!-- Refs -->\n\n[npm-v-src]: https://flat.badgen.net/npm/v/unctx/latest\n[npm-v-href]: https://npmjs.com/package/unctx\n[npm-dm-src]: https://flat.badgen.net/npm/dm/unctx\n[npm-dm-href]: https://npmjs.com/package/unctx\n[packagephobia-src]: https://flat.badgen.net/packagephobia/install/unctx\n[packagephobia-href]: https://packagephobia.now.sh/result?p=unctx\n[bundlephobia-src]: https://flat.badgen.net/bundlephobia/min/unctx\n[bundlephobia-href]: https://bundlephobia.com/result?p=unctx\n[codecov-src]: https://flat.badgen.net/codecov/c/github/unjs/unctx/master\n[codecov-href]: https://codecov.io/gh/unjs/unctx\n","_attachments":{},"homepage":"https://github.com/unjs/unctx#readme","bugs":{"url":"https://github.com/unjs/unctx/issues"},"license":"MIT"}