make-error
Advanced tools
Comparing version
@@ -18,3 +18,3 @@ /** | ||
/** | ||
* Use with ES6 inheritance. | ||
* Use with ES2015+ inheritance. | ||
*/ | ||
@@ -21,0 +21,0 @@ export class BaseError implements Error { |
{ | ||
"name": "make-error", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"license": "ISC", | ||
"description": "Make your own error types!", | ||
"keywords": [ | ||
"create", | ||
"custom", | ||
"derive", | ||
"Error", | ||
"error", | ||
"errors", | ||
"extend", | ||
"inherit" | ||
"extending", | ||
"extension", | ||
"factory", | ||
"inherit", | ||
"make", | ||
"subclass" | ||
], | ||
@@ -21,25 +28,17 @@ "homepage": "https://github.com/JsCommunity/make-error", | ||
"devDependencies": { | ||
"browserify": "^13.0.0", | ||
"chai": "^3.3.0", | ||
"mocha": "^3.0.0", | ||
"standard": "^8.0.0", | ||
"testling": "^1.7.1", | ||
"browserify": "^14.1.0", | ||
"husky": "^0.13.1", | ||
"jest": "^19.0.2", | ||
"standard": "^9.0.0", | ||
"uglify-js": "^2.4.19" | ||
}, | ||
"scripts": { | ||
"browserify": "mkdir -p dist && browserify -s makeError index.js | uglifyjs -c > dist/make-error.js", | ||
"dev-test": "mocha --watch --reporter=min index.spec.js", | ||
"test": "standard && mocha index.spec.js", | ||
"test-browser": "testling -u" | ||
"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" | ||
}, | ||
"testling": { | ||
"harness": "mocha-bdd", | ||
"files": "index.spec.js", | ||
"browsers": [ | ||
"ie/8..Latest", | ||
"chrome/latest", | ||
"firefox/latest" | ||
] | ||
}, | ||
"files": [ | ||
"dist/", | ||
"index.js", | ||
@@ -46,0 +45,0 @@ "index.d.ts" |
@@ -1,7 +0,3 @@ | ||
# make-error | ||
# make-error [](http://travis-ci.org/JsCommunity/make-error) | ||
[](http://travis-ci.org/JsCommunity/make-error) | ||
[](https://david-dm.org/JsCommunity/make-error) | ||
[](https://david-dm.org/JsCommunity/make-error#info=devDependencies) | ||
> Make your own error types! | ||
@@ -19,3 +15,3 @@ | ||
### Node & Browserify | ||
### Node & [Browserify](http://browserify.org/)/[Webpack](https://webpack.js.org/) | ||
@@ -36,16 +32,6 @@ Installation of the [npm package](https://npmjs.org/package/make-error): | ||
Clone the git repository and compile the browser version of the | ||
library: | ||
You can directly use the build provided at [unpkg.com](https://unpkg.com): | ||
``` | ||
> git clone https://github.com/JsCommunity/make-error.git | ||
> npm install | ||
> npm run browserify | ||
``` | ||
Then import the script `make-error.js` which has been compiled in the | ||
`dist/` directory: | ||
```html | ||
<script src="make-error.js"></script> | ||
<script src="https://unpkg.com/make-error@1.2.1/dist/make-error.js"></script> | ||
``` | ||
@@ -98,3 +84,3 @@ | ||
> Best for ES6. | ||
> Best for ES2015+. | ||
@@ -101,0 +87,0 @@ ```javascript |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
10205
26.28%5
-16.67%5
25%159
7.43%1
Infinity%112
-11.11%2
Infinity%