{"_id":"async-value-promise","_rev":"6-c4abc824a67788264c28a05a513e07cd","name":"async-value-promise","description":"Creates a value/error pair to mimic promise behavior","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"async-value-promise","version":"1.0.0","keywords":["async","value","container","promise"],"author":{"url":"https://github.com/qard","name":"Stephen Belanger","email":"admin@stephenbelanger.com"},"license":"MIT","_id":"async-value-promise@1.0.0","maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"}],"homepage":"https://github.com/Qard/async-value-promise#readme","bugs":{"url":"https://github.com/Qard/async-value-promise/issues"},"dist":{"shasum":"472339b269944c277f4bf4ee421db44ff72fc614","tarball":"https://registry.npmjs.org/async-value-promise/-/async-value-promise-1.0.0.tgz","fileCount":5,"integrity":"sha512-VKFAjxJjjjLBviDkELdXZ4EDtoKjinDmXPT9ART0/aqTsVuDqddglUIRG95LN5CmUinnzMWxujkvXccB3mPHVw==","signatures":[{"sig":"MEYCIQDOu5ZwP4cny5ZtuWMuglfxK0K5N+NSt0tZZdA+TMZWfAIhAKPjkO3x4/jnwKHWPbdiamR6yUEpzIFBWTHB9hZ5hVZ9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5816},"main":"index.js","gitHead":"7d37f644911db3a1ea7e18a006ad5e147b91e3cc","scripts":{"test":"tap test.js","bench":"node benchmark.js"},"_npmUser":{"name":"qard","email":"admin@stephenbelanger.com"},"repository":{"url":"git+https://github.com/Qard/async-value-promise.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a value/error pair to mimic promise behavior","directories":{},"_nodeVersion":"9.4.0","dependencies":{"async-value":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^11.1.2","benchmark-fn-list":"^1.0.0","benchmark-fn-pretty-print":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/async-value-promise_1.0.0_1521073175612_0.9783634844971005","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"async-value-promise","version":"1.1.0","keywords":["async","value","container","promise"],"author":{"url":"https://github.com/qard","name":"Stephen Belanger","email":"admin@stephenbelanger.com"},"license":"MIT","_id":"async-value-promise@1.1.0","maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"}],"homepage":"https://github.com/Qard/async-value-promise#readme","bugs":{"url":"https://github.com/Qard/async-value-promise/issues"},"dist":{"shasum":"886774424961be7f2b26e148d4fbbcada8762c88","tarball":"https://registry.npmjs.org/async-value-promise/-/async-value-promise-1.1.0.tgz","fileCount":5,"integrity":"sha512-67dOHJgmG4/ynZNRC+TWvff0zkDxJcuyPgep3N3auUxlAg+ESObC164gB+sJNQxPRFx57Uj3OLv4AlsH7ehSOw==","signatures":[{"sig":"MEUCIQDxGgM+vlbUtMJ3SMeyeATPjk5hwtejxzXW8ntqyVmVogIgOGaULyFWhwdCTogpKGe8lvmyfKZ7Rgr6qu/fPk2GJDA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9268},"main":"index.js","gitHead":"18b18be3ded49951af09fe1da9807330a345ea7f","scripts":{"test":"tap test.js","bench":"node benchmark.js"},"_npmUser":{"name":"qard","email":"admin@stephenbelanger.com"},"repository":{"url":"git+https://github.com/Qard/async-value-promise.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a value/error pair to mimic promise behavior","directories":{},"_nodeVersion":"9.4.0","dependencies":{"async-value":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^11.1.2","benchmark-fn-list":"^1.0.0","benchmark-fn-pretty-print":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/async-value-promise_1.1.0_1521583815491_0.5156852701102232","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"async-value-promise","version":"1.1.1","keywords":["async","value","container","promise"],"author":{"url":"https://github.com/qard","name":"Stephen Belanger","email":"admin@stephenbelanger.com"},"license":"MIT","_id":"async-value-promise@1.1.1","maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"}],"homepage":"https://github.com/Qard/async-value-promise#readme","bugs":{"url":"https://github.com/Qard/async-value-promise/issues"},"dist":{"shasum":"68957819e3eace804f3b4b69477e2bd276c15378","tarball":"https://registry.npmjs.org/async-value-promise/-/async-value-promise-1.1.1.tgz","fileCount":5,"integrity":"sha512-c2RFDKjJle1rHa0YxN9Ysu97/QBu3Wa+NOejJxsX+1qVDJrkD3JL/GN1B3gaILAEXJXbu/4Z1lcoCHFESe/APA==","signatures":[{"sig":"MEUCIQCMIWPzMnVchvsz3NDOjP4ssCzxDwbIRtFxTevM/V5HrgIgLZEphKgVCOUWiy4+eud+1RE2Ly2J+aJNWnW+UpmTjGY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDmwqCRA9TVsSAnZWagAAuYwP/R7bzZveAIFlt1OBnPNH\nGvQfQ70dE8OrmnglmwNNWI4VkHIsJEjIWN02CeiSD8RIgJozegi/9kv3XmMx\nPpw7VwXx90Gtq2+NKuTrX5cFUd3Laodo6lWjzirwoeRX9OoZaB1RlFZjeuS+\nulekZ2HZbT5UrkmL+wtFcpxjk1Q9srqziHmGgUS27+Zi7S0O1mITjIj0tCxe\ncKo1E+4lXveSq7rRXgONt5ONrEiL0FaMYLxvVzINJBPHJwszUKHg8qTeaAoP\nLEMS7J+mW6zobZDGN1WbNVonGs8mWCV8AMSoTDC56RCodbLk6olNJZsLs9Jz\nb098sFuPbqYk7R28OaOAZSz18bVPZaKAIqunt3k2tUuRUw8wYNhlQEfDc2J6\nDD8wsXxJJH876X/MM/16PacbRlrdNDzzg9AwEMPcsIYgJw9ig79ofDq/wNjI\nCfXZfXbgskihSq6Ba8wqf4p4vCRyovcCEuoy1dWvULjCfy4jf1OzQJEXAzSy\ns6n2cbg6p8hM7vrgHewu0GoZhlIew/vMzC5Kz01M6pCGGoNumNF5Vy3pOVhI\nHqT3SXyUgrLLKOeprs4F6P6OGHU+edyElD+7CnOn7B0gxow7nsUYG7kubDwN\nv1DH1Zh2HyljVt3n87rwXowqcNozxAK5pmkeWExiYoIHqOM9Ja+5JL3/LqDn\nXeBA\r\n=yN+n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"a924c5a882788ffb64444821a0b5a907288f8a13","scripts":{"test":"tap test.js","bench":"node benchmark.js"},"_npmUser":{"name":"qard","email":"admin@stephenbelanger.com"},"repository":{"url":"git+https://github.com/Qard/async-value-promise.git","type":"git"},"_npmVersion":"5.6.0","description":"Creates a value/error pair to mimic promise behavior","directories":{},"_nodeVersion":"10.0.0-pre","dependencies":{"async-value":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^11.1.2","benchmark-fn-list":"^1.0.0","benchmark-fn-pretty-print":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/async-value-promise_1.1.1_1527671849704_0.8946927384676711","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-03-15T00:19:35.611Z","modified":"2024-06-27T16:12:33.792Z","1.0.0":"2018-03-15T00:19:35.923Z","1.1.0":"2018-03-20T22:10:15.543Z","1.1.1":"2018-05-30T09:17:29.774Z"},"maintainers":[{"email":"trentm@gmail.com","name":"trentm"},{"email":"w@tson.dk","name":"watson"},{"email":"admin@stephenbelanger.com","name":"qard"}],"author":{"url":"https://github.com/qard","name":"Stephen Belanger","email":"admin@stephenbelanger.com"},"repository":{"url":"git+https://github.com/Qard/async-value-promise.git","type":"git"},"keywords":["async","value","container","promise"],"license":"MIT","homepage":"https://github.com/Qard/async-value-promise#readme","bugs":{"url":"https://github.com/Qard/async-value-promise/issues"},"readme":"# async-value-promise\n\nAn `AsyncValuePromise` represents a value that will exist in the future. It is\nsimilar to a `Promise` but does not include error boundary zoning or forced\nasynchrony, for performance reasons.\n\nThis module is internally synchronous. What this means is that if a value\npromise has already had `resolve` or `reject` called, any calls to `then` will\ntrigger the corresponding callback immediately. Conversely, if any callbacks\nhave already been attached with `then` before a `resolve` or `reject` occurs\nthey too will run immediately. This is intentional for performance reasons.\n\n## Install\n\n```sh\nnpm install async-value-promise\n```\n\n## Usage\n\n```js\nvar pass = new AsyncValuePromise()\n\npass.then(name => {\n  console.log(`hello, ${name}!`)\n})\n\npass.resolve('world')\n\nvar fail = new AsyncValuePromise()\n\nfail.then(null, error => {\n  console.error(err.stack)\n})\n\nfail.reject(new Error('oops'))\n```\n\n---\n\n### Copyright (c) 2018 Stephen Belanger\n#### Licensed under MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md"}