fetch-mock
Advanced tools
Comparing version 1.5.0 to 1.5.2
@@ -1,47 +0,1 @@ | ||
{ | ||
"name": "fetch-mock", | ||
"version": "1.5.0", | ||
"description": "Mock http requests made using fetch (or isomorphic-fetch)", | ||
"main": "server.js", | ||
"scripts": { | ||
"test": "make test coverage" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wheresrhys/fetch-mock.git" | ||
}, | ||
"keywords": [ | ||
"fetch", | ||
"http", | ||
"mock", | ||
"testing", | ||
"spy" | ||
], | ||
"author": "Rhys Evans", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/wheresrhys/fetch-mock/issues" | ||
}, | ||
"homepage": "https://github.com/wheresrhys/fetch-mock", | ||
"dependencies": { | ||
"node-fetch": "^1.2.0", | ||
"sinon": "^1.14.1", | ||
"debug": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^10.0.0", | ||
"chai": "^2.3.0", | ||
"coveralls": "^2.11.2", | ||
"debowerify": "^1.2.1", | ||
"es6-promise": "^2.1.1", | ||
"karma": "^0.12.31", | ||
"karma-browserify": "^4.1.2", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^0.1.8", | ||
"karma-mocha": "^0.1.10", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
"mocha": "^2.2.4", | ||
"mocha-lcov-reporter": "0.0.2", | ||
"npm-prepublish": "^1.2.0" | ||
} | ||
} | ||
{"name":"fetch-mock","version":"1.5.2","description":"Mock http requests made using fetch (or isomorphic-fetch)","main":"server.js","scripts":{"test":"make test coverage"},"repository":{"type":"git","url":"https://github.com/wheresrhys/fetch-mock.git"},"keywords":["fetch","http","mock","testing","spy"],"author":"Rhys Evans","license":"ISC","bugs":{"url":"https://github.com/wheresrhys/fetch-mock/issues"},"homepage":"https://github.com/wheresrhys/fetch-mock","dependencies":{"node-fetch":"^1.2.0","sinon":"^1.14.1","debug":"^2.2.0"},"devDependencies":{"browserify":"^10.0.0","chai":"^2.3.0","coveralls":"^2.11.2","debowerify":"^1.2.1","es6-promise":"^2.1.1","karma":"^0.12.31","karma-browserify":"^4.1.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^0.1.8","karma-mocha":"^0.1.10","karma-phantomjs-launcher":"^0.1.4","mocha":"^2.2.4","mocha-lcov-reporter":"0.0.2","npm-prepublish":"^1.2.0"}} |
@@ -9,4 +9,6 @@ # fetch-mock [![Build Status](https://travis-ci.org/wheresrhys/fetch-mock.svg?branch=master)](https://travis-ci.org/wheresrhys/fetch-mock) [![Coverage Status](https://coveralls.io/repos/wheresrhys/fetch-mock/badge.svg)](https://coveralls.io/r/wheresrhys/fetch-mock) | ||
- If you prefer documentation by example skip to the bottom of this README | ||
- To use fetch-mock on the server simply `npm install fetch-mock` and `require('fetch-mock)`. In the browser either | ||
- use browserify + debowerify and both `npm install fetch-mock` and `bower install fetch-mock`, then use `require('fetch-mock)` | ||
- use browserify and `npm install fetch-mock` and `require('fetch-mock/client)` | ||
## API | ||
@@ -13,0 +15,0 @@ |
44702
236