{ "_args": [ [ { "raw": "es6-error@^4.0.2", "scope": null, "escapedName": "es6-error", "name": "es6-error", "rawSpec": "^4.0.2", "spec": ">=4.0.2 <5.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl" ] ], "_from": "es6-error@>=4.0.2 <5.0.0", "_id": "es6-error@4.1.1", "_inCache": true, "_location": "/es6-error", "_nodeVersion": "9.2.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/es6-error-4.1.1.tgz_1514992236818_0.1563813704997301" }, "_npmUser": { "name": "bjy", "email": "bx.youngblood@gmail.com" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "es6-error@^4.0.2", "scope": null, "escapedName": "es6-error", "name": "es6-error", "rawSpec": "^4.0.2", "spec": ">=4.0.2 <5.0.0", "type": "range" }, "_requiredBy": [ "/@expo/schemer", "/xdl" ], "_resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", "_shasum": "9e3af407459deed47e9a91f9b885a84eb05c561d", "_shrinkwrap": null, "_spec": "es6-error@^4.0.2", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl", "author": { "name": "Ben Youngblood" }, "bugs": { "url": "https://github.com/bjyoungblood/es6-error/issues" }, "dependencies": {}, "description": "Easily-extendable error for use with ES6 classes", "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.0", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-transform-builtin-extend": "^1.1.2", "babel-preset-env": "^1.6.1", "chai": "^4.1.2", "cross-env": "^5.1.1", "mocha": "^4.0.1", "rimraf": "^2.6.2" }, "directories": {}, "dist": { "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", "shasum": "9e3af407459deed47e9a91f9b885a84eb05c561d", "tarball": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz" }, "files": [ "lib", "es6", "typings" ], "gitHead": "5b553293429bac6b15d8caeab8a4174faeb38fa0", "homepage": "https://github.com/bjyoungblood/es6-error", "keywords": [ "es6", "error", "babel" ], "license": "MIT", "main": "./lib/index", "maintainers": [ { "name": "bjy", "email": "bx.youngblood@gmail.com" } ], "module": "./es6/index.js", "name": "es6-error", "optionalDependencies": {}, "readme": "# es6-error\n\n[![npm version](https://badge.fury.io/js/es6-error.svg)](https://www.npmjs.com/package/es6-error)\n[![Build Status](https://travis-ci.org/bjyoungblood/es6-error.svg?branch=master)](https://travis-ci.org/bjyoungblood/es6-error)\n\nAn easily-extendable error class for use with ES6 classes (or ES5, if you so\nchoose).\n\nTested in Node 4.0, Chrome, and Firefox.\n\n## Why?\n\nI made this because I wanted to be able to extend Error for inheritance and type\nchecking, but can never remember to add\n`Error.captureStackTrace(this, this.constructor.name)` to the constructor or how\nto get the proper name to print from `console.log`.\n\n## ES6 Usage\n\n```javascript\n\nimport ExtendableError from 'es6-error';\n\nclass MyError extends ExtendableError {\n // constructor is optional; you should omit it if you just want a custom error\n // type for inheritance and type checking\n constructor(message = 'Default message') {\n super(message);\n }\n}\n\nexport default MyError;\n```\n\n## ES5 Usage\n\n```javascript\n\nvar util = require('util');\nvar ExtendableError = require('es6-error');\n\nfunction MyError(message) {\n message = message || 'Default message';\n ExtendableError.call(this, message);\n}\n\nutil.inherits(MyError, ExtendableError);\n\nmodule.exports = MyError;\n```\n\n### Known Issues\n\n- Uglification can obscure error class names ([#31](https://github.com/bjyoungblood/es6-error/issues/31#issuecomment-301128220))\n\n#### Todo\n\n- Better browser compatibility\n- Browser tests\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/bjyoungblood/es6-error.git" }, "scripts": { "build": "npm run clean && npm run build:cjs && npm run build:es6", "build:cjs": "mkdir -p lib && cross-env BABEL_ENV=cjs babel src/index.js -o lib/index.js", "build:es6": "mkdir -p es6 && cross-env BABEL_ENV=es6 babel src/index.js -o es6/index.js", "clean": "rimraf lib es6", "prepublishOnly": "npm run build && npm run test", "test": "cross-env BABEL_ENV=test mocha --require babel-core/register --recursive" }, "typings": "./typings/index.d.ts", "version": "4.1.1" }