{"_id":"yerror","_rev":"3636823","name":"yerror","description":"It helps to know why you got an error.","dist-tags":{"latest":"8.0.0"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"time":{"modified":"2024-10-28T13:23:12.000Z","created":"2015-02-25T15:07:47.325Z","8.0.0":"2023-08-12T06:31:26.693Z","7.0.0":"2023-08-11T20:40:57.455Z","6.2.1":"2022-12-19T12:39:20.157Z","6.2.0":"2022-12-19T10:32:10.126Z","6.1.1":"2022-05-27T07:20:40.455Z","6.1.0":"2022-05-27T06:28:33.966Z","6.0.2":"2022-05-25T14:40:17.433Z","6.0.1":"2021-04-10T11:00:40.883Z","6.0.0":"2021-04-09T13:45:46.248Z","5.0.0":"2019-12-10T09:43:05.336Z","4.0.1":"2019-02-02T07:54:27.658Z","4.0.0":"2019-01-31T16:40:50.980Z","3.0.1":"2019-01-28T14:56:16.632Z","3.0.0":"2019-01-28T14:01:19.111Z","2.1.3":"2018-08-01T15:10:13.312Z","2.1.2":"2018-07-23T09:31:00.121Z","2.1.1":"2018-07-23T09:26:58.318Z","2.1.0":"2017-08-03T15:27:03.038Z","2.0.0":"2017-02-06T07:53:27.322Z","1.0.2":"2016-02-10T09:42:43.843Z","1.0.1":"2015-06-30T09:41:45.448Z","1.0.0":"2015-02-25T15:07:47.325Z"},"users":{},"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"versions":{"8.0.0":{"metapak":{"configs":["main","readme","eslint","tsesm","jest","codeclimate","ghactions","jsdocs"],"data":{"files":"'src/**/*.ts'","testsFiles":"'src/**/*.test.ts'","distFiles":"'dist/**/*.js'","ignore":["dist"],"bundleFiles":["dist","src"]}},"name":"yerror","version":"8.0.0","description":"It helps to know why you got an error.","scripts":{"build":"rimraf 'dist' && tsc --outDir dist","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","cover":"npm run jest -- --coverage","coveralls":"npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md 'dist/**/*.js' >> API.md && git add API.md","jest":"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest","lint":"eslint 'src/**/*.ts'","metapak":"metapak","precz":"npm t && npm run lint && npm run build && npm run metapak -- -s && npm run doc","prettier":"prettier --write 'src/**/*.ts'","preversion":"npm t && npm run lint && npm run build && npm run metapak -- -s && npm run doc","rebuild":"swc ./src -s -d dist -C jsc.target=es2022","test":"echo \"WARNING: No tests specified\" && npm run jest","type-check":"tsc --pretty --noEmit","version":"npm run changelog"},"engines":{"node":">=18.16.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@swc/cli":"^0.1.62","@swc/core":"^1.3.76","@swc/helpers":"^0.5.1","@swc/jest":"^0.2.28","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","commitizen":"^4.3.0","conventional-changelog-cli":"^3.0.0","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.46.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.0","jest":"^29.6.2","jsdoc-to-markdown":"^8.0.0","metapak":"^5.1.3","metapak-nfroidure":"15.0.0","prettier":"^3.0.1","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","prettier","eslint-config-prettier","eslint-plugin-prettier","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","typescript","rimraf","@swc/cli","@swc/core","@swc/helpers","jest","coveralls","@swc/jest","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended","plugin:prettier/recommended","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"script","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"},"parser":"@typescript-eslint/parser","ignorePatterns":["*.d.ts"]},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","jest":{"coverageReporters":["lcov"],"testPathIgnorePatterns":["/node_modules/"],"roots":["<rootDir>/src"],"transform":{"^.+\\.tsx?$":["@swc/jest",{}]},"testEnvironment":"node","moduleNameMapper":{"(.+)\\.js":"$1"},"extensionsToTreatAsEsm":[".ts"],"prettierPath":null},"gitHead":"432a616a1e9b62f8abc3de9b69cfe67c329ada9f","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@8.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"e74af460da34eb956dc8b13e1ec162db7dff0707","size":10889,"noattachment":false,"key":"/yerror/-/yerror-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-8.0.0.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_8.0.0_1691821886503_0.856304363088219"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-12T06:31:26.693Z","publish_time":1691821886693,"_source_registry_name":"default","_cnpm_publish_time":1691821886693},"7.0.0":{"metapak":{"configs":["main","readme","eslint","tsesm","jest","codeclimate","ghactions","jsdocs"],"data":{"files":"'src/**/*.ts'","testsFiles":"'src/**/*.test.ts'","distFiles":"'dist/**/*.js'","ignore":["dist"],"bundleFiles":["dist","src"]}},"name":"yerror","version":"7.0.0","description":"It helps to know why you got an error.","scripts":{"build":"rimraf 'dist' && tsc --outDir dist","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","cover":"npm run jest -- --coverage","coveralls":"npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md 'dist/**/*.js' >> API.md && git add API.md","jest":"NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest","lint":"eslint 'src/**/*.ts'","metapak":"metapak","precz":"npm t && npm run lint && npm run build && npm run metapak -- -s && npm run doc","prettier":"prettier --write 'src/**/*.ts'","preversion":"npm t && npm run lint && npm run build && npm run metapak -- -s && npm run doc","rebuild":"swc ./src -s -d dist -C jsc.target=es2022","test":"echo \"WARNING: No tests specified\" && npm run jest","type-check":"tsc --pretty --noEmit","version":"npm run changelog"},"engines":{"node":">=18.16.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@swc/cli":"^0.1.62","@swc/core":"^1.3.76","@swc/helpers":"^0.5.1","@swc/jest":"^0.2.28","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","commitizen":"^4.3.0","conventional-changelog-cli":"^3.0.0","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.46.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.0","jest":"^29.6.2","jsdoc-to-markdown":"^8.0.0","metapak":"^5.1.3","metapak-nfroidure":"15.0.0","prettier":"^3.0.1","rimraf":"^5.0.1","typescript":"^5.1.6"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","prettier","eslint-config-prettier","eslint-plugin-prettier","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","typescript","rimraf","@swc/cli","@swc/core","@swc/helpers","jest","coveralls","@swc/jest","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended","plugin:prettier/recommended","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"script","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"},"parser":"@typescript-eslint/parser","ignorePatterns":["*.d.ts"]},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","jest":{"coverageReporters":["lcov"],"testPathIgnorePatterns":["/node_modules/"],"roots":["<rootDir>/src"],"transform":{"^.+\\.tsx?$":["@swc/jest",{}]},"testEnvironment":"node","moduleNameMapper":{"(.+)\\.js":"$1"},"extensionsToTreatAsEsm":[".ts"],"prettierPath":null},"gitHead":"6c315d1b839a162b22bbbc87eef58a81982947e2","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@7.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"a1490a3699aefb18a3cdc1b4362c1a18b8d17203","size":10878,"noattachment":false,"key":"/yerror/-/yerror-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-7.0.0.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_7.0.0_1691786457213_0.9045419987532908"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-11T20:40:57.455Z","publish_time":1691786457455,"_source_registry_name":"default","_cnpm_publish_time":1691786457455},"6.2.1":{"name":"yerror","version":"6.2.1","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"src/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.2","@babel/eslint-parser":"^7.18.2","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.18.0","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.18.2","@babel/register":"^7.17.7","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^17.0.0","commitizen":"^4.2.4","conventional-changelog-cli":"^2.2.2","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.16.0","eslint-plugin-prettier":"^4.0.0","jsdoc-to-markdown":"^7.1.0","karma":"^6.3.20","karma-browserify":"^8.1.0","karma-chrome-launcher":"^3.1.1","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-sauce-launcher":"^4.3.6","metapak":"^4.0.3","metapak-nfroidure":"11.2.0","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"^2.6.2"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"d6b73a872ed78a540e8c1647d92d61263dd489f5","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.2.1","_nodeVersion":"16.15.1","_npmVersion":"8.12.1","dist":{"shasum":"d8971209120e2d20bdac6fce61a6a3ae7eedbbac","size":16275,"noattachment":false,"key":"/yerror/-/yerror-6.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.2.1.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.2.1_1671453560000_0.45290365510729713"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-19T12:47:55.466Z","publish_time":1671453560157,"_cnpm_publish_time":1671453560157},"6.2.0":{"name":"yerror","version":"6.2.0","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"src/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.2","@babel/eslint-parser":"^7.18.2","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.18.0","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.18.2","@babel/register":"^7.17.7","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^17.0.0","commitizen":"^4.2.4","conventional-changelog-cli":"^2.2.2","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.16.0","eslint-plugin-prettier":"^4.0.0","jsdoc-to-markdown":"^7.1.0","karma":"^6.3.20","karma-browserify":"^8.1.0","karma-chrome-launcher":"^3.1.1","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-sauce-launcher":"^4.3.6","metapak":"^4.0.3","metapak-nfroidure":"11.2.0","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"^2.6.2"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"e667b28d1e51da0a1658369830a08c83bc20208c","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.2.0","_nodeVersion":"16.15.1","_npmVersion":"8.12.1","dist":{"shasum":"f7ad485d4afdbb98fbb80caf66f3b6219221f3e0","size":16205,"noattachment":false,"key":"/yerror/-/yerror-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.2.0.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.2.0_1671445929976_0.31158725059649717"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-19T10:59:59.731Z","publish_time":1671445930126,"_cnpm_publish_time":1671445930126},"6.1.1":{"name":"yerror","version":"6.1.1","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"src/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.2","@babel/eslint-parser":"^7.18.2","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.18.0","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.18.2","@babel/register":"^7.17.7","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^17.0.0","commitizen":"^4.2.4","conventional-changelog-cli":"^2.2.2","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.16.0","eslint-plugin-prettier":"^4.0.0","jsdoc-to-markdown":"^7.1.0","karma":"^6.3.20","karma-browserify":"^8.1.0","karma-chrome-launcher":"^3.1.1","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-sauce-launcher":"^4.3.6","metapak":"^4.0.3","metapak-nfroidure":"11.2.0","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"^2.6.2"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"8cfb9ade3c842adbd75518b56b257b18e0babec6","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.1.1","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"0af005fc4e8023655ccd384532a3ab985343e37a","size":15474,"noattachment":false,"key":"/yerror/-/yerror-6.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.1.1.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.1.1_1653636040262_0.025687408774274445"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-27T07:22:31.478Z","publish_time":1653636040455,"_cnpm_publish_time":1653636040455},"6.1.0":{"name":"yerror","version":"6.1.0","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"src/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.2","@babel/eslint-parser":"^7.18.2","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.18.0","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.18.2","@babel/register":"^7.17.7","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^17.0.0","commitizen":"^4.2.4","conventional-changelog-cli":"^2.2.2","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.16.0","eslint-plugin-prettier":"^4.0.0","jsdoc-to-markdown":"^7.1.0","karma":"^6.3.20","karma-browserify":"^8.1.0","karma-chrome-launcher":"^3.1.1","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-sauce-launcher":"^4.3.6","metapak":"^4.0.3","metapak-nfroidure":"11.2.0","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"^2.6.2"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"34648a7bd383c25db465420dab5806065fc8a774","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.1.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"bdac7869b34a896f585a0490ac50667eb46c60fa","size":15414,"noattachment":false,"key":"/yerror/-/yerror-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.1.0.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.1.0_1653632913759_0.21283295876009922"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-27T06:28:44.042Z","publish_time":1653632913966,"_cnpm_publish_time":1653632913966},"6.0.2":{"name":"yerror","version":"6.0.2","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"src/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.2","@babel/eslint-parser":"^7.18.2","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.18.0","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.18.2","@babel/register":"^7.17.7","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^17.0.0","commitizen":"^4.2.4","conventional-changelog-cli":"^2.2.2","coveralls":"^3.1.1","cz-conventional-changelog":"^3.3.0","eslint":"^8.16.0","eslint-plugin-prettier":"^4.0.0","jsdoc-to-markdown":"^7.1.0","karma":"^6.3.20","karma-browserify":"^8.1.0","karma-chrome-launcher":"^3.1.1","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-sauce-launcher":"^4.3.6","metapak":"^4.0.3","metapak-nfroidure":"11.2.0","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"^2.6.2"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"4db12855f54aef5707066e4c43909b84c66add1e","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.0.2","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"3cd818b95aaa3784679ea0b20f1c848254afbc8b","size":15263,"noattachment":false,"key":"/yerror/-/yerror-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.0.2.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.0.2_1653489617263_0.40595397634063235"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-25T15:52:41.413Z","publish_time":1653489617433,"_cnpm_publish_time":1653489617433},"6.0.1":{"name":"yerror","version":"6.0.1","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"src/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.13.14","@babel/core":"^7.13.15","@babel/eslint-parser":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.13.15","@babel/register":"^7.13.14","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^16.5.0","commitizen":"^4.2.3","conventional-changelog-cli":"^2.1.1","coveralls":"^3.1.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.23.0","eslint-plugin-prettier":"^3.3.1","jsdoc-to-markdown":"^7.0.1","karma":"^6.3.2","karma-browserify":"^6.1.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-mocha":"^2.0.1","karma-sauce-launcher":"^2.0.2","metapak":"^4.0.0","metapak-nfroidure":"11.0.6","mocha":"^8.3.2","nyc":"^15.1.0","prettier":"^2.2.1"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"80268707ec2471516681a3ec30a74e839fd81fb6","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"4907475c821847851344ac37ab986a3bdf7909f3","size":15513,"noattachment":false,"key":"/yerror/-/yerror-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.0.1.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.0.1_1618052440710_0.2986628961209019"},"_hasShrinkwrap":false,"publish_time":1618052440883,"_cnpm_publish_time":1618052440883,"_cnpmcore_publish_time":"2021-12-18T17:55:54.327Z"},"6.0.0":{"name":"yerror","version":"6.0.0","description":"It helps to know why you got an error.","main":"dist/index","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/index","metapak":{"configs":["main","readme","eslint","babel","codeclimate","mocha","travis","karma","jsdocs"],"data":{"testsFiles":"src/*.mocha.js","files":"src/*.js","ignore":["dist"],"bundleFiles":["dist","src"]}},"scripts":{"build":"rm -rf dist && npm run compile && npm run test:build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","cli":"env NODE_ENV=${NODE_ENV:-cli}","compile":"rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs","compile:cjs":"babel --env-name=cjs --out-dir=dist --source-maps=true src","compile:mjs":"babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js >> API.md && git add API.md","karma":"karma start karma.conf.js","lint":"eslint src/*.js","metapak":"metapak","mocha":"mocha --require '@babel/register' src/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","prettier":"prettier --write src/*.js","preversion":"npm t && npm run lint && npm run metapak -- -s && npm run compile && npm run doc","test":"npm run mocha && npm run karma","test:build":"mocha dist/*.mocha.js","version":"npm run changelog"},"engines":{"node":">=12.19.0"},"repository":{"type":"git","url":"git://github.com/nfroidure/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"devDependencies":{"@babel/cli":"^7.13.14","@babel/core":"^7.13.15","@babel/eslint-parser":"^7.13.14","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.13.8","@babel/plugin-transform-classes":"^7.7.4","@babel/preset-env":"^7.13.15","@babel/register":"^7.13.14","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^16.5.0","commitizen":"^4.2.3","conventional-changelog-cli":"^2.1.1","coveralls":"^3.1.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.23.0","eslint-plugin-prettier":"^3.3.1","jsdoc-to-markdown":"^7.0.1","karma":"^6.3.2","karma-browserify":"^6.1.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-mocha":"^2.0.1","karma-sauce-launcher":"^2.0.2","metapak":"^4.0.0","metapak-nfroidure":"11.0.6","mocha":"^8.3.2","nyc":"^15.1.0","prettier":"^2.2.1"},"dependencies":{},"contributors":[],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","eslint","eslint-config-prettier","prettier","@babel/cli","@babel/core","@babel/register","@babel/preset-env","@babel/plugin-proposal-object-rest-spread","babel-eslint","mocha","coveralls","nyc","karma","karma-chrome-launcher","karma-firefox-launcher","karma-mocha","jsdoc-to-markdown"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"module","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"babel":{"plugins":[["@babel/plugin-proposal-object-rest-spread"],["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]],"presets":[["@babel/env",{"targets":{"node":"12.19.0"}}]],"env":{"cjs":{"presets":[["@babel/env",{"targets":{"node":"10"},"modules":"commonjs"}]],"comments":true},"mjs":{"presets":[["@babel/env",{"targets":{"node":"12"},"modules":false}]],"comments":false}},"sourceMaps":true},"nyc":{"exclude":["src/*.mocha.js"]},"gitHead":"8d9a693efd310a9248ca81e2b27e2fa74762e5c3","homepage":"https://github.com/nfroidure/yerror#readme","_id":"yerror@6.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"0055ffd2a9df1179c2cb9365421a186870411f09","size":15410,"noattachment":false,"key":"/yerror/-/yerror-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-6.0.0.tgz"},"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_6.0.0_1617975946077_0.3601614612652091"},"_hasShrinkwrap":false,"publish_time":1617975946248,"_cnpm_publish_time":1617975946248,"_cnpmcore_publish_time":"2021-12-18T17:55:54.592Z"},"5.0.0":{"name":"yerror","version":"5.0.0","description":"It helps to know why you got an error.","main":"src/index.js","types":"src/index.d.ts","browser":"dist/index.js","scripts":{"compile":"babel --extensions '.js' src --out-dir=dist","build":"rm -rf dist && npm run compile && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","prettier":"prettier --write src/*.js","preversion":"npm run lint && npm build && npm t","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/*.mocha.js"},"engines":{"node":">=8.12.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"formerly at SimpliField"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/register":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/plugin-proposal-class-properties":"^7.7.4","@babel/plugin-proposal-object-rest-spread":"^7.7.4","@babel/plugin-transform-classes":"^7.7.4","babel-eslint":"^10.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","browserify":"^16.5.0","coveralls":"^3.0.9","eslint":"^6.7.2","eslint-plugin-prettier":"^3.1.1","karma":"^4.4.1","karma-browserify":"^6.1.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^1.2.0","karma-mocha":"^1.3.0","karma-sauce-launcher":"^2.0.2","mocha":"^6.2.2","nyc":"^14.1.1","prettier":"^1.19.1"},"dependencies":{},"babel":{"presets":["@babel/env"],"plugins":[["@babel/plugin-transform-classes",{}],["babel-plugin-transform-builtin-extend",{"globals":["Error","Array"]}]]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"sourceType":"script","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"all","proseWrap":"always"},"gitHead":"75cbe42622771afe69670eb3c2bbd3459b22fcf6","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@5.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"95c580a6ed9bee47e755f40f98f765544094e103","size":21402,"noattachment":false,"key":"/yerror/-/yerror-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-5.0.0.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_5.0.0_1575970985172_0.5124277878934402"},"_hasShrinkwrap":false,"publish_time":1575970985336,"_cnpm_publish_time":1575970985336,"_cnpmcore_publish_time":"2021-12-18T17:55:54.999Z"},"4.0.1":{"name":"yerror","version":"4.0.1","description":"It helps to know why you got an error.","main":"src/index.js","types":"src/index.d.ts","browser":"dist/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"1b223c70a140e004c7a2871c22c1dce6446e8651","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@4.0.1","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"099b80ace40cc8480db6ac6d5995338ff4422ed4","size":54850,"noattachment":false,"key":"/yerror/-/yerror-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-4.0.1.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_4.0.1_1549094067525_0.0034875115737804663"},"_hasShrinkwrap":false,"publish_time":1549094067658,"_cnpm_publish_time":1549094067658,"_cnpmcore_publish_time":"2021-12-18T17:55:55.356Z"},"4.0.0":{"name":"yerror","version":"4.0.0","description":"It helps to know why you got an error.","main":"src/index.js","types":"src/index.d.ts","browser":"dist/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"9b9c9bb164d45584cbfa4c69815e5736b9ae3cd5","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@4.0.0","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"8db85b8e9dbef961ff6a45e7506a996e2b360601","size":54842,"noattachment":false,"key":"/yerror/-/yerror-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-4.0.0.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_4.0.0_1548952850804_0.306468321498508"},"_hasShrinkwrap":false,"publish_time":1548952850980,"_cnpm_publish_time":1548952850980,"_cnpmcore_publish_time":"2021-12-18T17:55:55.638Z"},"3.0.1":{"name":"yerror","version":"3.0.1","description":"It helps to know why you got an error.","main":"src/index.js","types":"src/index.d.ts","browser":"dist/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"fa921b07878ae60ecb7ce269884bc4d740816ec7","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@3.0.1","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"7199e037db3d48edc936d5c38850c44cf4d32791","size":47905,"noattachment":false,"key":"/yerror/-/yerror-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-3.0.1.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_3.0.1_1548687376466_0.33858613098149815"},"_hasShrinkwrap":false,"publish_time":1548687376632,"_cnpm_publish_time":1548687376632,"_cnpmcore_publish_time":"2021-12-18T17:55:55.847Z"},"3.0.0":{"name":"yerror","version":"3.0.0","description":"It helps to know why you got an error.","main":"src/index.js","types":"src/index.d.ts","browser":"dist/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"2ef3a916b1a3a357542ed61902333ec816703ba3","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"7ea27dbc71edc5e40c2ceb2ef8a2adeb8ed75ce2","size":47901,"noattachment":false,"key":"/yerror/-/yerror-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-3.0.0.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_3.0.0_1548684078988_0.824509677268028"},"_hasShrinkwrap":false,"publish_time":1548684079111,"_cnpm_publish_time":1548684079111,"_cnpmcore_publish_time":"2021-12-18T17:55:56.141Z"},"2.1.3":{"name":"yerror","version":"2.1.3","description":"It helps to know why you got an error.","main":"src/index.js","browser":"dist/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"7875190567348295867d894af04dab1bb6456941","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@2.1.3","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sebastienelet","email":"sebastien@elet.fr"},"dist":{"shasum":"7d26793cc25951a71f0acab47fa47095d4c4c817","size":63870,"noattachment":false,"key":"/yerror/-/yerror-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-2.1.3.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_2.1.3_1533136213203_0.4056214657559656"},"_hasShrinkwrap":false,"publish_time":1533136213312,"_cnpm_publish_time":1533136213312,"_cnpmcore_publish_time":"2021-12-18T17:55:56.472Z"},"2.1.2":{"name":"yerror","version":"2.1.2","description":"It helps to know why you got an error.","main":"dist/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/**/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"browserify":"^14.4.0","babel-cli":"^6.24.1","babel-preset-es2015":"^6.24.1","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"bf1dfe45080cfb1a237de4a86b6b67a1188a7ec2","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@2.1.2","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sebastienelet","email":"sebastien@elet.fr"},"dist":{"shasum":"dd9cfec6339029f6de266d9b7c2e9639b6e5337e","size":47425,"noattachment":false,"key":"/yerror/-/yerror-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-2.1.2.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_2.1.2_1532338260009_0.7071510212331491"},"_hasShrinkwrap":false,"publish_time":1532338260121,"_cnpm_publish_time":1532338260121,"_cnpmcore_publish_time":"2021-12-18T17:55:56.789Z"},"2.1.1":{"name":"yerror","version":"2.1.1","description":"It helps to know why you got an error.","main":"src/index.js","scripts":{"build":"rm -rf dist && babel src -d dist && npm run test:build","cli":"env NPM_RUN_CLI=1","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src/*.js","preversion":"npm run lint && npm build && npm test","test":"mocha src/*.mocha.js && karma start karma.conf.js","test:build":"mocha dist/**/*.mocha.js"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"browserify":"^14.4.0","babel-cli":"^6.24.1","babel-preset-es2015":"^6.24.1","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"41e1553c795d63a49e687c5d1e134c5b7ffa37d7","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@2.1.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sebastienelet","email":"sebastien@elet.fr"},"dist":{"shasum":"049ff7c5042be297a3ac0fab8ecfc20f37c7673e","size":47423,"noattachment":false,"key":"/yerror/-/yerror-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-2.1.1.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror_2.1.1_1532338018204_0.023639918585272035"},"_hasShrinkwrap":false,"publish_time":1532338018318,"_cnpm_publish_time":1532338018318,"_cnpmcore_publish_time":"2021-12-18T17:55:56.996Z"},"2.1.0":{"name":"yerror","version":"2.1.0","description":"It helps to know why you got an error.","main":"src/index.js","scripts":{"test":"mocha src/*.mocha.js && karma start karma.conf.js","coveralls":"istanbul cover _mocha --report lcovonly -- src/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"istanbul cover --report html _mocha -- src/*.mocha.js -R spec -t 5000","cli":"env NPM_RUN_CLI=1","lint":"eslint src/*.js","preversion":"npm run lint && npm test"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"browserify":"^14.4.0","coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-sauce-launcher":"^1.1.0","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"c065c9626178002d5ef13280ab8bf0fd9a60f501","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@2.1.0","_shasum":"c44ef439d55aa8e7bf08c6b7d35e13eadb9d1ff6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"c44ef439d55aa8e7bf08c6b7d35e13eadb9d1ff6","size":12191,"noattachment":false,"key":"/yerror/-/yerror-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-2.1.0.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yerror-2.1.0.tgz_1501774022182_0.23423497611656785"},"directories":{},"publish_time":1501774023038,"_hasShrinkwrap":false,"_cnpm_publish_time":1501774023038,"_cnpmcore_publish_time":"2021-12-18T17:55:57.255Z"},"2.0.0":{"name":"yerror","version":"2.0.0","description":"It helps to know why you got an error.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"istanbul cover _mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"istanbul cover --report html _mocha -- tests/*.mocha.js -R spec -t 5000","cli":"env NPM_RUN_CLI=1","lint":"eslint src/index.js tests/index.mocha.js","preversion":"npm run lint && npm test"},"engines":{"node":">=6.0.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"MIT","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"coveralls":"~2.11.2","eslint":"^3.4.0","eslint-config-simplifield":"^4.1.1","istanbul":"^0.4.2","mocha":"^3.0.2","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"60389426273f064ce133e5c07b5e670e2cf89203","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@2.0.0","_shasum":"b941c728755ea99cca9c60200644c8628a07e58b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"sebastienelet","email":"sebastien@elet.fr"},"dist":{"shasum":"b941c728755ea99cca9c60200644c8628a07e58b","size":4076,"noattachment":false,"key":"/yerror/-/yerror-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-2.0.0.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/yerror-2.0.0.tgz_1486367606753_0.09608011646196246"},"directories":{},"publish_time":1486367607322,"_hasShrinkwrap":false,"_cnpm_publish_time":1486367607322,"_cnpmcore_publish_time":"2021-12-18T17:55:57.479Z"},"1.0.2":{"name":"yerror","version":"1.0.2","description":"It helps to know why you got an error.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"istanbul cover _mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"istanbul cover --report html _mocha -- tests/*.mocha.js -R spec -t 5000","cli":"env NPM_RUN_CLI=1","lint":"eslint src/index.js tests/index.mocha.js","preversion":"npm run lint && npm test"},"engines":{"node":">=0.10.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"coveralls":"~2.11.2","eslint":"^1.10.3","eslint-config-simplifield":"^1.2.0","istanbul":"^0.4.2","mocha":"^2.4.5","mocha-lcov-reporter":"^1.0.0"},"dependencies":{},"gitHead":"734aa2106275854eebd06df78d72112312259c69","homepage":"https://github.com/SimpliField/yerror#readme","_id":"yerror@1.0.2","_shasum":"3b4afc653a2dfd7c916cfb0afd89a1cf98ee2594","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"dist":{"shasum":"3b4afc653a2dfd7c916cfb0afd89a1cf98ee2594","size":4020,"noattachment":false,"key":"/yerror/-/yerror-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-1.0.2.tgz"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/yerror-1.0.2.tgz_1455097362181_0.17536727129481733"},"directories":{},"publish_time":1455097363843,"_hasShrinkwrap":false,"_cnpm_publish_time":1455097363843,"_cnpmcore_publish_time":"2021-12-18T17:55:57.701Z"},"1.0.1":{"name":"yerror","version":"1.0.1","description":"It helps to know why you got an error.","main":"src/index.js","scripts":{"test":"node_modules/mocha/bin/mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/mocha/bin/_mocha -- tests/*.mocha.js -R spec -t 5000"},"engines":{"node":">=0.10.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"mocha":"~2.2.5","mocha-lcov-reporter":"0.0.2","coveralls":"~2.11.2","istanbul":"~0.3.17"},"dependencies":{},"gitHead":"9666d1a230e4c4394bf64329c9787f3fbabb5b95","homepage":"https://github.com/SimpliField/yerror","_id":"yerror@1.0.1","_shasum":"015455aba0b399d617d509231c261fb7c45985a2","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"dist":{"shasum":"015455aba0b399d617d509231c261fb7c45985a2","size":3790,"noattachment":false,"key":"/yerror/-/yerror-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-1.0.1.tgz"},"directories":{},"publish_time":1435657305448,"_hasShrinkwrap":false,"_cnpm_publish_time":1435657305448,"_cnpmcore_publish_time":"2021-12-18T17:55:57.896Z"},"1.0.0":{"name":"yerror","version":"1.0.0","description":"It helps to know why you got an error.","main":"src/index.js","scripts":{"test":"node_modules/mocha/bin/mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/mocha/bin/_mocha -- tests/*.mocha.js -R spec -t 5000"},"engines":{"node":">=0.10.0"},"repository":{"type":"git","url":"git://github.com/SimpliField/yerror.git"},"keywords":["error","why","better"],"author":{"name":"Nicolas Froidure","url":"Simplifield"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/SimpliField/yerror/issues"},"devDependencies":{"mocha":"~2.1.0","mocha-lcov-reporter":"0.0.1","coveralls":"~2.11.2","istanbul":"~0.3.6"},"dependencies":{},"gitHead":"4528043734ab68a24bc7bcff3f52306b652f6627","homepage":"https://github.com/SimpliField/yerror","_id":"yerror@1.0.0","_shasum":"dc3368ca140e4c258710981ad685e6b43846e7c3","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"arnaudspanneut","email":""},{"name":"gplancke","email":""},{"name":"nfroidure","email":"nfroidure@elitwork.com"},{"name":"sebastienelet","email":""},{"name":"xavhan","email":""}],"dist":{"shasum":"dc3368ca140e4c258710981ad685e6b43846e7c3","size":3732,"noattachment":false,"key":"/yerror/-/yerror-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/yerror/download/yerror-1.0.0.tgz"},"directories":{},"publish_time":1424876867325,"_hasShrinkwrap":false,"_cnpm_publish_time":1424876867325,"_cnpmcore_publish_time":"2021-12-18T17:55:58.113Z"}},"readme":"[//]: # ( )\n[//]: # (This file is automatically generated by a `metapak`)\n[//]: # (module. Do not change it  except between the)\n[//]: # (`content:start/end` flags, your changes would)\n[//]: # (be overridden.)\n[//]: # ( )\n# yerror\n> It helps to know why you got an error.\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/yerror/blob/main/LICENSE)\n\n\n[//]: # (::contents:start)\n\nA robust Error subclass with error codes, typed debug values, and recursive\nstack traces using native Error.cause.\n\n## Usage\n\nFirst, require me where you could throw errors:\n\n```js\nimport YError from 'yerror';\n```\n\nThen, emit errors with a bonus: parameters!\n\n```js\nfunction doSomething(pay, action) {\n  if (parseInt(pay, 10) !== pay) {\n    throw new YError('E_BAD_PAY', [pay, action]);\n  }\n}\n\ndoSomething('nuts', 'code');\n\n// YError: E_BAD_PAY ([\"nuts\", \"code\"])\n//   at doSomething (/home/nfroidure/nfroidure/yerror/test.js:5:11)\n//   at Object.<anonymous> (/home/nfroidure/nfroidure/yerror/test.js:9:1)\n//   (...)\n```\n\nYou don't have to use constant like error messages, we use this convention\nmainly for i18n reasons.\n\nAlso, you could want to wrap errors and keep a valuable stack trace:\n\n```js\nfunction doSomethingAsync(pay, action) {\n  return new Promise(function (resolve, reject) {\n    try {\n      doSomething(pay, action);\n      resolve();\n    } catch (err) {\n      reject(YError.bump(err));\n    }\n  });\n}\n\ndoSomethingAsync('nuts', 'code').catch(function (err) {\n  console.log(err.stack);\n});\n\n// YError: E_BAD_PAY (nuts, code)\n//    at doSomething (/home/nfroidure/nfroidure/yerror/test.js:5:11)\n//    (...)\n// Caused by: YError: E_BAD_TRANSACTION (pay)\n//    at Function.YError.wrap (/home/nfroidure/nfroidure/yerror/src/index.js:41:12)\n//    at /home/nfroidure/nfroidure/yerror/test.js:16:21\n//    at doSomethingAsync (/home/nfroidure/nfroidure/yerror/test.js:11:11)\n//    (...)\n```\n\n## Global Error Registry\n\nYou can now get full autocompletion and type-safety for your error codes and\ntheir debug data.\n\n```ts\nimport { YError } from 'yerror';\n\ndeclare module 'yerror' {\n  interface YErrorRegistry {\n    E_USER_NOT_FOUND: [userId: string];\n  }\n}\n\n// TypeScript will now enforce the correct arguments:\nthrow new YError('E_USER_NOT_FOUND', ['123']);\n\n// Users of you own code will then be able to cast errors\ntry {\n  getUser('123');\n} catch (err) {\n  if (hasYErrorCode(err, 'E_USER_NOT_FOUND')) {\n    console.log(err.debug[0]);\n  }\n}\n```\n\n[//]: # (::contents:end)\n\n# API\n## Classes\n\n<dl>\n<dt><a href=\"#YError\">YError</a> ⇐ <code>Error</code></dt>\n<dd><p>A YError class able to contain some debug and\n print better stack traces</p>\n</dd>\n</dl>\n\n## Functions\n\n<dl>\n<dt><a href=\"#printStackTrace\">printStackTrace(err)</a> ⇒ <code>string</code></dt>\n<dd><p>Allow to print a stack from anything (especially caught\n errors that may or may not contain errors ????).</p>\n</dd>\n<dt><a href=\"#hasYErrorCode\">hasYErrorCode(err, code)</a> ⇒ <code>boolean</code></dt>\n<dd><p>Allow to check a YError code and cast the error.</p>\n</dd>\n<dt><a href=\"#pickYErrorWithCode\">pickYErrorWithCode(err, code)</a> ⇒ <code>boolean</code></dt>\n<dd><p>Allow to check all errors for a YError code and return the casted the error.</p>\n</dd>\n</dl>\n\n<a name=\"YError\"></a>\n\n## YError ⇐ <code>Error</code>\nA YError class able to contain some debug and\n print better stack traces\n\n**Kind**: global class  \n**Extends**: <code>Error</code>  \n\n* [YError](#YError) ⇐ <code>Error</code>\n    * [new YError([errorCode], [debug], options)](#new_YError_new)\n    * [.wrap(err, [errorCode], [debug])](#YError.wrap) ⇒ [<code>YError</code>](#YError)\n    * [.cast(err, [errorCode], [debug])](#YError.cast) ⇒ [<code>YError</code>](#YError)\n    * [.bump(err, [errorCode], [debug])](#YError.bump) ⇒ [<code>YError</code>](#YError)\n\n<a name=\"new_YError_new\"></a>\n\n### new YError([errorCode], [debug], options)\nCreates a new YError with an error code\n and some debug as debug values.\n\n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| [errorCode] | <code>string</code> | <code>&quot;&#x27;E_UNEXPECTED&#x27;&quot;</code> | The error code corresponding to the actual error |\n| [debug] | <code>any</code> |  | Some additional debugging values The error options |\n| options | <code>Object</code> |  | The error options |\n\n<a name=\"YError.wrap\"></a>\n\n### YError.wrap(err, [errorCode], [debug]) ⇒ [<code>YError</code>](#YError)\nWraps any error and output a YError with an error\n code and some debug as debug values.\n\n**Kind**: static method of [<code>YError</code>](#YError)  \n**Returns**: [<code>YError</code>](#YError) - The wrapped error  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| err | <code>Error</code> |  | The error to wrap |\n| [errorCode] | <code>string</code> | <code>&quot;&#x27;E_UNEXPECTED&#x27;&quot;</code> | The error code corresponding to the actual error |\n| [debug] | <code>any</code> |  | Some additional debugging values |\n\n<a name=\"YError.cast\"></a>\n\n### YError.cast(err, [errorCode], [debug]) ⇒ [<code>YError</code>](#YError)\nReturn a YError as is or wraps any other error and output\n a YError with a code and some debug as debug values.\n\n**Kind**: static method of [<code>YError</code>](#YError)  \n**Returns**: [<code>YError</code>](#YError) - The wrapped error  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| err | <code>Error</code> |  | The error to cast |\n| [errorCode] | <code>string</code> | <code>&quot;&#x27;E_UNEXPECTED&#x27;&quot;</code> | The error code corresponding to the actual error |\n| [debug] | <code>any</code> |  | Some additional debugging values |\n\n<a name=\"YError.bump\"></a>\n\n### YError.bump(err, [errorCode], [debug]) ⇒ [<code>YError</code>](#YError)\nSame than `YError.wrap()` but preserves the code\n and the debug values of the error if it is\n already an instance of the YError constructor.\n\n**Kind**: static method of [<code>YError</code>](#YError)  \n**Returns**: [<code>YError</code>](#YError) - The wrapped error  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| err | <code>Error</code> |  | The error to bump |\n| [errorCode] | <code>string</code> | <code>&quot;&#x27;E_UNEXPECTED&#x27;&quot;</code> | The error code corresponding to the actual error |\n| [debug] | <code>any</code> |  | Some additional debugging values |\n\n<a name=\"printStackTrace\"></a>\n\n## printStackTrace(err) ⇒ <code>string</code>\nAllow to print a stack from anything (especially caught\n errors that may or may not contain errors ????).\n\n**Kind**: global function  \n**Returns**: <code>string</code> - The stack trace if any  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| err | <code>Error</code> | The error to print |\n\n<a name=\"hasYErrorCode\"></a>\n\n## hasYErrorCode(err, code) ⇒ <code>boolean</code>\nAllow to check a YError code and cast the error.\n\n**Kind**: global function  \n**Returns**: <code>boolean</code> - The result  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| err | <code>Error</code> | The error to cast |\n| code | <code>Error</code> | The code to check |\n\n<a name=\"pickYErrorWithCode\"></a>\n\n## pickYErrorWithCode(err, code) ⇒ <code>boolean</code>\nAllow to check all errors for a YError code and return the casted the error.\n\n**Kind**: global function  \n**Returns**: <code>boolean</code> - The result  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| err | <code>Error</code> | The error to cast |\n| code | <code>Error</code> | The code to check |\n\n\n# Authors\n- [Nicolas Froidure (formerly at SimpliField)](http://insertafter.com/en/index.html)\n\n# License\n[MIT](https://github.com/nfroidure/yerror/blob/main/LICENSE)\n","_attachments":{},"homepage":"https://github.com/nfroidure/yerror#readme","bugs":{"url":"https://github.com/nfroidure/yerror/issues"},"license":"MIT"}