{"_id":"@4c/fetch-mock","_rev":"6-0898799bf57c7441edf254b9ea62a090","name":"@4c/fetch-mock","dist-tags":{"latest":"8.0.0"},"versions":{"8.0.0":{"name":"@4c/fetch-mock","version":"8.0.0","description":"Mock http requests made using fetch (or isomorphic-fetch)","main":"src/server.js","browser":"es5/client.js","scripts":{"test":"make lint test","prepublishOnly":"make transpile bundle","postinstall":"node scripts/support-fetch-mock.js"},"babel":{"presets":["@babel/env"],"plugins":[["@babel/transform-runtime",{"corejs":"3"}]]},"repository":{"type":"git","url":"git+https://github.com/wheresrhys/fetch-mock.git"},"keywords":["fetch","http","mock","testing","spy","xhr","ajax"],"author":{"name":"Rhys Evans"},"license":"MIT","bugs":{"url":"https://github.com/wheresrhys/fetch-mock/issues"},"homepage":"http://www.wheresrhys.co.uk/fetch-mock","dependencies":{"@babel/runtime-corejs3":"^7.4.5","glob-to-regexp":"^0.4.0","path-to-regexp":"^2.2.1","whatwg-url":"^6.5.0"},"engines":{"node":">=4.0.0"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.5","babel-loader":"^8.0.6","bluebird":"^3.4.6","chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.14.0","eslint-config-origami-component":"^1.0.0","eslint-config-prettier":"^2.9.0","eslint-plugin-prettier":"^2.6.1","karma":"^3.1.4","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-webpack":"^3.0.0","mocha":"^5.1.1","node-fetch":"^2.0.0","nyc":"^11.7.3","prettier":"^1.13.7","sinon":"^4.5.0","sinon-chai":"^2.14.0","webpack":"^4.0.0","webpack-cli":"^3.0.0"},"gitHead":"343f66b70eb5506aa3d3fcb1994ff092a54b7e18","_id":"@4c/fetch-mock@8.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-0ahu8gTQ1KVpwZFcQETVV/ED7UWdF9rEERPQdf2mEgzO8xzZvb6gw0B37HhM0g8wSenyN+/vwcyWXUsKVBwWuA==","shasum":"a25a4287acea3d1d209a1c68fcc12f1745497c01","tarball":"https://registry.npmjs.org/@4c/fetch-mock/-/fetch-mock-8.0.0.tgz","fileCount":27,"unpackedSize":1153903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFOjCCRA9TVsSAnZWagAA4mYP/iWTQ3X9wmRkAhkEtwAJ\nGMfJf9SzE5//SmNyWT1Sy1N7LPyQRHv1UdstT+tZ+aCd+HPPy8XrpTep+/df\nK2FFT/UW9+E43IscqjcLmyJPHTjQakCrMxmuoNJjFNP1wcUIiL1Wtk9O4wBO\ny/qFb6pVO6Ou+iiyHvXx+g+SDmd+uZ9AdCtPZFSsHuqBYcyVbnZTXQ09nfQK\nl3LUO1lZXd7k2EZf46guxFza5gmHWByCZyIbNCDJaoCWUkDKF3piEI+c6f3B\n2o0qEW+WSioQn+VzR5t1aLg0p8LFZd5xoXFQsQcSgdoVSqJTzx0b4hcx3QxV\nR+UPekNaS72DVLmRka59LXLgZJ0eAIj7Qf8QXURl2P2ngWH+rw0VYiAhA8Jv\njP/hXw5KCpB8kKB4K8ZXqIJ2EoEREiuLKtcjWYNjfhQhyWIMxmXsX+O/IgTq\nepvcOVNp8cSba5nFcdHDHqenOj/a2GkJt2MBebPD5hD91PKCY7RxfOlA98JH\nhQg4sn56vUPDGigyFVBHyVygVV7iqxSKHEAjAUtn0xv8MXLs0n4LdaQYqjS+\nUwU0Rjw611Cb6WCKllawYDI50X91XNvoWGfOlJLZQw8rW5/hDmzWdBiXT8wH\nuSLEqYXKwG6cR10WWSqKKQEyLx6VbK5cI+GWFOqkdaM/lfJzgXqIy30NNBqx\nUvAi\r\n=Z2L/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMnUbA2hXWdkhJSpitBYY12RFzmlmlasXI3I3zRzxfYAiB+6tnF+aiS2fU+M45/RaU0RsXzOVc3xMFenT4g9IH5Jw=="}]},"maintainers":[{"name":"sloria","email":"sloria1@gmail.com"},{"name":"taion","email":"tesrin@gmail.com"},{"name":"monastic.panic","email":"monastic.panic@gmail.com"},{"name":"itajaja","email":"giacomo.tag@gmail.com"}],"_npmUser":{"name":"monastic.panic","email":"monastic.panic@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-mock_8.0.0_1561651393657_0.08350896790277518"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-27T16:03:13.523Z","8.0.0":"2019-06-27T16:03:13.840Z","modified":"2022-04-08T14:00:51.877Z"},"maintainers":[{"email":"stephen.liu@alumni.stanford.edu","name":"stephen_liu"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"},{"email":"sloria1@gmail.com","name":"sloria"}],"description":"Mock http requests made using fetch (or isomorphic-fetch)","homepage":"http://www.wheresrhys.co.uk/fetch-mock","keywords":["fetch","http","mock","testing","spy","xhr","ajax"],"repository":{"type":"git","url":"git+https://github.com/wheresrhys/fetch-mock.git"},"author":{"name":"Rhys Evans"},"bugs":{"url":"https://github.com/wheresrhys/fetch-mock/issues"},"license":"MIT","readme":"# fetch-mock\n\nMock http requests made using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch)\n\n![node version](https://img.shields.io/node/v/fetch-mock.svg?style=flat-square)\n[![licence](https://img.shields.io/npm/l/fetch-mock.svg?style=flat-square)](https://github.com/wheresrhys/fetch-mock/blob/master/LICENSE)\n![npm downloads](https://img.shields.io/npm/dm/fetch-mock.svg?style=flat-square)\n[![CircleCI](https://img.shields.io/circleci/project/github/wheresrhys/fetch-mock.svg?style=flat-square)](https://circleci.com/gh/wheresrhys/workflows/fetch-mock)\n[![Code coverage](https://img.shields.io/coveralls/github/wheresrhys/fetch-mock.svg?style=flat-square)](https://coveralls.io/github/wheresrhys/fetch-mock)\n[![Known Vulnerabilities](https://snyk.io/test/github/wheresrhys/fetch-mock/badge.svg?targetFile=package.json&style=flat-square)](https://snyk.io/test/github/wheresrhys/fetch-mock?targetFile=package.json)\n\n```js\nfetchMock.mock('http://example.com', 200);\nconst res = await fetch('http://example.com');\nassert(res.ok);\nfetchMock.restore();\n```\n\n## Table of Contents\n\n- [Requirements](#requirements)\n- [Documentation and Usage](http://www.wheresrhys.co.uk/fetch-mock/)\n- [License](#license)\n- [Housekeeping](#housekeping)\n\n**I devote a lot of time to maintaining fetch-mock for free. I don't ask for payment, but am raising money for a refugee charity - <a href=\"https://www.justgiving.com/refugee-support-europe\">please consider donating</a>**\n\n---\n\n## Requirements\n\nfetch-mock requires the following to run:\n\n- [Node.js](https://nodejs.org/) 8+ for full feature operation\n- [Node.js](https://nodejs.org/) 0.12+ with [limitations](http://www.wheresrhys.co.uk/fetch-mock/#usageinstallation)\n- [npm](https://www.npmjs.com/package/npm) (normally comes with Node.js)\n- Either of the following\n  - [node-fetch](https://www.npmjs.com/package/node-fetch) when testing in a nodejs\n  - A browser that supports the `fetch` API when testing in a browser\n\n## Documentation and Usage\n\nSee the [project website](http://www.wheresrhys.co.uk/fetch-mock/)\n\n## License\n\nfetch-mock is licensed under the [MIT](https://github.com/wheresrhys/fetch-mock/blob/master/LICENSE) license.\nCopyright © 2019, Rhys Evans\n\n## Housekeeping\n\n![npm version](https://img.shields.io/npm/v/fetch-mock.svg?style=flat-square)\n[![maintainability](https://api.codeclimate.com/v1/badges/7f8abbf54ec9f3d07df3/maintainability?style=flat-square)](https://codeclimate.com/github/wheresrhys/fetch-mock/maintainability)\n","readmeFilename":"README.md"}