-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
93 lines (93 loc) · 5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"_args": [
[
{
"raw": "make-error@https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"scope": null,
"escapedName": "make-error",
"name": "make-error",
"rawSpec": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"spec": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "make-error@https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"_id": "make-error@1.3.0",
"_inCache": true,
"_location": "/firebase-admin/make-error",
"_phantomChildren": {},
"_requested": {
"raw": "make-error@https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"scope": null,
"escapedName": "make-error",
"name": "make-error",
"rawSpec": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"spec": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/ts-node"
],
"_resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"_shasum": "52ad3a339ccf10ce62b4040b708fe707244b8b96",
"_shrinkwrap": null,
"_spec": "make-error@https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"bugs": {
"url": "https://github.com/JsCommunity/make-error/issues"
},
"dependencies": {},
"description": "Make your own error types!",
"devDependencies": {
"browserify": "^14.3.0",
"husky": "^0.13.3",
"jest": "^20.0.3",
"standard": "^10.0.2",
"uglify-js": "^3.0.10"
},
"files": [
"dist/",
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/JsCommunity/make-error",
"keywords": [
"create",
"custom",
"derive",
"error",
"errors",
"extend",
"extending",
"extension",
"factory",
"inherit",
"make",
"subclass"
],
"license": "ISC",
"main": "index.js",
"name": "make-error",
"optionalDependencies": {},
"readme": "# make-error [![Build Status](https://img.shields.io/travis/JsCommunity/make-error/master.svg)](http://travis-ci.org/JsCommunity/make-error)\n\n> Make your own error types!\n\n\n## Features\n\n- Compatible Node & browsers\n- `instanceof` support\n- `error.name` & `error.stack` support\n- compatible with [CSP](https://en.wikipedia.org/wiki/Content_Security_Policy) (i.e. no `eval()`)\n\n## Installation\n\n### Node & [Browserify](http://browserify.org/)/[Webpack](https://webpack.js.org/)\n\nInstallation of the [npm package](https://npmjs.org/package/make-error):\n\n```\n> npm install --save make-error\n```\n\nThen require the package:\n\n```javascript\nvar makeError = require('make-error');\n```\n\n### Browser\n\nYou can directly use the build provided at [unpkg.com](https://unpkg.com):\n\n```html\n<script src=\"https://unpkg.com/make-error@1/dist/make-error.js\"></script>\n```\n\n## Usage\n\n### Basic named error\n\n```javascript\nvar CustomError = makeError('CustomError')\n\n// Parameters are forwarded to the super class (here Error).\nthrow new CustomError('a message')\n```\n\n### Advanced error class\n\n```javascript\nfunction CustomError (customValue) {\n CustomError.super.call(this, 'custom error message')\n\n this.customValue = customValue\n}\nmakeError(CustomError)\n\n// Feel free to extend the prototype.\nCustomError.prototype.myMethod = function CustomError$myMethod () {\n console.log('CustomError.myMethod (%s, %s)', this.code, this.message)\n}\n\n//-----\n\ntry {\n throw new CustomError(42)\n} catch (error) {\n error.myMethod()\n}\n```\n\n### Specialized error\n\n```javascript\nvar SpecializedError = makeError('SpecializedError', CustomError);\n\nthrow new SpecializedError(42);\n```\n\n### Inheritance\n\n> Best for ES2015+.\n\n```javascript\nimport {BaseError} from 'make-error'\n\nclass CustomError extends BaseError {\n constructor () {\n super('custom error message')\n }\n}\n```\n\n## Related\n\n- [make-error-cause](https://www.npmjs.com/package/make-error-cause): Make your own error types, with a cause!\n\n## Contributions\n\nContributions are *very* welcomed, either on the documentation or on\nthe code.\n\nYou may:\n\n- report any [issue](https://github.com/JsCommunity/make-error/issues)\n you've encountered;\n- fork and create a pull request.\n\n## License\n\nISC © [Julien Fontanet](http://julien.isonoe.net)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/JsCommunity/make-error.git"
},
"scripts": {
"commitmsg": "yarn test",
"dev-test": "jest --watch",
"prepublish": "mkdir -p dist && browserify -s makeError index.js | uglifyjs -c > dist/make-error.js",
"pretest": "standard",
"test": "jest"
},
"version": "1.3.0"
}