{"_id":"@dhl-uu/jquery-promise","_rev":"4-423f850db09ea0412955df9b89f16135","name":"@dhl-uu/jquery-promise","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@dhl-uu/jquery-promise","version":"1.1.0","description":"A lightweight Promise polyfill based on Promises/A+ compliant $.Deferred from jQuery 3","keywords":["jquery","promise","polyfill","es6","es2015","promises-aplus"],"bugs":{"url":"https://github.com/UUDigitalHumanitieslab/jquery-promise/issues"},"repository":{"type":"git","url":"https://github.com/UUDigitalHumanitieslab/jquery-promise.git"},"author":{"name":"Julian Gonggrijp, Digital Humanities Lab, Utrecht University"},"license":"BSD-3-Clause","main":"jquery-promise.js","scripts":{"prepare":"babel jquery-promise.es6 -so jquery-promise.js --plugins=transform-es2015-modules-umd","pretest":"browserify test.es6 -d -o test.js --extension=.es6 -t [ babelify ]","test":"mocha-chrome test.html --reporter min","prepublishOnly":"yarn test"},"dependencies":{},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.7.0","babelify":"8","browserify":"^16.2.2","jquery":"^3.3.1","mocha-chrome":"^1.1.0","promises-aplus-tests":"^2.1.2"},"peerDependencies":{"jquery":"3"},"babel":{"presets":["env"]},"licenseText":"BSD 3-Clause License\n\nCopyright (c) 2018, UU Digital Humanities Lab\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","_id":"@dhl-uu/jquery-promise@1.1.0","dist":{"shasum":"30147f145983e5376f9f1d36581e67efd98d8b62","tarball":"https://registry.npmjs.org/@dhl-uu/jquery-promise/-/jquery-promise-1.1.0.tgz","integrity":"sha512-QIiJsGNNEEx4V+ihUJinXdD355NCnl89zYjQsAuPoP1Wh3AfOBl3S9u0zclziiTNsJr39+HGa5ATOPoIiT37Jg==","fileCount":6,"unpackedSize":9940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmrEmCRA9TVsSAnZWagAAxN0QAKMM8jJn5F6bez78YbRN\nGbtghqpQnTq81OdIC63rT18A4ABBdUmtT9q+H+2aiucROfXrclzKc8iaSb7e\n6UvZEecmnDZqxRngNntLrR1b2POCW4WhKlt8hsSd7eBzDFyZECs1rApqJQL0\nwrxp1qhVdDcLcZ3k2Pfgua6904M4C7ULx5Yle1DBkCHE82XLT97ygtz5FBdt\nLjHvJLJRnesygRoqHXU26a9iRo3EcxugVaxpAwCdBG5Bw/mayRA8/t/lgz9Q\nuJo7KowgOt0UAq7zfaELG/A68l80UBKyShnooddpQLz4svvUZ3m35+/c+UzV\nv60UUAiYnE1sEd2GPT+ZGlGHpXHfeN438dloDcGqKoOzL9hqwQSrtrnTntui\n3bpSUN1/rtz5hpsBOlojI1pUS0+f1VQX9PY8Nj9Cl3rAPxwRQ5CIKgW0JaG7\nCATOzONLKzF/DxHX6fpxogCjt91ncmYbNc7FlVjSHCmXsAn6jckQjZbmm78e\ncmgx30qLu9bf60msfvL8b14qJ5Xb7w+uUtLoD4Mre4NeWAIbNh9f6TNGeJnS\ndErHj/UjtFtTKVxCmIMqwyxkWi77qs4a85dbXcBWQW379Tw+ee2o073ym5Ct\n0JMh7xrSX2GE/BwfvzoV2N6ttawHOfxucr21GFZwie+6FhoWp8XrejFEL+pi\nA7Lp\r\n=Opmf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl63eGp/7d26AeXQygavDRS8xpm4lXwdBRw5/GTgZG1AIgNszciuWETbrhm7GDANPYp9w5ZfE/yXPMwWSd+/2MGRM="}]},"maintainers":[{"name":"dhl-uu","email":"dh.developers@uu.nl"}],"_npmUser":{"name":"dhl-uu","email":"dh.developers@uu.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-promise_1.1.0_1536864549571_0.36747230155019683"},"_hasShrinkwrap":false},"1.1.1":{"name":"@dhl-uu/jquery-promise","version":"1.1.1","description":"A lightweight Promise polyfill based on Promises/A+ compliant $.Deferred from jQuery 3","keywords":["jquery","promise","polyfill","es6","es2015","promises-aplus"],"bugs":{"url":"https://github.com/UUDigitalHumanitieslab/jquery-promise/issues"},"repository":{"type":"git","url":"https://github.com/UUDigitalHumanitieslab/jquery-promise.git"},"author":{"name":"Julian Gonggrijp, Digital Humanities Lab, Utrecht University"},"license":"BSD-3-Clause","main":"jquery-promise.js","scripts":{"prepare":"babel jquery-promise.es6 -so jquery-promise.js","pretest":"browserify test.es6 -d -o test.js --extension=.es6 -t [ babelify --no-babelrc --presets [ env ] ]","test":"mocha-chrome test.html --reporter min","prepublishOnly":"yarn test"},"dependencies":{},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.7.0","babelify":"8","browserify":"^16.2.2","jquery":"^3.3.1","mocha-chrome":"^1.1.0","promises-aplus-tests":"^2.1.2"},"peerDependencies":{"jquery":"3"},"babel":{"presets":["env"],"plugins":[["transform-es2015-modules-umd",{"globals":{"jquery":"jQuery"}}]]},"licenseText":"BSD 3-Clause License\n\nCopyright (c) 2018, UU Digital Humanities Lab\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","_id":"@dhl-uu/jquery-promise@1.1.1","dist":{"shasum":"0fbe7ed60a3ce36f1729a5fbd9f4f708c0e5bf10","tarball":"https://registry.npmjs.org/@dhl-uu/jquery-promise/-/jquery-promise-1.1.1.tgz","integrity":"sha512-HYwEhUJX1xv3LbTjuPZ+MG7owS9el8XoYc0MOqMmFeXBsr0k0+Di/vDoWmred8NusYAU+kIWTM4BRkk2R3anGg==","fileCount":6,"unpackedSize":10098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmruBCRA9TVsSAnZWagAADkgP/RCk8ws48xIFGKYoT6rJ\n9T3c6D6qwT6xLcu1+7WDmbfPHv3njNVlHbKuevftXLjzIJc0JzjSqmOKc1KE\n7faWeActitrSc88o2zpLNCWz2oOzM4GAomOa9IozQpLiUrhmLffOMoe9mImx\n7R3NvfmnhWS+XEXRE1W+f9K7C81PD8MxiZcMUKCiqIk8OOUDiwG+f1cZWLXQ\n1CHldWGkSfXFunfXd5y/DDVZLfCHTBGwsyWragalh0HzlX+NzGodAKSYgJbT\n92M2GUSbzveLLEpOkE/80+L6hsAjTGUm0KxiQJyUhyH6UdXZlvxNeoNn65ze\nlRmNV687zLvjXt8ef8PezVQ9tUHb1+tVQGGh4OpvehTybWHFMbhTKD+XmriH\nOaZVh1aXWcndnuXtuFHFVcF4erlndc7k6h8CQXhUzpOlPqvlLJk5rKOWd9sW\n3VP7wAJybFyyGYdQvM/9B0p+lHaXoPVoNZ4Al9J0oAgU9oDo7Hc8kyHVq7qQ\nR4kU94ex5BjjOuZ5Qo0E+AKEyTlqqqWQibxZIswq93iIwTAvlPtG/SsfOP7n\nRztDiUruOsCH8+8PSgIMP2kzv/2cdejbzq5Bb94MwdRKDhIvoTSeOnn0biUf\n8YXcZXZEfn1EhJ4F/nsf6kIhBSGJsFkjBQTh//ggpFFIPF1sC1BbObGaUam8\n0yTF\r\n=WXDy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP6cI6A2yB9Kzc8ujPoEX4dF0pQ+SjntnEr+YiJWzf+AiBdmaUGPNWX9CRWJv1xl2g6KHBSEtTSl7kh+deSZ7l9pA=="}]},"maintainers":[{"name":"dhl-uu","email":"dh.developers@uu.nl"}],"_npmUser":{"name":"dhl-uu","email":"dh.developers@uu.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-promise_1.1.1_1536867200999_0.5716058619255537"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-13T18:49:09.413Z","1.1.0":"2018-09-13T18:49:09.708Z","modified":"2022-04-05T04:20:42.768Z","1.1.1":"2018-09-13T19:33:21.181Z"},"maintainers":[{"email":"dev@juliangonggrijp.com","name":"jgonggrijp"},{"email":"dh.developers@uu.nl","name":"dhl-uu-bis"}],"description":"A lightweight Promise polyfill based on Promises/A+ compliant $.Deferred from jQuery 3","keywords":["jquery","promise","polyfill","es6","es2015","promises-aplus"],"repository":{"type":"git","url":"https://github.com/UUDigitalHumanitieslab/jquery-promise.git"},"author":{"name":"Julian Gonggrijp, Digital Humanities Lab, Utrecht University"},"bugs":{"url":"https://github.com/UUDigitalHumanitieslab/jquery-promise/issues"},"license":"BSD-3-Clause","readme":"# jquery-promise\n\nA lightweight Promise polyfill based on Promises/A+ compliant $.Deferred from jQuery 3.\n\n[![Build Status](https://travis-ci.com/UUDigitalHumanitieslab/jquery-promise.svg?branch=develop)](https://travis-ci.com/UUDigitalHumanitieslab/jquery-promise) [![Promises/A+ 1.1 compliant](https://promisesaplus.com/assets/logo-small.png)](https://promisesaplus.com/)\n\n\n## Use case\n\njquery-promise is for you if the following conditions apply.\n\n - You are already using jQuery 3+ for independent reasons.\n - You need a polyfill for the ES6 `Promise` interface, for example because you are transpiling `async`/`await` syntax.\n - You want your polyfill to be as small as possible.\n\n\n## Quickstart\n\n```console\n$ npm i @dhl-uu/jquery-promise\n```\n\n```js\nimport '@dhl-uu/jquery-promise';\n```\n\nThis will only put the polyfill in global scope if there is no `Promise` global already. The polyfill implementation is also the default export of the module.\n\n\n## Limitations\n\nThis is a very thin wrapper around [`jQuery.Deferred`][2]. Our polyfill `Promise` interface has the same constructor, static methods and instance methods as [the standard][4]. However, objects returned after chaining `.then`, `.catch` and `.finally` lack the `.finally` method themselves. This is beyond our control, because jQuery constructs promise objects as plain objects in a closure and there is no prototype that we can extend. This is unlikely to cause problems in practice. You still get Promises/A+ compliant then-able objects.\n\n[2]: https://api.jquery.com/category/deferred-object/\n[4]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n\n\n*Made by*\n\n[![Digital Humanities Lab](http://dhstatic.hum.uu.nl/logo-lab/png/dighum-logo.png)](https://dig.hum.uu.nl)\n","readmeFilename":"README.md"}