{"_id":"@blinkmobile/jqpromise","_rev":"12-0665a4e1e3a396a03f4a65f0f6dfb88e","name":"@blinkmobile/jqpromise","description":"wrap jQuery.Deferred to make it more like native Promises","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@blinkmobile/jqpromise","version":"1.0.0","description":"wrap jQuery.Deferred to make it more like native Promises","main":"index.js","scripts":{"build":"browserify -s JQPromise -u jquery -e . -o dist/index.js","pretest":"npm run build","test":"eslint . && karma start"},"repository":{"type":"git","url":"git+https://github.com/blinkmobile/jqpromise.js.git"},"keywords":["coerce","cast","types"],"author":{"name":"Ron Waldon","url":"https://github.com/jokeyrhyme"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/blinkmobile/jqpromise.js/issues"},"homepage":"https://github.com/blinkmobile/jqpromise.js#readme","devDependencies":{"browserify":"^10.2","eslint":"^0.23.0","eslint-config-semistandard":"^4.0","eslint-config-standard":"^3.3","jquery":"^2.1","karma":"^0.12.37","karma-browserify":"^4.2","karma-firefox-launcher":"^0.1.6","karma-phantomjs-launcher":"^0.2.0","karma-tap":"^1.0","phantomjs":"^1.9","tape":"^4.0","tape-chai":"^1.1"},"files":["dist/index.js","index.js","LICENSE","README.md"],"gitHead":"e6214d46464498893fcdd4c1030b126e7c03ecd5","_id":"@blinkmobile/jqpromise@1.0.0","_shasum":"22e2274a6e59f56c9dd772c1634da34950d59182","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.5","_npmUser":{"name":"blinkmobile","email":"ron@blinkmobile.com.au"},"dist":{"shasum":"22e2274a6e59f56c9dd772c1634da34950d59182","tarball":"https://registry.npmjs.org/@blinkmobile/jqpromise/-/jqpromise-1.0.0.tgz","integrity":"sha512-0N5hlK+e/JgKmp2KecMP06RjLRX3K3QoPAftEq/+OmAIk6TKOCy/FmoLK2jJ/HPoGn4Le11LhgDDtn2NPQ0QFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIPxVyR3IzcEX83DD7PULDBYcEgGGhUT2LAeYUYAXgUAiEA0cnjZNs2fPcFeTGF5kGERPTmDHgNI2A7+fTL0q8xs3Q="}]},"maintainers":[{"name":"blinkmobile","email":"ron@blinkmobile.com.au"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"@blinkmobile/jqpromise","version":"1.0.1","description":"wrap jQuery.Deferred to make it more like native Promises","main":"index.js","scripts":{"build":"browserify -s JQPromise -x jquery -e . -o dist/index.js","pretest":"npm run build","test":"eslint . && karma start"},"repository":{"type":"git","url":"git+https://github.com/blinkmobile/jqpromise.js.git"},"keywords":["coerce","cast","types"],"author":{"name":"Ron Waldon","url":"https://github.com/jokeyrhyme"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/blinkmobile/jqpromise.js/issues"},"homepage":"https://github.com/blinkmobile/jqpromise.js#readme","devDependencies":{"browserify":"^10.2","eslint":"^0.23.0","eslint-config-semistandard":"^4.0","eslint-config-standard":"^3.3","jquery":"^2.1","karma":"^0.12.37","karma-browserify":"^4.2","karma-firefox-launcher":"^0.1.6","karma-phantomjs-launcher":"^0.2.0","karma-tap":"^1.0","phantomjs":"^1.9","tape":"^4.0","tape-chai":"^1.1"},"files":["dist/index.js","index.js","LICENSE","README.md"],"gitHead":"58cd1addab1109fe3ce2b775ecc7fed0c52d8744","_id":"@blinkmobile/jqpromise@1.0.1","_shasum":"98c0c6c99ec4d87271cf2e5d83800b83831a8892","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jokeyrhyme","email":"jokeyrhyme@gmail.com"},"dist":{"shasum":"98c0c6c99ec4d87271cf2e5d83800b83831a8892","tarball":"https://registry.npmjs.org/@blinkmobile/jqpromise/-/jqpromise-1.0.1.tgz","integrity":"sha512-q2alNBDla4116DUSmdJxaUlH+E6Nq3647xPYFMUp5gaVVY7WTkWiEPrbhIo6cWYcCPkTcJOGi62w1HpDOsY4Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHu5IXXladZrtD3kC8fnE91AukuqTRuv9aMhSvuNVce/AiAWibYIzNnb9kNhu//RZkGG90WL8RuDBgn5ueaJfLmGSw=="}]},"maintainers":[{"name":"blinkmobile","email":"ron@blinkmobile.com.au"},{"name":"jokeyrhyme","email":"jokeyrhyme@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"# jqpromise.js\n\nwrap jQuery.Deferred to make it more like native Promises\n\n[![npm module](https://img.shields.io/npm/v/@blinkmobile/jqpromise.svg)](https://www.npmjs.com/package/@blinkmobile/jqpromise)\n[![travis-ci](https://img.shields.io/travis/blinkmobile/jqpromise.js.svg)](https://travis-ci.org/blinkmobile/jqpromise.js)\n\n## What is this?\n\nThis is handy for older projects that still have jQuery. Why load a separate\nPromises poly-fill when there's a \"good enough\" implementation buried in jQuery?\n\nThis wrapper exports a new constructor that internally uses $.Deferred. The\ndifference is the argument is the same sort of callback that native Promises\nuses, instead of the $.Deferred argument.\n\n## Usage\n\n```js\n// $.Deferred\nvar dfrd = new $.Deferred(function (d) {\n  setTimeout(function () {\n    d.resolve(); // or d.reject();\n  }, 0);\n});\n\n// native Promise\nvar promise = new Promise(function (resolve, reject) {\n  setTimeout(function () {\n    resolve(); // or reject();\n  }, 0);\n});\n\n// JQPromise\nvar jqp = new JQPromise(function (resolve, reject) {\n  setTimeout(function () {\n    resolve(); // or reject();\n  }, 0);\n});\n\n// native Promise falling back to JQPromise\nvar P = window.Promise || window.JQPromise;\nvar p = new P(function (resolve, reject) {\n  setTimeout(function () {\n    resolve(); // or reject();\n  }, 0);\n});\n```\n","maintainers":[{"email":"aaronroworth@gmail.com","name":"aaronroworth"},{"email":"ron@blinkmobile.com.au","name":"blinkmobile-admin"},{"email":"kizaonline@gmail.com","name":"kizaonline"},{"email":"matt.carroll139@gmail.com","name":"mymattcarroll"},{"email":"simondobie23@gmail.com","name":"simon_marklar"}],"time":{"modified":"2023-08-23T01:44:06.235Z","created":"2015-06-24T05:23:09.951Z","1.0.0":"2015-06-24T05:23:09.951Z","1.0.1":"2015-06-24T23:11:09.715Z"},"homepage":"https://github.com/blinkmobile/jqpromise.js#readme","keywords":["coerce","cast","types"],"repository":{"type":"git","url":"git+https://github.com/blinkmobile/jqpromise.js.git"},"author":{"name":"Ron Waldon","url":"https://github.com/jokeyrhyme"},"bugs":{"url":"https://github.com/blinkmobile/jqpromise.js/issues"},"license":"BSD-3-Clause","readmeFilename":"README.md"}