{"_id":"@mswjs/cookies","_rev":"3550839","name":"@mswjs/cookies","description":"Manage request/response cookies in the environments where those are not supported.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"kettanaito","email":""}],"time":{"modified":"2024-09-19T02:42:06.000Z","created":"2020-12-07T14:35:31.009Z","1.1.1":"2024-06-13T13:20:08.157Z","1.1.0":"2023-11-08T13:38:55.238Z","1.0.0":"2022-10-06T23:10:22.427Z","0.2.2":"2022-07-09T10:31:19.887Z","0.2.1":"2022-05-11T11:59:12.377Z","0.2.0":"2022-03-11T13:51:02.130Z","0.1.7":"2022-01-19T14:00:27.910Z","0.1.6":"2021-05-28T10:23:41.477Z","0.1.5":"2021-05-04T12:20:56.317Z","0.1.4":"2021-02-28T00:15:06.028Z","0.1.3":"2020-12-07T14:35:31.009Z"},"users":{},"author":{"name":"Artem Zakharchenko"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"versions":{"1.1.1":{"name":"@mswjs/cookies","version":"1.1.1","description":"Manage request/response cookies in the environments where those are not supported.","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","require":"./lib/index.js","default":"./lib/index.mjs"}},"scripts":{"start":"tsup --watch","test":"jest","clean":"rimraf lib","build":"yarn clean && tsup","release":"release publish","prepack":"yarn build","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","engines":{"node":">=18"},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@ossjs/release":"^0.8.0","@types/jest":"^29.5.7","@types/set-cookie-parser":"^2.4.5","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-environment-miniflare":"^2.14.1","rimraf":"^5.0.5","set-cookie-parser":"^2.6.0","simple-git-hooks":"^2.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^6.2.3","typescript":"^5.2.2","whatwg-fetch":"^3.6.19"},"licenseText":"MIT License\n\nCopyright (c) 2020-present Artem Zakharchenko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@mswjs/cookies@1.1.1","dist":{"shasum":"8b519e2bd8f1577c530beed44a25578eb9a6e72c","size":12611,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-1.1.1.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_1.1.1_1718284807937_0.5005072670309569"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-13T13:20:08.157Z","publish_time":1718284808157,"_source_registry_name":"default","_cnpm_publish_time":1718284808157},"1.1.0":{"name":"@mswjs/cookies","version":"1.1.0","description":"Manage request/response cookies in the environments where those are not supported.","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","require":"./lib/index.js","default":"./lib/index.mjs"}},"scripts":{"start":"tsup --watch","test":"jest","clean":"rimraf lib","build":"yarn clean && tsup","release":"release publish","prepack":"yarn build","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","engines":{"node":">=18"},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@ossjs/release":"^0.8.0","@types/jest":"^29.5.7","@types/set-cookie-parser":"^2.4.5","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-environment-miniflare":"^2.14.1","rimraf":"^5.0.5","set-cookie-parser":"^2.6.0","simple-git-hooks":"^2.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^6.2.3","typescript":"^5.2.2","whatwg-fetch":"^3.6.19"},"licenseText":"MIT License\n\nCopyright (c) 2020-present Artem Zakharchenko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@mswjs/cookies@1.1.0","dist":{"shasum":"1528eb43630caf83a1d75d5332b30e75e9bb1b5b","size":12525,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-1.1.0.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_1.1.0_1699450735087_0.8149162021584953"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-08T13:38:55.238Z","publish_time":1699450735238,"_source_registry_name":"default","_cnpm_publish_time":1699450735238},"1.0.0":{"name":"@mswjs/cookies","version":"1.0.0","description":"Manage request/response cookies in the environments where those are not supported.","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","require":"./lib/index.js","default":"./lib/index.mjs"}},"scripts":{"start":"tsup --watch","test":"jest","clean":"rimraf lib","build":"yarn clean && tsup","release":"release publish","prepack":"yarn build","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","engines":{"node":">=14"},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@ossjs/release":"^0.2.1","@types/jest":"^26.0.15","@types/set-cookie-parser":"^2.4.0","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^26.6.3","rimraf":"^3.0.2","set-cookie-parser":"^2.4.6","simple-git-hooks":"^2.7.0","ts-jest":"^26.4.4","ts-node":"^9.0.0","tsup":"^6.2.3","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"licenseText":"MIT License\n\nCopyright (c) 2020-present Artem Zakharchenko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@mswjs/cookies@1.0.0","dist":{"shasum":"dc0ae33eafb615a73f4dad77285d324f6d689323","size":11429,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-1.0.0.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_1.0.0_1665097822155_0.4202585999961288"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-06T23:10:41.805Z","publish_time":1665097822427,"_cnpm_publish_time":1665097822427},"0.2.2":{"name":"@mswjs/cookies","version":"0.2.2","description":"Manage request/response cookies in the environments where those are not supported.","main":"lib/index.js","scripts":{"start":"tsc -w","test":"jest","clean":"rimraf lib","build":"yarn clean && tsc","release":"release publish","prepack":"yarn build","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","engines":{"node":">=14"},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@ossjs/release":"^0.2.1","@types/jest":"^26.0.15","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^26.6.3","rimraf":"^3.0.2","simple-git-hooks":"^2.7.0","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"licenseText":"MIT License\n\nCopyright (c) 2020-present Artem Zakharchenko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@mswjs/cookies@0.2.2","dist":{"shasum":"b4e207bf6989e5d5427539c2443380a33ebb922b","size":4182,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.2.2.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.2.2_1657362679676_0.019366254013811313"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-09T10:31:25.494Z","publish_time":1657362679887,"_cnpm_publish_time":1657362679887},"0.2.1":{"name":"@mswjs/cookies","version":"0.2.1","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"start":"tsc -w","test":"jest","clean":"rimraf lib","build":"yarn clean && tsc","release":"release publish","prerelease":"yarn test","prepack":"yarn build","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","engines":{"node":">=14"},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@ossjs/release":"^0.2.1","@types/jest":"^26.0.15","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^26.6.3","rimraf":"^3.0.2","simple-git-hooks":"^2.7.0","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"licenseText":"MIT License\n\nCopyright (c) 2020-present Artem Zakharchenko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@mswjs/cookies@0.2.1","dist":{"shasum":"66a283b45970ffc5350d22657983a1377ea6bf97","size":4179,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.2.1.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.2.1_1652270352246_0.38701634905891646"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-11T14:08:16.113Z","publish_time":1652270352377,"_cnpm_publish_time":1652270352377},"0.2.0":{"name":"@mswjs/cookies","version":"0.2.0","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"start":"tsc -w","test":"jest","clean":"rimraf lib","build":"yarn clean && tsc","release":"semantic-release","prepack":"yarn build","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test"},"repository":{"type":"git","url":"git+ssh://git@github.com/mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","engines":{"node":">=14"},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@semantic-release/git":"^10.0.1","@types/jest":"^26.0.15","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^26.6.3","rimraf":"^3.0.2","semantic-release":"^19.0.2","simple-git-hooks":"^2.7.0","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"types":"./lib/index.d.ts","gitHead":"e9f59e3251719ef5c8d17d174f0a18d3099eff02","bugs":{"url":"https://github.com/mswjs/cookies/issues"},"homepage":"https://github.com/mswjs/cookies#readme","_id":"@mswjs/cookies@0.2.0","_nodeVersion":"16.14.0","_npmVersion":"8.5.4","dist":{"shasum":"7ef2b5d7e444498bb27cf57720e61f76a4ce9f23","size":3429,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.2.0.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.2.0_1647006661953_0.919301769837138"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-11T13:52:18.807Z","publish_time":1647006662130,"_cnpm_publish_time":1647006662130},"0.1.7":{"name":"@mswjs/cookies","version":"0.1.7","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"start":"tsc -w","test":"jest","clean":"rimraf lib","build":"yarn clean && tsc","prepare":"yarn simple-git-hooks init","prepublishOnly":"yarn test && yarn build"},"repository":{"type":"git","url":"git+ssh://git@github.com/mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@types/jest":"^26.0.15","commitizen":"^4.2.4","cz-conventional-changelog":"^3.3.0","jest":"^26.6.3","rimraf":"^3.0.2","simple-git-hooks":"^2.7.0","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"gitHead":"80abf96d8455c0f5b9e8d148385fba5d06daf175","bugs":{"url":"https://github.com/mswjs/cookies/issues"},"homepage":"https://github.com/mswjs/cookies#readme","_id":"@mswjs/cookies@0.1.7","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"d334081b2c51057a61c1dd7b76ca3cac02251651","size":3415,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.1.7.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.1.7_1642600827737_0.08795633350429277"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-19T14:00:43.804Z","publish_time":1642600827910,"_cnpm_publish_time":1642600827910},"0.1.6":{"name":"@mswjs/cookies","version":"0.1.6","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"test":"jest","clean":"rimraf lib","build":"tsc","prepublishOnly":"yarn test && yarn clean && yarn build"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.15","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"_id":"@mswjs/cookies@0.1.6","dist":{"shasum":"176f77034ab6d7373ae5c94bcbac36fee8869249","size":3236,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.1.6.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.1.6_1622197421377_0.6494391416234673"},"_hasShrinkwrap":false,"publish_time":1622197421477,"_cnpm_publish_time":1622197421477,"_cnpmcore_publish_time":"2021-12-16T18:59:28.485Z"},"0.1.5":{"name":"@mswjs/cookies","version":"0.1.5","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"test":"jest","clean":"rimraf lib","build":"tsc","prepublishOnly":"yarn test && yarn clean && yarn build"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.15","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"_id":"@mswjs/cookies@0.1.5","dist":{"shasum":"4631f69a1a5c0c7db2b944004081ce35d4255ea9","size":3238,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.1.5.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.1.5_1620130856206_0.021740519520391688"},"_hasShrinkwrap":false,"publish_time":1620130856317,"_cnpm_publish_time":1620130856317,"_cnpmcore_publish_time":"2021-12-16T18:59:28.725Z"},"0.1.4":{"name":"@mswjs/cookies","version":"0.1.4","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"test":"jest","clean":"rimraf lib","build":"tsc","prepublishOnly":"yarn test && yarn clean && yarn build"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.15","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"_id":"@mswjs/cookies@0.1.4","dist":{"shasum":"85ef872997eea2acd888f21af0b2067224dac244","size":3253,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.1.4.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.1.4_1614471305900_0.17217138743314253"},"_hasShrinkwrap":false,"publish_time":1614471306028,"_cnpm_publish_time":1614471306028,"_cnpmcore_publish_time":"2021-12-16T18:59:28.931Z"},"0.1.3":{"name":"@mswjs/cookies","version":"0.1.3","description":"Virtual cookies store to manage Request/Response associations.","main":"lib/index.js","scripts":{"test":"jest","clean":"rimraf lib","build":"tsc","prepublishOnly":"yarn test && yarn clean && yarn build"},"repository":{"type":"git","url":"git@github.com:mswjs/cookies.git"},"author":{"name":"Artem Zakharchenko"},"license":"MIT","devDependencies":{"@types/jest":"^26.0.15","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.4.4","ts-node":"^9.0.0","typescript":"^4.0.5","whatwg-fetch":"^3.5.0"},"dependencies":{"@types/set-cookie-parser":"^2.4.0","set-cookie-parser":"^2.4.6"},"_id":"@mswjs/cookies@0.1.3","dist":{"shasum":"b01f6010b13dcb22ac9af9d10d715f3a398676f9","size":3186,"noattachment":false,"key":"/@mswjs/cookies/-/@mswjs/cookies-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mswjs/cookies/download/@mswjs/cookies-0.1.3.tgz"},"_npmUser":{"name":"kettanaito","email":"kettanaito@gmail.com"},"directories":{},"maintainers":[{"name":"kettanaito","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookies_0.1.3_1607351730848_0.19244991270080436"},"_hasShrinkwrap":false,"publish_time":1607351731009,"_cnpm_publish_time":1607351731009,"_cnpmcore_publish_time":"2021-12-16T18:59:29.184Z"}},"readme":"[![Latest version](https://img.shields.io/npm/v/@mswjs/cookies.svg)](https://www.npmjs.com/package/@mswjs/cookies)\n\n# Cookies\n\nManage request/response cookies in the environments where those are not supported.\n\n## Install\n\n```bash\nnpm install @mswjs/cookies\n```\n\n## API\n\n### `set(request: Request, response: Response)`\n\nSets the response cookies in the store associated with the given request origin.\n\n```js\nstore.set(\n  new Request('https://mswjs.io'),\n  new Response(null, {\n    headers: new Headers({\n      'set-cookie': 'id=abc-123',\n    }),\n  }),\n)\n```\n\n### `get(request: Request)`\n\nRetrieves the cookies relevant to the given request's origin.\n\n```js\nstore.get(new Request('https://mswjs.io'))\n```\n\n> `.get()` respects the `req.credentials` policy.\n\nExecuting this command returns a `Map` instance with the request cookies:\n\n```js\nMap {\n  \"id\" => { name: \"id\", value: \"abc-123\" }\n}\n```\n\n### `getAll()`\n\nReturns all the cookies in the store.\n\nExecuting `.getAll()` method returns a `Map` instance with request cookies grouped by request origin.\n\n```js\nMap {\n  \"https://mswjs.io\" => Map {\n    \"id\" => { name: \"id\", value: \"abc-123\" }\n  }\n}\n```\n\n### `deleteAll(request: Request)`\n\nRemoves all the cookies associated with the given request's origin.\n\n### `persist()`\n\nPersists the current store state in the `localStorage`.\n\n### `hydrate()`\n\nHydrates the store values from the previously persisted state in `localStorage`.\n\n### `clear()`\n\nRemoves all the cookies from the store, producing a nice and shiny empty store.\n\n## Credits\n\nOriginal idea by [Christoph Guttandin](https://github.com/chrisguttandin).\n","_attachments":{},"license":"MIT"}