-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
76 lines (76 loc) · 3.74 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
69
70
71
72
73
74
75
76
{
"_args": [
[
{
"raw": "create-error-class@https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"scope": null,
"escapedName": "create-error-class",
"name": "create-error-class",
"rawSpec": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"spec": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "create-error-class@https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"_id": "create-error-class@3.0.2",
"_inCache": true,
"_location": "/firebase-admin/create-error-class",
"_phantomChildren": {},
"_requested": {
"raw": "create-error-class@https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"scope": null,
"escapedName": "create-error-class",
"name": "create-error-class",
"rawSpec": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"spec": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/@google-cloud/common",
"/firebase-admin/@google-cloud/storage"
],
"_resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"_shasum": "06be7abef947a3f14a30fd610671d401bca8b7b6",
"_shrinkwrap": null,
"_spec": "create-error-class@https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Vsevolod Strukchinsky",
"email": "floatdrop@gmail.com",
"url": "github.com/floatdrop"
},
"bugs": {
"url": "https://github.com/floatdrop/create-error-class/issues"
},
"dependencies": {
"capture-stack-trace": "^1.0.0"
},
"description": "Create Error classes",
"devDependencies": {
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/floatdrop/create-error-class#readme",
"keywords": [],
"license": "MIT",
"name": "create-error-class",
"optionalDependencies": {},
"readme": "# create-error-class [![Build Status](https://travis-ci.org/floatdrop/create-error-class.svg?branch=master)](https://travis-ci.org/floatdrop/create-error-class)\n\n> Create error class\n\n\n## Install\n\n```\n$ npm install --save create-error-class\n```\n\n\n## Usage\n\n```js\nvar createErrorClass = require('create-error-class');\n\nvar HTTPError = createErrorClass('HTTPError', function (props) {\n\tthis.message = 'Status code is ' + props.statusCode;\n});\n\nthrow new HTTPError({statusCode: 404});\n```\n\n\n## API\n\n### createErrorClass(className, [setup])\n\nReturn constructor of Errors with `className`.\n\n#### className\n\n*Required* \nType: `string`\n\nClass name of Error Object. Should contain characters from `[0-9a-zA-Z_$]` range.\n\n#### setup\nType: `function`\n\nSetup function, that will be called after each Error object is created from constructor with context of Error object.\n\nBy default `setup` function sets `this.message` as first argument:\n\n```js\nvar MyError = createErrorClass('MyError');\n\nnew MyError('Something gone wrong!').message; // => 'Something gone wrong!'\n```\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/floatdrop/create-error-class.git"
},
"scripts": {
"test": "mocha"
},
"version": "3.0.2"
}