{"_id":"@ehmpathy/error-fns","_rev":"10-a69d0ead3f591e056a05d4ff3ca710dd","name":"@ehmpathy/error-fns","dist-tags":{"latest":"1.3.7"},"versions":{"1.0.0":{"name":"@ehmpathy/error-fns","version":"1.0.0","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.0.0","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"691f8cc7ab821e246eaffd388473d68a18b8f581","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.0.0.tgz","fileCount":27,"integrity":"sha512-Xi7IlRy4nQwFgzKKgwFEXuq6LFoy+Ap7GEzFYmifPYa6gfo2xz2wuTxZNiMAMBjZJgegmDzRTs2KAUcYtJfNOA==","signatures":[{"sig":"MEQCIEf0jbY/AVGt8hKH/wpGiF4GoteVxaYz2aaZ7M/T0V8OAiBJI8vZxoH62mYkducQgE/XROAbGVIktF7CmUOF9afcLg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23922},"main":"dist/index.js","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"00cec4f65d8050b8d0739c78174e50bdf77f4e01","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"9.6.7","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.0.0_1694882122038_0.05948393082279102","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@ehmpathy/error-fns","version":"1.0.1","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.0.1","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"26fdc28b41bd3dba69b6ae38f8413bcea72cda05","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.0.1.tgz","fileCount":27,"integrity":"sha512-DdpUW+vjh4W7MBceFpBGPlhqK0iC5X8D/P1C5Rn8tnOQvw0ux+DGhmTgZCKptM0YTWloJXd1GBPAv4zuMqCtIA==","signatures":[{"sig":"MEUCIEFCQxQFI5qfIO4XZtNiyvKKbKbTlmKKisrACpcblmvPAiEA0Lwvp66O3sp2aflBHLoYKE1doo4UbHpf5dJx9HXGCzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23769},"main":"dist/index.js","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"33c51bc17982c96604ccb6c550a1795e3b4a76a1","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"9.6.7","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.0.1_1694882558737_0.9879103877920785","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@ehmpathy/error-fns","version":"1.0.2","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.0.2","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"d5ad81c4624a83c9cf272ff48d59f57c4b5bf1b3","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.0.2.tgz","fileCount":30,"integrity":"sha512-v3aJIqUvD9a3drx1pyS8La+9u9WTTvNE35NksiD4Oo3VanNe8Rmue/atRHPg4nNYQ/xPv4+RoqC+OBj6cAY8VA==","signatures":[{"sig":"MEUCIQDv6L4HogdisSAvKzMo1monA3yDyvAZCuqDVkEscs4/qQIgHDCBwnVHh9rkWOEQGcaiVj6iJbhwX6py2zp+3vQOG3A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25196},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"15853e20c324734f3797513bd08ad2bf6c27ef80","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"9.6.7","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.0.2_1694884188862_0.3720033135214058","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@ehmpathy/error-fns","version":"1.1.0","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.1.0","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"c7f5e4fcd988ef6e921ba8d1ff448ea82512e40a","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.1.0.tgz","fileCount":30,"integrity":"sha512-s6XzgIhiITpXapOxkoRYMpQ/3ot6cO1paoabr1aeJbvT2f34TtOGgaubfXllzFUznWirU7T+6fNR24asnhrp9g==","signatures":[{"sig":"MEYCIQCaljbbW+t4Nml7jsE5ViBzrrYl0Muq+PLEZBlHcndGFwIhAK9uofmsiBhy9JKS6ly+Nehn/yxj7xcJwoxiNrSK5y+n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31139},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"106fae22c77bffade43d86232036fc12fe4c7a6d","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.7.0","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.1.0_1718544692124_0.5941357690018807","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@ehmpathy/error-fns","version":"1.2.0","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.2.0","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"593d5fd3d4e055472890aee7cb88687e207a96bf","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.2.0.tgz","fileCount":30,"integrity":"sha512-G9Br2KXd2NvcuHJ2zNmqsNVEHhytQ0A0ldJwuo+yB66SgunUP0urF4lc6g/26BaxpBQSmtxn/Cpxy9DCN5EVGw==","signatures":[{"sig":"MEQCIHeClA9fDMWDMTg2qwYzTvtFxo417X5+96xe4XhrXeakAiBChgUwfbjVgvw37o7WCYohP5Gu0EHXIJFZq0vaPlSsCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33759},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"135382b2a08ebd2f664ad0d6cb53ca6091b1254d","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.7.0","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.2.0_1718708474779_0.4553826695239327","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@ehmpathy/error-fns","version":"1.3.0","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.3.0","homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"0f69765cf4ea1ed8ab7a0c2d873e360b34c92f47","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.3.0.tgz","fileCount":33,"integrity":"sha512-qkfbevoy8NP8u1ohj7iMlQMgMK9XFUV6HEkkVjIOikbcYWIkxteBZF+nuu6vwpzyoXi9E4ILuv9AJUl/Sy2j5Q==","signatures":[{"sig":"MEQCICzt2B6x+hvVe7HHdbWOa+J4XurYPkM8ofbRgmUF9afCAiB8X/7bNuOTFtVxBPxWZEe8d4TiGWDPGuME1nryXoeWMA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35802},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"0814b26993ba5cdea31316585fef00e937eee700","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.7.0","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.3.0_1718971194103_0.9039989620362072","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@ehmpathy/error-fns","version":"1.3.1","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.3.1","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"51e586dccc3d547b9e265aea4c6df8e3b8963ba1","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.3.1.tgz","fileCount":33,"integrity":"sha512-WSQQ95mAVU9JammqFeEfeyf23YeVIRSnCtH1TZurlgCpFuilui8hId77cfq6RlaOkPZd5zdFEs6pjTTDXLchqA==","signatures":[{"sig":"MEUCIQCeMnLCI4MbLEhl/vuTn07RXcux/N9NZ+YYnPN6zT5QNgIgDvbIHPtlvv4YjWqD1oljJ3880Bj1n1GPsxt6a3v4yJs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36071},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"49e4d51fb81656631c6e326120c2269e4f649fd6","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.7.0","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"type-fns":"0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.2","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.27.2","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.3.1_1720285630313_0.5031139790282024","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@ehmpathy/error-fns","version":"1.3.2","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.3.2","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"21aed386b830bdfe706ecf9aaa12dafef69165bf","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.3.2.tgz","fileCount":33,"integrity":"sha512-U8jO5pqcQvZnqZiy2Vryz8KaPu0AdT8m/xWwp5cNJu0klqcEpskUrLimAIeR6+ymkHeBfGawzUaYa5/0uBQPow==","signatures":[{"sig":"MEQCIEv4MXMo/u96s6n3bMHxUVzzLdeAsHH201u0p+Qud77iAiBqg3RoUlj85tum5ucN1XDMpeK8oI0WEu/CKQtRM1wG9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36072},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"830d8537dccd488fd3f01dc512fa8a8762414c15","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.7.0","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"type-fns":"1.16.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.5","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.33.4","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.3.2_1722108540082_0.538811749768981","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"@ehmpathy/error-fns","version":"1.3.3","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.3.3","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"bbd3890ebddbd104c1c2feab62a3270d372bba39","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.3.3.tgz","fileCount":33,"integrity":"sha512-XbiG+X1gIaiASLUNsVQRG+D8hcGDh4d2lsM/QiQHDJZ9YWK1MkkKN0A3OH5pgTczw4kcTEJuyMdvl5BgO08Axg==","signatures":[{"sig":"MEUCIQDTRP2lQNLqLCuk2sl7/Y149V9GaWkD9U4Xw7f0/Eoo/AIgC5U9fjB4ucS1iNsdScyf4PFVXaVzVeZC3nVdSmfPJ/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37898},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"dca5aa8ca26cd47e999fa589dc8aacd99bbeda0f","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"type-fns":"1.16.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.5","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.33.4","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.3.3_1726420652476_0.1791974750243137","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"@ehmpathy/error-fns","version":"1.3.4","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"author":{"name":"ehmpathy"},"license":"MIT","_id":"@ehmpathy/error-fns@1.3.4","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"homepage":"https://github.com/ehmpathy/error-fns","bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"dist":{"shasum":"70f3c5c96381bca751395b2642218bc89e7060be","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.3.4.tgz","fileCount":33,"integrity":"sha512-RFy8jW1svxD9igIGsR/8x5ZACcsTOSBMFyiXE+bNtTPURDFQcksJiZEcbo2mKr2OFCKg1OFU7xIaXiHeP7Nvdw==","signatures":[{"sig":"MEUCIGdxNeG+YxK6qK0LB4NgaxISbDSC4Fs2ttae0KcysrMAAiEAyo65qSpvnfyGQKZxoKlVoe6uClSIQCvfImETssKagLE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37946},"main":"dist/index.js","types":"./dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"gitHead":"f5bde28849a7fc3fd7d34ba0384bf9e2f12a0f86","scripts":{"test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","build":"npm run build:clean && npm run build:compile","prepush":"npm run test && npm run build","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests","fix:format":"npm run fix:format:prettier","prepublish":"npm run build","preversion":"npm run prepush","test:types":"tsc -p ./tsconfig.build.json --noEmit","build:clean":"rm dist/ -rf","postinstall":"[ -d .git ] && npx husky install || exit 0","postversion":"git push origin HEAD --tags --no-verify","test:format":"npm run test:format:prettier","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","build:compile":"tsc -p ./tsconfig.build.json","build:artifact":"echo 'no artifact'","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","commit:with-cli":"npx cz","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests"},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"repository":{"url":"git+https://github.com/ehmpathy/error-fns.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard set of errors and methods for simpler, safer, and easier to read code.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"type-fns":"1.16.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.3.1","husky":"8.0.3","eslint":"8.30.0","core-js":"3.26.1","ts-jest":"29.0.3","ts-node":"10.9.1","depcheck":"1.4.3","prettier":"2.8.1","declapract":"0.11.5","typescript":"4.9.4","@types/jest":"29.2.4","@commitlint/cli":"17.7.1","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","eslint-plugin-prettier":"4.2.1","@typescript-eslint/parser":"5.46.1","cz-conventional-changelog":"3.3.0","@tsconfig/node-lts-strictest":"18.12.1","declapract-typescript-ehmpathy":"0.33.4","@commitlint/config-conventional":"13.1.0","eslint-config-airbnb-typescript":"17.0.0","@typescript-eslint/eslint-plugin":"5.46.1","@trivago/prettier-plugin-sort-imports":"4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/error-fns_1.3.4_1726439721260_0.409476707034345","host":"s3://npm-registry-packages"}},"1.3.7":{"name":"@ehmpathy/error-fns","author":{"name":"ehmpathy"},"description":"A standard set of errors and methods for simpler, safer, and easier to read code.","version":"1.3.7","repository":{"type":"git","url":"git+https://github.com/ehmpathy/error-fns.git"},"homepage":"https://github.com/ehmpathy/error-fns","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"license":"MIT","main":"dist/index.js","engines":{"node":">=8.0.0"},"scripts":{"commit:with-cli":"npx cz","fix:format:prettier":"prettier --write '**/*.ts' --config ./prettier.config.js","fix:format":"npm run fix:format:prettier","fix:lint":"eslint -c ./.eslintrc.js src/**/*.ts --fix","build:artifact":"echo 'no artifact'","build:clean":"rm dist/ -rf","build:compile":"tsc -p ./tsconfig.build.json","build":"npm run build:clean && npm run build:compile","test:commits":"LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose","test:types":"tsc -p ./tsconfig.build.json --noEmit","test:format:prettier":"prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js","test:format":"npm run test:format:prettier","test:lint:deps":"npx depcheck -c ./depcheckrc.yml","test:lint:eslint":"eslint -c ./.eslintrc.js src/**/*.ts","test:lint":"npm run test:lint:eslint && npm run test:lint:deps","test:unit":"jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')","test:integration":"jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')","test:acceptance:locally":"npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","test":"npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally","test:acceptance":"npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests","prepush":"npm run test && npm run build","prepublish":"npm run build","preversion":"npm run prepush","postversion":"git push origin HEAD --tags --no-verify","postinstall":"[ -d .git ] && npm run prepare:husky || exit 0","prepare:husky":"npx husky install && chmod ug+x .husky/*"},"dependencies":{"type-fns":"1.17.0"},"devDependencies":{"@commitlint/cli":"19.3.0","@commitlint/config-conventional":"13.1.0","@trivago/prettier-plugin-sort-imports":"4.3.0","@tsconfig/node-lts-strictest":"18.12.1","@types/jest":"29.2.4","@typescript-eslint/eslint-plugin":"7.8.0","@typescript-eslint/parser":"7.8.0","core-js":"3.26.1","cz-conventional-changelog":"3.3.0","declapract":"0.12.0","declapract-typescript-ehmpathy":"0.36.5","depcheck":"1.4.3","eslint":"8.56.0","eslint-config-airbnb-typescript":"18.0.0","eslint-config-prettier":"8.5.0","eslint-plugin-import":"2.26.0","eslint-plugin-prettier":"4.2.1","husky":"8.0.3","jest":"29.3.1","prettier":"2.8.1","ts-jest":"29.1.3","ts-node":"10.9.2","typescript":"5.4.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"_id":"@ehmpathy/error-fns@1.3.7","gitHead":"63a37c8b1b3d6dd678ca13d18009013a0d8e4f13","types":"./dist/index.d.ts","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Lm3WXBMFkNDh9RU21zNTyziUARh7e/FZCcxGUefz7Cx/4yJwBJ9oBxI1JNh8cI9q5HPxAwVkEM8DDORhNM67Sg==","shasum":"edba958ddd0598ffab995f973a43c0755d24acd0","tarball":"https://registry.npmjs.org/@ehmpathy/error-fns/-/error-fns-1.3.7.tgz","fileCount":33,"unpackedSize":38165,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG4XxU3z2/On6HAAYw91VxEApk/ZAVF0IumE2nSqUEJ6AiEAo47EpguGg7YWrF4Z4wpHci9aIK4SGOGJvv4aruieUDM="}]},"_npmUser":{"name":"uladkasach","email":"UladKasach@gmail.com"},"directories":{},"maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/error-fns_1.3.7_1726477267854_0.5733262054371357"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-16T16:35:21.932Z","modified":"2024-09-16T09:01:08.230Z","1.0.0":"2023-09-16T16:35:22.234Z","1.0.1":"2023-09-16T16:42:38.945Z","1.0.2":"2023-09-16T17:09:49.122Z","1.1.0":"2024-06-16T13:31:32.338Z","1.2.0":"2024-06-18T11:01:14.960Z","1.3.0":"2024-06-21T11:59:54.277Z","1.3.1":"2024-07-06T17:07:10.497Z","1.3.2":"2024-07-27T19:29:00.269Z","1.3.3":"2024-09-15T17:17:32.713Z","1.3.4":"2024-09-15T22:35:21.421Z","1.3.7":"2024-09-16T09:01:08.004Z"},"bugs":{"url":"https://github.com/ehmpathy/error-fns/issues"},"author":{"name":"ehmpathy"},"license":"MIT","homepage":"https://github.com/ehmpathy/error-fns","keywords":["types","type guards","guards","type checks","checks","type","checking","typescript"],"repository":{"type":"git","url":"git+https://github.com/ehmpathy/error-fns.git"},"description":"A standard set of errors and methods for simpler, safer, and easier to read code.","maintainers":[{"name":"uladkasach","email":"UladKasach@gmail.com"}],"readme":"# error-fns\n\n![ci_on_commit](https://github.com/ehmpathy/error-fns/workflows/ci_on_commit/badge.svg)\n![deploy_on_tag](https://github.com/ehmpathy/error-fns/workflows/deploy_on_tag/badge.svg)\n\nStandardized helpful errors and methods for simpler, safer, and easier to read code.\n\n# Purpose\n\nStandardize on helpful errors for simpler, safer, easier to read code\n- extend the `HelpfulError` for observable and actionable error messages\n- leverage the `UnexpectedCodePath` to eliminate complexity with narrowed codepaths\n- leverage the `BadRequestError` to make it clear when your logic successfully rejected a request\n- test that logic throws errors ergonomically with `getError`\n\n# install\n\n```sh\nnpm install --save @ehmpathy/error-fns\n```\n\n# use\n\n### UnexpectedCodePathError\n\nThe `UnexpectedCodePath` error is probably the most common type of error you'll throw.\n\nIt's common in business logic that you'll face a scenario that is technically possible but logically shouldn't occur.\n\nFor example, lets say you're writing on-vehicle code to check the tire pressures of a vehicle.\n\n```ts\n// given the tires to check\nconst tires = Tire[];\n\n// first get the tire pressures for each\nconst tirePressures: number[] = tires.map(tire => getTirePressure(tire));\n\n// now get the lowest tire pressure\nconst lowestTirePressure: number | undefined = tires.sort()[0];\n```\n\nIn this case, its technically possible that `lowestTirePressure` could be undefined: there could not be any tires.\n\nHowever, this is definitely an unexpected code path for our application. We can just halt our logic if we reach here, since we dont need to solve for it.\n\n```ts\n// sanity check that we do have a tire pressure\nif (lowestTirePressure === undefined)\n  throw new UnexpectedCodePath('no tire pressures found. can not compute lowest tire pressure', { tires });\n```\n\nWith this, the type of `lowestTirePressure` has been narrowed from `number | undefined` to just `number`, so you wont have any type errors anymore.\n\nFurther, if this case does occur in real life, then it will be really easy to debug what happened and why. Your error message will include the `tires` input that caused the problem making this a breeze to debug. No more `could not read property 'x' of undefined`!\n\n### BadRequestError\n\nThe `BadRequestError` is probably the next most common type of error you'll throw.\n\nIt's common in business logic that callers will try to execute your logic with inputs that are simply logically not valid. The user may not understand that their input is not valid or there may just be a bug upstream that is resulting in invalid requests.\n\nFor example, imagine you have an api that returns the liked songs of a user\n```ts\nconst getLikedSongsByUser = ({ userUuid }: { userUuid: string }) => {\n  // lookup the user\n  const user = await userDao.findByUuid({ uuid: userUuid });\n\n  // if the user does not exist, this is an invalid request. we shouldn't be asked to lookup songs for fake users\n  if (!user)\n    throw new BadRequestError('user does not exist for uuid', { userUuid });\n\n  // use a property of the user to lookup their favorite songs\n  const songs = await spotifyApi.getLikesForUser({ spotifyUserId: user.spotifyUserId });\n}\n```\n\nWhatever the reason for a caller making a logically invalid request, it's important to distinguish when *your code* is at fault versus when *the request* is at fault.\n\nThis is particularly useful when monitoring error rates. Its important to distinguish whether your software `failed to execute` or whether it `successfully rejected` the request for observability in monitoring for issues. The `BadRequestError` enables us to do this easily\n\nFor example, libraries such as the [simple-lambda-handlers](https://github.com/ehmpathy/simple-lambda-handlers) leverage `BadRequestErrors` to ensure that a bad request both successfully returns an error to the caller but is not marked as an lambda invocation error.\n\n### HelpfulError\n\nThe `HelpfulError` is the backbone of this pattern and is what you'll `extend` whenever you want to create a custom error.\n\nThe purpose of this error is to be as helpful as possible to whoever has to read it when its thrown.\n\nTo fulfill this goal, the error makes it very easy to specify what the issue was as well as any other information that may be helpful to understanding why it occurred at the time. It then pretty prints this information to make it easy to read when observing.\n\n```ts\nthrow new HelpfulError(\n  'the message of the error goes here',\n  {\n    context,\n    relevantInfo,\n    potentiallyHelpfulVariables,\n    goHere,\n  }\n)\n```\n\n### getError\n\nThe `getError` method is the cherry-on-top of this library.\n\nWhen writing tests for logic that throws an error in certain situations, you may want to verify that the code indeed throws this error in a test.\n\nThe `getError` utility makes it really easy to assert that the expected error is thrown.\n\nUnder the hood, it executes or awaits the logic or promise you give it as input, catches the error that is throw, or throws a NoErrorThrownError of its own. It does the legwork of handling all three cases you may need to use it in and defining the return type correctly.\n\nusecase 1: synchronous logic\n```ts\nconst doSomething = () => { throw new HelpfulError('found me'); }\n\nconst error = getError(() => doSomething())\nexpect(error).toBeInstanceOf(HelpfulError);\nexpect(error.message).toContain('found me')\n```\n\nusecase 2: asynchronous logic\n```ts\nconst doSomething = async () => { throw new HelpfulError('found me'); }\n\nconst error = await getError(() => doSomething())\nexpect(error).toBeInstanceOf(HelpfulError);\nexpect(error.message).toContain('found me')\n```\n\nusecase 3: a promise\n```ts\nconst doSomething = async () => { throw new HelpfulError('found me'); }\n\nconst error = await getError(doSomething())\nexpect(error).toBeInstanceOf(HelpfulError);\nexpect(error.message).toContain('found me')\n```\n\n### .throw\n\nThe errors extended from the `HelpfulError` include a `.throw` static method for convenient usage with ternaries or condition chains\n\nFor example, instead of\n```ts\nconst phone = customer.phoneNumber ?? (() => {\n  throw new UnexpectedCodePathError(\n    'customer has relationship without phone number. how is that possible?',\n    { customer },\n  );\n})();\n```\n\nYou can simply write\n```ts\nconst phone = customer.phoneNumber ?? UnexpectedCodePathError.throw(\n  'customer does not have a phone. how is that possible?',\n  { customer },\n);\n```\n\n### HelpfulError parameter options.cause\n\nThe .cause parameter is a helpful feature of native errors. It allows you to chain errors together in a way that retains the full stack trace across errors.\n\nFor example, sometimes, the original error that your code experiences can be reworded to make it easier to debug. By using the .cause option, you're able to retain the stack trace and reference of the original error while throwing a new, more helpful, error.\n\n```ts\n// imagine you're using some api which throws an unhelpful error\nconst apiGetS3Object = async (input: { key: string }) => { throw new Error(\"no access\") }\n\n// you can catch and extend the error to add more context\nconst helpfulGetS3Object = async (input: { key: string }) => {\n  try {\n    await getS3Object();\n  } catch (error) {\n    if (error.message === \"no access\") throw HelpfulError(\"getS3Object.error: could not get object\", {\n      cause: error, // !: by adding the \"cause\" here, we'll retain the stack trace of the original error\n      input,\n    })\n  }\n}\n```\n","readmeFilename":"readme.md"}