{"versions":{"1.0.0":{"name":"await-to-js","version":"1.0.0","description":"Async/await wrapper for easy error handling in js","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"babel-node node_modules/isparta/bin/isparta cover test/index.js","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"keywords":["node async await"],"author":{"name":"Dima Grossman","email":"dima@grossman.io"},"license":"MIT","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"homepage":"https://github.com/scopsy/await-to-js#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.18.0","coveralls":"^2.11.4","dependency-check":"^2.5.1","doctoc":"^0.15.0","eslint":"^1.10.1","isparta":"^4.0.0","rimraf":"^2.4.2","tap-spec":"^4.1.1","tape":"^4.2.2","watch":"^0.16.0"},"gitHead":"93eab02ae4be241d4372d4b1e8244df16b892b82","_id":"await-to-js@1.0.0","_shasum":"b797626f979922ec222b5ed33b69363274dfec09","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"dist":{"shasum":"b797626f979922ec222b5ed33b69363274dfec09","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-1.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/await-to-js-1.0.0.tgz_1482229431832_0.9655547495931387"},"directories":{},"contributors":[]},"1.0.1":{"name":"await-to-js","version":"1.0.1","description":"Async/await wrapper for easy error handling in js","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"babel-node node_modules/isparta/bin/isparta cover test/index.js","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"keywords":["node async await"],"author":{"name":"Dima Grossman","email":"dima@grossman.io"},"license":"MIT","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"homepage":"https://github.com/scopsy/await-to-js#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.18.0","coveralls":"^2.11.4","dependency-check":"^2.5.1","doctoc":"^0.15.0","eslint":"^1.10.1","isparta":"^4.0.0","rimraf":"^2.4.2","tap-spec":"^4.1.1","tape":"^4.2.2","watch":"^0.16.0"},"gitHead":"4015d983b22f0df8bab399a49ff07c8eb09d6855","_id":"await-to-js@1.0.1","_shasum":"563d114ec6e706a43764bd918a955af957f8317d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"dist":{"shasum":"563d114ec6e706a43764bd918a955af957f8317d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-1.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/await-to-js-1.0.1.tgz_1483816184270_0.3810160616412759"},"directories":{},"contributors":[]},"2.0.0":{"name":"await-to-js","version":"2.0.0","description":"Async/await wrapper for easy error handling in js","keywords":["node","async","await","async await"],"main":"dist/await-to-js.umd.js","module":"dist/await-to-js.es5.js","typings":"dist/types/await-to-js.d.ts","homepage":"https://github.com/scopsy/await-to-js#readme","files":["dist"],"author":{"name":"Dima Grossman","email":"dima@grossman.io"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"license":"MIT","engines":{"node":">=6.0.0"},"scripts":{"lint":"tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src","start":"tsc -w & rollup -c -w","test":"jest","test:watch":"jest --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release pre && npm publish && semantic-release post","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write --no-semi","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"validate-commit-msg":{"types":"conventional-commit-types","helpMessage":"Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"}},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":90,"functions":95,"lines":95,"statements":95}}},"devDependencies":{"@types/jest":"^21.1.0","@types/node":"^8.0.0","colors":"^1.1.2","commitizen":"^2.9.6","coveralls":"^2.13.1","cross-env":"^5.0.1","cz-conventional-changelog":"^2.0.0","husky":"^0.14.0","jest":"^21.0.0","lint-staged":"^4.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.4.4","prompt":"^1.0.0","replace-in-file":"^3.0.0-beta.2","rimraf":"^2.6.1","rollup":"^0.50.0","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.2","semantic-release":"^8.0.0","ts-jest":"^21.0.0","ts-node":"^3.0.6","tslint":"^5.4.3","tslint-config-prettier":"^1.1.0","tslint-config-standard":"^6.0.0","typedoc":"^0.8.0","typescript":"^2.3.4","validate-commit-msg":"^2.12.2"},"gitHead":"793821711a4645e65c0b4a441d64f1e9f76bb612","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"_id":"await-to-js@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"dist":{"integrity":"sha512-C42RP6lSU1UDwoxJhbdU0RS3ml+imhnZO/r2eyAQOTQn1QZaGgO2BmeJhgisvxt9APPfl25W8gkQUinO9TjT4Q==","shasum":"c6fc2632b9619d170391243dbd95938be62403b1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-2.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-to-js-2.0.0.tgz_1506855216464_0.624212488764897"},"directories":{},"contributors":[]},"2.0.1":{"name":"await-to-js","version":"2.0.1","description":"Async/await wrapper for easy error handling in js","keywords":["node","async","await","async await"],"main":"dist/await-to-js.umd.js","module":"dist/await-to-js.es5.js","typings":"dist/types/await-to-js.d.ts","homepage":"https://github.com/scopsy/await-to-js#readme","files":["dist"],"author":{"name":"Dima Grossman","email":"dima@grossman.io"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"license":"MIT","engines":{"node":">=6.0.0"},"scripts":{"lint":"tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src","start":"tsc -w & rollup -c -w","test":"jest","test:watch":"jest --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release pre && npm publish && semantic-release post","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write --no-semi","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"validate-commit-msg":{"types":"conventional-commit-types","helpMessage":"Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"}},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":90,"functions":95,"lines":95,"statements":95}}},"devDependencies":{"@types/jest":"^21.1.0","@types/node":"^8.0.0","colors":"^1.1.2","commitizen":"^2.9.6","coveralls":"^2.13.1","cross-env":"^5.0.1","cz-conventional-changelog":"^2.0.0","husky":"^0.14.0","jest":"^21.0.0","lint-staged":"^4.0.0","lodash.camelcase":"^4.3.0","prettier":"^1.4.4","prompt":"^1.0.0","replace-in-file":"^3.0.0-beta.2","rimraf":"^2.6.1","rollup":"^0.50.0","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.2","semantic-release":"^8.0.0","ts-jest":"^21.0.0","ts-node":"^3.0.6","tslint":"^5.4.3","tslint-config-prettier":"^1.1.0","tslint-config-standard":"^6.0.0","typedoc":"^0.8.0","typescript":"^2.3.4","validate-commit-msg":"^2.12.2"},"gitHead":"e5d141bc726ac120a394b83300ce111eee0e7a40","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"_id":"await-to-js@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"dist":{"integrity":"sha512-zJIZ/G2/sghdDWRMFO2R1Qn4RBPl/OEIe2Cfiz/VXfQS0lmyZwrq4Wmxai4KpvtnsijIadzttwjaSfg1s3CcLQ==","shasum":"fcb8a2178c763e2970aef1da9daf5c493e3653e0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-2.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-to-js-2.0.1.tgz_1506855806690_0.8488741514738649"},"directories":{},"contributors":[]},"2.1.0":{"name":"await-to-js","version":"2.1.0","description":"Async/await wrapper for easy error handling in js","keywords":["node","async","await","async await"],"main":"dist/await-to-js.umd.js","module":"dist/await-to-js.es5.js","typings":"dist/types/await-to-js.d.ts","homepage":"https://github.com/scopsy/await-to-js#readme","author":{"name":"Dima Grossman","email":"dima@grossman.io"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"license":"MIT","engines":{"node":">=6.0.0"},"scripts":{"lint":"tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src","start":"tsc -w & rollup -c -w","test":"jest","test:watch":"jest --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release pre && npm publish && semantic-release post","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged"},"lint-staged":{"{src,test}/**/*.ts":["git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"validate-commit-msg":{"types":"conventional-commit-types","helpMessage":"Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"}},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":90,"functions":95,"lines":95,"statements":95}}},"devDependencies":{"@types/jest":"^21.1.0","@types/node":"^8.0.0","colors":"^1.1.2","commitizen":"^2.9.6","coveralls":"^2.13.1","cross-env":"^5.0.1","cz-conventional-changelog":"^2.0.0","husky":"^0.14.0","jest":"^21.0.0","lint-staged":"^4.0.0","lodash.camelcase":"^4.3.0","prompt":"^1.0.0","replace-in-file":"^3.0.0-beta.2","rimraf":"^2.6.1","rollup":"^0.50.0","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.2","semantic-release":"^8.0.0","ts-jest":"^21.0.0","ts-node":"^3.0.6","tslint":"^5.4.3","tslint-config-standard":"^6.0.0","typedoc":"^0.8.0","typescript":"^2.3.4","validate-commit-msg":"^2.12.2"},"gitHead":"721dfd67cc8aaa9966a8896535be7fb0e07302d2","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"_id":"await-to-js@2.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"dist":{"integrity":"sha512-Bu/KoRTlkYxAlaRX/cqtodBGNH3Yg0hQXX6rpFttXjXJlslpZHQoDokCT+PZstC5q6+4x/YYC/DL+FFFo8InuA==","shasum":"6391fce43f66ecb09895d934b695f7e104b150f4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-2.1.0.tgz","fileCount":19,"unpackedSize":1157670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9efICRA9TVsSAnZWagAA8ocQAKCU3kpgPjqYGeoUhLqW\n6M66zbT9Z+OpsnP73wCaPtRvV9Aw2ov/6gbtWEv6CqRbdTzY0ezuGHZ5QQ06\nHCTU5oZwbBzORWN6nEux8v/6XyNcu+JDit1yXL1XgnkGzRaCUUp2Kq/1MsqW\nZJER+h5c2urIhWXFL6Htb1lwxf39EvZGbXyxTYJaSqLzXeeeDkoB6CDrB/8/\n41SQbYK/u3h/6OgWQQlaq3Me4qN3OuN/oImQ88/WYCdYZIEIbthUL29ITFmP\nATaR7fO6vwejM40Qsar7auE3zx86EkwJv8ri0MqOx8zEwQsSyOkf23dfTGyX\nXWIhVRWbz00c4AzRWNtHfuU1MIFp8WiQId7XUq6G1ycITa9NjDduNXhuJsdV\n26mbi74W7N+Fpbf3fjumweobgq28vmRp08Q1hvLtCewkBeQW2SRs5RAijh78\nbHYWWtsrEg0Gt2rXbmO0THgxNoJeqGEmKcmbPSEHXB3cyL2ypjDBJdAQ31Lp\nt+IZKmHKUplG1clieYYHpPLXq9el8A8HcE80JF66Tg5alWhdCGTSdalgJvO/\nv4noQevCIfle8j9NCymkFTUKD+7d5qerh/kVvEPe8pz+S/F75DY71WKGSq6g\nDSk6ShY5kvV/fwrroulxbOt7lIykpv+ngwLFBe1VLtwEYKw4n0chvzw40d3S\nvPca\r\n=hpC4\r\n-----END PGP SIGNATURE-----\r\n"},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-to-js_2.1.0_1542842312295_0.4698457199201209"},"_hasShrinkwrap":false,"contributors":[]},"2.1.1":{"name":"await-to-js","version":"2.1.1","description":"Async/await wrapper for easy error handling in js","keywords":["node","async","await","async await"],"main":"dist/await-to-js.umd.js","module":"dist/await-to-js.es5.js","typings":"dist/types/await-to-js.d.ts","homepage":"https://github.com/scopsy/await-to-js#readme","author":{"name":"Dima Grossman","email":"dima@grossman.io"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"license":"MIT","engines":{"node":">=6.0.0"},"scripts":{"lint":"tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src","start":"tsc -w & rollup -c -w","test":"jest","test:watch":"jest --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release pre && npm publish && semantic-release post","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged"},"lint-staged":{"{src,test}/**/*.ts":["git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"validate-commit-msg":{"types":"conventional-commit-types","helpMessage":"Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"}},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":90,"functions":95,"lines":95,"statements":95}}},"devDependencies":{"@types/jest":"^21.1.0","@types/node":"^8.0.0","colors":"^1.1.2","commitizen":"^2.9.6","coveralls":"^2.13.1","cross-env":"^5.0.1","cz-conventional-changelog":"^2.0.0","husky":"^0.14.0","jest":"^21.0.0","lint-staged":"^4.0.0","lodash.camelcase":"^4.3.0","prompt":"^1.0.0","replace-in-file":"^3.0.0-beta.2","rimraf":"^2.6.1","rollup":"^0.50.0","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.2","semantic-release":"^8.0.0","ts-jest":"^21.0.0","ts-node":"^3.0.6","tslint":"^5.4.3","tslint-config-standard":"^6.0.0","typedoc":"^0.8.0","typescript":"^2.3.4","validate-commit-msg":"^2.12.2"},"gitHead":"71760d1e3608c947638ed408327907421da3b408","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"_id":"await-to-js@2.1.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"dist":{"integrity":"sha512-CHBC6gQGCIzjZ09tJ+XmpQoZOn4GdWePB4qUweCaKNJ0D3f115YdhmYVTZ4rMVpiJ3cFzZcTYK1VMYEICV4YXw==","shasum":"c2093cd5a386f2bb945d79b292817bbc3f41b31b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-2.1.1.tgz","fileCount":19,"unpackedSize":1158460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb97bBCRA9TVsSAnZWagAAoacP/RktIRpPEWnmhbLIczwp\nBsBnT7vpmeUmKeadQvhexq7doQZBE677HqHmmGMtr75kgUBH/+lBpBZqWg17\nrP2s01a1LU8VFCY+EJlrlhlDVKFPcNn647ynd1pAPOo6KRp+mf+UUsx3c/2t\nOOmbARIccNPQtlCtAhEyyRkp/x5Tg9JM/kPiZiXWUsWfFrd3jcYp9St61Gic\nMflj5OQAJ9XvhHXWUyicqwXCC2cdx8Ms69+GBNYaoTyMqbDvilxHjEdH95oh\ni3eMj5CKVCsCyMk1EMAD+mwdUu49kTXm+BVhHk2f0L0HHHwtc0DtaanTfsf7\nk/Yc9rhnXPXDnURp1PXyirv+joWGrrr9emOEu06QxOLMRe8PajQqm1XhIcl+\nrvl+uZe/9w9faRxPkh0UejmGTYcNpCREkLKO+j5NEHw5mTr2AHrRWbRi+Mx1\nxgFBe6+uyjrVfTvk8IILXvZdg2Y4T2y217xvjuB6d0o8fgP++IsMrlfcSw/O\noR6PjrKZIpHxzYBnFTqnelk1956bscaHtgZiz1IuOcmQ20ZiT4+to4yRIqK6\nz1NKZDqA9T7pHA0bY/eOpQY9EYutxUpeutz2dYkMU7KZBzG4JZ6k0Le9oqRd\nSMERvBGOw1hPZqIVAPZ31OVG5egVmdzWEAbLgDevEDx4N8H/WYsu2uwHBF/u\nTuwX\r\n=QXFd\r\n-----END PGP SIGNATURE-----\r\n"},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-to-js_2.1.1_1542960832070_0.6556678693301505"},"_hasShrinkwrap":false,"contributors":[]},"3.0.0":{"name":"await-to-js","version":"3.0.0","description":"Async/await wrapper for easy error handling in js","keywords":["node","async","await","async await"],"main":"dist/await-to-js.umd.js","module":"dist/await-to-js.es5.js","typings":"dist/types/await-to-js.d.ts","homepage":"https://github.com/scopsy/await-to-js#readme","author":{"name":"Dima Grossman","email":"dima@grossman.io"},"repository":{"type":"git","url":"git+https://github.com/scopsy/await-to-js.git"},"license":"MIT","engines":{"node":">=6.0.0"},"scripts":{"lint":"tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src","start":"tsc -w & rollup -c -w","test":"jest","test:watch":"jest --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release pre && npm publish && semantic-release post","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged"},"lint-staged":{"{src,test}/**/*.ts":["git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"validate-commit-msg":{"types":"conventional-commit-types","helpMessage":"Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"}},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":90,"functions":95,"lines":95,"statements":95}}},"devDependencies":{"@types/jest":"^21.1.0","@types/node":"^8.0.0","colors":"^1.1.2","commitizen":"^2.9.6","coveralls":"^2.13.1","cross-env":"^5.0.1","cz-conventional-changelog":"^2.0.0","husky":"^0.14.0","jest":"^21.0.0","lint-staged":"^4.0.0","lodash.camelcase":"^4.3.0","prompt":"^1.0.0","replace-in-file":"^3.0.0-beta.2","rimraf":"^2.6.1","rollup":"^0.50.0","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.2","semantic-release":"^8.0.0","ts-jest":"^21.0.0","ts-node":"^3.0.6","tslint":"^5.4.3","tslint-config-standard":"^6.0.0","typedoc":"^0.8.0","typescript":"^2.3.4","validate-commit-msg":"^2.12.2"},"gitHead":"2a1d39623f7ef40786ae51ebf6f7799ad4d84ff2","bugs":{"url":"https://github.com/scopsy/await-to-js/issues"},"_id":"await-to-js@3.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"shasum":"70929994185616f4675a91af6167eb61cc92868f","size":406175,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/await-to-js/-/await-to-js-3.0.0.tgz"},"_npmUser":{"name":"anonymous","email":"dima@grossman.io"},"directories":{},"maintainers":[{"name":"anonymous","email":"dima@grossman.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-to-js_3.0.0_1615304789630_0.4693241353750588"},"_hasShrinkwrap":false,"publish_time":1615304789827,"_cnpm_publish_time":1615304789827,"contributors":[]}},"dist-tags":{"latest":"3.0.0"},"name":"await-to-js","time":{"modified":"2023-07-27T21:30:30.729Z","created":"2022-01-26T22:30:29.386Z","1.0.0":"2016-12-20T10:23:52.517Z","1.0.1":"2017-01-07T19:09:46.409Z","2.0.0":"2017-10-01T10:53:38.030Z","2.0.1":"2017-10-01T11:03:28.450Z","2.1.0":"2018-11-21T23:18:32.469Z","2.1.1":"2018-11-23T08:13:52.384Z","3.0.0":"2021-03-09T15:46:29.827Z"},"readme":"# await-to-js\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][download-badge]][npm-url]\n\n> Async await wrapper for easy error handling\n\n## Pre-requisites\nYou need to use Node 7.6 (or later) or an ES7 transpiler in order to use async/await functionality.\nYou can use babel or typescript for that.\n\n## Install\n\n```sh\nnpm i await-to-js --save\n```\n\n## Usage\n\n```js\nimport to from 'await-to-js';\n// If you use CommonJS (i.e NodeJS environment), it should be:\n// const to = require('await-to-js').default;\n\nasync function asyncTaskWithCb(cb) {\n     let err, user, savedTask, notification;\n\n     [ err, user ] = await to(UserModel.findById(1));\n     if(!user) return cb('No user found');\n\n     [ err, savedTask ] = await to(TaskModel({userId: user.id, name: 'Demo Task'}));\n     if(err) return cb('Error occurred while saving task');\n\n    if(user.notificationsEnabled) {\n       [ err ] = await to(NotificationService.sendNotification(user.id, 'Task Created'));\n       if(err) return cb('Error while sending notification');\n    }\n\n    if(savedTask.assignedUser.id !== user.id) {\n       [ err, notification ] = await to(NotificationService.sendNotification(savedTask.assignedUser.id, 'Task was created for you'));\n       if(err) return cb('Error while sending notification');\n    }\n\n    cb(null, savedTask);\n}\n\nasync function asyncFunctionWithThrow() {\n  const [err, user] = await to(UserModel.findById(1));\n  if (!user) throw new Error('User not found');\n  \n}\n```\n\n## TypeScript usage\n```javascript\ninterface ServerResponse {\n  test: number;\n}\n\nconst p = Promise.resolve({test: 123});\n\nconst [err, data] = await to<ServerResponse>(p);\nconsole.log(data.test);\n```\n\n## License\n\nMIT © [Dima Grossman](http://blog.grossman.io) && Tomer Barnea\n\n[npm-url]: https://npmjs.org/package/await-to-js\n[npm-image]: https://img.shields.io/npm/v/await-to-js.svg?style=flat-square\n\n[travis-url]: https://travis-ci.org/scopsy/await-to-js\n[travis-image]: https://img.shields.io/travis/scopsy/await-to-js.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/scopsy/await-to-js\n[coveralls-image]: https://img.shields.io/coveralls/scopsy/await-to-js.svg?style=flat-square\n\n[depstat-url]: https://david-dm.org/scopsy/await-to-js\n[depstat-image]: https://david-dm.org/scopsy/await-to-js.svg?style=flat-square\n\n[download-badge]: http://img.shields.io/npm/dm/await-to-js.svg?style=flat-square","users":{}}