{"_id":"makepromise","_rev":"299994","name":"makepromise","description":"Make a Promise from a function with a callback and preserve its error stack.","dist-tags":{"latest":"3.2.0"},"maintainers":[{"name":"zvr","email":""}],"time":{"modified":"2024-01-31T16:05:56.000Z","created":"2017-05-20T19:05:27.150Z","3.2.0":"2020-02-03T01:54:53.414Z","4.0.0":"2020-02-03T01:51:44.846Z","3.1.1":"2020-02-03T01:34:33.084Z","3.1.0":"2019-04-10T00:23:54.192Z","3.0.3":"2019-04-02T17:44:12.757Z","3.0.2":"2019-01-14T22:10:42.351Z","3.0.1":"2018-08-31T19:10:16.103Z","3.0.0":"2018-08-31T17:45:43.256Z","2.0.0":"2018-05-12T03:57:59.469Z","1.1.1":"2017-12-29T17:09:51.825Z","1.1.0":"2017-12-29T16:06:42.203Z","1.0.0":"2017-05-20T19:05:27.150Z"},"users":{},"author":{"name":"Anton","email":"anton@adc.sh"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"versions":{"3.2.0":{"name":"makepromise","version":"3.2.0","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build -s","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"alanode"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://www.artd.eco/","devDependencies":{"alamode":"^1.9.2","catchment":"^3.2.3","documentary":"^1.23.4","wrote":"^1.4.0","yarn-s":"1.2.2","zoroaster":"^3.11.4"},"dependencies":{"erotic":"^2.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.2.0","dist":{"shasum":"5967d982e01cdc5d044c544489c9e2a7abebc3b0","size":4473,"noattachment":false,"key":"/makepromise/-/makepromise-3.2.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.2.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.2.0_1580694893317_0.9459566048433952"},"_hasShrinkwrap":false,"publish_time":1580694893414,"_cnpm_publish_time":1580694893414,"_cnpmcore_publish_time":"2021-12-17T12:00:13.827Z"},"4.0.0":{"name":"makepromise","version":"4.0.0","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build -s","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"alanode"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://www.artd.eco/","devDependencies":{"alamode":"^1.9.2","catchment":"^3.2.3","documentary":"^1.23.4","wrote":"^1.4.0","yarn-s":"1.2.2","zoroaster":"^3.11.4"},"dependencies":{"erotic":"^2.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@4.0.0","dist":{"shasum":"57391d438815657d3d08c7e8460cb5c4ef783190","size":4345,"noattachment":false,"key":"/makepromise/-/makepromise-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-4.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_4.0.0_1580694704720_0.010521069817966078"},"_hasShrinkwrap":false,"publish_time":1580694704846,"_cnpm_publish_time":1580694704846,"_cnpmcore_publish_time":"2021-12-17T12:00:14.013Z"},"3.1.1":{"name":"makepromise","version":"3.1.1","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build -s","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"alanode"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://www.artd.eco/","devDependencies":{"alamode":"^1.9.2","catchment":"^3.2.3","documentary":"^1.23.4","wrote":"^1.4.0","yarn-s":"1.2.2","zoroaster":"^3.11.4"},"dependencies":{"erotic":"^2.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.1.1","dist":{"shasum":"50d8cb9be11b333c7cfb3312c95d53b42052869d","size":4289,"noattachment":false,"key":"/makepromise/-/makepromise-3.1.1.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.1.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.1.1_1580693672961_0.7435695407477789"},"_hasShrinkwrap":false,"publish_time":1580693673084,"_cnpm_publish_time":1580693673084,"_cnpmcore_publish_time":"2021-12-17T12:00:14.235Z"},"3.1.0":{"name":"makepromise","version":"3.1.0","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build -s","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"alanode"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://github.com/artdecocode/makepromise#readme","devDependencies":{"alamode":"^1.9.2","catchment":"^3.2.3","documentary":"^1.23.4","wrote":"^1.4.0","yarn-s":"1.1.0","zoroaster":"^3.11.4"},"dependencies":{"erotic":"^2.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.1.0","dist":{"shasum":"58a07ea1605ad10c14a907334e067d200402d8b9","size":4219,"noattachment":false,"key":"/makepromise/-/makepromise-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.1.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.1.0_1554855834024_0.20776104175076027"},"_hasShrinkwrap":false,"publish_time":1554855834192,"_cnpm_publish_time":1554855834192,"_cnpmcore_publish_time":"2021-12-17T12:00:14.451Z"},"3.0.3":{"name":"makepromise","version":"3.0.3","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build -s","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"node example"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://github.com/artdecocode/makepromise#readme","devDependencies":{"alamode":"1.9.0","catchment":"3.2.2","documentary":"1.23.2","wrote":"1.4.0","yarn-s":"1.1.0","zoroaster":"3.11.2"},"dependencies":{"erotic":"2.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.0.3","dist":{"shasum":"57df379fbaf36b44987179c92916181acabd82d1","size":4132,"noattachment":false,"key":"/makepromise/-/makepromise-3.0.3.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.0.3.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.0.3_1554227052547_0.5655542471899766"},"_hasShrinkwrap":false,"publish_time":1554227052757,"_cnpm_publish_time":1554227052757,"_cnpmcore_publish_time":"2021-12-17T12:00:14.698Z"},"3.0.2":{"name":"makepromise","version":"3.0.2","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build -s","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"node example"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://github.com/artdecocode/makepromise#readme","devDependencies":{"alamode":"1.6.1","catchment":"3.2.1","documentary":"1.20.1","wrote":"1.4.0","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"erotic":"2.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.0.2","dist":{"shasum":"320376544da2fc3220c66d5baec037fca4c279f6","size":4132,"noattachment":false,"key":"/makepromise/-/makepromise-3.0.2.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.0.2.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.0.2_1547503842184_0.9185522398546"},"_hasShrinkwrap":false,"publish_time":1547503842351,"_cnpm_publish_time":1547503842351,"_cnpmcore_publish_time":"2021-12-17T12:00:14.939Z"},"3.0.1":{"name":"makepromise","version":"3.0.1","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"node example"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://github.com/artdecocode/makepromise#readme","devDependencies":{"alamode":"1.3.0","catchment":"3.0.0","documentary":"1.10.0","wrote":"1.4.0","yarn-s":"1.1.0","zoroaster":"2.4.0"},"dependencies":{"erotic":"1.2.1"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.0.1","dist":{"shasum":"5610962047452f91b278c4d3bdc1c854185d913e","size":4727,"noattachment":false,"key":"/makepromise/-/makepromise-3.0.1.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.0.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.0.1_1535742615892_0.26507895831870787"},"_hasShrinkwrap":false,"publish_time":1535742616103,"_cnpm_publish_time":1535742616103,"_cnpmcore_publish_time":"2021-12-17T12:00:15.146Z"},"3.0.0":{"name":"makepromise","version":"3.0.0","description":"Make a Promise from a function with a callback and preserve its error stack.","main":"build","scripts":{"t":"zoroaster -a","test":"zoroaster test/spec -a","test-build":"ALAMODE_ENV=test-build zoroaster test/spec -a","build":"yarn-s b doc","b":"alamode src -o build","doc":"NODE_DEBUG=doc doc documentary -o README.md","e":"node example"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","async","await","ecmascript","es6","ecma","promisify","node","callback","cb","error","stack"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://github.com/artdecocode/makepromise#readme","devDependencies":{"alamode":"1.3.0","catchment":"3.0.0","documentary":"1.10.0","wrote":"1.4.0","yarn-s":"1.1.0","zoroaster":"2.4.0"},"dependencies":{"erotic":"1.2.1"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@3.0.0","dist":{"shasum":"0266071a8984485be565747ecd5e01d37c6e1d1c","size":8303,"noattachment":false,"key":"/makepromise/-/makepromise-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-3.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_3.0.0_1535737542677_0.8296828833940313"},"_hasShrinkwrap":false,"publish_time":1535737543256,"_cnpm_publish_time":1535737543256,"_cnpmcore_publish_time":"2021-12-17T12:00:15.356Z"},"2.0.0":{"name":"makepromise","version":"2.0.0","description":"Make a native Promise from a function with a callback","main":"build","scripts":{"teb":"LIB_MAIN=../../es5 zoroaster --babel","t":"zoroaster --babel","test":"zoroaster test/spec --babel","test-build":"LIB_MAIN=../../build zoroaster test/spec --babel","test-es5-bin":"LIB_MAIN=../../es5 zoroaster test/spec --babel","test-es5":"zoroaster es5/test/spec","build":"babel src --out-dir build","e":"node examples/run"},"repository":{"type":"git","url":"git+https://github.com/artdecocode/makepromise.git"},"keywords":["promise","promisify","node","callback","cb"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"homepage":"https://github.com/artdecocode/makepromise#readme","devDependencies":{"@babel/cli":"7.0.0-beta.46","@babel/core":"7.0.0-beta.46","@babel/plugin-syntax-object-rest-spread":"7.0.0-beta.46","@babel/plugin-transform-modules-commonjs":"7.0.0-beta.46","@babel/register":"7.0.0-beta.46","catchment":"2.0.1","lockfile":"1.0.4","wrote":"1.4.0","zoroaster":"1.1.0"},"dependencies":{"erotic":"1.0.1"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"makepromise@2.0.0","dist":{"shasum":"3b91b9de3e36cd6979c94c38392f04ba4d8e1f18","size":9442,"noattachment":false,"key":"/makepromise/-/makepromise-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-2.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise_2.0.0_1526097479350_0.8553322185259051"},"_hasShrinkwrap":false,"publish_time":1526097479469,"_cnpm_publish_time":1526097479469,"_cnpmcore_publish_time":"2021-12-17T12:00:15.637Z"},"1.1.1":{"name":"makepromise","version":"1.1.1","description":"Make a native Promise from a function with a callback","main":"src/index","scripts":{"test":"zoroaster test/spec","test-es5":"zoroaster es5/test/spec","build-src":"babel src --out-dir es5/src","build-test":"babel test --out-dir es5/test","build":"run-s build-src build-test"},"repository":{"type":"git","url":"git+https://github.com/Sobesednik/makepromise.git"},"keywords":["promise","promisify","node","callback","cb"],"author":{"name":"Anton","email":"anton@sobesednik.media"},"license":"MIT","bugs":{"url":"https://github.com/Sobesednik/makepromise/issues"},"homepage":"https://github.com/Sobesednik/makepromise#readme","devDependencies":{"babel-cli":"6.26.0","babel-plugin-transform-rename-import":"2.1.1","babel-preset-env":"1.6.1","catchment":"1.0.0","fast-async":"6.3.0","lockfile":"1.0.3","npm-run-all":"4.1.2","wrote":"1.0.0","zoroaster":"0.4.6"},"dependencies":{"erotic":"0.2.0"},"gitHead":"dca005bc610387ed027054a07518e52fa5d347e3","_id":"makepromise@1.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"zvr","email":"anton@sobesednik.media"},"dist":{"shasum":"4e03bf98c25ca96a4223b0f2e280e3b3a6f9dea4","size":9778,"noattachment":false,"key":"/makepromise/-/makepromise-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-1.1.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise-1.1.1.tgz_1514567390894_0.8052554917521775"},"directories":{},"publish_time":1514567391825,"_hasShrinkwrap":false,"_cnpm_publish_time":1514567391825,"_cnpmcore_publish_time":"2021-12-17T12:00:16.279Z"},"1.1.0":{"name":"makepromise","version":"1.1.0","description":"Make a native Promise from a function with a callback","main":"src/index","scripts":{"test":"zoroaster test/spec","test-es5":"zoroaster es5/test/spec","build-src":"babel src --out-dir es5/src","build-test":"babel test --out-dir es5/test","build":"run-s build-src build-test"},"repository":{"type":"git","url":"git+https://github.com/Sobesednik/makepromise.git"},"keywords":["promise","promisify","node","callback","cb"],"author":{"name":"Anton","email":"anton@sobesednik.media"},"license":"MIT","bugs":{"url":"https://github.com/Sobesednik/makepromise/issues"},"homepage":"https://github.com/Sobesednik/makepromise#readme","devDependencies":{"babel-cli":"6.26.0","babel-plugin-transform-rename-import":"2.1.1","babel-preset-env":"1.6.1","catchment":"1.0.0","fast-async":"6.3.0","lockfile":"1.0.3","npm-run-all":"4.1.2","wrote":"1.0.0","zoroaster":"0.4.6"},"dependencies":{"erotic":"0.2.0"},"gitHead":"f361f2e3335c6fc69857cf2e7284e81e6cdda233","_id":"makepromise@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"zvr","email":"anton@sobesednik.media"},"dist":{"shasum":"a80ce959f13b5294598fbc48d76b9bac3bf8f54d","size":9270,"noattachment":false,"key":"/makepromise/-/makepromise-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-1.1.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise-1.1.0.tgz_1514563600884_0.9901092778891325"},"directories":{},"publish_time":1514563602203,"_hasShrinkwrap":false,"_cnpm_publish_time":1514563602203,"_cnpmcore_publish_time":"2021-12-17T12:00:16.478Z"},"1.0.0":{"name":"makepromise","version":"1.0.0","description":"Make a native Promise from a function with a callback","main":"src/index","scripts":{"test":"zoroaster test/spec"},"repository":{"type":"git","url":"git+https://github.com/Sobesednik/makepromise.git"},"keywords":["promise","promisify","node","callback","cb"],"author":{"name":"Anton","email":"anton@sobesednik.media"},"license":"MIT","bugs":{"url":"https://github.com/Sobesednik/makepromise/issues"},"homepage":"https://github.com/Sobesednik/makepromise#readme","devDependencies":{"catchment":"^1.0.0","lockfile":"^1.0.3","wrote":"^0.1.0"},"gitHead":"fd0e38b429b9c0dc7e4cffe2bd59301000f64067","_id":"makepromise@1.0.0","_shasum":"bc6bb6a3e06fd706df51c2923b6936fabd70aa7f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"zvr","email":"anton@sobesednik.media"},"dist":{"shasum":"bc6bb6a3e06fd706df51c2923b6936fabd70aa7f","size":4694,"noattachment":false,"key":"/makepromise/-/makepromise-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/makepromise/download/makepromise-1.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/makepromise-1.0.0.tgz_1495307126183_0.7177220983430743"},"directories":{},"publish_time":1495307127150,"_hasShrinkwrap":false,"_cnpm_publish_time":1495307127150,"_cnpmcore_publish_time":"2021-12-17T12:00:16.719Z"}},"readme":"# makepromise\n\n[![npm version](https://badge.fury.io/js/makepromise.svg)](https://www.npmjs.com/package/makepromise)\n\n`makepromise` can be used to get a _Promise_ from a function with a callback. It will also make sure that the error stack starts at the line where the `makepromise` was called.\n\n```\nyarn add -E makepromise\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n  * [`async makePromise(fn: function(...args, cb), args: (*[]|*))`](#async-makepromisefn-functionargs-cbargs--void)\n  * [`async makePromise(fn: function(...args, cb), args: (*[]|*), resolveValue: *)`](#async-makepromisefn-functionargs-cbargs-resolvevalue--void)\n  * [Binding Methods](#binding-methods)\n- [Error Stack](#error-stack)\n- [Copyright](#copyright)\n\n## API\n\nThe package exports a default `makepromise` function.\n\n```js\nimport makePromise from 'makepromise'\n```\n\n### <code>async <ins>makePromise</ins>(</code><sub><br/>&nbsp;&nbsp;`fn: function(...args, cb),`<br/>&nbsp;&nbsp;`args: (*[]|*),`<br/></sub><code>): <i>void</i></code>\n\nCreate a promise from a function which accepts a callback as the last argument, and where the callback will be called with 2 arguments: `error` and `result`. The arguments must be passed either as an array, or a single value.\n\nThe example below shows how to use `makePromise` with an array of arguments (promisified `truncate`) and a single argument (promisified `unlink`). The context of the example is 2 methods from a lib to create a temp file, and read data from a file.\n\n```js\nimport { truncate, unlink, existsSync } from 'fs'\nimport makePromise from 'makepromise'\nimport { createTempFile, readFile } from './lib'\n\n(async () => {\n  try {\n    // 0. SETUP: create a temp file.\n    const path = await createTempFile('hello-world')\n    const data = readFile(path)\n    console.log('Created temp file %s', path)\n    console.log('Exists: %s', existsSync(path))\n    console.log('Content: \"%s\"', data)\n\n    // 1. TRUNCATE to 5 characters.\n    await makePromise(truncate, [path, 5])\n    const data2 = await readFile(path)\n    console.log('Content: \"%s\"', data2)\n\n    // 2. ERASE the temp file.\n    await makePromise(unlink, path)\n    console.log('Exists: %s', existsSync(path))\n  } catch (err) {\n    console.log(err)\n  }\n})()\n```\n\n```\nCreated temp file example/temp.data\nExists: true\nContent: \"hello-world\"\nContent: \"hello\"\nExists: false\n```\n\n### <code>async <ins>makePromise</ins>(</code><sub><br/>&nbsp;&nbsp;`fn: function(...args, cb),`<br/>&nbsp;&nbsp;`args: (*[]|*),`<br/>&nbsp;&nbsp;`resolveValue: *,`<br/></sub><code>): <i>void</i></code>\n\nWhen `resolveValue` is passed as the last argument to the `makePromise` function, the returned promise will be forced to resolve with it.\n\n```js\nimport { unlink } from 'fs'\nimport makePromise from 'makepromise'\nimport { createTempFile } from './lib'\n\n(async () => {\n  try {\n    // 0. SETUP: create a temp file.\n    const path = await createTempFile()\n\n    // 1. UNLINK and return the path to the temp file.\n    const erasedPath = await makePromise(unlink, path, path)\n    console.log('Erased: %s', erasedPath)\n  } catch (err) {\n    console.log(err)\n  }\n})()\n```\n\n```\nErased: example/temp.data\n```\n\n### Binding Methods\n\nSometimes, it is important to bind methods of instances to their contexts, otherwise they will loose access to `this`.\n\nFor example. when closing a _Writable_ stream, its `close` method must be bound to its instance.\n\n```js\nimport { createWriteStream, unlink } from 'fs'\nimport makePromise from 'makepromise'\nimport { createTempFile, readFile } from './lib'\n\n(async () => {\n  try {\n    // 0. SETUP: create a temp file.\n    const path = await createTempFile()\n\n    // 1. CREATE a write stream, and end it with data.\n    const ws = createWriteStream(path)\n    await makePromise(ws.end.bind(ws), 'example-data')\n\n    // 2. CHECK that data has been written.\n    const data = await readFile(path)\n    console.log('Read file: \"%s\"', data)\n\n    // 3. TEAR-DOWN: remove file.\n    await makePromise(unlink, path)\n  } catch (err) {\n    console.log(err)\n  }\n})()\n```\n\n```\nRead file: \"example-data\"\n```\n\n## Error Stack\n\nThis modules will make sure that errors are updated to include the stack trace of when `makePromise` was called, rather than have the Node's internal error stack or no stack at all.\n\n```js\nimport { unlink } from 'fs'\nimport makePromise from 'makepromise'\n\n(async () => {\n  try {\n    await makePromise(unlink, 'error-test-file')\n  } catch ({ stack }) {\n    console.log(stack)\n  }\n})()\n```\n\n```\nError: ENOENT: no such file or directory, unlink 'error-test-file'\n    at /Users/anton/adc/makepromise/example/error-stack.js:6:11\n    at Object.<anonymous> (/Users/anton/adc/makepromise/example/error-stack.js:10:3)\n    at Module.p._compile (/Users/anton/adc/makepromise/node_modules/alamode/compile/depack.js:49:18)\n    at Object.k.(anonymous function).y._extensions.(anonymous function) [as .js] (/Users/anton/adc/makepromise/node_modules/alamode/compile/depack.js:51:7)\n```\n\nWithout this functionality, the error stack would not appear.\n\n```js\nimport { unlink } from 'fs'\n\n(async () => {\n  try {\n    await new Promise((r, j) => {\n      unlink('error-test-file', (err) => {\n        if (err) return j(err)\n        return r()\n      })\n    })\n  } catch ({ stack }) {\n    console.log(stack)\n  }\n})()\n```\n\n```\nError: ENOENT: no such file or directory, unlink 'error-test-file'\n```\n\n\n\n## Copyright\n\n(c) [Art Deco][1] 2019\n\n[1]: https://artd.eco","_attachments":{},"homepage":"https://www.artd.eco/","bugs":{"url":"https://github.com/artdecocode/makepromise/issues"},"license":"MIT"}