{"_id":"pony-cause","_rev":"18-8b7dc0f85e2a66576fe619cbb0b6fe3b","name":"pony-cause","dist-tags":{"latest":"2.1.11","next":"2.1.5-0"},"versions":{"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":{"integrity":"sha512-thQ/1Jj8F+mZZi68DJSGQ86Qqffkervhhr8LZg+tnJA80g/n64hG736/vC/bNckFumutkU9RGQPxFvfoXd8TXQ==","shasum":"d0d39fae5bdfc516f9c20487b13d75c955967159","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-1.0.0.tgz","fileCount":6,"unpackedSize":10294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQmV+CRA9TVsSAnZWagAA4EAQAIPoMX7Kcr5+z9AHzJIy\n71xtr7Pb3U1Qiuwiop5iwXTKVR+komgNhqkXjkCH5ORi79vKpfVxdGuNwhm+\nXi631+ZdxE4Ib2ytCusFU8PbSvINg/5TDC/4ONdjD7wSVw8HaTuc0oMBMCfK\n+x/eUQ2RYFi7LmkpJalP4PP8UoGM426H7bgM9qUpbOzF0PqWVfOGp9OWm6/7\n55FR0df52ArKA5XqQEeDbxyHq4JZn+IcpeRT7RMZ4J2NlsLOrnczRp/pLvvV\n9zqWBRC8RrE2hDtKNYVuoKtZUedQao7HR8AJGVOKv8mGsxBzVfdqydDGA7pj\n3r9bXIQj8V4tryI3mGJHrW/Kv1gTbvs2G5pCH0tc1udHto0TsV5TaBW3xJPQ\nxq2HZajuiGSyebIes8TrX3pqo9zjea6A7dtBjb6NkJsednn3kJLCfYEfoBO1\nqk8olqtfiIt2qyYXjecQvi2g9I846R8nKOul1/sFAiE5/OaiVuUau2wNG+Is\numTksGXr8GCxztmo+T/oLcNuHm7rWkFjaRK6/Np5EMtIAwsv9RqldYzy/9W3\nQVR80QR7YdL56HnscZSIyNu/rVtXFWLXJSZ332i4V+lkgWhxbMVNfmQA0Jps\n3CsUn0DvAlCefLc/Cqo+AQFKA64bJa29UnomWkVenDV0Nzw4yAWiRKkcO2nD\nYnuV\r\n=EsAb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtzEjOv9cru246GCujv1SaBCZG49xn82/D50b5SGCWhAIgV9u410Cr+mHHa4imMck4s5n0OQv26xduuFNqSVr9y5Y="}]},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_1.0.0_1631741310142_0.39244886361530895"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-OmHpxuOYdMzQpPIHD56NjzsIao7CeXpeFy+D19vrVcHrLNC5VWLtELgPGRQPZl9tT/SiHBrEzkGbiDuTA87xow==","shasum":"3faea43f849715274e9bbd0db028ef2d106c959f","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.0.tgz","fileCount":5,"unpackedSize":14217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHzWCjFSghTQzAUPpaL/qQzFdjS4vGirxLech4SS9ReMCIQCoOKoEsihvHK1ClA80AnC51859CjUAIGnBQLo8+x9rMw=="}]},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_1.1.0_1636482513912_0.6419292746838337"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==","shasum":"f795524f83bebbf1878bd3587b45f69143cbf3f9","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz","fileCount":6,"unpackedSize":14821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh228kCRA9TVsSAnZWagAAN9kP/03rxxgpepwd0YuniODt\nCXTBgB2TbxLDN065GNpJMWAuMZ7gn7bL5dJKYY5PO0MDXc/3+Bt8/mD+7pA3\njhaEurEny1I/JVIkQ2B++EPT0He2DQawCNRZbSXjlR0agnRdV1V2QnIB5a7R\n/H6DPG1+9YY9sZKEUXacrvv/5ZVWPXOQWVByiX0LfXN0PmZ3GTidMyeADLn2\nTSbfThsTNEAPCNpGkgqe3MiVU0CxRxGW9OMxCiykcCkz5Pui8Pj8pPUBlNTL\ny0v8UhCN1xGTYFgvgU5GthUCQTpdStWQePuU+w6M9IqgQ6Y3gts+lbJ2xwYx\nfVF80M6L3tcnVIIuUk0dExkTG74qwS9iT7NoL53Vfr74gTNMlswECt5Sllpy\nXWOKftvjGNku4W4PoGDExQyyksGiZWR5MZff2l6Y0KnhqDCk13cf6nIPlECt\nO/M5mSB2OEsa7ddE4GfZxmOmSTkJy/p7pDE2r0FtzNuRqZBqQge51ramNsOG\nEecWC0L290X8mqHh2Al8b/2Dqd+lG4YUDWO/tEAiNgWwgxbFtHMYrnyiOFDu\nRmFx/bFXwfDvDGDB11nDXvbDjXUQe7ND/TGPOpcSgT1UDppEsh6vBLuS0u74\nuIPD90b+GXiFymCtXaroG3JUGrGd9brWGCuG6W5dtPG21hQ8mJMf/csbIJ8N\nXaMV\r\n=x4TB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCErnzbaSuVIO24DpbjEibX6DrhqImJMUng9MZt78uktAIhAJFIrw5oGp8hsO7c/Y1jg8ZDJd9MqAOlGAFlswz/dkT0"}]},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_1.1.1_1636910266670_0.008745321835087694"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-4hgFdnFP+sBokFSMpm95gYUILGEVnJ80LxL8wZTTZX6YvYLPZ5ffCcOc+B9jFFC7tm7A5NssqxMhbrSzkcgzig==","shasum":"30abb5a683df60b04744524b2b7c0255c22f68b2","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.0.0.tgz","fileCount":7,"unpackedSize":18974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGfrSblPRUIUpxQqUdp9bU7KkVhg11WoYYp+ZXrT2jNAiEA/B5oT+O9rM3KLh/cnJzliKwXfm9nGi5mKkrJrjAKy5s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieL8CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9cw//QFABKIbAqozTAd7uKnKomqbMicM/AYgRI+rv0iUlBgsUI5/o\r\ndlwfiMMHpqy1l7MWiiwOksNEYcRzSs1sV7vHuMYB7B60jyZlFpTsBr5tk9Uj\r\n4cVe+m573xWGW91xtLNWvcc0L8EpWJD03Xa3Cik3BdO9f52ruRkXHRr5s63I\r\nYE4KorzJA39W/iwAQLacNMwLGKXZsBKA9Jijes9ErNF2PViPXjQh+UpoeVkR\r\nnwEL3jsUNYZVLGrzW9EZAT6ZZpC4UFvinLemf3a43lS9zY8uocADDqXzE2Ou\r\nJlnfflnSbZXN+hmfufFe3MWmaAZshTCIXdobNu+vlZpi6TvVIaIVokc7FqJg\r\nP35ZKkmeP+1eewyYli/wWbLeOkwF5uaiOjHFpxh37Ny7cMwdQyY6iHRMBHRE\r\nwiy7/FABKvlNzhvH+j6RbwgjaFL6TtCv5Oe2zMbgVtXW6NAJd9PHbUG63873\r\nZPXKt7QF3FeEmPXpFM4YnICbtVWlcyxl43+SQrqeAaXCDyTtcZOsXWW5L2br\r\nsIoxuV1r1coRyr6nHzAZ212hJxTs9+WK2N+00eFvQ5oWb7dGb9wI0bBt1+Cd\r\nfn90FF7S2zDPeK0YNhh4hIjVuTTirHQZHid4Rd9DvVgIkdnI5yvFdHxU8r2q\r\n+9+YXMFGthdwD+N0m/bWSlg8YVLFBpuAvOo=\r\n=20Ha\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.0.0_1652080386302_0.43963768560154226"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-PZz6LRmjNX62ST5keyWRW9vLpboY3PulzPU6ABgjvH8NS+aDzu4GrCLQ9lZdB1ABj61PQRKjSCwyDY+716eJvw==","shasum":"08133893526fa93edcef0a6c6b432db17f34c404","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.0.tgz","fileCount":17,"unpackedSize":21419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa8YjpYUt6mJg4rD69X9E1h/K/BIedbWlxZ15JHNE+awIhAP5q4YRsUjwyXlw9oxWcV/rDXenMd0aIxwLKT9q4+DQJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6EKUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKSA//amvH0MFA8Knp8rxUFurwc9TQ+EfMAHmAK822fiaMVH/ljiqn\r\n+rFWKVDv/0YIbYKUU9ybsDwjwQBh/NnJ9QUWwGSc58rIsGyGkMt4npkYHV5g\r\nAf2+0ZSLZku7RtJVIdTBrrcobFRmqoqD5/9mYI5NPgpngXc+RrQl65ClUIN7\r\nnQ5mlE2E+TWEeATMsIlbwQ3AYN4nBWlq8GVSgp21Z5RKJ6KwvrawYcgn5bqr\r\nRPxrMg3RWWhEDaK9enNTVJEzDjJYj19jypVE3lzpc8xMXACfEJTb3AjNX0rW\r\n94JclwCrrK8upQ5H+k1IS/byw6UEkP7yChRixnlgKzvYaTwR4Rh7hJm0qNrS\r\nzspPVJFtVsw/VKNyMg7DUOuZMCMf9ZP+Sglof9kv6Xt+OWSCQIs2TeLug2De\r\nrcI81V2IiiIMKkI7oP88NROpZul93CbNG9DeR5Nq7NeG7gljbQoTdCACTy4B\r\n3bxE6+94mXKexFeaKbyv6PdlxvoozfR7hHrhjaoyPfM1wxLbiBKZOanTCyXI\r\nBnLrCjYr5+vHX91Q2fDlJadoaN2coLM5fpx7p7rWah0lZX1Rbl+2wSubPkPK\r\nhvdSutt25t0Wtn2nqpvooTMdPNC123cuecJ3pE9dRjkdu5MW0FiLhtEYkuRM\r\nfioiJZX4Fv382rCva8z+i3Szd9gxIqWfPDo=\r\n=XJlH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.0_1659388563957_0.7474112946802216"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-tMnxHSPLgkB48XvnmhjdwtGG6KvvF1Mfdv6x9nsn5JIzWnzwcy/DUATEt3hC1Srjft7tRc9vyR1AM7zvjNUjkA==","shasum":"a7762ff9092795235188d8423d9da1404f4a547e","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.1.tgz","fileCount":17,"unpackedSize":22276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYxdd+EXQpufyvntbA0uvKFMN3HuKQJ4KhY4sojejZiQIgdMjinbOIJTPWV/sl439RYRoP2JeIHt+AQGl7n2mxajk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7X1sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqolw/9HJiSN3wr75j02pXtsB3tjBjURCAzfqr+eLyS/AmDSo9UfJX2\r\nqnMKzaXxMy3oAxjh9Mn1LXCtAmygLdjAta7wnPDgLTMva26OTIo/WP2ixg/w\r\nNbVweFeuoJZtibFA5ZIjKe+XcTGTB0K45H3d6VKDLLjBcoFI1/97a65+Sw/a\r\naA6jiOQnMdXlyNO4IFB6O1rEuUlkG9jCTNUBOKpsbC0Kn0DGBZAh3b2NqAjo\r\nIYckKLTSqDKJb1uF4czHypLURfl2DIk84KjVswUb9JeZ482NN/Ce9s7L2DNM\r\nvhi+cZvxNIiNszn9MpuWFy8S7zNfQbhWNnLgjktI2XGj9T665W6mgnxMPYGF\r\njorIs3/6o63SSC8VB7/js6ZZQX9QMGsi7EIc3iDRM3h496UkqJFt7JIsLut7\r\nG9N0xzNAaGrybgTSXipqxO77GGncszF49I0tVPFqRfXpo1wAbUb6+Wl+0D8E\r\nxxfzuW1j5rGTxVJuzK3JZrsFMyWeAQvVUxciQvhAuPRwEkxZ6INVEGacMpPP\r\nkz6psz3daGY0Z7iC7nqXxsAhOXt01HFTucfSynHZCUI9Dh4R+mJuMuJLUADK\r\nGBPxJFzc+IJBP17C7lSCGOYvkDL1M56JN5MYAaGbOR4vsA6Sa9KPm0eAG41h\r\nYJ1ap/5Tjme0Kq+zyIgpUUHWkvpnXr5QopI=\r\n=JWu3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.1_1659731308125_0.22395291513592275"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-0oJJHIqnrhIt9DnlOG+qa8s/Pix1HqU6beUJqjPFpJjIJRjSIc65/ePbLZO2EIMhJYAP2xebSCEP85jCVW8qlw==","shasum":"e470bdfb1960c5269dae8b052b13287f7f0ea524","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.2.tgz","fileCount":17,"unpackedSize":22316,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEE6CThKlAihd3BU8PVHRCzYEf3GzRsFD7E0ahgj98t/AiEAonGiqB1U9qVgky8ceAO5+VCKuM7eXrCgBXB1PavOgUY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9jEvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolhA//SsHO6xnkLaNOTKX05o6WdsSwcrx3LqY7z+cwcoYND+05Rs9U\r\nPHyleXEbf7kO5trgLRNauQznT3im4BL5swvp+oiKMWEFNk08E5yqIf865TH8\r\noh/c31vxU5RJBtEVK3wBaV/ikQ58/BDKKj2Y9jQ8WcmGMPRdlrU81vM0RiZf\r\nD6tgC/96ppW6VyTj+QEJtRufXmDGPoNp85bxZh2rrhn57uuHjHbksozJE7ln\r\nuldDdfLn/a8m4/NSfksWaxx+dF7Vsv+nP044uKDc4NZswNPyZQqv5wg3px34\r\nsBwPKUW7EfwkR0N2wjtf3sjm8RXsnororzm0Y4l3h2ob5E9eYmlyHQ3QC1wM\r\nARD+VbwLa7tb0dgHqiLplQ4gytv8yQJ+edsnmFjGZyMhXvqY2mIftrsmtaV8\r\nyEi+tIGOFi2M+4xPZ1aT4R36gszsQ8bSBXP4/t6oUojxxpqz5n2fu0gGIYtX\r\nAftk7FJtgBHNQQgNIlJdLHzilNzohp07re3cE1GsmlyTAcvwD52U5SqvpPOb\r\nTnGff2VUs0nHH+9pkwZD3G+APUACN1hW+s9jIX3ABfqOzN40ArVIe5sjnf8t\r\nUnYBwSPuUBenM0fuYR9JCgzBamwOJLswKhzjLPmaQLXSbfO/D092B0+qQCnM\r\nSSdxmoxkqRfux+EChMXW7TSWtwIRrPMC18E=\r\n=Fr/F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.2_1660301615762_0.3892989308810122"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-aPy6asQ7rfyDnEvqMYOsKHsOI90Y5VYa2HCvnP2M43zEfmTzVZjYMjHGiLCeu4wK07EZ3TZzOhy7mfpaYPJh/w==","shasum":"7ae2d585bed8f2721c967be5bb9c54f4dba6b1cc","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.3.tgz","fileCount":11,"unpackedSize":20782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoOMYDfVR7zk0L/Lv4C+jOppT0egtkku7Tr50FGE6zdAiEAigOqUzsH666m5Yh+ucj7pQ2PQSO0B3tbblKw0sZpQNI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCMnwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmZg/9FabWR5J4EVzU30KkANKbXaADh46VP9iFxElxUFz6x3Ne1Sri\r\nP4aHxeiV0X2EvpR9zQ8XHBaVjrjRzCcKAREUbj15l6LrOY8S5sGCYfMNNRUn\r\nY4vl9HlTgDEtL3ZOWAmhJ2Y4zgAdW1LSBKXAeVIMtd2+zr4XhoZRYycanAwv\r\n28DNeHXHAvRO8aME4RhQ1dwNZmJEMPvY/rjeWcfv0hra+S3ed+ZTg6+v3RnD\r\n1TYbO3VG6NmbdDpxzxFrcP4/Ih4o+h9101onlQGvAfhoDKxzKSAAFUQyM+WK\r\ni6hw4m7DumWsO+hQuV7uQFV7sIuSgwInvqSpuob7ZpE6k41K+RKT/0MeJkkk\r\nLnrCUc+l4j5ElXPrjvvqU/p8hEpYFVfQnPbv0TGDuQBRcpsAE3YGUt62EArN\r\nxsrq1xC+wNz33eIRUxEnYbxbBewiovJAh+AeHqSJvoWWW9WJkbKQzjOOAkyS\r\nL6ohfnmQuI+Nax0J0cVGxf1cJwUvUL9ET53aw01AZlPt0MBL9/3L4iJmfNRa\r\nDGLKDOfXXMElKngqLyiQeMoDJW4YGny2w7d4MkEt4/EeIVVEPiCVG9/MW0QI\r\nDmqZLmncL4Gn97mzjXFL/At+lTLMIF2P5O6wamVlGmSCmDFlUnpWnGXuWJ9K\r\n6rRQ2YitODrk6oT0wNzEnl/SMz6yjTVbTWw=\r\n=/Wg4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.3_1661520368075_0.04966323450881993"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-6jNyaeEi1I4rGD338qmNmx2yLg8N/JZJZU8JCrqDtfxCEYZttfuN6AnKhBGfMyTydW4t2iBioxDzKeZJC2mJVw==","shasum":"18ef4799b5207ad0a7bacf5ea4602e6b06c75c8c","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.4.tgz","fileCount":17,"unpackedSize":22328,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuAz8M+ns+4phPQkMkTEn0fWuQbrTIgjwbzO/YthpExAIgCG69KnG5KyzdRZAPONAYvIp7Uf5WNhoVv1JJ0mOho/0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCM0sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4yQ//fB9FJ1z69HW0XLsi8WZnKk53+ehmT75c94YbfAx/0XBuOc0c\r\nZSqu4IfUVh4jAx/H3aMY+C2xGpseROkRvNAgF/Ub7bMN0dz956H3WAfXbSwj\r\nUJavDtGvBBA9Yje54PPmFV264+ATUrKQ3OOsnaqk1rCKkCis0EUm2yH0MS6y\r\nehY/JpcFCklOyZkBdSQttkz53ZAu7A/zcl6zpJC6+ZO4F3MQZ3d7Jpk3l778\r\nbe2pkW7HTlrd0CzouDwUoAe9XtgnJNx57deKpMOpHhE4RMMXVz2Z1SG5b3Be\r\nxc1NXo1JI83WETlDkVDMX1tAY1+B/MabAKNyQfjM4zCeuqyU4D9q9aVSzsv0\r\n3k2h3aPii0smLOk9OI3Id8mH6NGsfnhr5oomMdwFXPJ5OLqld8UbxT03pKmA\r\nZjvEfN3jwZmRSTalZENpmhSjeKkvbtGRW4sSAMfjJMfDSePp38H12aS27hri\r\n4ClWx+dMdd3kMQ8hmX08khuE5R09mCzks4zRrCAC03pJ48e2a0jXPkyyj6Eq\r\nD3gaVZylph3oLWzIlrzjF5b0CezrPAyHtz7Qixps0blB9gYs8e9FU3e3137g\r\nAXk6MrnqiWKrCuWRi7nDJEGuSEtVPx4MRdjPStqzJmDDt18rhPTRrCzr4x09\r\nzMhAqqyFJyH/2qOV1fxcfV6otLd6D2OmVow=\r\n=IvfZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.4_1661521196534_0.75857258041062"},"_hasShrinkwrap":false},"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"},"readme":"# Pony Cause\n\nHelpers and ponyfill 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](https://img.shields.io/twitter/follow/voxpelli?style=social)](https://twitter.com/voxpelli)\n\n## Exports\n\n* [`ErrorWithCause`](#errorwithcause) - an `Error` ponyfill\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\n## CJS + ESM\n\n`pony-cause` is dual published as both CommonJS and ESM. Use whichever you like.\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 {\n  // Something that can break\n} 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 {\n  // Something that can break\n} 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/joyent/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/joyent/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 {\n  // Something that can break\n} catch (err) {\n  const cause = getErrorCause(err);\n}\n```\n\nThe output is similar to [`VError.cause()`](https://github.com/joyent/node-verror#verrorcauseerr) but resolves causes in both [Error Causes](https://github.com/tc39/proposal-error-cause) style, `.cause`, and [VError](https://github.com/joyent/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    throw new Error('First error');\n  } catch (err) {\n    throw new ErrorWithCause('Second error', { cause: err });\n  }\n} catch (err) {\n  // Logs: \"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/joyent/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 {\n  // Something that can break\n} catch (err) {\n  console.log('We had a mishap:', stackWithCauses(err));\n}\n```\n\nThe output is similar to [`VError.fullStack()`](https://github.com/joyent/node-verror#verrorfullstackerr) but resolves causes in both [Error Causes](https://github.com/tc39/proposal-error-cause) style, `.cause`, and [VError](https://github.com/joyent/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## 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","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":{"integrity":"sha512-anO5toMUJxLEf3U+cJyTSQNaYKVuHHgGI/6ps0lV90DNdQ0+aac049Z2gZ7FPnhcKMFKkSsQt0LSS1H9f8ivvA==","shasum":"264a02622056171abfce405dcb1e8e7c5e43cca6","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.5-0.tgz","fileCount":17,"unpackedSize":22954,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbQLrCOJhAFW6vuYTTu7uOz3+FRKyPuCRvITkhhbdcQwIhAMSrZfArAf5GpzTHYrOFkycfpgu1Cg907MWXQwQDH3j8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdmVvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGmQ//RLxY4oa/q9Tmh1H9MhtI5/fehFxQHxGUw5cNLt0YpQeOFiDj\r\nMwfFsvvVfgNvPKQw+z48qWtjLTAVyMfe5ieR+5crU6vIXrptTKNEwi5zMQ/T\r\ngsvoFM50yXM8IWw4ZPAeM36pvn4C5IQC5EYry1DROTMjH6NqXx2wixTDz+gj\r\nLPX3pcPxGdKayUh13EN0Ev51p7+4X5SIyjBCvHgqC+2EJcpws+HPfW11UvpH\r\n9woDkfuqkpCR+FtHYCnUXRh9KpnbEZdaB+jM/PeKGRDhCGuQqUDhABrqHG5H\r\nYpKC1IKncqwUqQDNf9l65xqhf7o3T4fYXMjW5+wvBf0S6uH4mAisOjp7aQ/K\r\n++cilRs/Ra4tEsDvWzXQGcz3ugczL0bhNcIke4h5Pdn4s1hVpTYdGuldwdTm\r\nS89J3mBWYvHSfBM+q85oMvgJ7k3hvpZ2qbrYayNzUCFt20BHMFka6OPSnekm\r\nT9NygvD07y3y1sGGJamvCy5M1OEY2CwxfB865S2nYu36sfAUCARXY/EkPHa1\r\n0XbvSH8tbmDR2TTbTW/O3wPBglUD4E3qsB2MtyXyLS69l7ZKPuJlr/wPuTig\r\nu5U5D/xjwj72UXBxvNyGM0GTQlQaH1uRB63SbeUa8NVTH0nybKOToABK2rer\r\nKWyGaOUAwHpXxD82XNK0QpIWdeZaam1w7Qg=\r\n=loU/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.5-0_1668703599648_0.3178682839882645"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-809zZLiZP+schpaZET9SCSyiVC3FOYogS87e5a5jTTRBwPAoZPVKWqPitf89A3Amn0HbG7/ZaAJf1P/2kSP/vg==","shasum":"d541c66db2addf1694044f3dcbe968b66f5254a6","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.5.tgz","fileCount":17,"unpackedSize":22952,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsPs8/I5uFgVhJEkoXU39OTd9zm4SIMs1x/CYeBwMX1QIhAPAyzWCVvXY4QimkvgNpP0cXqdTdIhDXXb7QLz/7LmuW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdmcCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCcw//UN5wDnE2628uCc/8WqLeIansXQEjvg7IWE+ecu5wShLgORmY\r\nb62shhoPr0b601n0KSliFrbT3DMcgjNQiLnp4tOXMdGT0rrzZsWe39S3EmIi\r\nk5s3J3BC8eGj8jNn/b29/gZcyZX1PUWb186ax4UT2v0Aim4IMMY5lBT3U8Mi\r\nEK+Onx8ZRN1lJ5xLojaheIjC/oPbTnGcAvO7/wjsolSd2IwPcUfNYjOqcJ9H\r\nWQGipIDFqxgVsBZNtffhSHbBHEHwl8NOpN3wC3X3XH7dHg9y7wdN7EUnaxMk\r\ndCrOE+DDfH2VFUfSvXpc27msGJxXQdiK9LoGya8xSh6t5j2A8T3ywupzr69K\r\ngECvZeFYmh3jI40GVkrEcH81C9+KWOEJwk/Ucn1XkJEbClMCbOAyBFguBXB/\r\nEI3hpwVDvQWCki+zMX3lWemjjJPv2xk63apMslIGmvuyL5Ll6b39tgRT3T6M\r\nn0XT/Kk3ugsa3S3QeAHwFRKaDNBEyUYJY/EfQCdxZF/cbAhyWCwIRKHVMneh\r\n72KAvfng6yDNuhvfDIRWlKV2p4KzKHXQMyTkUAxIYMck23OAjuJio/LGqoQH\r\nv1VYRrULY/b/yWia9xcnGwCjz0ZJivSZxmUb7EV+vn2vEYpLIeF0ZLA7b+d0\r\nDdvdTrRUDnDQD3U0gCfBZLT41LEBG0dSvn8=\r\n=6+ch\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.5_1668704001884_0.2931376878123979"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-zXvT3x5jKtzKreD+2NDrSg0tQoYh2WHPCro1hJRcBUIi2hPvFyTh2FGquetZT+s0V5Gj6z5hApKt+7E3ILsU9g==","shasum":"7774891b89e6549f2a8dfad3e1d4c999c881f0f9","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.6.tgz","fileCount":17,"unpackedSize":22983,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAw2O7UyhqB/7YOHuIOxwE6Cziza+exhuxXNWt1sZecpAiAG7MQ63nrTaC9uiMbBQdr16pN9bB9Bk21go3bdrzBlsQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdmlEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHXA/+LuejBC9vxwJtbCR5jBSB0EKl6R552LrAdwVDUtmahrPm8yxf\r\ncD/tarUmghecEld/mfE+q5wg4AbvSRQunei/A99fgBPbslKUKv0B8rmQz6VY\r\nlkTfqkPoXS3U3vOKaao5KKXlDpuOTCHFFZBy9zpw8Z8HPq4vWc8uEAP2S1xx\r\nDFRENJhsVeUUZagQJsl+VdpTFZfPP2gVVv3lJS6daGfr1x0L8gyM9hRD6VUR\r\nTdYnqGZlyc9FuE2JvDJNG+KTTrtIZFR76NHZXUtSzQz8mhRrqVMqxrPHsdYL\r\nFt2q6xAwl7j5XiJgz//aMt8ORfVjobTGK4IBQ14Z2vIlxExKeD/7q72FDMd3\r\nw4lU244KgXIfvvXEhD6FHnp3kP4FeZv/S5f9OflBCR24ll6lV8yhCexvfBaV\r\n/npoeOkdl2YSJzLNy2lcAd2KNvB1x1qP93JGTBsUg1X7GZarXi7uywrwhrnR\r\n1J9tBj9po4iUHGA+2SJjYLvtjGnCk2CYCl5kKEqO7FvJNkTjGpM4pt6nzJOW\r\npuokxwQe8fYeJ42tv41+HEtYKbRwLqYd1RJPdENQUUlidE/T8DUHzlJN66st\r\nUj1txZ8LJxa1UBZ6Ta+yWrB/LDjPizNOK+xMM7yvQWAE/JJ9VoNHG9b81hGm\r\nNNBS0i3DNYPxFuFW36cbT1d7NQejzoRXD3M=\r\n=EKkn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.6_1668704579862_0.6717570359527996"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-Te/iF1m+rlVck57d0yywV1k3YPPkXnGzP+7jIstBNbq1/QOTQZbfB1GZbq+F4px8//XkTpIuc7hCjA9zyk2Qug==","shasum":"0aea441b9424eb2c3708fef54c2f5962416b78c7","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.7.tgz","fileCount":17,"unpackedSize":23010,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7/LK9xSV+y/g08k0ZT3lZdn5l25lf6vC2lKxOz8BzTAiAi0l/zBFgMuD86mD9rS5JooeVIPlqs+53z0QtNiTtaow=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjd57kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNLA//dIQzvuTSIqiM9AIdQXpVrq6sBeyqRHcnrl/g7rgd1dhUcyJz\r\nNugMUrN4eBclzwIQVFDgOpSR8xZxrRop3B3yafWeafX+ymoxi+ZvbvjBPNnp\r\nZpXasli/kXXnPyieLt50kpjWL7QhKVr0iKoWh67CoD2IgUpGAa1mo92VqMQa\r\nmIcRGQ72nFzVIljZLLCKcHO8zMzSSj068KnS5tMhBJINPOo60J8VfZ2CHWWb\r\nEqft6i3ORtqLjWtapz1Q52LqBG0qdBhLAxCuPd6lHEHZXG+tUIqGLlICrPia\r\nkQ9wW+oDlTJus0OFul7Gdyfdekc/1YK1b1oJOX1DMalfwfyvNFTvCEkEilej\r\nbHC8nTkytiZOmQkIbJcroa1eh7KC8EymlhCYWuooP3rSrJNk/eLWnIniHKwL\r\n9HwEdLpAI8QA9cI4lsKxLL2ETxYSukzUr3DtQRnaq3KQZ4fchLN2Lb4LPqxc\r\npMSamLxTTXIKM1I+DQf/ER6J3ltirrkwBbeFrGq5lEY9Wa8pXM3REExptC72\r\nXw81Vl2aRyNVyPwSHAaanm19aOW7AEhRfPt9+W5TOU5uQrj0kRCi7nvsqOmg\r\nyOBO0VOjcXLRPPCPYfgTdIe3h9jBHR1r42hbSvmpc+zBJoMWLGmk7mPAfdxF\r\n02KW3kboVt+rw7bwPsYH+kcEh/ThCNFefJ8=\r\n=n8oE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.7_1668783843993_0.9922087294332089"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-c4E5sVlX+npoRiKb72SkMOYMZ/c+jehaKAytybykhh49tEQYkjHxKSZ3YHUyH1v3oEL+wl3aXtkyYhJp+cNXDg==","shasum":"85d5c108566c63e81c6539a2f711598594543e4d","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.8.tgz","fileCount":17,"unpackedSize":23545,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAc0RxL4+FGJaVS2gkQNTH0wo3xRTTWI/NjsSHVMwWq1AiA+p2tJItkN3lE3CBHdoQEvqfCPK87QFpVPqWp93t2+tg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjd7b1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoxpw/+MlsguaqJP9aO9ilQMQmZOyc+/EPmRQiA6qq32oaqxPRgDbHW\r\nOmxSoe7xMBvIZclptvQo+I+sJfXrbW4GrlLyCWtxEq8vw/dueXwPFRaVlCL5\r\nOsuSxq/wUKazgDotYkFWnBffaMjm5I0cJfXdDBoMl4/ytqLNOhP3Lm2qXeNf\r\n4wH1NNyjuO/dkCD828UDIE3Z/1PHZDz8dBf11RCqUYv7NrcNGlaNrg7O5Agj\r\nwvV1zLfe2M2xEeDtPDEccrFMkyavaWuocgYpfu4xX1ttO2X45PJM7oDGYzyM\r\n64lGyBQDR9Q/kSOtV+mIez/Qi96HoB4mGcTbdMmObx3aOYeu0Z+i5wdc5ngv\r\nQ0XF1Kh/n7eEdKiAhQeovHrx9NbA4RyplPozycNCrGfinmC8/VBM+U52CPni\r\nRMbNu1UX71k8Jm/+oRcvzcgDNDdFp6kmcvVvu3KKNUUhcsfhOhh/D5oxQYVj\r\n63v8MsAmLk+x5w/20SWFq/WBK8L9I6K0Klb0xVdyzDN04HCcjg2eTrdQrHH7\r\nxmCqxCNYB+slvM13yG1UTz4znbd+MUm5x6FLwtZfB4QrHDRA38kVZFZ85ZNM\r\nxtcU+H2JqG1u+nu+Fq1/X6NH/eyYaGZ01ksMTbc39rLaZefdDBQnlz83PVq9\r\no0+P+D4iPHq2SWVz3f+rtwlU7eQeWOGYnGM=\r\n=TZWN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.8_1668790005170_0.528245963306712"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-DIWdKGa0CSu5W1ooX1bcw4jQ+Fo++sgee0v1iczO7epT/suU/s2XBA8JDMl+8zkXZkjyfHfPaEngFwK5L3D9pg==","shasum":"39cd05418a94ee285d6f956f7df530449a497605","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.9.tgz","fileCount":17,"unpackedSize":23942,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8ggBADGkjFWMUNHUy9MjybLjpSbu+lx+0Wr70/17XTAiEAz3lDaz21nt6rE+D4VJ5mMDyPJ3vte90aasMwOgBUFvk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGI4yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPzw//XEtqu/Die8j415GiqOPTk2DfhtOpsM543wp9RbTueTpLEooy\r\nGCVTjNCFVStxNavGCiwvcYphYp5G1oBg29SWA+pc3rnAd2Egq2hev/VLMTym\r\nRz19Djsjaj8S4q98bBdjfioNu4P4+43gU+lEpOGC0k0V8n4e9PIp6vQ/spNE\r\ncdtbOFxjGLyPJqMWkpgZ0iSD4acy/ROikY1BSI5nI5pcpXEy6AdSwK1i8ysJ\r\n0Vho280ny3uB7jVUGF8ijBTQRFidYwceyAa5edBctC0TjHb8RrZQOIPy/ctS\r\nsuXH9ybbH2LQ/BMWZmyPp+XiAgxSWCUMuKw4q4u1l0qQG30xnNPYqU/ERU0h\r\ngSEDVh7/xYR4pYHW//EO0eylqDXfngM1oxT+NCsiJyo9eH3WbWKY2FMqefww\r\nt/bIAyH50BLszLTeQ5h3C0s4zUb03AWs7zmA7h3T4XCr56ohPZ2drhGij9FM\r\nYXW9Q00v5Eoon9k/paU1UqS+Z3QPO50eBkAgeEpZrxeIvWyOGRCwGLPlLjD3\r\nuAxa80a1JSW7Me6Ym0dkvcvjwLvpEive/q9MNAHl4IjmNcPs3g9ucmsxkYq8\r\nfz4wvjUALRz0xvog5FtA3wS9KUHwYErTGQcv9VnAeG7lTZ0M8zIEXVvxfChi\r\nI60iE+DSJ4pjan5kfS9/Oa0UEB/tdgNM2Jc=\r\n=Sjuo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.9_1679330866340_0.9660905352820792"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-3IKLNXclQgkU++2fSi93sQ6BznFuxSLB11HdvZQ6JW/spahf/P1pAHBQEahr20rs0htZW0UDkM1HmA+nZkXKsw==","shasum":"828457ad6f13be401a075dbf14107a9057945174","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.10.tgz","fileCount":17,"unpackedSize":23943,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4Qzo5jyEezubZS9+8HYpySE4WKXUs9uN+AgKa//+UvwIgWhIfavlJgVp70KimhDAKZW0wkWSYK09LRXNcECPvyAw="}]},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.10_1683696086279_0.9708745907339618"},"_hasShrinkwrap":false},"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":{"integrity":"sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==","shasum":"d69a20aaccdb3bdb8f74dd59e5c68d8e6772e4bd","tarball":"https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.11.tgz","fileCount":17,"unpackedSize":23878,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1+70bybVAvY4/pi/12X5+e6EeMiBVtWhHZtc+rlaN6QIhAP7NX6w2tjAT+5DXaulR6CIHZFpSBhx+XU43gNMRINEx"}]},"_npmUser":{"name":"voxpelli","email":"pelle@kodfabrik.se"},"directories":{},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pony-cause_2.1.11_1713187434067_0.5083901271256552"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-15T21:28:30.142Z","1.0.0":"2021-09-15T21:28:30.278Z","modified":"2024-04-15T13:23:54.369Z","1.1.0":"2021-11-09T18:28:34.263Z","1.1.1":"2021-11-14T17:17:46.813Z","2.0.0":"2022-05-09T07:13:06.495Z","2.1.0":"2022-08-01T21:16:04.094Z","2.1.1":"2022-08-05T20:28:28.318Z","2.1.2":"2022-08-12T10:53:35.936Z","2.1.3":"2022-08-26T13:26:08.230Z","2.1.4":"2022-08-26T13:39:56.695Z","2.1.5-0":"2022-11-17T16:46:39.873Z","2.1.5":"2022-11-17T16:53:22.057Z","2.1.6":"2022-11-17T17:03:00.072Z","2.1.7":"2022-11-18T15:04:04.165Z","2.1.8":"2022-11-18T16:46:45.386Z","2.1.9":"2023-03-20T16:47:46.528Z","2.1.10":"2023-05-10T05:21:26.435Z","2.1.11":"2024-04-15T13:23:54.207Z"},"maintainers":[{"name":"voxpelli","email":"pelle@kodfabrik.se"}],"description":"Ponyfill and helpers for Error Causes","homepage":"http://github.com/voxpelli/pony-cause","keywords":["ponyfill","error","error-cause"],"repository":{"type":"git","url":"git://github.com/voxpelli/pony-cause.git"},"author":{"name":"Pelle Wessman","email":"pelle@kodfabrik.se","url":"http://kodfabrik.se/"},"bugs":{"url":"https://github.com/voxpelli/pony-cause/issues"},"license":"0BSD","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","readmeFilename":"README.md"}