-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
68 lines (68 loc) · 3.45 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"_args": [
[
{
"raw": "stubs@https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"scope": null,
"escapedName": "stubs",
"name": "stubs",
"rawSpec": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"spec": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "stubs@https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"_id": "stubs@3.0.0",
"_inCache": true,
"_location": "/firebase-admin/stubs",
"_phantomChildren": {},
"_requested": {
"raw": "stubs@https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"scope": null,
"escapedName": "stubs",
"name": "stubs",
"rawSpec": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"spec": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/stream-events"
],
"_resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"_shasum": "e8d2ba1fa9c90570303c030b6900f7d5f89abe5b",
"_shrinkwrap": null,
"_spec": "stubs@https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Stephen Sawchuk"
},
"bugs": {
"url": "https://github.com/stephenplusplus/stubs/issues"
},
"dependencies": {},
"description": "Easy method stubber.",
"devDependencies": {
"tess": "^1.0.0"
},
"homepage": "https://github.com/stephenplusplus/stubs",
"keywords": [
"stubs"
],
"license": "MIT",
"main": "index.js",
"name": "stubs",
"optionalDependencies": {},
"readme": "# stubs\n\n> It's a simple stubber.\n\n## About\n\nFor when you don't want to write the same thing over and over to cache a method and call an override, then revert it, and blah blah.\n\n\n## Use\n```sh\n$ npm install --save-dev stubs\n```\n```js\nvar mylib = require('./lib/index.js')\nvar stubs = require('stubs')\n\n// make it a noop\nstubs(mylib, 'create')\n\n// stub it out\nstubs(mylib, 'create', function() {\n // calls this instead\n})\n\n// stub it out, but call the original first\nstubs(mylib, 'create', { callthrough: true }, function() {\n // call original method, then call this\n})\n\n// use the stub for a while, then revert\nstubs(mylib, 'create', { calls: 3 }, function() {\n // call this 3 times, then use the original method\n})\n```\n\n\n## API\n\n### stubs(object, method[[, opts], stub])\n\n#### object\n- Type: Object\n\n#### method\n- Type: String\n\nName of the method to stub.\n\n#### opts\n- (optional)\n- Type: Object\n\n##### opts.callthrough\n- (optional)\n- Type: Boolean\n- Default: `false`\n\nCall the original method as well as the stub (if a stub is provided).\n\n##### opts.calls\n- (optional)\n- Type: Number\n- Default: `0` (never revert)\n\nNumber of calls to allow the stub to receive until reverting to the original.\n\n#### stub\n- (optional)\n- Type: Function\n- Default: `function() {}`\n\nThis method is called in place of the original method. If `opts.callthrough` is `true`, this method is called *after* the original method is called as well.",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/stephenplusplus/stubs.git"
},
"scripts": {
"test": "node ./test"
},
"version": "3.0.0"
}