{"_id":"@pkorsholm/medusa-js","_rev":"40-c60ebb3a96f74bed22d69117c77865ea","name":"@pkorsholm/medusa-js","dist-tags":{"latest":"1.3.2","staging":"0.0.0-staging-20230113135316","snapshot":"0.0.0-snapshot-20230113135425"},"versions":{"1.3.2":{"name":"@pkorsholm/medusa-js","version":"1.3.2","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"^1.6.0","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","_id":"@pkorsholm/medusa-js@1.3.2","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-XkM37MkZi7ANA5y1IVAjo2LSN/9v1wwcXknhZ8JZeM2afE+0erXBWeCIlwGXJHFLAmbE79P2IPgmHR2UdPQ6Cw==","shasum":"a6b1d82775051fa6945f3aaa3ec1c419c7c59205","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.2.tgz","fileCount":164,"unpackedSize":374925,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCbA1P+LP2PURnvgE5uQHEvOYjH8zyjLKiNn1/QoATcAIgFEPcLTRF4WQZfy4lgWlMwDnLDIes2o8bfBilj7LvKQw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbJk/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjXQ//dAWTGD+STREpdJngTZa8nZteKBdGGI0n/5FBPOuRg9rvq0z9\r\nnOkxURlUAfsFGlTFPmfLfB2rEI/extQN3RAogX6rcIo9bT6DnsN7D0S2Nxcu\r\nSvBap1b/nHCKoCX9y/p0EaWtAUZN4Sk7kZXWS94z7U3AKdUPdyZ11ZDD4hV9\r\nmQIg7C7ZouzpOOp4v0TiRF+ZEYGnY9MvULEwGOqisufHL6QsiwLzwwjVcQ0O\r\nsjRYA5KRRBDyuZkmKnbDBtv225BTAI5CgR/k3X95EdvPNizGMmPav9IpEl4X\r\nUEKqbJ9KawT7zkTiJf/3s3rHi+ypZX7BWN3f7lpC3hMnqkMTJiX3pMkkoKfi\r\nY01MZaORyZ1a+prOgm2epW8HHvnSQJm2W5gwxne5hdffOfYhr/BNj3sUiH9+\r\nVkxKSpSuomyMuvf7D/pVqqJypyaz0sIheEAstrk4RUc9edB07WA4RYZjQvVj\r\nl9gbkdObWOakL2Ci+fuMLJqfhC0FWd4JIV4X+3u+KEQxz+8/iEj5JDbyN831\r\nNQ7da7rsOPj/O6lqSJzaHaO5oY0KRv6qzrMp75XBl0JgvrT5hzfTj6xnUudq\r\nDE88kPqZtGGAh4XAStoVIXC5Fq1tieXXLCipU2PgPP/pkQU+d6+efELvaWTx\r\nqDBK+5zLrDNBx3zqZmmln2A7rJh/0olEKio=\r\n=bSfu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.2_1668061503234_0.6517643450549895"},"_hasShrinkwrap":false},"0.0.0-staging-20221110091025":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221110091025","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221110091025","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221110091025","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-NxtGA7/nxg8ICl4xM7HTaiQ8Y1LW4agwuZpOTxHOxFRi+ZTYZMfllYKqtuOpp7oLjQ+wtwuoe87CAp7P60P1Ww==","shasum":"6805a45320fab9bd1392945f2e6ac2261ece6b8b","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221110091025.tgz","fileCount":164,"unpackedSize":374970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT2akxk02ay95z2IJFC2es1GGUcroxB/DCjakYjQHkDQIhAKbjY017nvWstfB3UU1pA+dNUiLKLJCkDeBCR1eYlduT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbMBLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq77g/9Gs7RPQGiEG7f8+n+i+tMD8CPlqCS6ZnobQifAKcLT1kj0w67\r\nIJqzkrEhwiu/w0/zrWr+gPpyiPvma3pBRWlXUaRnIXD0u2VSpjCerzVuWY0x\r\nlBooUQG30DjHrZKqhnrGJ02jjCCQCSXR+/DOFvNUrZ8YZ0eYA+rmZ/PwezuR\r\niQQ2FiRJjXr4IZXK/5VdBBIP50X+0ksbK/EwlWYp0NwSFAukgwkM2evMPElW\r\nmbnFpIuRHFAjEc3xJHJ61VPCX8IL3KmNO33BaQCOX/S21WPZhICvqqkIaKzX\r\n/ZC7kiMjKERKFkyY23mBOP2Qu6W3q4bKxH/TQ9Wfo6GylNMuFPPKMQm6wxfQ\r\n59vbybQNWRiN8eB/9OygwkNVDqx4pefcdvSepGn/uSgBi8yyGilLT5xgL0K8\r\nGA8FiFCLLM9xv/TP2oogP48PthgZSficRxTupw079Nckh0ADvC0OQZhBHz0W\r\nhZP6m8hmetDPs2m7p3Rulph8iWJqB7cKUTd3LlmHZahJPTB3BIEoRTNkwzJ+\r\niQXxyalEfHk+SODC3+jre1DUWMjbyoBRFEjXHqgVm+5tiSVkrlyzgEaQfPq9\r\nS8+6FRmgtbwfP7OJwTxojhlJDUBWgBzaljpKIleHbbDeNOYUY2e35fTDXEWY\r\nBXCBJqv95DQkeowGmeYH4YreU43oDZnaVNA=\r\n=7XFg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221110091025_1668071499408_0.30314515318555246"},"_hasShrinkwrap":false},"0.0.0-staging-20221110094848":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221110094848","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221110094848","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221110094848","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-8lkXp3dNGAplxIKrOqXIMDxFZjdA/MicQSPEJImwq7tKN39l1AMYpWFXttbw8ACbPvJEnFy5DV5LsKJTJnqw7Q==","shasum":"785646cb6b6e74d9230204afd785c277f9ab1f37","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221110094848.tgz","fileCount":164,"unpackedSize":374970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALTpgbpRKhgFhGZiJaAQIG+bxWcobDcgfFu6fl/Zu15AiAxQ6iqN0JvRmmqY9gw0xmhZAEuS+r/muOSlVCQvjWk2Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbMkfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjbRAAgXGf58oxYiDfzuW4uAOwGrX/uoSnX/eWuyPALlvXKuPyGGHp\r\nZOiifF/nGMuD+vIiEcK/JSCdvH3kbXsYdrjSXAlhDKRGtrwEd8OhjMjEpuUi\r\n1XsGDFmzPdYf9CA+hFKN7qny1SPYK0Jaz/IySALfB7aCJyMvBFP78d1coY6L\r\n5I4h4HLn3Ky/achxATQ5o0eTfYfBXUH4Nqp6oQ0m+0cCNgJowdGdHA0U+ace\r\nNs2R8PatwAS4jDBIE9uKhKLOw321m+Mk4p16Q2w2gQCFc7FjLLPvjkFJaswH\r\ni19xuibU8rNIwWxD2YfhVoUkUM/6DiB3OQsPMbf4Fh4tolElHB+owG16M3rf\r\nMfzis5N0eY7j0Z95gZq6Imoo8P5VWfMN8ohYCwWYi5Xb7YzOSl1KTprD/nD8\r\nVeH1NIuzZ3806mFhssNZz1BqlASlehL6zU7Yurndx/iCN6draZTSJxjnusIr\r\nSAsQLb/l8ZTD+ceew+WEX7OB/DvvaHzvp+64qxc60WxrbYY207ciY4V6U+ga\r\n6jPmYh/TqUki5DVJgqOiDOinRqYF5V3Y5icOnD8NF6loV8GELI8JSTSQ/PZe\r\nkUeADeKksnidIqfwHmz8dHCj6a08QgHteOy6ShbAc374+lha3WP0nyEfSy7C\r\nvxGUaR1BXAirYcxVpfrLgVolHucIHvszdaQ=\r\n=wUiN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221110094848_1668073758823_0.4580407407620093"},"_hasShrinkwrap":false},"0.0.0-staging-20221111015503":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111015503","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111015503","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111015503","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-CI/zw7YsEEZ+gKOTmX8NI2bMCuAUgwlEY83nUwVDQ61ggpVCawR3xRiV9f6IY2IVQ52x41gLHI7CdPmnyDie2w==","shasum":"2653fcd731dde4626e008885d72352689e229e4a","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111015503.tgz","fileCount":164,"unpackedSize":374970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4E0l/rqsHIuSLBrlvilEQvzPMuZobvHnfXNoq5n4NQgIhAPm+7k4ZONpRCuuEAdTViqeuMVTRny1xA3j+nxq/nhrh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbauWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSgg/9GlO083xMI3ixxY7oeVS9rr5/SSQOX84e8H1IIcr78dnWlS9P\r\nL9CApvsUs8w8ACXQQDdvxPPsO/Dv241Pji50PQuxBn60NbcXrEy1z1/2n6En\r\nJJELQcG4g+yhnbi03TDe/aW1plLtzO0ZGmGucespn+x+psXEGTvBv7/+GaQK\r\nt/CXBV48dhTuFqrkcm33uHTWYrehMe4dcstKTpUli71sut1hYIgSCEa3vHr6\r\ns7HRic3vxXHAxdMrTnnQPPmkIaQCNACbz+RXk7NUZI9/Dl88ncxgAbrzRO0M\r\nRtqtao98vy4T/8m2JAlZRS8wTVcUMLflI0OoxBicWgBkxB6aKvBNHmofQ8QY\r\nfTt0uTBMKLY51cvfM8IKzgjLElzfgQZ/ScJmOR5rNSecDJO1ij6olOONW+Gh\r\n5byjIB3uPhmv2WjXsqzrneppm821XvTvH2F2Moy+REIWY6UjtJs6xuVLmqXr\r\nKX7PuDGhKydyMUA76i9gmfdOrYxSX0FsqpDmMajkAxeP27UZf9GadGNGNTpm\r\nvVDUgpNO6fv87R3oX8Xso6+qAp9bb9C5mRGPViDyZ2B4Ku3xL6k6mxtMlkhn\r\n2m+LXtE/T6LcGSZRJttHsmv4jUEiVc49rpGh4oas3cgIl3Kk4Jt8ctQgABTR\r\nDDsVjrwqDKcPmHkzumUOXNnWd+tLIV2croY=\r\n=7rnq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111015503_1668131734110_0.05342746099467521"},"_hasShrinkwrap":false},"0.0.0-staging-20221111031833":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111031833","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111031833","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111031833","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-edzdkObfkFDuafUTuaYwx9hl7So5GidbCPJocRpA6NVDqdW9+AVtfLISgAnR5DOD+1sgXWvUF9WFM6lmPJ0W3g==","shasum":"cc0c7eba3b885f3c10b929df0b1209253cc84c44","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111031833.tgz","fileCount":164,"unpackedSize":374970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7hxilK0W5RbXvt+IXs5HPlNBXOGjt/PL5kcbBqTvLfAiAP5NrSPSbfk85i8kkJphQ5h34rVCygzAO4DWlAt7SHPA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbb8iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAoQ/+LL30immPgzjbgFMR6zgZMDLSmnStuBE+P6wfUDhT8d8uhL/N\r\nlrKWnutlRiJJMrbeB6zgUUsY/Xgy+iKJl0XzUKa/gSteqQLaBq+TUwzYpFj1\r\neg3Yr6m6j3ey/LzPvM+Tk5uav5823qR1Fh+KCtlaycb0Q4CCfIajLEgpuBVS\r\nHLUmf1ATFdcyyaNQeA4WNo1aC6HAlIJPzRm3QyF6TXPko5rmZ5DhF5xvYyWF\r\nWL/Ljtajw8SOKl+BmoqhgmXpW5OKByQRcHo7jLnigk9iLlDYrXUbj+6L253d\r\neRUIUvCRDE+YbNJDv8Bst4dx8/RylooG21yq7jCW1ruCd56ROh3OmgNDUMM9\r\nFRzmV4sHddsgYuQpUqFZ6c8gr0+odWNMYlSsM/1PEbKGut0vwOpTi8csUcol\r\nD0j2qCuyJ0J76jqLxO0sSSCnNfeYLkPYMJ5K+OCKlNIvMDLKRhmfQ53WBdNZ\r\nPtImeB6fBSs/STejNzQY+brS+Nt8WIR/8V5vg1eJAebD2aF2ZfVA2AmZ3h7m\r\nTgKWTQsRvUu5GaBLKgUf3/NZILPeudQLNbtfU9OuBf0Oa4licH0qISnxPPyh\r\nFvOW5m88TRdXZXX+LfhyBD83s4IE2GknJIulaeyPJ2nP2W84u/KTBbyb3TRF\r\n03sPphsVh9RB4Hfy3WxRndrgOq8qopN3Bww=\r\n=3UFS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111031833_1668136737934_0.8236136443184991"},"_hasShrinkwrap":false},"0.0.0-staging-20221111041034":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111041034","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111041034","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111041034","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-7q7X58KqZ5X68RbldZIpdQzUEkK1tLM1dzF0tMV2wSkwcrOLgDyHuw4GiBvq6x+A1Wr1nMBcAg8dhwqFrMnsxA==","shasum":"58954b94b10614d08ef90ef0f2ea392754fd9e91","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111041034.tgz","fileCount":164,"unpackedSize":374970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBRxEmKaP9PeEarlPLhV1EZaPSBfU3ihKdJKAoXf7MyAIgMTmFRjeJFHfRe6iXOYAXXq8P+ddlgAplGPZJqa2r0BU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbcthACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpezQ//bVbcX+JA7ocXswMU/Jv8KIqJu8hYjsADHLEaKxF0ErKlsNoM\r\nYbddAsLMYczAzHpSRmlGnpiJrO9+yH5yumOMlZ0h/ReA0tACU7eN7Y2SgfRL\r\nNlCWaeWU5WAMRxKG4t/CoLUBhn7/HSqT1oCfFFejX3j1T2nkREO9cNrDOolU\r\naRmt/xPKOSZK0GKoS6KSnh4Kvr4GOL9HwTpLKNwBzxGVLsp+z6peFRv7h4BY\r\nBs7zKmVxZ0I+LRXtzS5ebo75g/welQPYqlTwJlZ1iuwof09OYk2hqJrApJKd\r\nGPgxy9zZMRovR0iUQ2wGju9KPTTsgQtmeHGPK1UiRcVnK1PBukby8PPF1lqG\r\nr6Z/tbtIg3KM5N/qZE88torrqlEjH2AtgsnkJtGv465Tc30c5dCb4bHF8JfA\r\nN+WMHnv73j5klA3L1Cqv3IjatXtsSL3TKdW5MHGZZGnE0DZsNo0URAaeXxQJ\r\nQBxXbvmLcG4NYuR3f1e98AsU3828tSAnv6/8lEaoUm2Hl78TovlmBUTeoP1R\r\n+228GpnUICXbhvwcpnleGi8FuYb4Uvb8Ffj43vVSx5MAvrB+9BqeYtyYS6yB\r\nx8W1ce4N1pXhVI6n3SgEiZvKn/7LFwptCdi6d5J3s981pU+JVBFIS33LoKnF\r\nzBaI2HZvn1e/YU1mePDrIFhy55TZuOH6zfI=\r\n=u40q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111041034_1668139873462_0.8861688355811603"},"_hasShrinkwrap":false},"0.0.0-staging-20221111045920":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111045920","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111045920","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111045920","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-s4wQQjpQf/QpGKJ69Vp4fGcvxZEy1PFtRFc0YcbPzqtezcNYRvQ+niHu8Z5EyfFukZ9mRf6a4N+8CZOnwH0BYg==","shasum":"724087f66215d5d28be86935d587ca39a1ef8ec7","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111045920.tgz","fileCount":164,"unpackedSize":374970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrBFN88UCS/H6pqitcTmNGoeigw8UIG8G87Jr0LLYjwAIhAJdqcrlvGtPXBQBani7UtVBbuck7TAlGSbsbOPR60Wgj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbdbTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlUw//enXqFtb1bvR5bMlglCB83NGehE9LKyhCogcf6Hwrxa5RBbrL\r\nA/pA9hvWCRLmiry2vQvvIzC8ALvDRcfeKIXiZZaMzS0nXx84St53Hr92hRDb\r\nreC5M2GFa3TnrRHO6u0/i/avsIP5U1m4onC+UhfUv9yTYb4rP5qAr/7s+xCM\r\nppqBCefuvW+N3iXCNWII+huvwtzcucgwZMsolOTQyUe8hwTu27Tgs1REBVLE\r\nFPeV2BBO7qYd9iJhEiv1MboxrRSAnHreKf98wnwyv2csOf+KnindDpKdMp47\r\nBGGiEzbqriqA9jPfp9ChbVwphgN0nYtl39+qI1PgMJhzyWaA660CyFkZdrcu\r\nXB7hCAFAT8spgwNShPS5/4dsXPKSYNuXM4vHcrtHB1ybybJ3uAPtDsCcpgDk\r\na3063XSnFrLNBi+I2J3qXpayittafVJ+abLyJ4Z7zz9LfXNH0Ksvdib4jdKW\r\nv8wg4ygJyOndUAoA51xBJ0ngV3D9jJAGhHVYFz1vHd1+/+pvQQchkYT7VWgD\r\nOMDgV38JpMRDBvYJ7RQu945ufDo3XFRtZbmffC8j/DRxoiCT7AiCeZJPcOFZ\r\nPnmk1fu6wTlKOkEG/vE7qzc1VqPABY4I69nThKOoESSqruYnKYfALxpTNGuV\r\nWRUQuzvVuCiqd3Y41XOC3X6KB2My36KHi/U=\r\n=XkT4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111045920_1668142803160_0.2917175833942791"},"_hasShrinkwrap":false},"0.0.0-staging-20221111054908":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111054908","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111054908","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111054908","_nodeVersion":"14.20.1","_npmVersion":"6.14.17","dist":{"integrity":"sha512-vCjImZvw98qDdBKLh/fYQtPoeXNU1xcXv+eZQEh1jY7OS9RDWBjHIARJcYdu37VwGUHw6+oZ8uaoJxs/H51xpA==","shasum":"555fc82089802c04d0e5a59933b34589ad651c8a","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111054908.tgz","fileCount":165,"unpackedSize":398123,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHV7aZUHGslth2waIvd9PAQLrIo1v3p+FDsB7awqM9TaAiEAwQ98tVBfN+yhO7LDNuQcV6zVofcoCI/fUtPnGpqaw1s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbeJxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWNA//YHngcm94/KuKTR6aRl7CnpO2VKNdfCB+DUjA9PuWestEekkH\r\nMdSybcYBCk8Ci6UD4TGwckY5BtT3npcbaF+3kOLmHDfNqFB2xQvrYXmzKmiT\r\nSTCmGP2Ip63jkHivX4x2GdbTkptYpGw41kDugS/Az6S87AgVKdRf4UU6KhAb\r\nFifwwTQPZbR92Od68MpZXqmodgBkfcRbWRZEKe2Yhd0s1l6XHy8ykJiLYKWY\r\n30ZPIE97WcJOUuDM874dv+xf06ZoXvwQG/UDecYZE8Q2l/6P+cMVr8czF1U3\r\ncUUtMf5zOPsk1NLjq4aL7cHnUeG9rc/Sh+m5QuKqCXWTAGMh6/QU2uFXv2kP\r\nV9IJXqOaph1YF3IZu3enNBRNiVsXKyK8EGsHdqRu/TH22p03NTcuCUa/lcBP\r\njvABknnCNZ3gLAoWFjCGlMPSV8RjOP7iA9UbfR2rkWEJsFq8DaR9xBZaCuLi\r\n2jXLKVtvfuGKB/NSS535UcE/wfQZm+/gUD3Xbpe8wA7GX8hf8n3vA5/FRJpj\r\n3BNwquNVrTNceDj0AWzKAMdfO6F38TAWoAE/TqSf3YZQnSy55ISv9AZwDgYr\r\n9tS677i55lvCax8YMvwyDAw+z0FnWqVYvHdz7M6TDncKLnGW45+QN4YYSGop\r\nN20mzj9l7dQm+aVw/dyhUZ1yNrnF2euIoQE=\r\n=7Bp3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111054908_1668145777090_0.6222842947597298"},"_hasShrinkwrap":false},"0.0.0-staging-20221111070030":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111070030","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111070030","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111070030","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Q4/VoynOPRomTlqS+CtA4dqhIoiUmQ9XcpOqQeUbh+Fm0amJ6qKELU6Fy/CfiEvdF5BRpg+4x3Hzz7wSBkrMtA==","shasum":"1932812695beaac77febe36ad04a815eb6f5876a","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111070030.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjmcGsEThC3czWRLSome5pM9yR86uJi6FDSgs0Z56QCAiBBMgRfDcFoMUeYQDYMs/C2kYnzKC/xcVL2ti1igdZf2g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbfMrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpP0g/+LXNv4hw+cMpvQTqDJ2WRIiwcZAey7tkSd2fGNZY4r/Z4IOdV\r\n+VmYDS9OsZ+XjsemXTBJPFJNBPgwc9PQCjD/X97lj0e5XKRkSxlxBlKbnqBl\r\n6QswlwxH7YeB1Ew3+SQnMpPQ2oLuMtsKJ0vNfr/Q857a3FiXrG8NE8GjDruP\r\n8o5plcbxzVzJ39hiNQH5aC3Q8isnDpIhDtMxtEJbDY8znJbVjmYFBC1PRNPK\r\nh4auYbuTMun6jORBvNfjWFOro/ZLLzQNu9WOxUXeon7nv6ozB2qlNvj1/T+o\r\nuQyGPGX8zPRji366s/B7HJIsqimkYuPi15spkD0+bgd8BwyfVWIq/iIKaqeR\r\nT2vEljcJJgG/bOiFrZy80gbQTo9ybMm+FPXwx2krA3tiOYbPOsTEqjWAsV+/\r\n/q3JzrGoKKn0nRWB0tIf06VDWPBy8g/tPwW7wE2Dql8ke2B3BJYLWAAgFqws\r\ndffTa0wM5HDkr1M/yRLlRhkVLc/Xy6t7d2IvtKMhL7YKJN0qFblIfkEnSW3+\r\nwLMSFNHp3ff2UVt2XOUAXi5RwdFJQ5tzrG2AIMpVxHGGGdhRwGZo6TCqKN67\r\nIvSmRP6DNFTWluThI4Huz/LUontEtwhYpLVwDS/N+qSregUhyf2JVeOFLGVv\r\nrf+FRdXtV8CzM7rDzafXAWsADaWygxRjhXc=\r\n=u3gV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111070030_1668150059626_0.8419134886186417"},"_hasShrinkwrap":false},"0.0.0-staging-20221111084533":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111084533","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111084533","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111084533","_nodeVersion":"16.15.1","_npmVersion":"8.18.0","dist":{"integrity":"sha512-1Nc4d9Fx/++Nl6WH7rFuiSp+ImlS7YbCZsKkilArvMYme7sUKSnUd3fsBYS5yZnE+VfqXTmn4575RAIw7+CPPg==","shasum":"a30644dc21f7eab31f9e1bea21735c7938c75459","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111084533.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgVqpZ7papEOY6opBnLMvEpgU+gNzv6bn4cCot86rLhAiAaO6aVn8HuEUDFB2OUcXljEmbx5QnsbSxpPS12S7296A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbgvWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoc4xAAm4u1iajAMu54T/6WS3lX9W71TFWTuuR2FZv2/ewaxOIl2g2s\r\nMPQCzYzTcWLLr7cl3S/+VXHvbmUstzO/VNXj7MSE5l2cVI7zythLqzfJIVmP\r\nw2Fh6kfKuod0KWTyLG6Cpq2gzr1PSU1JGDvcsR1sR5T/fJbEoR4CrBxhdynC\r\n1o8jcCCC6DBHB69cA4O2XHhCpzGg7VVeVQDt4ZyfQzX7G2yaSSxnfxHRO78v\r\nG5hWMdjg4jakDaniYvJLpPwh6M+1y0meV0A6Tsso0VOBQbC7tglob0yMdVHr\r\nkbtR9WcfF7ShIm18ov1i7zCWHNUH8npPFbHSHSyM9CH7aBCLzhPzGgWCIKAz\r\nRizaw0/WRTvtZydGiy0ZIQOoGBYFNYSsTYcqRuFnpHN/BJ0NBZO3n+NrPa/8\r\nThjLeC4jEYc8w4PWTaJ7+BgH7B2WZrkECOyoiRtzchLJCod3QyLzN3CG1Zup\r\nS5hmnbV4l0fjQL9ybX/AharOIHvC1mjPU7ragCxWuZLUdxG4lftHH6VHttJn\r\nCvc0thzfAKEGVyCIRJ1LvG88tEBfPhIbaISxRVRU2tfiBbYLA58kg7p+q3Zq\r\nMYxN6vVh/LbHFc979vb0uiH7t58jkOYFaooOs97yeMwhVUxN+Xdfg3+62I3A\r\n0R5gjX9mOYP0bvWlwUZwI6mvyDysd3UmoCw=\r\n=Psnj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111084533_1668156373814_0.6405034310655873"},"_hasShrinkwrap":false},"0.0.0-staging-20221111085456":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111085456","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111085456","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111085456","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-7lhl3QXlqPnNItl1XPHyfOWNIVtUgJQk3ltgCghQfK9z/hHBFrYrhRs0EHzSVJ7gmeBgxxgBREukscKbql0sKA==","shasum":"1d5b9a8a43fcc9de74cc58966690545c5e81b16a","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111085456.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGOAfA2IZivhu3fN2vjdf/NHOAnsI6Mv5OHimz/CPeUAiAtIjXiz7pZLt5pGcoR3Y6NawC8Zx5CYZhpLM/qDqcuOw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbg39ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrkQ//cxngxPWzwBtljPabNbJI5bFt967Cz4CaQ/89GwO4YI1WT7x+\r\nT1OnfCHN+SV0LIk7E84eXwPJR9zgehrto1MEgecMtRtbdljbJ3AsWepZH3Dd\r\nDDCnbGCjmW2HMXJF500kQ+AUKsrp9trpm076cADkDV9UXXhqHe3TagOmieyw\r\n7n87fVXtnds7J8dkuAuS0h4W8VMrcVq0MJ4XKhD/2gHnFzDe2sCLryySxfBm\r\ndlAnFeRH9r8SuGPv/7mCadHovra1K3ThN4ogzSv4lAHpCBOFyqzYAR7XCixj\r\nqMtoyOs0q3nr7+eH7XNOnkLDGIMmmZDM+fQ6Fznr7jHR8S8QOco1zIsqp8bH\r\neWtAex8+m1+tHjHQyD71HP7jLbQzMQCkz+kNFERWS33GFA0BTzr7fRHlXLKz\r\nPq+RuIKnGToUsk6ztj3+9gS/lUBluPkAz0YQV01RLml+1dnB/S27S/XGbzMo\r\ntrhnECypwASwhfeyB9IjjmwM6qvDXbkqW1wyhgUpEIMe9kwAJiZZ4FxTOc1K\r\no3ufsYhcHaSMzOSNI8rNHXH0zWWF5tD/i4FrosqhaIHMdXBKr63SIBcOxPx3\r\nArLkvybCrbPn2lW16MmVir7O+mbl8OWard0vvnViJCXl/M3Coz4FXa4REEkS\r\nxpiY6pwCmrRtjcfcHMz2JjoGkuO0eN7WOl4=\r\n=YySb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111085456_1668156925304_0.7784492951163171"},"_hasShrinkwrap":false},"0.0.0-staging-20221111090402":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111090402","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111090402","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111090402","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-jOut839YjqQnysmCgPW52v3tMhn+/e8xPisLzHlIjqj3sPaxJSz1PfQBdS+6aHqArSFyQ/Y/cIALnVLzWFrZ/w==","shasum":"12bf07e85b64baad41360b074deed48bd4d38ee0","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111090402.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzP8xVCgpKvFIaZP5oaty9h6MSrdxV/wCCskDdzs0SogIhAIHzfRCiFll/k2n7qKBuRz8aLCZZPitq4kkzqnTDbAOG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbhAjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Sw//ZHnygdW/7nO4F+dc+3w9W7U/sMeo9ntmU9tfOUSTekQvSWEY\r\nkIrmIWQTs1FvnyANPOPBol7eP/q+Jrsv4RfIrmW4MEw1R74zljVmtkkd4dI7\r\n7ureqmjDQx9aAE5PWu7JOTKoaEU8dZIUXNmkxi2OI5pfhpNDQp2JHHw3rbTN\r\nTwWqsesRrlc8yp+LacyOZ+L6wqfeb7Z6l0ACwYn8hj+D/kPgoT15smS0Wj6A\r\nAUwWb59MECvILia6IbGDDt8KRwjeCJ58o4LgQRG63DudQcMnzJ4iIs9ZrIjj\r\nwcZbg8Xi3Ca6YwIcliwIvqO+HMfajEzY679WbmgKRvrz/2RIgub6EfkCivTf\r\nx7KqqpvbschJOUzupCNReIy5zVQ5kcR2opiTJmsTukbmEIRpYV+kvyAlUU3g\r\netHlMSPUbkv+bHcHKADpJ6349yBReHXeHGiMMysQRKmUBbDrzfcPZMzcRSo7\r\n/deGeoFI2ljCGe+8T2hwvSiHN32U3yiyl1akhSOpWWtlBdvsG5OWPksvY0dB\r\nEvXWRWLQrfa9FXjDAESTzxLfWxuDZGtHG+T3CPK9nHfSzTgWsNmMH34O70AN\r\nW81HP40DK6rvzBz4yzUJ4mIGMN3QG42DGU5ri8R6KkfLHxw9Dm8rF7gmeumX\r\nJdBAcJGrG9Xqsn5Htx93g2bhPqivEB4JYzI=\r\n=YVSL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111090402_1668157474815_0.5255275883240333"},"_hasShrinkwrap":false},"0.0.0-staging-20221111091336":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221111091336","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221111091336","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221111091336","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-uIs0avKwnI+QDLpRQ3zbkQF865fqMA5sBKg5EuJne2iNHa7dOp3Vm1mGbK6H3UM2Kui/V6I7BrI41BUz24zBcg==","shasum":"ebefc915fd29291142191cd074e096930648bab2","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221111091336.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7xqMoj8oyRLn8fFSlrFF82odlXAF++RuqsaxlNRqJ9AIgUMIHZK6haQhqkCApoJPactuD+02XJpGiH88zPqIzGIU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbhJdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmok6g/+KcvA9wFuTTO0nwndphT5jO/AN4Ma+KYViTp0+4FjcelP5tCs\r\n2A71OaeDWKd3sbDtddgZEla8m1CCWU66dLT+lcrAvL3N2r8LJUMbXqQM34St\r\n6+sJW92tbsHwWPtlvlUJe4JVVpYg5ZMWtRsU4vhNiC9IQefDT4Oatl/JQ10a\r\nkhdViGvuoUqsqwpCpcBXfld+TZjzBSTEEVpEuxdBzMq+Aties+JtGNG1RX8i\r\nfF9haB+kWd/fbg7SLE/J4SHyaBQiNOi/zJvRBgbB5P1EGzto9NEF3U9pLQtU\r\nQUYVwx4e+8GP8ONNz8oefwSxiBwjIdZRfTtZbWW5BaJgjWv0fGAQ8QnFBxYw\r\nvnQVY8YLaFCnQ9kYhi1OjjdIZN3Teh7iSWtK+KomUbwCTURN6DztcNAZRN3J\r\n+wctSogeeWhT6WkGBR63brEe5n4/5KrA21eka3qCQNaWJTB4jb8KD72ua0ZU\r\nZVnftAXCP8um+pdTwESpY15/04WGQlV9mXV72ElsBCMplOHZiCafSUtJYtV1\r\n9PyeFyAuiNZuQMvL+Ns70XixfZ44haCVkzdQGDVbBPp/FNQq8liXLktfSvhs\r\nJmwFL9oHJV7DpLxDtNluGiOXOUCERLe0dkTYEOeq7iJg21cwhts11dwvRoVL\r\ntHGaHPIUaijXEjcX4nnWUBqMe/1e/2c86ys=\r\n=PpSQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221111091336_1668158045226_0.3026438946431005"},"_hasShrinkwrap":false},"0.0.0-staging-20221114093335":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221114093335","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221114093335","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221114093335","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Hfb281BxmTXVmeKtE/Gmx/kppu4AYwdy4qutMrTPir14zOqXOWUaNnGybAiB6GJxe7wFRg2EDXE7CYtCAnzyzA==","shasum":"d8408838f20baeb43c03112eb9c7c1a749288104","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221114093335.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/oe0ZoEOQPe8kVin0ATsVTPngTiMeh+WnRT8swQrurQIhAM6mYFBu1qFtYlPH/3PAUwlLY+7DsoIoVSpW9odp7uOd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcguNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEKQ/8DRPAYdu9xi8B/umaXB/wN1SmlQ6YQ+j1ipStxZINdyJ6U28q\r\nhYowVxWPCDvQcmJlgstmShaKD9EH7UfAYSFsWZItbQredYyLJN8cTNdjPL48\r\n2eGAgKmg43eAFDnfZQkjJFqUUAhG6fcGNELJYtwSlOtMLPle3S5gSkzeiVAF\r\n1coaTJ3IXMl8BU9VO3gGs02A1Tj1TXWg8mvHWEu4WEut6PKk98ezCB/ySf6i\r\nURuOojHL/8X2MqvfLnxJZShcJAPsxiBFqBoSEm7RIExSOlGOBZLv0kEqnZU+\r\nhRvuJhT+4fZzolsNWHm9KWZtBAaA3TqUIw1Gc1vP4/6lhQ0zOzNa6NXu6Oy6\r\n2vUyUtFNHlK6EgsNYkRTwAaqNjLHH8cDM950oJUdruJ79Q1l6v9SWTIqAu6+\r\nDO806pawzl/mxJwsuF2AAWFyjbwYuc7z8LBufEfwcfn8br87h+W3OK5gqwIq\r\njwBjsqpUlPpIRDu0sMGrk1Qerkox1PDxwoiz+fxsrpK055P1lF8KnmFopUAq\r\nXXTCiI+/Hu7kHUtYrM+3pzz/BX2VKIyUZDHC6dONavtMINafuivlRcxy0D0n\r\nK2FE7aayAbowMeNpW4Zk7IEaAaWAyJziz9ivCyu3J8F9h7Qf2Vl+QPaNIb3f\r\nSBQKNz0wWK+bpSf8YlUMXpmjYsouQgKH5CE=\r\n=E3wQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221114093335_1668418444790_0.4331117109300493"},"_hasShrinkwrap":false},"0.0.0-staging-20221114093650":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221114093650","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221114093650","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221114093650","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-mz19s3uPwb8CUKbaIorPZ7ULI1IPoNop/SZsN73ZL1XlJD6x7oyf9nSJC+JxLJRHuhE278w/PlqBypkBEw+7dA==","shasum":"ae276be92c1adcf52055afd039ec841f81a997d9","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221114093650.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1swU0nwoBzQ62yKnF4T9v5KV8H2n8Nq1KiaugoDP/CwIgHVdhY5NTvUNvOt+4bTKvKGJzHSqhbry5RvZ1UxY5wgg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcgxPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIHRAAm+ac4AVZl7Yj8pJOk7nOB8UCTQfDDtOqntbTDdvk6Mok4EoL\r\nLSSbc1uWNMasBvU7tkIZdeUAdS4pfbhoxOGVPipQpss5O0H/xU7TVdpwqWaM\r\n3kTfwlGWEK3Y8uc2qDvfXFs5u68/q71i/sQBBtdsLkO79KzqSRh2zioYO2qi\r\nR1Z3EURDzB/zxyBJ2docqinvs3p1fotFqtRTv+SzQdhdlN0w/KczwyJbTKV1\r\n4rHwD3UbD8UKnsoWC0JgD+6PNZm7bZlpsheUEd1b7ZJH8tQDSGZ1KUGrdpGU\r\nt7Zj1zYwhuGcOZK3c/CTqohEE4bGPSMsFp/+Ioes59+79wVjZzKXBfI32xcG\r\n2JAw3A1IwfWR2K/SMrq9+SJ4SopPKzt2ouyDr2ccLFKGAQkBzpDQgyK1+3Pg\r\nLT6Huwg/mkkN7Jz2xKcfLdM14PNivkPS6NPaOY7nwOPuKVYKJSRxv04qSjgm\r\ne/+yoN4Jqkig6EnmopJfWO1nVcRTvd2bmU5mpeMQxsNgL9nIgdWJZugf/5P0\r\nxtiNbV4mWfCw+8sc333S3uLbb6T0ThmUG1oSYL6zh8zzaowPnQ0QG1GD0UXV\r\neOKheCl75UIvc1GZagaeQrKHK1Ek8k1uE4VP7TpKl5q23nKbRnpOWkpeFJMz\r\nZj6q8UufpFN8PazAfyBEE3M/zi4TfhUa9a4=\r\n=roYs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221114093650_1668418638735_0.2789535487668595"},"_hasShrinkwrap":false},"0.0.0-staging-20221115075706":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221115075706","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221115075706","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221115075706","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-rmOgSBQSDZyXUPinZS/MZl+tpZrTmEl3We4UNc1fPMeOkOZfA5iKagG+iCsT7l72pDQ3y1dz5aVHP/NtfbeJOQ==","shasum":"60c582341fb08061ecef988f313066a65e549876","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221115075706.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYVrh7xKIosH4rGhIH0OrdqS4LqDYeFJGgeYxeQ9bH0QIhAO5RYo7y2GlvSeJomnbGTMZEKVc577qTTV1alJ6qsvuG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc0ZoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSbw/9F2utIvX3zub6ia6QoG768mgSLBvfKFikOD0pNI2BF/GDer5a\r\nWJLaViCDQrlWgh9KrPztWEdZ/R9H7G00i6l5J0ReMkb7vtKPzy3iHoVsDRLP\r\nGWxqyxoFLQXf3lu/d39jZTKfPjELEf2tiKrTc7VPF4bSqOLicmWjD3nZNFTK\r\nMcBpkEZCiMhl3LPYfZIEfth8zROz0VOK0hf4bIolyjdZZUT9oOcKV67KBEnq\r\nVjmvndRzNk088WOffcBUZjHvAK0H3shmJQ8iAjg8ITsb4Nid/qHG1i42BzM2\r\nnUaT/fU94ZNgxHH1pw6Qr9bv6d5ocYVFtyYki5sOXQznz8J344QYULhm8qqY\r\nl1DQQRNpQ7CgA8dtUbzqQdEgNoNl524g1v+3E2kKle5wT/t3HwdJm994RTQn\r\n/8D9fGzNyN1x97Dj7U6lqyFC/XHNPYUmawzALzY5HyJUNdvd1X4s0JhFU9U5\r\n/a5JE9nzYU1lrHG+O+amgtYeIuni7gaEU3Z0TcpqRrnkDCcrG1X6rd2sF5AY\r\nse92XJMwjGhNvea714qnl5CWQTpfCAqc2jXnnMuz6gcEFxJbK/+VO4lYGD1J\r\n/xckUNxl/MSweRrqxv1Nv07XqxT3PCxUNC85SQTJaInj/O4xwsRkra0HlWwr\r\nDMMkqH5KKJj1hkErYQVJWJ61MikHpaGZ9lo=\r\n=CIQl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221115075706_1668499047944_0.9090511588366725"},"_hasShrinkwrap":false},"0.0.0-staging-20221115080331":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221115080331","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221115080331","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221115080331","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-roCjVEgcBlnfTeP7oACgJ99VTYaWJK8elqtqEiw4mQ554d8cijnbtzZBeGCY12r8b2zrdaMpO8PzAL98ONhuMQ==","shasum":"bc661807253504e42c7fb355eb7338b058dd61b3","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221115080331.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0em80+DXraNAzOWoWrMYbE4hO+GX9UXKLZPhSnUyVMAiAgM4Q97BsLykuosT6wy8e48VmNF176SzMCi1yTC03rqg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc0fxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNbxAAiVZp5Z1m4xNmmbrIdT2lY0Q/cMDE/AZTvFB47Fsti+iZL4yi\r\nt4N7HCFkPcWZouwAu2GiL/jg1WkbyxkQcLYkkzN6sGKQvmTr0i0RxBOLCeOU\r\nZ7AqBlPAmkbECyn25VCVeWWd7lwzACQ3ZX3vYS9/50EDpTmNeEghji4E4Bca\r\nzpnKeJf9J6VSOeoy5KNWuMBmTqy5z/v+q3ryYXtZC0x4vIwFmPXfJdr2nrmK\r\nVKH+Th/CX55SrmSrAMgXICsurYM1yirpPAgqZC95oE99U66TKZtnhaaOtX/9\r\nB3Zs2b6vYSLTu9mUiO771fbAqtF6KoBS73XgXYDHvd/RXN1LzWDIRlm/1T/g\r\n7a0c6+L+8rir3qOKulO/K5CkFTuewkSdxOM7X5/2YpDmMcremPFcriZwrQ+Q\r\nWNS3ieZVvmFQx0Z4tzfW+FpzdmFb8pCXk+mCXhKMLm/O8b1mOsbCvoj+ckRT\r\nyVx6GnqH25ef9BYNijmvXQ+ZEviV9Ssi5GvEi+EuuICtyQb6bOtrVAEWNAno\r\nA8vDCY7vaj/WBKOfXp0q8IKS2+jLcTFNOZOyOiyN+HGQbdBj7mV8b0gaDMcH\r\nL9SsAykR43SvH01CHIpBHFLWxv7yLau0YupnWVIKCfvHwhak4dBDOJUecK7D\r\nWtDgO5Uo5+8sFy6fFCMDgqvoBekC371CuqY=\r\n=uFce\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221115080331_1668499440877_0.4008361597041754"},"_hasShrinkwrap":false},"0.0.0-staging-20221117114840":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221117114840","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221117114840","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221117114840","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-7WBnNS5UVAa5UdR3BbcWvSSaRafmxcQ4yaIsv7NkE0BSU2Jtzr8GWrh8oDfgLgPPwwCTw0yONgJK3VTPuez2Ug==","shasum":"0bcc2ac4be1c5d9bcb545159edacfe9a3f37cb21","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221117114840.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCeGs6/LNfLfYZ5NoPfqLHoW71a7SCHWY+tR8J0CnuiQIhAKgtiiCIMUMhm+3n8E4S6j83O0IcR3xQZrkgxSP1aZIw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdh+6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/PhAAgdZOUQ8fuY1SHii7WkUByyQyPjEKfUhuWECgI1Nok5TetpCW\r\n+6svXZWgm75ZF/qVmzd9+bL7w2Dy/bmleynXZyb4wZ+20vPuoYfZqG6++aL9\r\nyebhmCFKSB1kC4jF0MIYKfiV6UpejAA1KHW3Tm/e2aR7s5NrYaryuygOu9+8\r\ng0Tuck5i6mtOidUxdV7w52WKt44LlOvDj0RIZqWag6XiGl2a5G2UFpJeyBbi\r\niTrXL7TDqUCfyMNYTqt8Dyk5zG8MZA2Id2wmKmm3nqA/leZd+65ju+t3CxQe\r\nrahAiLCEnSr1UdNDVMWyJIf9vzQ0H0bzt1RGPFHJoWuM2S1JVAT0N6D9QdWU\r\nD3r6Lmbfx1HfAY2CyKYDDTESZpIfXB4NSf3WaUHGRviat/lPDECwtH8pmhmz\r\n4hKFPsa3s1qH3JLN0XvAW33qiNEzsYLs1QWDkIdlIOYTrDLE9l1zhEWux1WB\r\nwdhDxHHDr8SLjCC8v0NdhGano28oDl7MfRJA0H0GzT6OFZvfROwWCMOb2P5S\r\nOfOT7fdBS8dwmp4fzEmyxTOCqZEZc+Sy+Zmb08fbUa0SGX8BhJF0wFHMI+W+\r\nlQwdvLMiZf2q7HdTNLccY2gl84O3GEoJUtZJeVZZs656cPwyzeoAx4T9s+AI\r\nxHl/Zu/k0avJmW09qvVManvP8avEq4BqbZw=\r\n=Zef9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221117114840_1668685754204_0.6382946713245896"},"_hasShrinkwrap":false},"0.0.0-staging-20221117115640":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20221117115640","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20221117115640","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20221117115640","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HEUIvKe8Id83s3PHZtSqB6CBN6zv9ojiDulvS4Fd882f32ffahizp53jLx2hp6Hu6kJTXUrse91PnWqcUT6Fsg==","shasum":"801993d3b29da1d73557d462576d2deadd6d595e","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20221117115640.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYHG7nAofjkJTAt0YsQrANhCW6Qi2rekU5Jf74slrovAIgbNQ4sZYXUBqf1eSVuJUiF3oHA3JfpGsxe7C6DBNKesE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdiGjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6gw/+JZqn9OCxHl+s9OK2XArVRA6IkoVTfn0ikT58n8q+WsHEi8l+\r\nfTjUZCalZqR5RYH0iNaQO5wuT1TcX9fCVAAhQIySdWLydo4azwGgPKH+3/GO\r\n16HQv9GAyz3yTyBoTSt4unVGt5QCyImBtMxDBkX3BTWATVNZa5J6UzuB/0m/\r\nXFMRdb0ixb5da5yDzrJKP3e3LNuW3To6uaNXCOpNWzmKEGftYzAKAyVRrl2p\r\nKfppjdTdzCdwPnR5bFtQ22j4jKBXuoQ4LwqfGP1Tds7DPF97CLLdoavB5LJX\r\n2XR2Iw6sAiPAv8ZcyZbEg3un59T5kCaWXrUA91orZA01AfwBEjvP7y1gfJjr\r\nACD3awab1gjsQQsuGmCw99maTpmgWU7lfNfhKUuJshOl4gY+HXKo8oIu0r/r\r\nmkafwNqil17tYqHZFriBUiNdSWd8e6/ZcSa6HCcMRVkNbKKVKjVzmvH2cinK\r\nMZUwVe4InLIcyhEjNivldHufhNdjizyt/aVpEfwgWfWSXJjjnEB2D5s2nvQw\r\nZYGTFG1YBc5ApS8ZyAmrvUp2rL+OlSaibNpfK9QfOGHnKSuc34ppUC+Lh6lU\r\njw5YVGmLdOgHp0k/TL4zUgmmFgp6MtkpsdMSLZ3FHWOhBKkmC3ZzNGv4pQZS\r\ntq9+3mJzYjprLaoY0L2E3BNdkp7rsfbvrYI=\r\n=LUwY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20221117115640_1668686243424_0.9672271076273027"},"_hasShrinkwrap":false},"1.3.3-staging-20221117124640":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221117124640","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221117124640","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221117124640","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-QSQUBeg3PJlp3BeN5reyvyZQN6AK62QOfBv6fAnoSgwfP7hsZOzKA/1fOnlselJO3KhOzZkUkJsWH3YRoKJE0g==","shasum":"b1a49930eeb7626eb00d166a6747a7cb133d7526","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221117124640.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID93fNY1BDos01aBVj3P88EV0rzC3nhMzpZ5Gsey9UXjAiB3vTue1t27zekf8MQ4AGDAJ83PG1JATEp5iNOJn0FHqg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdi1jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfCRAAohR62bdrhq79qpxeOIEWOCckBH8CQG4qybzXGjDTlO2o7GDS\r\nErBcyLyx6lfmm7kY0tC81Z6K53kA4jCoFh0My0Y86Cg3jdVUjRF9WPUbxURb\r\nIoaN49pEM6AaQG36G7KTNacPPj6uq9o3fuTiYjWwW36G1MImqwFUaHYQ0aXg\r\n4BmuC1+QwXuITv8GFswF4B5BNBSPlpiPgonJ705aopHuxaXpx97cm+y9HMgi\r\n5oZji69eB+uk4pHtjK2q9zOU+iyS5y48JPRHbSLzmRCb+SupoClroEqxcb9X\r\nZnxZ7PRJGS8sBpUOI0VxxPh0PBl0rN9ENnsJuEAavLOK57ieFdexWBy6C9On\r\nEZUx2vE15EOF5VXDCUZhV/QC6SF42CDCn3pX7YLXLe2rPdaM3st17pseFFpX\r\noP+YLTNrLxURri95WAceIJCHNir9AkPqi8CLCZwqOA6Lbfc2VxOzLlAucYwZ\r\nq6uNonCxbHZr+KLh1e62ix0dU8J2leNyPyzZMScpWqQFsgSMgNIX+2k9HjqP\r\ng+AlTjV80retDAgNxHbwpeMEHOHdPw+dkypcL3Hn3pxyCtIGiNKQUyKUEC3V\r\nAKh5AvSmWYOMevxZv9BwDuf93OXDLS0Qu2HRGWCRIvwZvR79WNOj9KtFpOaV\r\nuzVunZD7ng8xEaHc0cCoUJwa03juykILk2A=\r\n=Xl81\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221117124640_1668689251588_0.5541271414388362"},"_hasShrinkwrap":false},"1.3.3-staging-20221117132132":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221117132132","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221117132132","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221117132132","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-VZO2pAlFUkMH8b4MtEWGDaRRbWM9nmmvbz+787kw+yCngfJmsg8GtrubLrcWRIWRop+a8Tbxpjgzg2nt9aOyvw==","shasum":"98b2d21bba0c04878982f491d741c9aaaf5c3382","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221117132132.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNHS0+Vq+DrgZrs/eQVPV1TvlG8Yc9Rx9LBnj4hikAfwIgEaJbfT14PmwZNNLabm7bj3l57Ix3vwht+FRuyXA+QUY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdjWIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSRg/9H1QB//g35WdOOoHr5ty8t9n6QlE8TZtySyrea3+OnthCgjFL\r\nyfJpMe6Wri/v2e1lkoX2fJE0vQ/Y9ZaXZy53E7etnIRrcAHT42JQ9I9hB2TV\r\nD6Wye/AjiDBMqNIHfcG82kGIzcGQT8XxZyLDF1gyHf4kVgq5ityLhj+gB1ph\r\nL24WBjJ0U6YCYCx6Dkq49WeOhm2vVMCbEwgZZBYtZoMLwBFCRs/b31cK5jI8\r\nJwIwDjl+MUAFDC8iIuy73oVkNU0FubD2suoyA8wWrssBOQuvQfcaEOaZylUm\r\nel0FT5qkybZHtFwq5J6CSkosPW1ctu4iun1mzArE32zqYTghZr/3wsxbMPkw\r\nzScv3papp/kvwzeEv73WbIGGoBk3W2gwmVvW5T8evU3vBzIy6FabD0FCYSdi\r\nwTE48+7+tiW7tOto0MwSSZZ+YVrBTRu/WfDFihirE1R1KPm9k+GJIL2NMHPB\r\n+D/v3ptYEWuaQutEG7S8bDMxi5ruebauV/9VozNX1AEjv26gjwZfUTvMMxGU\r\nmZVHU+6seNR8CPFznYKEPV32sVsuM1AvNQBawe7NUp3bzS00rgdvdlrK9CjV\r\n1u6hrXNmnYPCyiMVEQ36tU2NLrlr6fQwl0rxNSi9u+9qhJoo3/89oDUKcthK\r\nxTII6vp8CVtlz/pDfYNuTpBe8HjEFyrZGoE=\r\n=qH08\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221117132132_1668691336606_0.6378446174226224"},"_hasShrinkwrap":false},"1.3.3-staging-20221123105823":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123105823","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123105823","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123105823","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ZShVBoiUUnC7CE5GvWXNEYwsAFXDYCi5G0pJdeopo0jmqehLHPSa5rpWKgS1LvRkBrvCM9/2vbkPmCjeMao8NQ==","shasum":"cee518a947a6e0b57a6b7b0680fa2281705fa75c","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123105823.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHz3jjHCpVuCxDiDtjgZSWGA0JDc696d+sOpQk9qmmOwIhANHRbd3BVq/jvqVKfpeYGsBvPLLjgvPVjh9QWQilUnhk"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjff0HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLIRAAnN9263NcOifBFleBAB+IPhFmQ/Wsj7r6hGuA1feFNjs5nhFk\r\nTVShNuVmnNvEnyyVsz2eQarmwcrcIRCQX5A/1Y72n/A6Zq7WbXRV0pxBHjg8\r\nU05Ez4TLtswwCfOtPydGTj8uxFcxWn8sM/QZTRImKV/r69wdV5xs0Ymspt+q\r\nrUcmNMofv7DHDaBSzahEQ5aGmSb17d5iZb9iLNZmnCnceFxEB9QluuT2wklh\r\nYTBdn+VDNRjYhv0f1TyRWZdZBDT2AR2OYW+5F6hrbtmerfsQBlpMJWr/7k38\r\n2IiYmj0fhpWVMNqyUPtrmiJDZ1VSSrCzoSMxnQF+cVMwnPDV1zD1LyM90O8R\r\nA2hH7y1LC5TOH/xYlPKx0s4QP+U9BFpJxKNc3skiyfy4U50uTOpRGQ2Q+9qp\r\nir2OSSw1jQvUEOtmHtTAOmNPxw751weAcGgapdL29myu3gkG8/lWnd+dXx44\r\nG/BtzinSJ56I6KfIM7iXDkFJS0WvIlv6WXzg/hI+bKYA0nJziob/jIRhPiN9\r\nUfLTrKpbneiJfp8puiutIYeqx2mQhl509+V70a1+yANeQizlPly1nFYKx3os\r\n89lcVpuUML3rWR3xQ6I2a8eZ8OO4dhLafgPfn42nkesa/ivqH0oRDVTEo/gX\r\nurn+XYfvitzj83NOR1O8V9cEuMCRHXDCuFA=\r\n=Kr9c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123105823_1669201159525_0.2868621922811805"},"_hasShrinkwrap":false},"1.3.3-staging-20221123114650":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123114650","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123114650","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123114650","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-5AFje+jIiM6ui4G0PkjDcq1fRtZWdfxnKnwZ/bQ8g1pcRfh/ywYFoqcsgfmWjwZfW+/pZilf6Khq+N0nL/RgNw==","shasum":"374bb886eae72a319edbf5eb6e60dba3cdf96e12","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123114650.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcnv7s0c/W3A/vzf7WWf30FUbWYLzj5mVjeGx+Y63yuAiEAi6H6JNpvz6Ht8CQpAYXvnPHshN374eNbKv2xIETH5+s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfghdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8+A/+KTatV13FGMeYcLDJ0fl0WvlWJ+XxzENcjN69akFx7+wggZVT\r\n+jhVTLwZ9CkJaMLeGjZEXAG3vtwol2rifWV6gPhGJMXaCjyNCfGg/pXLlqfd\r\nd2lqoCNYtYcEOr65x1aqBay0HDr3Mc4czih5xZXRYPDveI5jaogeSjnw2EQ3\r\nniIriKCR2XWnGojvuykcUCAx8q4M3IUU6Aij1x96N2nGXb5czguQ0hL7MpF1\r\nQpdtnQzHHmf7VQ+haAFQ5HxlsLC3UeEpcGwMjzn4Cvp3UNlz8jopIHqmmt/3\r\nkzFaSfuOnlOwyzMk0xihfq4DzDu3MgMNk1zWVkh/et+Ffjtc9Qpk2aq9FW/H\r\nPGsGBKP2orwT9u0TMevYND9QC0DgZIB6AVSWvfvWH/458KZZA+CndKBRiL/D\r\np4Vs1kHPIw1CMQNivxr5ZLH2QkBYiZEYLKSxejAvKvDo1zjqYwWl344xbm8n\r\ng3UwO8LnO70XtYQzkqvc+0Y5UUBWiTxvME/pnjz/ZYqekN5S2i3pE9sXHOfC\r\n7HAqCAzLKYT3WQmfb3pCn3bBTNPItiMJAFok+3XJ7ERf32QPIATZVabXTp+m\r\nov8Xf7UWFpSyv31sQjlgtQkMuzHC7Iats0UDVh7s4YFOjTCzweoJAO4KbtMR\r\nHxCK1GK6nO/fHuGunttfPINOtnctrp0fTAw=\r\n=7HMh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123114650_1669204061705_0.1505542626959646"},"_hasShrinkwrap":false},"1.3.3-staging-20221123115753":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123115753","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123115753","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123115753","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-gACwNdi3muKOHi3pN2BXOU+p+FjDMdwrYUpeytVsxNhRJFqjknNWFeDbul1J4536ZGVHXHYv4CI8ZYW4GlO6Pg==","shasum":"898045eccb4f3599a69914bcb63e226cbdd89e8c","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123115753.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjoIvQd078jGC/rvLZlqJlE4Zi0f1cd5SRtFoWSOZP0gIhAPvJ3169O6aZ1OzyPUgzeGx+2CNETu3teCFXUSpEpJTe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfgruACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFTA//SsEVsPCe0gHBdFCw7TXFDbWecMFKtkXklDkfahCAhyJUefp9\r\nqKbpXcNr9ft2lZSus5KZEEyXwxoRSNnl4qNX4dNyRShL1KgIG3dIgCnu9MtM\r\n/egq0vhooCAL+o9wE/IPHptXRkERlSMh4GQdqboAqoxJWLkVZ+lw+NwYngiM\r\nNqX9ZPByfZmVFVDtdS47pebSmEtrWxGepAbFaBYSeMtvBXDf7a+JXpzq2hzZ\r\nlqSpdLXSdfzClR/+oeR2ARplX3L6EzuB60nx4CYq6F80PH7Mhns+opLna9N7\r\nergg6zCgaVWyv8HYzXDWg6t41JhIXrYYCQQ5xyUAg0kMysgG6ZFNtAb5Gu0I\r\n2SdTBtdmVblbFw2PsQOSKacrV7SZtCYcVxUMiBNumIQPuZcxsATdKcFaoia4\r\nmZJbaV7C2EJ1n+8xjRLzwNc+gs237rWAIAYcnFJgOBLBqn5JNkQ4bG3uKXUV\r\nzICidyXhaDhL+e6+7jBjVa02tAyaCIPDTS1s7XTGtR9XNA3fhykuWVDERwCQ\r\nFwSNONoaQ2lqnwx5FfyGCtbM6bnK+D+pT0dS6Qj20JW0krEH/p+AFLb/szt4\r\nyyBTu7GG+egpTHZqPBDTHH47b+g8yw5zx1NvaK8NZRRxAmx7B8MriVJVGnbh\r\n5zNogxY7BKzL9XDEyYHJry7TNsbUz457rJU=\r\n=34z/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123115753_1669204717722_0.0015592760590121824"},"_hasShrinkwrap":false},"1.3.3-staging-20221123122107":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123122107","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123122107","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123122107","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+san4oW3HZqFXiX5kBBSK8LqDSQD9XFkniwBZxnaeDWT80lwIyfmxxQ5oqS9CUiJJY5P+PI9nit0YS/MUf7ysg==","shasum":"1ec0468d46b9bb50f6167c517694ee35cf8fa57f","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123122107.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKfgWhHlMuqWgYIDFNQEbxzLr+g3bno2ZHws2R5/nwewIgVAz95byMRR1HDT8Kzv4gj/wdm4bsCd0mkfqdNdG0lMs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfhBjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWTRAAh2LRizCeNR93r6PVLrgbP0Qz+h1KuZxeZotNvASF2GUyBWCD\r\nspd0STk5nm40C7wpm4U3DHLxPbCu/IryIt1wiK63/c7b0PG9nFb3IimfjaJ+\r\nv5UQvUq7lb9M87LAlDXPWEO6K5elxnY44uDUb3B9hwLtHEhgdBkfbz2XNC6V\r\nC6wZn/yLU7vc9dn4+6RZp95Hc9azybLxVuS6RxCcYefETHL5TBYoH8fgnKv6\r\nEIVlSd7NFgnB4BKQqdFaeqrc0prHcx7TfbGSDxkzHeRPN0BLdKqugIn2QKpZ\r\n0qBwoVmrQa3CgfBOUQF0hLYZxzMVuL7h1CBXk4xiZA3FMDM6Jba6oy6ZTSim\r\nmqgIHef6+L51qMIFObXFM9IvXYjy98CPmYKR15miZS9zaUq7AAeTYc4ywjAC\r\n9opHT0eNoajqDgwzXQYRs6kODHjDMKeotXKT3smybdZbqxuP2BGEPVdHzT8/\r\n6RwIL4sxC8JYcLCnPdvOBwzPBFa/MeQ+Ns6cz/MekwMBWmgjMdX49mQByDrH\r\nMNo3MVZ/oQjB5X5dVRgUKXVrn+BW8j2i7OBeLLkU2QeeVH3gWzDeix1rappc\r\nhjYQWdDo30l1x2TMpSRhyoOwdvtX2rHdtcKG99R8x+BuO1j9ARJcw6Pvsb3u\r\nAfY+dDABAS+3mOOLCm3QVvUTThEgbY8wZCA=\r\n=2IJG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123122107_1669206115151_0.6381455732909711"},"_hasShrinkwrap":false},"1.3.3-staging-20221123153837":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123153837","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123153837","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123153837","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-WDuxKsj5Gr/2WAXIVAN0NeYLYORzwqIlRG31pML0+ThL5fBfGakAPMJ32gjCEZ+5t+Zgfn6lZ25jyByyQQZkKw==","shasum":"6850087e75ece37062ed22034280baf9506363e0","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123153837.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF2Lv3r287w0DPUz6ZWxF+ZG7Luy9IwOxALd0lMZSPEnAiBtUWlU+LBsZBpW9Gonw3TcxxhZS3INzbDdvvULvx/kZg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfj6rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSjA//UETumqcSkvBqsXwfgQ1sKgQRHN/y7F8O5VT/xbD8eshJ+Vcs\r\n28OOjUheElf1XpgUun5LMjTkXRsCUSa7YHEF/3isHQpCy9Ld7kIOb9EMbJ0M\r\nrjuiC4g0Vz0Tlp86URJ60x5+7QLSXA9nMthYWV9dT24FzB/6nHEf+a3KMgcl\r\n2cT4Dc5xR7IyHNoyI6TAQlVw1ZQbwheS+kPJF74FlbuEqOjiZ18kP5ya/L4m\r\nAAaW3EIlkXmBId43vtUdG0tzdpWTMc4K0i9wFjJn+3ul//ITXtYqtO4XxaZO\r\n4dHsZa+R8cB2Bbnv/vmd6PvIfNaU0891ej7MKYY07HEmLfrv8PurzfKQSSgh\r\n6ddLmoDuOAO5QUiRAI8dWKajNT/fGFsyM9DaSjwk/p/hmr/puFNdhcOGAqea\r\nWZUODIbT73O7hNkDtbnYfL8az/iSh4BGsILJH8o5kmPtJUiV5HCE2bncCRRc\r\nJ5eNZbF3miM3PWL7WnCDBzjn97hlgBod1d7DHbGEKAR/tJam7nBzomTM0kdX\r\nBF3AtZXHrcnj/lLJc3+FibqNiMXmlGuEWlD507TDAY6aSGD6bSYZPbd7/iQR\r\n+oPyLljU1/qZlZsB4/+xTqJOV1124Nify6UoEagBd69sX7R6lytTbrSvRKX+\r\n6y9j54LUg21QK0d43EDOus7QYTuLaeuHuJc=\r\n=OPIE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123153837_1669217963267_0.1482524635443334"},"_hasShrinkwrap":false},"1.3.3-staging-20221123154545":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123154545","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123154545","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123154545","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-KQQgmv31Kpv3oil+S/Ugf17ha2jBYnwpXBYJ685grcOoAfbjPJdh+LqDLbjJjzVUSG9hEpAWjjk7UanrIRoV/g==","shasum":"d70c47bb19a6572f7c04ab1f215c4daa9c096f02","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123154545.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBb/w7wOgcd50EbM47pJ7om0wDelG914mdlSbs5OyAdhAiAoc8L2/M4eL2hm/xBa8fF/H6BN3iu39FoD1WfIlGSzAg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfkBWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsxBAAiZM/UyHAF9jrvn1YsdjnkQkko5G63KPs8It0vekrRPJLHr7u\r\n+YebsHS/0Kq/xnPLIVfPtYU4VKkZzYDNQdC3y2t6cNAqKqZO3Repa6H2anH+\r\nK+NA2JZWdc/EINKrc5Ct5mHs9mLsl2HfEuxcuX9z3DXMzRsTo06njKwzQOsi\r\nOLdCkb/2/xU0O3+j4M+baOxFr1mk3dgnq7SuCLy4dC0N4txhT5l35aEkWsjP\r\nKqYgMAS1/zjYlsuE31s9lzDZIkxj8y/sA+aFRiO4YDxmi6NVQXwYVj+8v9bl\r\na4gsvJ26yC1j4C2423mcwK9r3GbpiiIecUU31wIKZ/Xy1skOnkD7UPn9JOPG\r\nyutAruZCfrY2d9qcNLTVntc49nBtBNiJo7/d68U7/sRaWvDwforJdZXpGmSR\r\nZbuiAIL423yOww2A1HQzlC3MNyNrh5kDSST2y8nnRTfINaZIzOFvd1WUVm/I\r\nLd5x86KtRGQtahX2rGZJEqprUmc8q1Vu6vb9b4Idw/rrfAT13QEYN4wGgUki\r\nXvGhzOhAEFSatX/EBAjd/7K+vpIFYgkEWUNQN/yWcM70beaj4kiSQEI+pfhl\r\nbtCbqztU4BcdSK0lfMEd0Oa+6gwhC2ggVhN9gXweJBxFgrgoPmBDpHm9hO4l\r\nDAKZxHeOamJkTVk1tzoCZ2a5ob9Fhwy7BK4=\r\n=e7yg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123154545_1669218389803_0.7902363862301442"},"_hasShrinkwrap":false},"1.3.3-staging-20221123160311":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123160311","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123160311","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123160311","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4Djh97zp3+HCexKt4dFEBKgn8OieEMZhYpfVPBHQk0OpNlvrfFoqN7Svtb1fgUxASwHooGImEyPK9mPLwW3TSg==","shasum":"0cb5049bd2c1ef6966a6913852ff45558ce1c015","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123160311.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmV0Nr9qzREuFE//N0hNvX18K6md9JDY/42Jw6rUmYNAiBcuTj17hvCxCP2xDFNRxOEj1Ubs+h1zfVSgpFy1Bv23w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfkRsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodGA/+P0RICg01baEcgFLxX0ykUPL8sN4IHmlS/L2HNj57Ecf39Ef2\r\nxUI4MbTRtfkudFhjYLr3wdxsu6ceDLsXXFfOcnXsS+KM4mIRqHzS+ItSPMnc\r\nKTDvLRIq95qd1dEp2GtZuBLaYxsEDSPJia8g5FhkqMavEk7k2y46HDcEl0CD\r\nTnGtRZMokB3/QpjR6BSK/iCmef+lQf+9C65XvffS0Cs8BUPQV4BtY3K+4ngd\r\n9LtPUt4PudXABvb4t1lmbMgz2BpSr+3U7gho2/6kh3qUnjGjyzsOiLaRoKku\r\nPZmDFCgbVKOWwTeWaX6fM8DIryBxre1xNSEr/R+LpThXhDDWWg5aGD2LEpIZ\r\nMYepCo4bD/9use1k7vkjhNtJDqj8ANifMuKZEQFhVOgCFPOAPkpS3nu1juJy\r\nVkne8PNa1CJdfl+9zKqnocf++lTNL5pdOh57R7564tMQ5tORwjAYLzmanfrI\r\nJV5LvaXKliGwPbIGXU1c/16j9kixhDnEPcI0d+DkQcWUdQwpG8CyEY0PFNnD\r\nDlyqB01qz7G1OTn7qrt7IHTZtxVwuU5m2PKZbbsVnqdKMv4BCQ8JyYn1VgXH\r\nwtTTd3f/YMTL7LIVWCrVIgivW7Dylewwpi9+Q+kiERPVGbfwjyJbPw7Zcc/2\r\n8s72JRCvJuzFKrp/4nrkRdcizTJaajrjKDI=\r\n=UUT/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123160311_1669219436120_0.9696436977355916"},"_hasShrinkwrap":false},"1.3.3-staging-20221123160829":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221123160829","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221123160829","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221123160829","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-MyUgVINa1GyCvMWWtX2iKdxvBC+C6SPw+sN/6l6J4U/weD050xUTvNzRwLjuWq2Rg2aY+a+ukpOWRqLmzgSajg==","shasum":"b8340302c07e8b1280876ecc2c5065b8e24c65b0","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221123160829.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFeX9x6KKR/dZKHvIDeLt2O6FVspK+CHU0XNc/YlTzl3AiBryxWmzgWgRs7WN94Wqq8ExFaieQYW92WBlln60AO/JQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfkWvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmohag//Zngu2k7wAE9Q46G8uzGzGzaf87g/cXwFSPshuiVzyhwzloqR\r\nYNOtmvThS4y/WIUD0a2/8HH+RK37BFOd3j0HXE++4bJzBNDT9fj4v0SN9PUt\r\nFkkZarO92lRONBOwnEYaID6AXp/lxP8MIGXnkLtBSFb+v1hLIDQeNUDytr9y\r\nEloDxvL+Ai194CDO6IpEXneaCV5Oic4sN7MJWzydZEVhMaAt0gw5smlSandw\r\nablRYnU7eZiUbKiaywuewxVxpP19fSWPjm4oWgpSKV34Vys+nC20wURR6ZbK\r\ndAk8dBu4429u+saK0HZ2lFDTORVmpNQJTHNecLMdjcoDaIL9QXSqzeXccT8r\r\nQFHh3g+sI0m4kWMn4YKcsTEPNXNpp1IDhoedSsk+LyvR6jcGjpZWQ9q+4AR+\r\nUs4WoICuKHTRPDxwhbkq72uwowDMd0wIc4eGGOTiocIJSFDnPLF7QmHJpI0F\r\nvb3xxFFiPlYIO/H8O6gYx6il3nLaIilyQ97+as9tnUJFi1b0HrvfICO19B0z\r\nFN1utNVgElY7a8jK7VylZsIvC+x1blgQrmGdsJ80bKJL9iOQ9YF2WUSLUl2d\r\nRSj+y0HhqXCWyzsq3rffz1WMob0ZV+Mjjyu9n2UTsmFjrsdrwRhd24GSGHrd\r\n/MmnyWr6uxl8JwDTCMCpLx/pit+D7HFKV7s=\r\n=Ewcj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221123160829_1669219758854_0.3137704147026654"},"_hasShrinkwrap":false},"1.3.3-staging-20221129095119":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221129095119","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221129095119","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221129095119","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pt7H1yr03/3UmrMbbVBSnQs8kvRvU8dPKp1pgszVlT5wNhbNz8FqTVai/E0/X/8aBJtmR0rz269nOBmecAoiZQ==","shasum":"20a037fe17a1fdcc85a666be62fed3159103175c","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221129095119.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzUhOJPO8So09eB1tNcfpz+p60FqlfLrfy7DcLJ2ecHAiAg93r6d4s9HHZX6MUy5JlrJg/dHGEAJLr5yitYLorxCg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhdZPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXrBAAg8y3KRFACsWPETT9wBW0V5m2lY8cqjIWhUNI7wugbZ9o1kjl\r\nd2uf6G2zCJsIgaCSVPGBOPpZ9Y7syWw6T6BueZlZ2Al3FdRD22O0gs7e8mL3\r\nmfJP70I4ePjM7JQcH3zKB3KE44iSn8JQ70KIo16lscBSGVJjyRtacd1pxbXd\r\nwZsSB9/Yyp9egc5MGW/VjNlLrMrrsmBwf6P3K9kr7nB5OmIYr0ZHuoHs/BrP\r\nZnPU2VP1N9BKr9qcqLMp8fuNvw1F/bCWZLfIhDEicq8PQ0GBEtkp4WI3niuD\r\nkSOqM7e0nnF0k3Zkib5vhS6oVskKZK9pwSyBT9AE07kK5IJejafDaFDAI1wZ\r\nnR9WCStLPAUhd3NN76UBPFkYCsVB02xBFA4XNdMSMx8tfAuHGaFDTWTe2h0g\r\n13P7lt3MrpL/KpfTvc6hW82zMjGo3wnXewIRYKINI32uLEV8cLy13VTZQj49\r\niaxWm+Oz77vXrc3Ar5eqOZTnICpIReQe1aDkdTjpTYwd+4rIVPzYlruCMXSZ\r\nDSigkIlKWwkBS4M9ok2lMJRN1trs0Xzk9R2K3M1/ft3NQNaCef9ZzQyx6xMX\r\nIfVTu6BpdtjneVM+sRKmbQCEqvvTFFH41QfsnSxh3zssw0tVUnqjmF8Vx6HR\r\nIeyA4Niocb/kqxI7LevQ6J+BHGiUrwiO8es=\r\n=FbWd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221129095119_1669715535469_0.7815674296128206"},"_hasShrinkwrap":false},"1.3.3-staging-20221129101347":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221129101347","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221129101347","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221129101347","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-3LTCD2j5y5rsP+kUoJIxlUwHDVYxQy78LCuwq3E+4UVn/Jlje56L7RE4t8/N6uAwTTyq/4oSqB2eb7msd7T1fA==","shasum":"19ecd1da06f9c7bcd438dbe67b04d68d7f938215","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221129101347.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4QRFhRWrIE+nClX69/4CQYGSFil8bJBydkpC6PSAuyQIhAIrXUD90iyWG56OkHi3tL7uiKz0HAiBjVxWdXW7YlPYl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhduIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWvhAAgIT8HEDUktOgg/yKw7ewAKGSw6wO1ekNXO2CS/aW2XeNRxF7\r\nL7G1h4x9Rr0L6NluJkpHS9iY2kC8DzlEy9E4czish7oZlkOkhLlt0hJByR/z\r\nP7VNkt3fX07VeHHd49JcyAoRcuW4CZsl3lOIuwPS+Y0kT4Rvsa1SD4X/tEJ2\r\n2Br9+/2EFB+64x3MzJZ2aaW5r/UippSQVK+M5PJrIWkSSCh69IR5ZryI9ZT4\r\nVoap3xGG7Hm+N9X3IPaoz3zv0akSgrf5dxG43kNkQdtTyL9U/rK7VQ1Jw0ke\r\n6Y0gaZJLsyB8smJ319cm3o/125KjJI7m2I6hpLFPEzhSS2WZ7G7w4xA48KbN\r\nurP5Yoy6MGcEcOutcI/VymLbfUTGRhn7ncXmXLGu12vStVG24xyWO7Ws6tps\r\n2UnXvbj2HiPgQcraov6qnNYoflUuPNS3sfkvwpsu0keMGTzDjEUF4qwL+f+D\r\nHLF13K5sKtKaFXlfX4lWf+ZukNwNEm3V1u0DR+hGlGJnvcLNX7kLoAXh8Yjo\r\n2I1TFb8vq+qSR8IflkH6M5Y0QCgFHPRC/ZuRmuWJeh3OA40wdpMz611nJMuU\r\n4wacnO5ums/z1FA+ZnyUOx/UZnZd/xOkEvQfR32JUg+60YjyI6e71chCgNzV\r\njOksh2wI47g1qCQGkUmBtDEr7NSduU5SW5A=\r\n=sxUe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221129101347_1669716872625_0.32253734144938195"},"_hasShrinkwrap":false},"1.3.3-staging-20221129103019":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20221129103019","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20221129103019","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20221129103019","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-vQE8ZHibMYhyeAP615i5skTY3QuNo/RtVZknQor/WVuX5Kp1Wrb6OgPj3mmPMH1Y8T9FoNuim5UHCwBJE3YKew==","shasum":"2626118d06317f63d0dfecf3ad107e14ee534227","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20221129103019.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYfxDA40VMdecdcg/jnQV/8RaYaqAKbYXBI7EGLIG9NQIgQJzz40m/kGkMqFMwyOZ7yLkaMooC/Xk1//2kvDkiwiE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhd9rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvZA//aUkrm+slzAgIIVSAway95qJZUB8/yuHhjkpNDkbDjnp2lUDo\r\nO1btcVps1vncJl4jMo7jI3OnAXv8zfgsdbC51BJQGSRUtmGxdOD9YKFzk18M\r\ntQ0o8BZNjixRNCZeL5oMvYmSotOfCOFEJ6w+JuWIQx+BcwYHeW5kBz79t+vU\r\nfhWcbwmCvB0xIkuqEIjzmMbBxgQ6cp+pzGEhUdxcvFmAT2asq/ebapu+fgNN\r\ntwI7I/hTrx66eSnRLWyv5nhGKkcUC2AWwY+cmswPllK3YPhCPYTnhlZCXNV0\r\nQFr6EOYkbXxzIVGEH7uY2i4tRyx0ydsNTesEGOe9PB1GzIFqSia9BrKRouG4\r\nepLY6BeqAqj7TxOBm0oTdCUQijyGjsRKgAUZtvOGVXcuQD0a2TyR1xzx5OeA\r\nHilJwxFxi0j2vWXlZapGm/F2SJB+1A/IceXSR04Ljx1th42W4nTJ4bxQbaae\r\nI9Z55o6bWrXIMpFJXKbbj5nx44tCPzwoOKxZo3SDnqDSRcXe/ldaea5GVSXj\r\nRrhnQxKnEuTlMAf+lyF7u48k/gEKBY4CeYk+MgPq8Lm0d+QAd5EO90wXSKhu\r\niY1Qh1BmiaZfdsUA8DVDD68PBHhpHsNfyfW5lYaRPLsApetjNuM/PMU+Bz2j\r\n+qtws3utoNukHqz0Tx3FKJ7uYtHy85J3Fgg=\r\n=Bw00\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20221129103019_1669717867007_0.4537786248366442"},"_hasShrinkwrap":false},"1.3.3-snapshot-20230111104551":{"name":"@pkorsholm/medusa-js","version":"1.3.3-snapshot-20230111104551","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-snapshot-20230111104551","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-snapshot-20230111104551","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-mGViUgSDmqdE6Bc6dLjLhWp1DZW1ma+woI/D26f3k8RW9ydLgNM+tRyI9XDITSh+uNNsoRbPblwEyF60ux+rDw==","shasum":"4a8f9d18a653db9afb619b73447c742807b9815a","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-snapshot-20230111104551.tgz","fileCount":164,"unpackedSize":375021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf7W972wP8PARydnA6M/dDZA23UKi4/jOJEyxk8ekDiQIhAJfbDRIlciUBFYhgPZghmRv5XP+mo1O0OgYZ3jQy/uvj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvpN/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxLw//XsMd/VLcOqZ1V6bTHyCQ8BM6ewmccdZUug+RK21hPeAihBMQ\r\nrC+mTrcu2VNnCTOvHeNLg74GT5pjPIo3btoBEbg/GqLxORp61yMfrUDSmPgV\r\nlU6d86phmoUlIe6hG2JBXRl2liukcToFYHW/a6hYBov1/MzM1rZXHwIMQxs2\r\nji64Xft0cj62bLFgBCu1Aj/7xojgyKs1uzehhBb190u4qrYwKKByU/0YYlEH\r\n4FxsXVazJbqNquMWLRrMo//adz10uWQpFF6PTx5bU7MoIJHATd7jMx2N1dNG\r\nrlA4t4Lidr4PoW3hVEkluHrQ7zqt7spkwJFloT9wruqihqotRBdkZoX8Jm7S\r\nCDbdfYm4evacuc1TPcdWlwcFeBbUoGmc0Te+dNZ337WropPvkEte7f10BeDA\r\nitDAlVnHUl/8B14kWbIVzEdLfQ48QUlzKXSphRh26rZc18S/ayYdSlrTGVdY\r\nRCyF0SCw83XtSHvdXhWw2X1IZGIgKqFwCoBFQlGP1ZG+skbSDJTaa/O7RLdY\r\nTePPLjOz2QwkdEpXoEzz5/cX6z0HZufLn9I2aJUjdqXvgJQufULotUdpWfZ4\r\nm97icKCz4KgrblShWAROyM5ZNu/vXVo173W31Sp891/elP4YtcBkfOsZ+9r3\r\nT8R9dTgsrYGWmvipyMQw7tpK3bVklVgU5bo=\r\n=FRPy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-snapshot-20230111104551_1673433982977_0.7162458691907818"},"_hasShrinkwrap":false},"1.3.3-snapshot-20230111105607":{"name":"@pkorsholm/medusa-js","version":"1.3.3-snapshot-20230111105607","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-snapshot-20230111105607","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-snapshot-20230111105607","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-SX9Ki6qdzZIKitiUx8Bm59CaCsJrgyzBTKJHlZn3DD1dBasLZIDrkrC8EBuUeZrGbIkcgrjW7mJQ/Jw7CKiqYQ==","shasum":"efcf6d4f3929967af3a83c53d582126c809b9131","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-snapshot-20230111105607.tgz","fileCount":164,"unpackedSize":375021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuaj5vp/aBZxHGMkhhlRD11Y1Prnlv+dj3AVh17CwErgIhAOJZj3+I9cSfporLAF9u7lymAR+OeE8qJzW16dCxHwbh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvpXlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr89w/9EpCx8IRyo85SorstQQERpOqlUSGqOwTBIXdTgFCiU2yN3yYG\r\nA9ZHEvg78aMOptGfC9RX6yH/eF57P8WCc6057LQibxPDXWUTCqG71NSckMWI\r\nRD6l1AFgOqFqxQcvVPpkLGgIAZniiutvjW3WJbprSGVbsiHWlH8ktqbqrHId\r\n1ND/Dm1ZRRkp1IpN1Xm4/PPiuCjJwUfJNLF2kCeG+UB5RA1zVOVpieOx36fk\r\na7Bt0chm0ncdov7nFd0+fIJggoKxYdv4EO0h1gMsIWKT5RXQhScyCBfODDOh\r\npoAOkS4/Wvx+iHSqQdpHvfiGMtEH7EYVYPWkQYjpnuk3A0+WIzAJNjeZ2LDT\r\nF5pUsNX0OVeBBqSnR8/8VHTopUx0DCfXlYCX1CLR+hjORWXaEC0DCB+ZhPRP\r\nNQbQWSiVw3yUN39PFVOIGFB9gMfhD3/1J479/OouDlPJqDuUppsnJeGBz4ME\r\nxDY9OfSJM2HazaMq9Wi7uVI8YRGyjyJ9ljj8tbEY/B3kXfC/sYuLExcQkTKG\r\nCDtP5f8FEap5XNgvhTjebCTkTMRhgwxpj2A/NXvrtbowbOEmpplkiQg+Y5mf\r\n87XsINnOylaNMvqsC35MVUE1NVypoZkKA/W2cANj2BL6FkAuFOi25cK5E2iA\r\nPGpaHcK3eZa5z+DUfe7fxREUhCb55iJ4Xck=\r\n=cu7r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-snapshot-20230111105607_1673434597557_0.3987328385079263"},"_hasShrinkwrap":false},"1.3.3-snapshot-20230111111223":{"name":"@pkorsholm/medusa-js","version":"1.3.3-snapshot-20230111111223","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-snapshot-20230111111223","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-snapshot-20230111111223","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-9j2QPrbtMzLz5Rt3VwOFmrc3cgsf6bMAIvUHqZ47pagTA3v0PiCTqLJEqtw7XeUY/hZtsWYRVfOrpsa7SnW1Ng==","shasum":"987aadefe40f2c60def25dae34d2a01c7236a660","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-snapshot-20230111111223.tgz","fileCount":164,"unpackedSize":375021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/bqTDOykIbo+LAPMGB5ao1o5IZvYYOO1Z/pKKJ8l4wgIhAPehwovWO4W16e9a9Zeu3BweOYYtum89I0rtyTzz5ulo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvpm2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIUBAAk3JVNyH1MIMYiw7/RPAkFG2YLLwGvggvkR+sNsbB7nPKHTrY\r\nWgJuBiM6urdmNfbkNLVYb94SAGdlUPXlY91docFbwT2ch0a8ezA0aKZMW8Lz\r\nG43galOqW3cotdVZyMVq0ewIZJkZ4DVYBo5J2/dkBsIfGioZ6kJ+ur7feSRm\r\nx2+uXnU6c1IFX9KJy4YN+nbJy+X3/NmVyIK8Y80tZHetakZ7eP45W10Aicr6\r\n/TDRRd2hcEBigs9gH5mFV0Vn/d04bLtZyOYM5UPbS9B7VorO67EAWMhK+Okg\r\nUERoyJKHJ3qffwAZ+O+K89xmNr7SDK0r6lF89FwkJBNL0fv6lM3/48dwt+RE\r\nOEFev04j3VYq1fecX44iLN/84BwOWOARKg2dOwvPy3eOqFQ+ozxhQG0ubdcs\r\nKUMLjwgeoc3BMH0Y1WzD5OOp6OiRByWxUUfFHoinum7fulvxoylgR3au3tx4\r\nekfDXiWun+noZlqXU4mJweNSt2nZr8sVSwAYa6/kQBDAep9Flg+tmmUR1wg+\r\n/jB/88V9325MWX8mxS+2XfERaQ2qnOzDD0ZcfFmk+003ntMYImPHz3ZnB7Yj\r\nJZeLHCUVz8ZyxZHj424TIqFntsi+CnpwwK6CsFqNk4o0Bgsdu3fWAYshcmpn\r\n+3Z3AENuoV0mHUHORKf8RlHcA1FQhD9FiDA=\r\n=1/0D\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-snapshot-20230111111223_1673435574593_0.4371835556793626"},"_hasShrinkwrap":false},"1.3.3-staging-20230111165320":{"name":"@pkorsholm/medusa-js","version":"1.3.3-staging-20230111165320","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"1.6.2-staging-20230111165320","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@1.3.3-staging-20230111165320","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-M5bzVwLoImdq6iIvhcKPMCfInhWeD+OxDmSlPzHPCnRnrKN6LZDChQBOp4okRuSlclDimR9tnY0EiwP3+C/5oQ==","shasum":"4ecfe53f714067fd66c863ea6fcf0ce1e3061d05","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-1.3.3-staging-20230111165320.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDc8rzgWr2fujFYzLELvlcBsm3t5klVqBFwdh8fkSXqVAiEA7p8VqzNCNp4Mfz+FC4Zw+y2GpX3ZL6ERNMxE6OlyEBc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvumtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpa2g//cWfPBEpC4cadS+FnmUpx+DWihMU0fqM/BNqVlh8qGZY6gmG/\r\nqpcPXhXuXv85lsqaLdZm1orcZDtL7hPfkvziC24lPSyEnIwd5wNFdcHd6ki5\r\nbm5vPcuSZk5n/zCfFVAxHJc3Mv9z2e/DVADk5AkXtrIOO8IkGLpGqLHtLmYR\r\nDKfVCmz12WSF6SufBh3flUmrYNnQWcRhEpL5VZ6mjZIfiGyrV8axvS6JPPu4\r\nN+pXc3gE1XKa7zqbvYbjd2qbIBIFxu1PT5ZH1YFWg9mNGVpErhObTiaThgdD\r\nF4EbTz8q2XOckmUrfZwzqdVUO4i4QXgsi2SOcM9CGgBqUsKFkoAGWPKkjobT\r\nBl8zQfJAIZHrIPKYV/bVO/YIOpm1XuQKcWkTLML+W/wHzbFLCJ3X4Iwwlv0t\r\nTh1+lacB1UhCdTMwiTEhAktaZhXDnaHuR+wiSZHU7Iim8E12KrMMiuTr4+KD\r\nzVzfSpo7WC5R088ASbVkj8pizJdk8DL6VkO2XgRAFe5cCFvSDQrZxwarxI3N\r\ngVSavnSb8DyEzrvz+ORdURrbrkyRojASuTd7dTa9kjBL4qAWV4Yvg+ahVkLf\r\nrCpvlzGUtvkKYGsJIXIvCyYDPHyghbnmrhD9M7clzrnT543T7podoQ8ricwa\r\nww2fUbpti0Pn+o/+LgCk1iduQMvvkaARCeE=\r\n=K2nm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_1.3.3-staging-20230111165320_1673456045585_0.3151529566124067"},"_hasShrinkwrap":false},"0.0.0-snapshot-20230113133411":{"name":"@pkorsholm/medusa-js","version":"0.0.0-snapshot-20230113133411","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-snapshot-20230113133411","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-snapshot-20230113133411","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5Btm2TeYLMLvpMghFpk0ivWnw2UeiZCaCPzgbu73JbdoQDrWl3M3qfDbBVcWBSNPY7dESjsebJUEN/HeXPHccg==","shasum":"af86e882ef04491f0e06f3901f8fe81582c6e3c8","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-snapshot-20230113133411.tgz","fileCount":164,"unpackedSize":375021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE67chUTOldybxX3gVi6Kw+0/s/X/9y5lQZAPC5buS0kAiAkszNcihdVpTle5teCYbG2j6Zv2vFu8biSrQxB6ZDs8Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwV3wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPZhAAjlLhE+RbgOE6aD84OyQpKn285ZnGE2u2rFiz4kiyrXYBsOlw\r\n21l6Pa5isduxosGy2A4H9zuus7h0X3FIOYLpKitzVOIwrADVI8IObLArVZDJ\r\nvZMDOEUiXeDWnqaOMN96mxICznpcMGFkL/aKUPiNZOsub3QAaKjeljOQLylQ\r\n7tZcVsaSpDIRVL4hOyWQH9XuNApZMkvcv+sdZ6BnEZpmEYI6NEoKYbNISBsl\r\nDwE/KxQ9mWrsVn1+aunjXGEE6UYGidFj4et6DZRoqryK6pRv52rzxp6IEe45\r\n8pgk1ti9oCqzyIduFk9aVkVTPv/FrI9KAjQbp/j5y6n7p5C3bLftTaucP9Ir\r\nJmsRtSC1y8+h7ewMa42xEIBd5w7lKgMS4sn6/2vp6ku7cE4FADaAtdVeK3Sz\r\nB5PijGpIaKeNWD48Du75UpNuxAFnYWjgvzy6a/o4/QNL09w/vw0Tc4utkAWE\r\naGIn0F7kEDnECQjSjLmVN7VnxfyzQky4wsmre6LRIW/4/EJGeMPY/rf/LIBA\r\nVKR5S1g3oeeA+OkY7n74phaxOLKaE51Ps27F4mNTydv257ZUz+IWM1MU4PAc\r\nTTRSEruZGIzlQOyssafUynVk9dvtGFlbh7SM2hAnRrJCrTd5Ml2icfBnhtEQ\r\nquyp0i1p1odvoxU1cdxtBqyzya6f1XFX8Xs=\r\n=PBOG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-snapshot-20230113133411_1673616880306_0.9302280083098355"},"_hasShrinkwrap":false},"0.0.0-staging-20230113134617":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20230113134617","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20230113134617","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20230113134617","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-K/CbezHVPXCaSZf24XzeMyt6qMIUs1fDFgK4EoQXfLTUyWKVLVlrsbRG4CY78rosbOI4M5xFh/xuUCBibWMr/Q==","shasum":"d93815723699afdbdc0b14f72287868fba24b004","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20230113134617.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCew7HookaDs38rTV24T3F71EPnWnCO5MV8fEJNqQzOAgIgH8dCNqYm0/k46qFevR7N51Tb++Xgz0qDslb1yMobQ20="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwWDGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrxuw//Yqd8gC801zHPOwtC9oSGQ4aF741iUzwCDNG6lUBgU8MEFD79\r\nKu2LPKPqK3uZApfsmRVMXA9LhpmE4QlLmDLNBFxZ3WzYKnSONix1yTgi5ffq\r\n6ei6Il5/qiZPcuDF6uN2o+KITI8KkGgDtT1+IePPvA9dk3iKvhaADc8ruyYo\r\nR8DJRy/m/gT/04hHm2DUzCsWYB/RivR+IutmwsK0274TMnlsACB5dmJ3dlB+\r\n045+0VRn7EjXhWebBEk41+7xqVGghoQnbfsSzQG2vUHFaki5rmeIN5LMcTys\r\nltnKLJfACd/cakurfHxlMgwyDBH83BKD7YgDM9WRAmMOoVTknTdAOyzWGwN4\r\n9Arty1ryTYrPss3PfIejFm341guKpC23efMuK6g1DnGsu2WSBIw5g8/hlQMf\r\neDiqJXqnR5dtOTJV6DsxmcEAUj3ckbWlqDHK2y+Z1QMC43J41hUrLoSIfbfp\r\no0WjWRCQCEHSc/x0zIoOzjoQalnSc8+9ZvcbMNWuoixmI/YKR1q2n+FTH2Vy\r\nsx9hxTJgXP4Vo0RNoGrzusUjbeJL0urMuo4qCYo8DGem1ZuMLu/MoB5e8PmW\r\nqwi81P3CHibFtutmAhO31Z2lUzbQkVgvFdeHFUs69Czb27cF1T3bqxcvxBT/\r\nABsAl57drkxas3fLyOuanyRM0WN1Njzd6IU=\r\n=wAVW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20230113134617_1673617606624_0.4709217230891545"},"_hasShrinkwrap":false},"0.0.0-snapshot-20230113134616":{"name":"@pkorsholm/medusa-js","version":"0.0.0-snapshot-20230113134616","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-snapshot-20230113134616","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-snapshot-20230113134616","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-tOCmwt6OHvWG8J6MPolLIPm8LxJ/q0+bTXuSdmsccP3OwGGN7HOk/DIVEVeoFN8qJO9Yf7o2HtsmtLLIVtsF9A==","shasum":"6e766d5334885f5b773f9200945c0f0f463fc189","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-snapshot-20230113134616.tgz","fileCount":164,"unpackedSize":375021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF51hD6NbbOmrTqz9zjz/FgeIv2g9anNwkx2gW5d03Z6AiABDU6qPFHTz10JTm4w+ash1NZwO+rDi+EMBthKFsKfWw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwWDJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Ww/8CE/AQO96TwEyaT6csPT1fJ+y0lEDSkdA2w+oZYTd27hUF/RP\r\na6aLcvExLWkGjfVzQTe7rHtrfqJFtfEpJxDrHOUAJS8OKoHfWSokaubwalsj\r\nLp9KubOkcS9xpIhToNACjPGAP1mH05HmobIAR0ifKXXpZKQi/wJb3UEeDvZ9\r\njIb2+QCIbdJvA1D1HYkb0nmUQTbUCdV8RvSXiENiGRoH3x7cksMoXBP4kofc\r\nSwiYXlX7LCSvnULQGGUdeBeNlI/TBDz7W8HDWxlqR8unP+hhGoZPnsMcGVqf\r\noVvHJk6uUNJCnjO8Mkf7MJ7FukK2YVbItP2lLI/qCrM7X9zmsH9WchzEl5Qp\r\nuykPNpspF2RtO4NXRdIN+1dqcx34Vu4pg5fl13jZzwWCH01dlFRRz8f6mDtz\r\nI32crSB6xJ4lldFfRkWWjv3tbi4nUlCJbsCrppceCi72IqWm2/VWgf4PfjKn\r\nAtaHExISbNwAdry5hJybEit/GRb1+jLXu9RemPU51e+CUFaN33OpRcjB/Pre\r\nGNKUjcAwHay12rlDrGZzTVD2hEKJ6JNJ9RmAyEEfMQUPkuvyCZmzs7+uoAPK\r\nWR+f/ayUeVn0ZFwzF0vpc+DtWFGU9bwZGBZbbEPfDd4+OUWLoEntDNyLM3E4\r\nZBaRiqjnQadfoTM0SKUag4/nahcpJF86lTE=\r\n=pJOr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-snapshot-20230113134616_1673617609024_0.08758982008935678"},"_hasShrinkwrap":false},"0.0.0-staging-20230113135316":{"name":"@pkorsholm/medusa-js","version":"0.0.0-staging-20230113135316","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-staging-20230113135316","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-staging-20230113135316","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5MlCAWdIeGMxWWopJhI35mEu1oiif6BDjr0ge3nefNyK8ySjsESAJ9J8DzJ7/QrbNEVuP1fkbMpfhdT69Ujgew==","shasum":"50619369e2af494be86c0f15f6407f235258aa91","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-staging-20230113135316.tgz","fileCount":164,"unpackedSize":375019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHr21GENLai8KPhBClKs9unLjL+jGqTMTU7d8jGqEuuQIhAPKR58uV8h3gy0SgCInCoaY6JAKICoKAJmivNG3mT4SG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwWJqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoj5Q//d6VH95xux63JDJm5gB6HWSQ6Asi5Lj6l7U4BwY0UuQCN+g/E\r\n63gwx2q10T1Of/Mygg5l/U0OuU/Rlq3tr+YeGRF29zKkU0IHWkcQCHXXsCvh\r\nEu6w0eZcX+izUtYaApmwsIEl5FRsQD1tjPyKnXY5IlSWyiC4xYzBc5Ywu/4u\r\nrQf0a0adv0GQfuKF1f+ysgQ0SIn73Siz7zLfZM0BGLnxDs896XWW0/hgbRr2\r\nsroTCayfu5xXg443Pyk+mZHB4jsznv79r6kqxiCjEp35BugLJ4T1Mg/9keJq\r\nQ0Fy7K1gPHXpiWwK1XZKc9wK+soI3ap+7yV63yhNm7qhtdAeN4mv0xFGJk9F\r\nvpR1JHrqYQqdtMKGOyqRTeNBH2PqrTqcTJ4fIZ8sgITApV9w+7Qzsgyf5g4S\r\nRaisGwBj1snZce8b5gt7V1uECAdyX63X23mKlvAkWNPmpvPyH18nR7Fv9UPw\r\ncan3YPj3bIleqDakLl8hKzkoKmw0K/FgS9TL4TOsSmtrNlHvbNRx6pnsifPr\r\nJU8nmdgolJ3H8mg8vv1tVV2FcMxbYTx6pmq4H7MbCSq5RipUHHMVMVn6m2VZ\r\n40iL+liDGxzK0nzrlBVQM1BVWw5EJASc+ZxldZrcIK/MIj7pqbyJ/QNLzszA\r\nyg+3g7v4AuufSYxHiaE8WIuDSIUGgUqbwqU=\r\n=6Iyy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-staging-20230113135316_1673618025795_0.35106890753102005"},"_hasShrinkwrap":false},"0.0.0-snapshot-20230113135425":{"name":"@pkorsholm/medusa-js","version":"0.0.0-snapshot-20230113135425","description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --build","prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests"},"author":{"name":"Oliver Juhl"},"license":"MIT","dependencies":{"@pkorsholm/medusa":"0.0.0-snapshot-20230113135425","axios":"^0.24.0","form-data":"^4.0.0","qs":"^6.10.3","retry-axios":"^2.6.0"},"repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"devDependencies":{"@types/jest":"^26.0.19","cross-env":"^7.0.3","jest":"^26.6.3","typescript":"^4.1.3"},"gitHead":"cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e","homepage":"https://docs.medusajs.com/js-client/overview","readme":"# Medusa JS Client\n\n[![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/@medusajs/medusa-js)\n\nThe Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.\n\n## Documentation\n\nYou can learn more about this client and how to use it [our documentation](https://docs.medusajs.com/js-client/overview).\n\nTo learn more about the API endpoints that this client allows you to access check out our [API reference](https://docs.medusajs.com/api/store).\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @medusajs/medusa-js\n# or\nyarn add @medusajs/medusa-js\n```\n\n## Usage\n\nImport Medusa as a default import and initiate it:\n\n```js\nimport Medusa from \"@medusajs/medusa-js\"\n\nconst medusa = new Medusa()\n\nconst { cart } = await medusa.carts.create({})\n```\n\n### Authentication\n\nAuthentication can be achieved in two ways using the `medusa-js` client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.\n\n#### **Using API keys**\n\nAPI keys can only be used for admin functionality in Medusa because only users of the admin system have api keys. To use API keys for authentication the key should be used when `medusa-js` is initialized with a config object as described below.\n\n#### **Using cookies**\n\nAuthentication using cookies is done automatically by Axios when authenticating using the `auth` endpoints. After authentication all subsequent calls will be authenticated.\n\n_note: Cookie based authentication cannot be used in plain `node.js` applications due to the limitations of axios and `useCredentials` not setting the `Cookie` request header when `set-cookie` is present in the response headers. For pure `node.js` applications use authentication with api keys(see above)_\n\n## Configuration\n\n### Initialize with config object\n\nThe package can be initialized with several options:\n\n```js\nconst medusa = new Medusa({\n  maxRetries: 3,\n  baseUrl: \"https://api.example.com\",\n})\n```\n\n| Option       | Default                   | Description                                               |\n| ------------ | ------------------------- | --------------------------------------------------------- |\n| `maxRetries` | `0`                       | The amount of times a request is retried.                 |\n| `baseUrl`    | `'http://localhost:9000'` | The url to which requests are made to.                    |\n| `apiKey`     | `''`                      | Optional api key used for authenticating admin requests . |\n","readmeFilename":"README.md","_id":"@pkorsholm/medusa-js@0.0.0-snapshot-20230113135425","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-LPiEofLfxdaTNbIlcZMdNUXmJdE1gnvXOVRHejJwI1IK/onS7DII443TrFeCCyRHUFtl2+l+ox7SIydI498HPA==","shasum":"45866086e9cb78176f7c3f5d9628d40c042efb32","tarball":"https://registry.npmjs.org/@pkorsholm/medusa-js/-/medusa-js-0.0.0-snapshot-20230113135425.tgz","fileCount":164,"unpackedSize":375021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6Gb94egtk8PAe6ThgZSzkrAfd0GqhgQLeLkgDXmtIswIgLkNSadyWtED4c/6HVVUETjBYmzwFHBhuc26NYxKy0SA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwWKzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8BA/9G0oR8oLhT9qNO+sboKfa9qd8d6rj7e4UrVVXKThNLRiEelPr\r\nP0O1gJCBrfmfOTUe7BbRdtnAcTm+/vlfYT4aUD9/HG/5tJ33N2yYaqCHO2Cl\r\nTWXmy3ALKeJyyE66uuRlXee0Butubowxbkaqs5T7p0dHionrvehwIfcYlw9n\r\nugnH7Ad3t7EoamMJhw7NRLWBkOmLLeVbjhiYu3nMHkrYo+C4MeBc4kaO8eN5\r\nHTBRqrS3nmUrD7EUozfMEDXvxfATaurn6ISrQR+WevAhPDPWuKWpfLDgQMLu\r\nTh0x8dG+XY8n7RKaZwHwY5n1TxZoe8fNwxc3rOZnMj4g8kzxUz3cPTYGoIo0\r\n2CPy6thO10KcnV7RDxe/iXN2/BDXm4dNO583F5sw2oXbb8zwROiS31p2+wXg\r\nxEzvyhkpaddCTVaYRsCA9oN7pRRPPvFaiqycdKkqZNOA75kYQroT5R8a3A/T\r\nTvGrshihs2RqiESwFcG3QIeYJy872xgBXPwoitL7bapelGE+1kPuqe3vPNvo\r\nXL/uKQmxIRGkLRXHIUGW8FoTW14F+hOZDCCy1ArnDPgNnF3GUcoSFyxsvtGE\r\nIMBljIGVmZMku4L2uHh5aoIL0c5Zdd7PFusOO0ur6LUP2hr0YmVFKOwerViM\r\nYl3B754gb52jwfJ1VADeHi5beJRw35N/YHg=\r\n=mCm0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"},"directories":{},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/medusa-js_0.0.0-snapshot-20230113135425_1673618099035_0.49204078355890446"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-10T06:25:03.141Z","1.3.2":"2022-11-10T06:25:03.549Z","modified":"2023-01-13T13:54:59.409Z","0.0.0-staging-20221110091025":"2022-11-10T09:11:39.644Z","0.0.0-staging-20221110094848":"2022-11-10T09:49:19.051Z","0.0.0-staging-20221111015503":"2022-11-11T01:55:34.339Z","0.0.0-staging-20221111031833":"2022-11-11T03:18:58.118Z","0.0.0-staging-20221111041034":"2022-11-11T04:11:13.706Z","0.0.0-staging-20221111045920":"2022-11-11T05:00:03.771Z","0.0.0-staging-20221111054908":"2022-11-11T05:49:37.267Z","0.0.0-staging-20221111070030":"2022-11-11T07:00:59.928Z","0.0.0-staging-20221111084533":"2022-11-11T08:46:13.988Z","0.0.0-staging-20221111085456":"2022-11-11T08:55:25.427Z","0.0.0-staging-20221111090402":"2022-11-11T09:04:35.009Z","0.0.0-staging-20221111091336":"2022-11-11T09:14:05.463Z","0.0.0-staging-20221114093335":"2022-11-14T09:34:05.075Z","0.0.0-staging-20221114093650":"2022-11-14T09:37:19.017Z","0.0.0-staging-20221115075706":"2022-11-15T07:57:28.113Z","0.0.0-staging-20221115080331":"2022-11-15T08:04:01.102Z","0.0.0-staging-20221117114840":"2022-11-17T11:49:14.420Z","0.0.0-staging-20221117115640":"2022-11-17T11:57:23.587Z","1.3.3-staging-20221117124640":"2022-11-17T12:47:31.784Z","1.3.3-staging-20221117132132":"2022-11-17T13:22:16.801Z","1.3.3-staging-20221123105823":"2022-11-23T10:59:19.692Z","1.3.3-staging-20221123114650":"2022-11-23T11:47:41.917Z","1.3.3-staging-20221123115753":"2022-11-23T11:58:37.923Z","1.3.3-staging-20221123122107":"2022-11-23T12:21:55.433Z","1.3.3-staging-20221123153837":"2022-11-23T15:39:23.534Z","1.3.3-staging-20221123154545":"2022-11-23T15:46:29.986Z","1.3.3-staging-20221123160311":"2022-11-23T16:03:56.390Z","1.3.3-staging-20221123160829":"2022-11-23T16:09:19.115Z","1.3.3-staging-20221129095119":"2022-11-29T09:52:15.641Z","1.3.3-staging-20221129101347":"2022-11-29T10:14:32.756Z","1.3.3-staging-20221129103019":"2022-11-29T10:31:07.259Z","1.3.3-snapshot-20230111104551":"2023-01-11T10:46:23.200Z","1.3.3-snapshot-20230111105607":"2023-01-11T10:56:37.757Z","1.3.3-snapshot-20230111111223":"2023-01-11T11:12:54.749Z","1.3.3-staging-20230111165320":"2023-01-11T16:54:05.738Z","0.0.0-snapshot-20230113133411":"2023-01-13T13:34:40.453Z","0.0.0-staging-20230113134617":"2023-01-13T13:46:46.789Z","0.0.0-snapshot-20230113134616":"2023-01-13T13:46:49.316Z","0.0.0-staging-20230113135316":"2023-01-13T13:53:45.984Z","0.0.0-snapshot-20230113135425":"2023-01-13T13:54:59.282Z"},"maintainers":[{"name":"pkorsholm","email":"philip.korsholm@hotmail.com"}],"description":"[Experimental] dont use this package - Client for Medusa Commerce Rest API","homepage":"https://docs.medusajs.com/js-client/overview","repository":{"type":"git","url":"git+https://github.com/medusajs/medusa.git","directory":"packages/medusa-js"},"author":{"name":"Oliver Juhl"},"bugs":{"url":"https://github.com/medusajs/medusa/issues"},"license":"MIT","readme":"","readmeFilename":""}