{"_id":"@cremeta/harp-fetch","_rev":"1-614cc127cd967c6d8c71a094509200a0","name":"@cremeta/harp-fetch","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@cremeta/harp-fetch","version":"2.0.0","author":{"url":"https://xyzmaps.org","name":"XYZ maps contributors"},"license":"Apache-2.0","_id":"@cremeta/harp-fetch@2.0.0","maintainers":[{"name":"jack-zhao","email":"297512741@qq.com"}],"homepage":"https://github.com/xyzmaps/harp.gl#readme","bugs":{"url":"https://github.com/xyzmaps/harp.gl/issues"},"dist":{"shasum":"bb94d60fbd2d243036b8294a7357744288a83c68","tarball":"https://registry.npmjs.org/@cremeta/harp-fetch/-/harp-fetch-2.0.0.tgz","fileCount":8,"integrity":"sha512-H8zsNbx61k6f2G1M/kodD07Gtb2YgfuSAwsUyxOkzgujtDJcp8qe/1wVTvZ7x6fo5+L0fBR0/XNvNtBHrEkwwQ==","signatures":[{"sig":"MEYCIQDbmcWdzOg3SzH9I18rkie/hoZ9vq0fS3o9XUPj2DNssgIhAOEdy4UaH7MY6TFNMNiqCXqSCWi8cqNpl/Iu2JNID9gq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17262},"main":"index.js","browser":"index.web.js","scripts":{"test":"cross-env mocha --require source-map-support/register $EXTRA_MOCHA_ARGS ./test/*.js","build":"tsc --build $EXTRA_TSC_ARGS","prepare":"cross-env tsc --build $EXTRA_TSC_ARGS"},"typings":"index.web","_npmUser":{"name":"jack-zhao","email":"297512741@qq.com"},"repository":{"url":"git+https://github.com/xyzmaps/harp.gl.git","type":"git","directory":"@xyzmaps/harp-fetch"},"_npmVersion":"10.4.0","description":"This module adds a subset of the fetch API for Node.js","directories":{"test":"test"},"_nodeVersion":"18.17.0","dependencies":{"node-fetch":"^2.6.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.0.2","glob":"^7.1.1","zlib":"^1.0.5","mocha":"^8.2.1","sinon":"^9.2.2","stream":"0.0.2","cross-env":"^7.0.2","typescript":"^4.1.2","@types/chai":"^4.2.14","@types/node":"^14.0.5","@types/mocha":"^8.2.0","@types/sinon":"^9.0.10","source-map-support":"^0.5.19"},"_npmOperationalInternal":{"tmp":"tmp/harp-fetch_2.0.0_1729499413625_0.24468479385443387","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@cremeta/harp-fetch","version":"2.0.1","description":"This module adds a subset of the fetch API for Node.js","main":"index.js","browser":"index.web.js","typings":"index.web","directories":{"test":"test"},"scripts":{"test":"cross-env mocha --require source-map-support/register $EXTRA_MOCHA_ARGS ./test/*.js","build":"tsc --build $EXTRA_TSC_ARGS","prepare":"cross-env tsc --build $EXTRA_TSC_ARGS"},"repository":{"type":"git","url":"git+https://github.com/xyzmaps/harp.gl.git","directory":"@xyzmaps/harp-fetch"},"author":{"name":"XYZ maps contributors","url":"https://xyzmaps.org"},"license":"Apache-2.0","dependencies":{"node-fetch":"^2.6.1"},"devDependencies":{"@types/chai":"^4.2.14","@types/mocha":"^8.2.0","@types/node":"^14.0.5","@types/sinon":"^9.0.10","chai":"^4.0.2","cross-env":"^7.0.2","glob":"^7.1.1","mocha":"^8.2.1","sinon":"^9.2.2","source-map-support":"^0.5.19","stream":"0.0.2","typescript":"^4.1.2","zlib":"^1.0.5"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"_id":"@cremeta/harp-fetch@2.0.1","bugs":{"url":"https://github.com/xyzmaps/harp.gl/issues"},"homepage":"https://github.com/xyzmaps/harp.gl#readme","_nodeVersion":"18.17.0","_npmVersion":"10.4.0","dist":{"integrity":"sha512-yx96lqCjFoH0JSIu7JgHCLCC8Y8w3I57ZlctcL1HiWNO3nJTr4KdlpjGPmo+e2gqMDUUjQcBOED2OZxwsx0Cdg==","shasum":"d3ab24d26e8c04ce3784d5ebda614a86a9a1f433","tarball":"https://registry.npmjs.org/@cremeta/harp-fetch/-/harp-fetch-2.0.1.tgz","fileCount":8,"unpackedSize":17262,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChIm/egAbCyaISvomv8Po7ZsZ+/rgZYQdDKiF0RQb4awIhAJphjwmn+UPBKTHer4TiPRQMgn52to+zBiVhUHTixwik"}]},"_npmUser":{"name":"jack-zhao","email":"297512741@qq.com"},"maintainers":[{"name":"jack-zhao","email":"297512741@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/harp-fetch_2.0.1_1729668108994_0.8132822371394788"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-21T08:30:13.527Z","modified":"2024-10-23T07:21:49.357Z","2.0.0":"2024-10-21T08:30:13.896Z","2.0.1":"2024-10-23T07:21:49.169Z"},"bugs":{"url":"https://github.com/xyzmaps/harp.gl/issues"},"author":{"name":"XYZ maps contributors","url":"https://xyzmaps.org"},"license":"Apache-2.0","homepage":"https://github.com/xyzmaps/harp.gl#readme","repository":{"type":"git","url":"git+https://github.com/xyzmaps/harp.gl.git","directory":"@xyzmaps/harp-fetch"},"description":"This module adds a subset of the fetch API for Node.js","maintainers":[{"name":"jack-zhao","email":"297512741@qq.com"}],"readme":"# @xyzmaps/harp-fetch\n\n##Overview\n\nThis module adds a subset of the [fetch](https://harp-fetch.spec.whatwg.org/) API for [Node.js](https://nodejs.org/). This allows code written for the browser to also execute in `Node.js`.\n\nThe main goal of this module is to provide enough compatibility to allow running unit tests in `Node.js`. It is not 100% feature and behavior compatible with `fetch`.\n\nThe feature set is that of [node-fetch](https://www.npmjs.com/package/node-fetch) with the addition of a dummy `AbortController`.\n\n## Usage\n\nImport the module for its side-effects:\n\n```JavaScript\nimport \"@xyzmaps/harp-fetch\"\n```\n\nThis adds `fetch` to the global `Node.js` namespace.\n\n## Behavior in Browser Context\n\nWhen this module is used in a browser context, it does nothing and adds no code.\n","readmeFilename":"README.md"}