{"_id":"pony-cause","_rev":"4659826","name":"pony-cause","description":"Ponyfill and helpers for Error Causes","dist-tags":{"latest":"2.1.11","next":"2.1.5-0"},"maintainers":[{"name":"voxpelli","email":""}],"time":{"modified":"2026-04-10T21:51:40.000Z","created":"2021-09-15T21:28:30.278Z","2.1.11":"2024-04-15T13:23:54.207Z","2.1.10":"2023-05-10T05:21:26.435Z","2.1.9":"2023-03-20T16:47:46.528Z","2.1.8":"2022-11-18T16:46:45.386Z","2.1.7":"2022-11-18T15:04:04.165Z","2.1.6":"2022-11-17T17:03:00.072Z","2.1.5":"2022-11-17T16:53:22.057Z","2.1.5-0":"2022-11-17T16:46:39.873Z","2.1.4":"2022-08-26T13:39:56.695Z","2.1.3":"2022-08-26T13:26:08.230Z","2.1.2":"2022-08-12T10:53:35.936Z","2.1.1":"2022-08-05T20:28:28.318Z","2.1.0":"2022-08-01T21:16:04.094Z","2.0.0":"2022-05-09T07:13:06.495Z","1.1.1":"2021-11-14T17:17:46.813Z","1.1.0":"2021-11-09T18:28:34.263Z","1.0.0":"2021-09-15T21:28:30.278Z"},"users":{},"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"versions":{"2.1.11":{"name":"pony-cause","version":"2.1.11","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@~4.6":"./compat.d.ts","types@~4.7":"./compat.d.ts","types":"./index.d.ts","import":"./index.mjs","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:installed-check":"installed-check --ignore-dev","check:1:knip":"knip","check:1:lint":"eslint --report-unused-disable-directives .","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install > /dev/null","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@types/chai":"^4.3.14","@types/chai-string":"^1.4.5","@types/mocha":"^10.0.6","@types/node":"^18.19.31","@types/verror":"^1.10.10","@voxpelli/eslint-config":"^19.0.0","@voxpelli/tsconfig":"^11.0.0","c8":"^9.1.0","chai":"^4.4.1","chai-string":"^1.5.0","eslint":"^8.57.0","eslint-plugin-es-x":"^7.6.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jsdoc":"^46.10.1","eslint-plugin-mocha":"^10.4.2","eslint-plugin-n":"^16.6.2","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.7.1","eslint-plugin-sort-destructure-keys":"^1.5.0","eslint-plugin-unicorn":"^48.0.1","husky":"^8.0.3","installed-check":"^9.3.0","knip":"^5.9.4","linemod":"^1.1.0","mocha":"^10.4.0","npm-run-all2":"^6.1.2","type-coverage":"^2.28.1","typescript":"~5.4.5","verror":"^1.10.1"},"_id":"pony-cause@2.1.11","gitHead":"d954ce8d79ad1968d31f583d9edbed2888b8716b","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_nodeVersion":"20.12.1","_npmVersion":"10.5.2","dist":{"shasum":"d69a20aaccdb3bdb8f74dd59e5c68d8e6772e4bd","size":7151,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.11.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.11_1713187434067_0.5083901271256552"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-15T13:23:54.207Z","publish_time":1713187434207,"_source_registry_name":"default","_cnpm_publish_time":1713187434207},"2.1.10":{"name":"pony-cause","version":"2.1.10","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@~4.6":"./compat.d.ts","types@~4.7":"./compat.d.ts","types":"./index.d.ts","import":"./index.mjs","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.5","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.1","@types/node":"^14.18.46","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^16.0.4","@voxpelli/tsconfig":"^7.0.0","c8":"^7.13.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.40.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsdoc":"^44.1.0","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.7.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.7.1","eslint-plugin-sort-destructure-keys":"^1.5.0","eslint-plugin-unicorn":"^47.0.0","husky":"^8.0.3","installed-check":"^7.0.0","linemod":"^0.3.0","mocha":"^10.2.0","npm-run-all2":"^6.0.5","type-coverage":"^2.25.3","typescript":"~5.0.4","verror":"^1.10.1"},"gitHead":"bb1c6dab6b408b7e928527b90b82f89af560141e","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.10","_nodeVersion":"18.14.2","_npmVersion":"9.6.5","dist":{"shasum":"828457ad6f13be401a075dbf14107a9057945174","size":7068,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.10.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.10_1683696086279_0.9708745907339618"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-10T05:21:26.435Z","publish_time":1683696086435,"_source_registry_name":"default","_cnpm_publish_time":1683696086435},"2.1.9":{"name":"pony-cause","version":"2.1.9","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@~4.6":"./compat.d.ts","types@~4.7":"./compat.d.ts","types":"./index.d.ts","import":"./index.mjs","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.4","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.1","@types/node":"^14.18.38","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.2.0","@voxpelli/tsconfig":"^7.0.0","c8":"^7.13.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.36.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsdoc":"^39.9.1","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.7.1","eslint-plugin-sort-destructure-keys":"^1.5.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.3","installed-check":"^6.0.5","linemod":"^0.3.0","mocha":"^10.2.0","npm-run-all2":"^6.0.4","type-coverage":"^2.25.0","typescript":"~5.0.2","verror":"^1.10.1"},"gitHead":"ff59646ef528738ba5c7236921d766ea2fa08115","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.9","_nodeVersion":"18.14.2","_npmVersion":"9.6.2","dist":{"shasum":"39cd05418a94ee285d6f956f7df530449a497605","size":7077,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.9.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.9_1679330866340_0.9660905352820792"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-20T16:47:46.528Z","publish_time":1679330866528,"_cnpm_publish_time":1679330866528},"2.1.8":{"name":"pony-cause","version":"2.1.8","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@~4.6":"./compat.d.ts","types@~4.7":"./compat.d.ts","types":"./index.d.ts","import":"./index.mjs","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.4","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.0","@types/node":"^14.18.33","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.2.0","@voxpelli/tsconfig":"^6.1.0","c8":"^7.12.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.27.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.6.2","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.2","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.1.0","npm-run-all2":"^6.0.4","type-coverage":"^2.23.0","typescript":"~4.9.3","verror":"^1.10.1"},"gitHead":"af08cb8911e3f855e317fd9caa6f46e9a8661519","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.8","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"85d5c108566c63e81c6539a2f711598594543e4d","size":6933,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.8.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.8_1668790005170_0.528245963306712"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-18T16:46:48.599Z","publish_time":1668790005386,"_cnpm_publish_time":1668790005386},"2.1.7":{"name":"pony-cause","version":"2.1.7","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{".":["compat.d.ts"]}},"exports":{".":{"types@~4.6":"./compat.d.ts","types@~4.7":"./compat.d.ts","types":"./index.d.ts","import":"./index.mjs","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.4","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.0","@types/node":"^14.18.33","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.2.0","@voxpelli/tsconfig":"^6.1.0","c8":"^7.12.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.27.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.6.2","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.2","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.1.0","npm-run-all2":"^6.0.4","type-coverage":"^2.23.0","typescript":"~4.9.3","verror":"^1.10.1"},"gitHead":"8901f10b3e5afde7c6635ea7a6a412c12013adbb","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.7","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"0aea441b9424eb2c3708fef54c2f5962416b78c7","size":6764,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.7.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.7_1668783843993_0.9922087294332089"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-18T15:08:56.266Z","publish_time":1668783844165,"_cnpm_publish_time":1668783844165},"2.1.6":{"name":"pony-cause","version":"2.1.6","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@<4.8":"./compat.d.ts","types":"./index.d.ts","import":"./index.mjs","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.4","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.0","@types/node":"^14.18.33","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.2.0","@voxpelli/tsconfig":"^6.0.0","c8":"^7.12.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.26.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.25","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.2","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.1.0","npm-run-all2":"^6.0.4","type-coverage":"^2.23.0","typescript":"~4.9.3","verror":"^1.10.1"},"gitHead":"e23e4b11e1a0eec9405360ba0084cec6da6a09c4","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.6","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"7774891b89e6549f2a8dfad3e1d4c999c881f0f9","size":6757,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.6.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.6_1668704579862_0.6717570359527996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-17T17:03:56.226Z","publish_time":1668704580072,"_cnpm_publish_time":1668704580072},"2.1.5":{"name":"pony-cause","version":"2.1.5","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@<4.8":"./compat.d.ts","types":"./index.d.ts","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.4","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.0","@types/node":"^14.18.33","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.2.0","@voxpelli/tsconfig":"^6.0.0","c8":"^7.12.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.26.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.25","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.2","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.1.0","npm-run-all2":"^6.0.4","type-coverage":"^2.23.0","typescript":"~4.9.3","verror":"^1.10.1"},"gitHead":"63b8bbc933114924a327ff57c98486c61497a7d0","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.5","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"d541c66db2addf1694044f3dcbe968b66f5254a6","size":6750,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.5.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.5_1668704001884_0.2931376878123979"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-17T16:53:50.166Z","publish_time":1668704002057,"_cnpm_publish_time":1668704002057},"2.1.5-0":{"name":"pony-cause","version":"2.1.5-0","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{".":{"types@<4.8":"./compat.d.ts","types":"./index.d.ts","require":"./index.js"}},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.4","@types/chai-string":"^1.4.2","@types/mocha":"^10.0.0","@types/node":"^14.18.33","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.2.0","@voxpelli/tsconfig":"^6.0.0","c8":"^7.12.0","chai":"^4.3.7","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.26.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.25","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.5.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.2","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.1.0","npm-run-all2":"^6.0.4","type-coverage":"^2.23.0","typescript":"~4.9.3","verror":"^1.10.1"},"readmeFilename":"README.md","gitHead":"c8bf1355011eaddcbf7183f5431c8335de7ffbe9","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.5-0","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"264a02622056171abfce405dcb1e8e7c5e43cca6","size":6755,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.5-0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.5-0.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.5-0_1668703599648_0.3178682839882645"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-17T16:46:45.317Z","publish_time":1668703599873,"_cnpm_publish_time":1668703599873},"2.1.4":{"name":"pony-cause","version":"2.1.4","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{"require":"./index.js","import":"./index.mjs"},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.3","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.1","@types/node":"^14.18.26","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.1.0","@voxpelli/tsconfig":"^4.0.0","c8":"^7.12.0","chai":"^4.3.6","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.22.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.6","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.2.5","eslint-plugin-promise":"^6.0.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.1","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.0.0","npm-run-all2":"^6.0.2","type-coverage":"^2.22.0","typescript":"~4.6.0","verror":"^1.10.1"},"gitHead":"4b3c311a30f555201327c80225a3aa28a2c75a5e","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.4","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"18ef4799b5207ad0a7bacf5ea4602e6b06c75c8c","size":6463,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.4.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.4_1661521196534_0.75857258041062"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-26T13:40:00.981Z","publish_time":1661521196695,"_cnpm_publish_time":1661521196695},"2.1.3":{"name":"pony-cause","version":"2.1.3","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{"require":"./index.js","import":"./index.mjs"},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.1","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.1","@types/node":"^14.18.26","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.1.0","@voxpelli/tsconfig":"^4.0.0","c8":"^7.12.0","chai":"^4.3.6","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.22.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.4","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.2.5","eslint-plugin-promise":"^6.0.1","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.1","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.0.0","npm-run-all2":"^6.0.2","type-coverage":"^2.22.0","typescript":"~4.6.0","verror":"^1.10.1"},"gitHead":"ece89ebe96f0136474105fa97cfab092a0f8e0f2","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.3","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"7ae2d585bed8f2721c967be5bb9c54f4dba6b1cc","size":5880,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.3.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.3_1661520368075_0.04966323450881993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-26T13:26:24.969Z","publish_time":1661520368230,"_cnpm_publish_time":1661520368230},"2.1.2":{"name":"pony-cause","version":"2.1.2","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{"require":"./index.js","import":"./index.mjs"},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-build-less":"mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.1","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.1","@types/node":"^14.18.18","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.1.0","@voxpelli/tsconfig":"^4.0.0","c8":"^7.12.0","chai":"^4.3.6","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.21.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.4","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.2.4","eslint-plugin-promise":"^6.0.0","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.1","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.0.0","npm-run-all2":"^6.0.1","type-coverage":"^2.22.0","typescript":"~4.6.0","verror":"^1.10.1"},"gitHead":"b17ff6d79f5ce02323961f2791ae6709855c83f2","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.2","_nodeVersion":"18.7.0","_npmVersion":"8.16.0","dist":{"shasum":"e470bdfb1960c5269dae8b052b13287f7f0ea524","size":6453,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.2.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.2_1660301615762_0.3892989308810122"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-12T11:12:41.429Z","publish_time":1660301615936,"_cnpm_publish_time":1660301615936},"2.1.1":{"name":"pony-cause","version":"2.1.1","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{"require":"./index.js","import":"./index.mjs"},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":"^14.17.0 || >=16.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.1","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.1","@types/node":"^14.18.18","@types/verror":"^1.10.6","@voxpelli/eslint-config":"^15.1.0","@voxpelli/tsconfig":"^4.0.0","c8":"^7.12.0","chai":"^4.3.6","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.21.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.4","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.2.4","eslint-plugin-promise":"^6.0.0","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^43.0.2","husky":"^8.0.1","installed-check":"^6.0.4","linemod":"^0.3.0","mocha":"^10.0.0","npm-run-all2":"^6.0.1","type-coverage":"^2.22.0","typescript":"~4.6.0","verror":"^1.10.1"},"gitHead":"953ee66e68b3fb62b2b3b25115a101ed6479e276","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.1","_nodeVersion":"16.15.0","_npmVersion":"8.15.0","dist":{"shasum":"a7762ff9092795235188d8423d9da1404f4a547e","size":6448,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.1.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.1_1659731308125_0.22395291513592275"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-05T20:28:32.947Z","publish_time":1659731308318,"_cnpm_publish_time":1659731308318},"2.1.0":{"name":"pony-cause","version":"2.1.0","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","typesVersions":{"~4.6 || ~4.7":{"index.d.ts":["compat.d.ts"]}},"exports":{"require":"./index.js","import":"./index.mjs"},"scripts":{"build-for-test":"run-s clean build:1:esm","build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js lib/*.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s build-for-test","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check --engine-no-dev","check:1:lint":"eslint --report-unused-disable-directives .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts*' ! -name '*compat.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","test:0":"run-s build-for-test","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":"^14.17.0 || >=16.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.1","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.1","@types/node":"^14.18.18","@types/verror":"^1.10.5","@voxpelli/eslint-config":"^14.1.0","@voxpelli/tsconfig":"^4.0.0","c8":"^7.11.3","chai":"^4.3.6","chai-string":"^1.5.0","dependency-check":"^5.0.0-7","eslint":"^8.20.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-mocha":"^10.1.0","eslint-plugin-n":"^15.2.4","eslint-plugin-promise":"^6.0.0","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^42.0.0","husky":"^8.0.1","installed-check":"^6.0.4","linemod":"^0.2.0","mocha":"^10.0.0","npm-run-all2":"^6.0.1","type-coverage":"^2.22.0","typescript":"~4.6.0","verror":"^1.10.1"},"gitHead":"90c8c7e5999eefc5551b4d7aabd62e3807cc55e8","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.15.0","dist":{"shasum":"08133893526fa93edcef0a6c6b432db17f34c404","size":6245,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.1.0.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.0_1659388563957_0.7474112946802216"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-01T21:16:10.584Z","publish_time":1659388564094,"_cnpm_publish_time":1659388564094},"2.0.0":{"name":"pony-cause","version":"2.0.0","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","module":"index.mjs","types":"index.d.ts","exports":{"require":"./index.js","import":"./index.mjs"},"scripts":{"build:0":"run-s clean","build:1:declaration":"tsc -p declaration.tsconfig.json","build:1:esm":"linemod -e mjs index.js","build:1":"run-p build:1:*","build":"run-s build:*","check:0":"run-s clean build:1:esm","check:1:dependency-check":"dependency-check *.js *.mjs 'test/**/*.js' 'test/**/*.mjs' --no-dev","check:1:installed-check":"installed-check -i eslint-plugin-jsdoc","check:1:lint":"eslint .","check:1:skypack":"package-check","check:1:tsc":"tsc","check:1:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check:1":"run-p -c --aggregate-output check:1:*","check":"run-s check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","sync-gh-actions":"ghat","test:0":"run-s clean build:1:esm","test:1-mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js' 'test/**/*.spec.mjs'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":"^14.17.0 || >=16.0.0"},"devDependencies":{"@skypack/package-check":"^0.2.2","@types/chai":"^4.3.1","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.1","@types/node":"^14.18.16","@types/verror":"^1.10.5","@voxpelli/eslint-config":"^14.0.4","@voxpelli/tsconfig":"^4.0.0","c8":"^7.11.2","chai":"^4.3.6","chai-string":"^1.5.0","dependency-check":"^5.0.0-4","eslint":"^8.15.0","eslint-config-standard":"^17.0.0","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-mocha":"^10.0.4","eslint-plugin-n":"^15.2.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-security":"^1.5.0","eslint-plugin-sort-destructure-keys":"^1.4.0","eslint-plugin-unicorn":"^42.0.0","ghat":"^0.14.0","husky":"^8.0.0","installed-check":"^5.0.0","linemod":"^0.1.1","mocha":"^10.0.0","npm-run-all":"^4.1.5","type-coverage":"^2.21.1","typescript":"~4.6.0","verror":"^1.10.1"},"gitHead":"6c1ba42ae35f4559c5fad941e20918bca0970599","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@2.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.9.0","dist":{"shasum":"30abb5a683df60b04744524b2b7c0255c22f68b2","size":5546,"noattachment":false,"key":"/pony-cause/-/pony-cause-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-2.0.0.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.0.0_1652080386302_0.43963768560154226"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-09T08:01:56.954Z","publish_time":1652080386495,"_cnpm_publish_time":1652080386495},"1.1.1":{"name":"pony-cause","version":"1.1.1","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","types":"index.d.ts","scripts":{"build:0":"run-s clean","build:1-declaration":"tsc -p declaration.tsconfig.json","build":"run-s build:*","check:dependency-check":"dependency-check *.js 'lib/**/*.js' 'test/**/*.js' --no-dev","check:installed-check":"installed-check -i dependency-check -i installed-check","check:lint":"eslint .","check:tsc":"tsc","check:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check":"run-s clean && run-p check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","sync-gh-actions":"ghat","test:mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@types/chai":"^4.2.22","@types/chai-string":"^1.4.2","@types/mocha":"^9.0.0","@types/node":"^12.20.36","@types/verror":"^1.10.5","@voxpelli/eslint-config":"^12.0.2","@voxpelli/eslint-config-jsdoc-ts":"^0.3.1","@voxpelli/tsconfig":"^3.1.0-0","c8":"^7.10.0","chai":"^4.3.4","chai-string":"^1.5.0","dependency-check":"^5.0.0-2","eslint":"^7.32.0","eslint-config-standard":"^16.0.3","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.25.2","eslint-plugin-jsdoc":"^30.7.13","eslint-plugin-mocha":"^9.0.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","eslint-plugin-security":"^1.4.0","eslint-plugin-unicorn":"^35.0.0","ghat":"^0.14.0","husky":"^7.0.4","installed-check":"^5.0.0-1","mocha":"^9.1.3","npm-run-all":"^4.1.5","type-coverage":"^2.19.0","typescript":"^4.5.1-rc","verror":"^1.10.1"},"gitHead":"1f1dff84a54a44e5253fa6382c9d32d37943d747","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@1.1.1","_nodeVersion":"16.11.1","_npmVersion":"8.1.1","dist":{"shasum":"f795524f83bebbf1878bd3587b45f69143cbf3f9","size":5297,"noattachment":false,"key":"/pony-cause/-/pony-cause-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-1.1.1.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_1.1.1_1636910266670_0.008745321835087694"},"_hasShrinkwrap":false,"publish_time":1636910266813,"_cnpm_publish_time":1636910266813,"_cnpmcore_publish_time":"2021-12-17T00:21:14.017Z"},"1.1.0":{"name":"pony-cause","version":"1.1.0","description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","types":"index.d.ts","scripts":{"build:0":"run-s clean","build:1-declaration":"tsc -p declaration.tsconfig.json","build":"run-s build:*","check:dependency-check":"dependency-check *.js 'lib/**/*.js' 'test/**/*.js' --no-dev","check:installed-check":"installed-check -i dependency-check -i installed-check","check:lint":"eslint .","check:tsc":"tsc","check:type-coverage":"type-coverage --detail --strict --at-least 97 --ignore-files 'test/*'","check":"run-s clean && run-p check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts')","clean":"run-p clean:*","prepare":"husky install","prepublishOnly":"run-s build","sync-gh-actions":"ghat","test:mocha":"c8 --reporter=lcov --reporter text mocha 'test/**/*.spec.js'","test-ci":"run-s test:*","test":"run-s check test:*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@types/chai":"^4.2.22","@types/chai-string":"^1.4.2","@types/mocha":"^9.0.0","@types/node":"^12.20.36","@types/verror":"^1.10.5","@voxpelli/eslint-config":"^12.0.2","@voxpelli/eslint-config-jsdoc-ts":"^0.3.1","@voxpelli/tsconfig":"^3.1.0-0","c8":"^7.10.0","chai":"^4.3.4","chai-string":"^1.5.0","dependency-check":"^5.0.0-2","eslint":"^7.32.0","eslint-config-standard":"^16.0.3","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.25.2","eslint-plugin-jsdoc":"^30.7.13","eslint-plugin-mocha":"^9.0.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","eslint-plugin-security":"^1.4.0","eslint-plugin-unicorn":"^35.0.0","ghat":"^0.14.0","husky":"^7.0.4","installed-check":"^5.0.0-1","mocha":"^9.1.3","npm-run-all":"^4.1.5","type-coverage":"^2.19.0","typescript":"^4.5.1-rc","verror":"^1.10.1"},"gitHead":"665b95d42abc3d80a8a67393689ccf289c60fc16","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@1.1.0","_nodeVersion":"16.11.1","_npmVersion":"8.1.1","dist":{"shasum":"3faea43f849715274e9bbd0db028ef2d106c959f","size":5109,"noattachment":false,"key":"/pony-cause/-/pony-cause-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-1.1.0.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_1.1.0_1636482513912_0.6419292746838337"},"_hasShrinkwrap":false,"publish_time":1636482514263,"_cnpm_publish_time":1636482514263,"_cnpmcore_publish_time":"2021-12-17T00:21:14.233Z"},"1.0.0":{"name":"pony-cause","version":"1.0.0","description":"A ponyfill for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"main":"index.js","types":"index.d.ts","scripts":{"build:0":"run-s clean","build:1-declaration":"tsc -p declaration.tsconfig.json","build":"run-s build:*","check:dependency-check":"dependency-check *.js 'lib/**/*.js' 'test/**/*.js' --no-dev -i type-fest","check:installed-check":"installed-check","check:lint":"eslint .","check:tsc":"tsc","check":"run-s clean && run-p check:*","clean:declarations":"rm -rf $(find . -maxdepth 2 -type f -name '*.d.ts')","clean":"run-p clean:*","prepublishOnly":"run-s build","sync-gh-actions":"ghat","test":"run-s check*"},"keywords":["ponyfill","error","error-cause"],"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"license":"0BSD","engines":{"node":">=12.0.0"},"devDependencies":{"@types/node":"^12.20.25","@voxpelli/eslint-config":"^12.0.2","@voxpelli/eslint-config-jsdoc-ts":"^0.3.1","@voxpelli/tsconfig":"^3.0.0","dependency-check":"^4.1.0","eslint":"^7.32.0","eslint-config-standard":"^16.0.3","eslint-plugin-es":"^4.1.0","eslint-plugin-import":"^2.24.2","eslint-plugin-jsdoc":"^30.7.13","eslint-plugin-mocha":"^9.0.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","eslint-plugin-security":"^1.4.0","eslint-plugin-unicorn":"^35.0.0","ghat":"^0.14.0","installed-check":"^4.0.0","npm-run-all":"^4.1.5","typescript":"~4.4.0"},"gitHead":"9e4767bf1f7a3976b726383105deb7371cc03d1b","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"_id":"pony-cause@1.0.0","_nodeVersion":"16.9.0","_npmVersion":"7.22.0","dist":{"shasum":"d0d39fae5bdfc516f9c20487b13d75c955967159","size":3918,"noattachment":false,"key":"/pony-cause/-/pony-cause-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pony-cause/download/pony-cause-1.0.0.tgz"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_1.0.0_1631741310142_0.39244886361530895"},"_hasShrinkwrap":false,"publish_time":1631741310278,"_cnpm_publish_time":1631741310278,"_cnpmcore_publish_time":"2021-12-17T00:21:14.414Z"}},"readme":"<div align=\"center\">\n  <img\n    src=\"logo.svg\"\n    width=\"400\"\n    height=\"auto\"\n    alt=\"pony-cause\"\n  />\n</div>\n\n<div align=\"center\">\n\nHelpers and [ponyfill](https://ponyfill.com/) for [Error Causes](https://github.com/tc39/proposal-error-cause)\n\n[![npm version](https://img.shields.io/npm/v/pony-cause.svg?style=flat)](https://www.npmjs.com/package/pony-cause)\n[![npm downloads](https://img.shields.io/npm/dm/pony-cause.svg?style=flat)](https://www.npmjs.com/package/pony-cause)\n[![Module type: CJS+ESM](https://img.shields.io/badge/module%20type-cjs%2Besm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)\n[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js)\n[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/voxpelli/eslint-config)\n[![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)\n\n</div>\n\n## Exports\n\n### Helpers for working with error causes\n\n* [`findCauseByReference`](#findcausebyreference) - finding an error of a specific type within the cause chain\n* [`getErrorCause`](#geterrorcause) - getting the direct cause of an error, if there is any\n* [`messageWithCauses`](#messagewithcauses) - gets the error message with the messages of its cause chain appended to it\n* [`stackWithCauses`](#stackwithcauses) - gets a stack trace for the error + all its causes\n\nAll the above are backwards compatible with causes created by the [`VError`](https://github.com/TritonDataCenter/node-verror) module which predated the Error Causes spec and is still used in parts of the ecosystem.\n\n### Ponyfill for Error Causes\n\n* [`ErrorWithCause`](#errorwithcause) - an exported `Error` subclass that works like the [Error Causes](https://github.com/tc39/proposal-error-cause) spec. By using this class you [\"ponyfill\"](https://ponyfill.com/) the spec locally rather than eg. polyfilling it globally.\n\n## CJS + ESM + Types\n\n`pony-cause` is dual published as both CommonJS and ESM, use whichever you like and make use of the TypeScript compliant types no matter which.\n\n## Examples\n\n### `ErrorWithCause`\n\n[Ponyfill](https://ponyfill.com/) of the `cause`-supporting `Error` class\n\n```javascript\nconst { ErrorWithCause } = require('pony-cause');\n\ntry { /* Something that can break */ } catch (err) {\n  throw new ErrorWithCause('Failed doing what I intended', { cause: err });\n}\n```\n\n### `findCauseByReference`\n\nFinding an error of a specific type within the cause chain. Is typescript friendly.\n\n```javascript\nconst { findCauseByReference } = require('pony-cause');\n\ntry { /* Something that can break */ } catch (err) {\n  /** @type {MySpecialError} */\n  const specialErr = findCauseByReference(err, MySpecialError);\n\n  if (specialErr && specialErr.specialProperty === 'specialValue') {\n    // Its okay, chill!\n  } else {\n    throw err;\n  }\n}\n```\n\nUsed to find a specific type of error in the chain of causes in an error.\n\nSimilar to [`VError.findCauseByName`](https://github.com/TritonDataCenter/node-verror#verrorfindcausebynameerr-name) but resolves causes in both [Error Causes](https://github.com/tc39/proposal-error-cause) style, `.cause`, and [VError](https://github.com/TritonDataCenter/node-verror) style, `.cause()` + takes a reference to the Error class that you are looking for rather than simply the name of it, as that enables the TypeScript types to properly type the returned error, typing it with the same type as the reference.\n\nCan be useful if there's some extra data on it that can help determine whether it's an unexpected error or an error that can be handled.\n\nIf it's an error related to a HTTP request, then maybe the request can be retried? If its a database error that tells you about a duplicated row, then maybe you know how to work with that? Maybe forward that error to the user rather than show a `500` error?\n\n_Note:_ [`findCauseByReference`](#findcausebyreference) has protection against circular causes\n\n### `getErrorCause`\n\nGetting the direct cause of an error, if there is any\n\n```javascript\nconst { getErrorCause } = require('pony-cause');\n\ntry { /* Something that can break */ } catch (err) {\n  // Returns the Error cause, VError cause or undefined\n  const cause = getErrorCause(err);\n}\n```\n\nThe output is similar to [`VError.cause()`](https://github.com/TritonDataCenter/node-verror#verrorcauseerr) but resolves causes in both [Error Causes](https://github.com/tc39/proposal-error-cause) style, `.cause`, and [VError](https://github.com/TritonDataCenter/node-verror) style, `.cause()`.\n\nAlways return an `Error`, a subclass of `Error` or `undefined`. If a cause in [Error Causes](https://github.com/tc39/proposal-error-cause) style cause is not an `Error` or a subclass of `Error`, it will be ignored and `undefined` will be returned.\n\n### `messageWithCauses`\n\nGets the error message with the messages of its cause chain appended to it.\n\n```javascript\nconst { messageWithCauses, ErrorWithCause } = require('pony-cause');\n\ntry {\n  try {\n    // First error...\n    throw new Error('First error');\n  } catch (err) {\n    // ...that's caught and wrapped in a second error\n    throw new ErrorWithCause('Second error', { cause: err });\n  }\n} catch (err) {\n  // Logs the full message trail: \"Second error: First error\"\n  console.log(messageWithCauses(err));\n}\n```\n\nThe output is similar to the standard `VError` behaviour of [appending `message` with the `cause.message`](https://github.com/TritonDataCenter/node-verror#public-properties), separating the two with a `: `.\n\nSince [Error Causes](https://github.com/tc39/proposal-error-cause) doesn't do this, [`messageWithCauses`](#messagewithcauses) exist to mimic that behaviour.\n\nIt respects `VError` messages, it won't append any error message of their causes, though it will walk past the `VError` causes to see if there's a non-VError cause up the chain and then append that.\n\nThe reason to use this method is explained by `VError`:\n\n> The idea is that each layer in the stack annotates the error with a description of what it was doing. The end result is a message that explains what happened at each level.\n\nIf an inner error has a message `ENOENT, stat '/nonexistent'`, an outer error wraps it and adds `Can't perform X` and maybe one more error wraps that and adds `Can't start program`, then [`messageWithCauses`](#messagewithcauses) will join those three errors together when providing it with the outer most error and return `Can't start program: Can't perform X: ENOENT, stat '/nonexistent'` which provides details about both cause and effect as well as the connection between the two – each which on their own would be a lot harder to understand the impact of.\n\n_Note:_ [`messageWithCauses`](#messagewithcauses) has protection against circular causes\n\n### `stackWithCauses`\n\nGets a stack trace for the error + all its causes.\n\n```javascript\nconst { stackWithCauses } = require('pony-cause');\n\ntry { /* Something that can break */ } catch (err) {\n  console.log('We had a mishap:', stackWithCauses(err));\n}\n```\n\nThe output is similar to [`VError.fullStack()`](https://github.com/TritonDataCenter/node-verror#verrorfullstackerr) but resolves causes in both [Error Causes](https://github.com/tc39/proposal-error-cause) style, `.cause`, and [VError](https://github.com/TritonDataCenter/node-verror) style, `.cause()`.\n\n_Note:_ [`stackWithCauses`](#stackwithcauses) has protection against circular causes\n\nOutput looks like:\n\n```\nError: something really bad happened here\n    at Object.<anonymous> (/examples/fullStack.js:5:12)\n    at Module._compile (module.js:409:26)\n    at Object.Module._extensions..js (module.js:416:10)\n    at Module.load (module.js:343:32)\n    at Function.Module._load (module.js:300:12)\n    at Function.Module.runMain (module.js:441:10)\n    at startup (node.js:139:18)\n    at node.js:968:3\ncaused by: Error: something bad happened\n    at Object.<anonymous> (/examples/fullStack.js:3:12)\n    at Module._compile (module.js:409:26)\n    at Object.Module._extensions..js (module.js:416:10)\n    at Module.load (module.js:343:32)\n    at Function.Module._load (module.js:300:12)\n    at Function.Module.runMain (module.js:441:10)\n    at startup (node.js:139:18)\n    at node.js:968:3\n```\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `pony-cause` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pony-cause?utm_source=npm-pony-cause&utm_medium=referral&utm_campaign=enterprise)\n\n## Similar modules\n\n* [`verror`](https://www.npmjs.com/package/verror) – a module which has long enabled error causes in javascript. Superseded by the new Error Cause proposal. Differs in that`.cause` represents a function that returns the cause, its not the cause itself.\n* [`@netflix/nerror`](https://www.npmjs.com/package/@netflix/nerror) – a Netflix fork of `verror`\n* [`error-cause`](https://www.npmjs.com/package/error-cause) – strict polyfill for the Error Cause proposal. Provides no helpers or similar to achieve `VError`-like functionality, which `pony-cause` does.\n\n## See also\n\n* [Pony Cause announcement blog post](https://dev.to/voxpelli/pony-cause-1-0-error-causes-2l2o)\n* [Pony Cause announcement tweet](https://twitter.com/voxpelli/status/1438476680537034756)\n* [Error Cause implementations](https://github.com/tc39/proposal-error-cause#implementations)\n","_attachments":{},"homepage":"http://github.com/voxpelli/pony-cause","bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"license":"0BSD"}