{"_id":"defer-promise","_rev":"1483427","name":"defer-promise","description":"Isomorphic function returning a deferred promise. Uses native `Promise.defer` if available, else polyfills.","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"75lb","email":"opensource@75lb.com"}],"time":{"modified":"2026-09-20T03:39:46.000Z","created":"2015-10-25T17:14:16.507Z","3.0.1":"2026-03-07T13:00:39.550Z","3.0.0":"2022-03-29T22:38:33.780Z","2.0.1":"2018-12-14T00:34:12.406Z","2.0.0":"2018-12-14T00:32:58.725Z","1.0.2":"2018-11-16T00:08:02.548Z","1.0.1":"2017-02-02T21:18:55.304Z","1.0.0":"2016-06-05T08:15:49.998Z","0.1.2":"2015-12-20T16:18:52.074Z","0.1.1":"2015-10-25T17:19:55.577Z","0.1.0":"2015-10-25T17:14:16.507Z"},"users":{"yikuo":true},"author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"repository":{"url":"git+https://github.com/75lb/defer-promise.git","type":"git"},"versions":{"3.0.1":{"name":"defer-promise","version":"3.0.1","keywords":["defer","promise","es6","native","deferred"],"author":{"name":"Lloyd Brookes","email":"opensource@75lb.com"},"license":"MIT","_id":"defer-promise@3.0.1","maintainers":[{"name":"75lb","email":"opensource@75lb.com"}],"homepage":"https://github.com/75lb/defer-promise#readme","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"dist":{"shasum":"21e8c03efa36e9f160b127c6e203ccd2fe853409","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-3.0.1.tgz","fileCount":5,"integrity":"sha512-MVRQ3P18jCxgV9AKOut3FjUIQvM6SpvWH/Y6UgGD92cqpsHVWwny6nqD/seGrqI7YKZTG8Q3MqZFTfKRCfhH0A==","signatures":[{"sig":"MEQCIGwUt0ZkkHjdFImoPxWnxEZoNqitBhKuLSLqTakfy2I0AiASxx6UW3H89fpqppsCC4edNYLBKHcz5XFJctV1xNZ9IA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4796,"size":2222,"noattachment":false,"key":"/defer-promise/-/defer-promise-3.0.1.tgz"},"type":"module","engines":{"node":">=12.17"},"exports":{"import":"./index.js","require":"./dist/index.cjs"},"gitHead":"864d591e8ce16419c7ff206ea21a1a9819e7116d","scripts":{"dist":"rollup -c","test":"npm run dist && test-runner test.js","test:ci":"test-runner test.js"},"_npmUser":{"name":"75lb","email":"opensource@75lb.com"},"repository":{"url":"git+https://github.com/75lb/defer-promise.git","type":"git"},"_npmVersion":"11.6.2","description":"Isomorphic function returning a deferred promise. Uses native `Promise.defer` if available, else polyfills.","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.59.0","test-runner":"^0.10.1"},"_npmOperationalInternal":{"tmp":"tmp/defer-promise_3.0.1_1772888439381_0.21596739337920834","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","publish_time":1772888439550,"_cnpm_publish_time":1772888439550},"3.0.0":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.0","description":"Isomorphic function returning a deferred promise. Uses native `Promise.defer` if available, else polyfills.","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","keywords":["defer","promise","es6","native","deferred"],"type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && test-runner test.js","test:ci":"test-runner test.js","dist":"rollup -c"},"devDependencies":{"rollup":"^2.70.1","test-runner":"^0.10.1"},"gitHead":"325ae9c43bf9fb9632eb0affb199e9a74e87021b","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@3.0.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-GkmLfjdHisLJpzYWreon6j8s8d1EGGNF2Q1uniozoCO53BPXRD55Gs/huNhZDAgbsbL1xoTmxzTBDTSllMfKTQ==","shasum":"6dc55a40aa28d408b9b8914f27910cae928ff4d8","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-3.0.0.tgz","fileCount":5,"unpackedSize":4451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ4ppACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUDRAAm0rB6oLegM5KzpgarVLrqWGMiP0ImSOZ8zzU+HpwDWqwgq5b\r\nUf1a4NkDc2MWd26015jpdI+pAVX4pzAyubJiM2hgGxHJxe/NQDuXA2nbJk5w\r\n+qVa29xMSjpvfFbtSNVCuAxdnRIB8Dbk4JkmLkT0TPXSaSPsjY8td9q01myE\r\ndsKew9ZLJf4ukgKRceHLyTl6p+GYrE7RJF8/ZmqrwH4HiNFp5DrgTSuBZOE2\r\n9KLzn3Lc9hpOBhUePJuiKltLdGjZgnlo53QrAZLy0qtzanfrcidlzXGHBc8g\r\nzlyk/7AvGX78x28C3V4fpZ1tNc8npVI+dHUZ/2OuGxdT25hwXg/ZoCsZHJAm\r\nl5filTgam/H4VfG1yd5GRGNHeAQ/wAwIyqO4cDyMF2z6oDT2wU1RSGEIS7tz\r\nzTgPtLQl/GCcav5BQh2mOwFdpPiNSBOZ/Cexw3Vj84ivbicFWcQgbQu4OmVv\r\ni5fCHTiYwAvx3qmpdyMGcDH7lIA3r0MY+8HUF03l1BDYgYGfLg/vsuNS2uGO\r\npCiELatEWKhWaUbGQFd/cO1ojLLEBUvC/CtnSkoS7T3d2XXzGDgyIGJ4psB3\r\nMQuoYH/c6affG0KReQwLH6rbgZWf84+C6bp7ERTXur3kZ0mCj1QHJbZ2KGVL\r\nrXyRF/6JzCtHDUqTmOJ1uAXU9us1/r2Ee70=\r\n=4ueZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJj1iH3+lI+W1OKCBbTjpoLFygSL4+Bl+T9g0WuS+z8wIgHFIkBJOSf9wfxnv91s/bUXpXDp7OKPTWTBsfOV6amfA="}],"size":2038,"noattachment":false,"key":"/defer-promise/-/defer-promise-3.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defer-promise_3.0.0_1648593513614_0.565187382030808"},"_hasShrinkwrap":false,"publish_time":1648593513780,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1648593513780},"2.0.1":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.1","description":"Isomorphic function returning a deferred promise. Uses native `Promise.defer` if available, else polyfills.","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","keywords":["defer","promise","es6","native","deferred"],"main":"dist/index.js","engines":{"node":">=6.0.0"},"scripts":{"test":"test-runner test.js","dist":"rollup -c dist/index.config.js"},"devDependencies":{"rollup":"^0.67.4","test-runner":"^0.5.1"},"gitHead":"864702e224372dea9537a1786055d130a8111e90","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@2.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"integrity":"sha512-zoKtBNZZQSv+45zx6Bjx5+N2DSloiTlTdAZt7COAG103Ulesn2I5GHG2nBcl/uKGp6atDWa/6Z99cfTCzPNopg==","shasum":"7e6c67a55a17a9a7079fbd524cf2c1dadae3590b","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-2.0.1.tgz","fileCount":5,"unpackedSize":4403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEvqECRA9TVsSAnZWagAAlP8P/1Cb2/6BffJHBWnFvJac\nUx9mG8dF+SNFQVpLVr337i/XMLnZCpVm5KZiQozvo6QX4Yd1kwSSCWwb39/E\nGQtvNQlmz3cWuK51RCYcbrDSDpV8pUutlOWPYt7ewrz8Z4G5jjCFzamx81Zs\n90C4HuFo7MWF9f1bOvWLR6Ku+n/FyCaN5UrsRqg8U7RbUnZjO4+7Y8OcePPN\n1Y0VV9hWRjCpZxevhL4ZiXsBUJFGNxM57oqI3VRuKEC1rBON8Cb11qAqz2sn\nQETj8tvOMvf7iaaILCG2Wj43BcWiP69V7IeDFkWZgpmFzlpBhWfWcRdjoBjg\ngXF5DP9zoe67K3e4dNMFb+en/VZZteC6dZkNMioJBV/8hxAs5SjoW7+K5LNV\ngq3Y+U9uMovWffu1aLX/rJ9eoJQMKF1wNH9wZcRsa3q2V9uhjIQdtyk3ewSo\n54nJD+IGgVMjgnntxSW1RGF2h7y8WTUFx9WqECGt34JEZeiiSyCQwxt9cryD\nW0nUv+e/kEXUS9wE590oeKUHETrTfvP4dErLHjlsMGOVbrqSWRRc7q+s6TMz\nHUTolZ/5HyXl6L0Y+GzmT5oOeld33V4cP/6AyixgY/5i57E5avdQWHUdsWxv\nE8Ek64FzUptGWm6BjTTEJh67RdGRAirXT1163Zvpq4npG1gCkRkQ1c8vrfYe\nWqxN\r\n=fNZS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbcZQeFx+BYyRg+I8prjPKSSGTSOr8EcWJwc0yJn7uOAIgf3hjcI6cTNWc0YBXb2qRCWbq7a3Xrjmfu8KtdvNm0TU="}],"size":2124,"noattachment":false,"key":"/defer-promise/-/defer-promise-2.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defer-promise_2.0.1_1544747652254_0.7719159500808959"},"_hasShrinkwrap":false,"publish_time":1544747652406,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1544747652406},"2.0.0":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.0","description":"Isomorphic function returning a deferred promise. Uses native `Promise.defer` if available, else polyfills.","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","keywords":["defer","promise","es6","native","deferred"],"main":"dist/index.js","engines":{"node":">=6.0.0"},"scripts":{"test":"test-runner test.js","dist":"rollup -c dist/index.config.js"},"devDependencies":{"rollup":"^0.67.4","test-runner":"^0.5.1"},"gitHead":"28090e1c248f334dda759bbec788078ada19bcc6","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"integrity":"sha512-nhZlwPjW+yTbbDcgiwIZJxkMgIVpJOaDgL1x2Ezt6iXGSCqikfQx5fKBVa/GnEnxzFAQxusvSdrgU/TTrvIziQ==","shasum":"72f79dd85c0aa5bafbe224d5f51b33d95b08defb","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-2.0.0.tgz","fileCount":4,"unpackedSize":4027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEvo7CRA9TVsSAnZWagAAz3YP/jeYOP4GUeUvoxWbXpv7\n0vURX4HiVU5lmLKdQnP5l/SfZyRmwWd4Xo5W9uPIa+OdSgbrYmB/BRR/Pn2o\n5S1CFmoRSiPXQzw296l6P8aAINpCb1raQGG2w/UfPA612NtpnbfdFgwN1TXm\n6K+ILx9ywRLlDTnP+3zY819n7tW71HeL6JUV1yTpEvDQHlBlpSwvyxVXX5GM\nJIrbBJGsCM8T4QuVGV3XHMEo/0uKwZQ/MnHS9xiBKGqQA2GUHyn5EaipskhN\nEPqzGyXaTggWpmCXqIMdscUFI4P/hNrcMCSw0LkIlD8y8v43sWbiOwXHZBd5\nq5GeTjUxEJ7xRq5n1D9Vz29paol75stq2KV5PXARzNY+rkzrqIaiYEk5PpgF\nPXmwtKf4NrKQr9fITxR2BRdEf6KDhtrxMq4GdJkOuKSE5r3y4IB1seDMUnOS\neF+1z1DWA2W4aQqDOkCFBoaXnbNN4jA7/hjBG/ZJqJ69G87dzrAIutuUOE83\n24/s80O/eCS61iKRMg4Ka/znuqTiroZuFUYOkzCnOA2FlYLSqLZBsEA9TN/7\nV/Ma6HBAuK3v0cWvInEfSQml/NVbkNbNR6MI4/edaNnmtTLlUUWvRzJ8jXu8\nGWViHIMt9rFyWBIidcFEWSc4sxebUzXkbVyd7gGzS6FSDS/wmCaA3PbXiN21\nDYuK\r\n=VdxD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0ETiUZ+eKiGoJKMLsbrEKzenIASSWBhY8HTKl9htgggIhALFBsLllr+G3h2B6ab0UDFkXKy/q+izDrOeDXX6lsfyk"}],"size":2024,"noattachment":false,"key":"/defer-promise/-/defer-promise-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defer-promise_2.0.0_1544747578523_0.3630475068927683"},"_hasShrinkwrap":false,"publish_time":1544747578725,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1544747578725},"1.0.2":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.2","description":"Returns a deferred promise. Uses native `Promise.defer` if available, else polyfill.","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","keywords":["defer","promise","es6","native","deferred"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test.js"},"devDependencies":{"test-runner":"^0.5.1"},"gitHead":"8f5a2abfe8784759ed4a8c1c8516a2de8383e2a0","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"integrity":"sha512-5a0iWJvnon50nLLqHPW83pX45BLb4MmlSa1sIg05NBhZoK5EZGz1s8qoZ3888dVGGOT0Ni01NdETuAgdJUZknA==","shasum":"b79521c59cadadaed2d305385d30f8b05cbf9196","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-1.0.2.tgz","fileCount":4,"unpackedSize":3134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7gpjCRA9TVsSAnZWagAAk/kP/2AWEQ3hVl0IUrHHgNR9\n/msVn621DXz4PAcWUiy8jGPlke3Owf+xGvaunguOPnm3XlIe1FR9k/LeTvTn\nFIdeA5RT0+PVfauIhTBwImZ1haf38VGCqYttIGgdhIUdALn42e7BDBSnH5bs\neyx8A9BXEUcNC2sFVv8lNKwfChhDhgnFY6NF9eSVV74n6V/q92iZIC4buaul\nMl6jiQI9KvMYYfxMnMqrDiauX9mSF/RrfSNbgY2jO3FLCmw1dDxkpKtVi+wA\nwU/2vtftI9edIIZP/Lh0kh0tPnPqmxn3AeroXp6suxLqEbz5+5dWGm/ry6GV\nP3KHhDbwzd4IATiwM9Zjzb8NwQ6h0UhvK6502o1vxHhgiS+3MiXEAN92rR7B\nbLyxTnhKkqp4QdAunhP76J74j0qblEE/Aiu7ZPX7/+vlaIe3qdKSDOXHel47\nroVGpjAzLTXuOKSQUm9JErq2RO3TeJIYdvSLNurxpPuBCCQL33lUhGRS3ySh\n1GUlJ/I+g6j9fIxddQBmxkb5fKa1FidGl0HNa+u7ECNI8EaXPs32eGUNK20W\nnDe1Sp0T8a7fKorIGIlqLGzns4mJwXwLn3L1TAYH5OgC+MQjTPfqazC+IzbM\nLS72e7LEZj4vweKURflM4voL/nI4RwmQA5r5YSSs8Wnn/+OGLHbksYIfH5cI\nbBpD\r\n=movy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeny/0dbHz9G5wfLLx5sEEfaxRF7F9mLy+r3dM5DmlDQIgK3iil4CusCyB5/5H3Oc0kcwnYXqvzqvHHoBLiEttOIE="}],"size":1695,"noattachment":false,"key":"/defer-promise/-/defer-promise-1.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defer-promise_1.0.2_1542326882416_0.5798737494676636"},"_hasShrinkwrap":false,"publish_time":1542326882548,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1542326882548},"1.0.1":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"defer-promise","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","main":"./lib/defer-promise.js","keywords":["defer","promise","es6","native","deferred"],"engines":{"node":">=0.10.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"test-runner":"^0.3.0"},"gitHead":"64aa2664317790e567dfdb91ae04bf52db440083","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@1.0.1","_shasum":"1ca6ffeddbcef1715dd7aae25c7616f9ae22932f","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"1ca6ffeddbcef1715dd7aae25c7616f9ae22932f","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-1.0.1.tgz","integrity":"sha512-oNXP2pRffPlQSWxDLadholXlEzP5JyJBG6i5kt5OMSc/3u6Xwe95lqXTENzJ/IKOYEZ+aaHIvtDWI7hpoov0Ew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEFlP+xWMvz74J5kyyI5QoG3si+QPoJ5oo+LF+vWhprYAiEAuNUT24/DVAHYMvUE5XDWLwDhrj8NuIf2RXrPufarscE="}],"size":2020,"noattachment":false,"key":"/defer-promise/-/defer-promise-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/defer-promise-1.0.1.tgz_1486070334680_0.20472807600162923"},"directories":{},"publish_time":1486070335304,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1486070335304},"1.0.0":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"defer-promise","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","main":"./lib/defer-promise.js","keywords":["defer","promise","es6","native","deferred"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"gitHead":"9dd35b7729255f2397c8d5860daa3ab63f6af4f7","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@1.0.0","_shasum":"43c94a8a3e1e2699a114ea86a18fa9d5f83bca85","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"43c94a8a3e1e2699a114ea86a18fa9d5f83bca85","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-1.0.0.tgz","integrity":"sha512-WXfBM/une+ihDZYOoHS1v+tfBLHIInz3B1G1WeJ1QG21+XC4FA2zq/mCENSrOkY3r93lbQ1/SblJMEszG1PZAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKpNIXyXbR+hAEQxOvFnUQ2n1oTMOgXoRB62ABV5rf7wIga/KfPDdGnkePSbjG0BreYnjIi2FLkTwyDWgHGrd090c="}],"size":1712,"noattachment":false,"key":"/defer-promise/-/defer-promise-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/defer-promise-1.0.0.tgz_1465114548244_0.25864325440488756"},"directories":{},"publish_time":1465114549998,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1465114549998},"0.1.2":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.2","description":"defer-promise","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","main":"./lib/defer-promise.js","keywords":["defer","promise","es6","native","deferred"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"gitHead":"edd17dd8c283e9cb5cdc1153d2696cfcc705e448","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@0.1.2","_shasum":"12587314679ef3e1b7732a0eafe9a6c2e7a737ae","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"12587314679ef3e1b7732a0eafe9a6c2e7a737ae","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-0.1.2.tgz","integrity":"sha512-t+tTuFnsLVg77LXiREYLfQzngePThuGKQjt7vqsQILrrsCTMJZuA45+/9V78ex6W9lGkc9r/DZv/CTKzW2Gaqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHMmm8gmKu8uCYxaQZ4ZbTU8zG1OfyO4bmi/dTRR4RKAIhAJ5HoLU624k8I3J6ASKgYKKd2ozRH46KJMUCmtLDns6O"}],"size":1724,"noattachment":false,"key":"/defer-promise/-/defer-promise-0.1.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1450628332074,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1450628332074},"0.1.1":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"defer-promise","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","main":"./lib/defer-promise.js","keywords":["defer","promise","es6","native","deferred"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"gitHead":"e428036cbd3513b44f3c46447e278f9633e0e2e9","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@0.1.1","_shasum":"7b7636b6108decb3ac03dd3f532c228b775bd368","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"7b7636b6108decb3ac03dd3f532c228b775bd368","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-0.1.1.tgz","integrity":"sha512-fBx3O4wlCBDBcsvR1Nqv1qSMMu0OiXUEJ2iFDh2Zs/F0hmqv1rOusP3rLAR7XR3kZ/anRSwGFxCS89t52dsKqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACS6ypyHPVlHsK7SGdTP/jt5lnxcS7sVQQOddn8Yr6/AiByhqrsK1cBi8uD7/86iFVE9mG464leXl2EIlV8VMijMw=="}],"size":1680,"noattachment":false,"key":"/defer-promise/-/defer-promise-0.1.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1445793595577,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1445793595577},"0.1.0":{"name":"defer-promise","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"defer-promise","repository":{"type":"git","url":"git+https://github.com/75lb/defer-promise.git"},"license":"MIT","main":"./lib/defer-promise.js","bin":{"defer-promise":"bin/cli.js"},"keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"gitHead":"6277d7efd787ee7731de71342509104bba9760cd","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"homepage":"https://github.com/75lb/defer-promise#readme","_id":"defer-promise@0.1.0","_shasum":"b08dbc404569962066074c11cba0d6a9040da1fd","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"b08dbc404569962066074c11cba0d6a9040da1fd","tarball":"http://registry-npm.ywwl.com/defer-promise/download/defer-promise-0.1.0.tgz","integrity":"sha512-BrmBXxM6jWZG+W+GQR+KNpYD+PiESGT5YE2xGO/qMGh6SVoK+3TOO3XE9Bghvop+ivkewsoHqLTFNSvJxWjY4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBLCQiAqgRZoSUm2ceUHKbr44TN68T56Fem7KPsskzPAiAryhHgc1sywu2YEWllxWb/fxrnN/lHh5s33xq1yw4AlA=="}],"size":1711,"noattachment":false,"key":"/defer-promise/-/defer-promise-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1445793256507,"deprecated":"Deferred promises have been standardised by the native Promise.withResolvers() method. This library will continue to function correctly but will no longer be maintained.","_cnpm_publish_time":1445793256507}},"readme":"[![view on npm](https://badgen.net/npm/v/defer-promise)](https://www.npmjs.org/package/defer-promise)\n[![npm module downloads](https://badgen.net/npm/dt/defer-promise)](https://www.npmjs.org/package/defer-promise)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/defer-promise)](https://github.com/75lb/defer-promise/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/defer-promise)](https://github.com/75lb/defer-promise/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/defer-promise/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/defer-promise/actions/workflows/node.js.yml)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n***Deprecated. Deferred promises have been standardised by the native [Promise.withResolvers()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers) method. This library will continue to function correctly but will no longer be maintained.***\n\n# defer-promise\n\nIsomorphic function returning a deferred promise with `resolve` and `reject` methods. If the global `Promise.defer()` method exists it will use that, else polyfill.\n\n```js\nimport defer from 'defer-promise'\nconst deferred = defer()\n\n/* Async function using a callback instead of returning a promise */\ndoSomething((result, err) => {\n  if (err) {\n    deferred.reject(err)\n  } else {\n    deferred.resolve(result)\n  }\n})\n\nconst result = await deferred.promise;\n```\n\n## Load anywhere\n\nThis library can be loaded anywhere, natively without transpilation.\n\nCommon JS:\n\n```js\nconst defer = require('defer-promise')\n```\n\nNode.js with ECMAScript Module support enabled:\n\n```js\nimport defer from 'defer-promise'\n```\n\nModern browser ECMAScript Module:\n\n```js\nimport defer from './node_modules/defer-promise/index.js'\n```\n\n* * *\n\n&copy; 2015-26 Lloyd Brookes \\<opensource@75lb.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/defer-promise#readme","bugs":{"url":"https://github.com/75lb/defer-promise/issues"},"license":"MIT"}