New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es6-promise-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-promise-plugin - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

CHANGELOG.md

8

package.json
{
"name": "es6-promise-plugin",
"version": "4.1.0",
"version": "4.1.1",
"description": "ES6-Promises polyfill for Cordova/PhoneGap",
"main": "www/promise.js",
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"es6-promise": "^4.1.0"
"browserify": "^14.4.0",
"es6-promise": "^4.1.1"
},

@@ -11,0 +11,0 @@ "scripts": {

@@ -16,6 +16,3 @@ # PromisesPlugin

```
<dependency
id="es6-promise-plugin"
url="https://github.com/vstirbu/PromisesPlugin.git">
</dependency>
<dependency id="es6-promise-plugin" version="4.1.0" />
```

@@ -22,0 +19,0 @@

@@ -5,7 +5,7 @@ /*!

* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version 3.0.2
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version 4.1.1
*/
!function t(e,n,r){function o(s,u){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!u&&c)return c(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t){void 0===window.Promise&&t("es6-promise").polyfill()},{"es6-promise":2}],2:[function(t,e,n){(function(r,o){!function(t,r){"object"==typeof n&&"undefined"!=typeof e?e.exports=r():"function"==typeof define&&define.amd?define(r):t.ES6Promise=r()}(this,function(){"use strict";function e(t){return"function"==typeof t||"object"==typeof t&&null!==t}function n(t){return"function"==typeof t}function i(t){R=t}function s(t){V=t}function u(){return function(){return r.nextTick(d)}}function c(){return"undefined"!=typeof Q?function(){Q(d)}:l()}function f(){var t=0,e=new $(d),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function a(){var t=new MessageChannel;return t.port1.onmessage=d,function(){return t.port2.postMessage(0)}}function l(){var t=setTimeout;return function(){return t(d,1)}}function d(){for(var t=0;J>t;t+=2){var e=ne[t],n=ne[t+1];e(n),ne[t]=void 0,ne[t+1]=void 0}J=0}function h(){try{var e=t,n=e("vertx");return Q=n.runOnLoop||n.runOnContext,c()}catch(r){return l()}}function p(t,e){var n=arguments,r=this,o=new this.constructor(w);void 0===o[oe]&&Y(o);var i=r._state;return i?!function(){var t=n[i-1];V(function(){return O(i,o,t,r._result)})}():M(r,o,t,e),o}function v(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(w);return j(n,t),n}function w(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function m(t){try{return t.then}catch(e){return ce.error=e,ce}}function b(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function g(t,e,n){V(function(t){var r=!1,o=b(n,e,function(n){r||(r=!0,e!==n?j(t,n):x(t,n))},function(e){r||(r=!0,T(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,T(t,o))},t)}function A(t,e){e._state===se?x(t,e._result):e._state===ue?T(t,e._result):M(e,void 0,function(e){return j(t,e)},function(e){return T(t,e)})}function E(t,e,r){e.constructor===t.constructor&&r===p&&e.constructor.resolve===v?A(t,e):r===ce?(T(t,ce.error),ce.error=null):void 0===r?x(t,e):n(r)?g(t,e,r):x(t,e)}function j(t,n){t===n?T(t,_()):e(n)?E(t,n,m(n)):x(t,n)}function S(t){t._onerror&&t._onerror(t._result),P(t)}function x(t,e){t._state===ie&&(t._result=e,t._state=se,0!==t._subscribers.length&&V(P,t))}function T(t,e){t._state===ie&&(t._state=ue,t._result=e,V(S,t))}function M(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+se]=n,o[i+ue]=r,0===i&&t._state&&V(P,t)}function P(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?O(n,r,o,i):o(i);t._subscribers.length=0}}function C(){this.error=null}function k(t,e){try{return t(e)}catch(n){return fe.error=n,fe}}function O(t,e,r,o){var i=n(r),s=void 0,u=void 0,c=void 0,f=void 0;if(i){if(s=k(r,o),s===fe?(f=!0,u=s.error,s.error=null):c=!0,e===s)return T(e,y()),void 0}else s=o,c=!0;e._state!==ie||(i&&c?j(e,s):f?T(e,u):t===se?x(e,s):t===ue&&T(e,s))}function q(t,e){try{e(function(e){j(t,e)},function(e){T(t,e)})}catch(n){T(t,n)}}function L(){return ae++}function Y(t){t[oe]=ae++,t._state=void 0,t._result=void 0,t._subscribers=[]}function F(t,e){this._instanceConstructor=t,this.promise=new t(w),this.promise[oe]||Y(this.promise),H(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&x(this.promise,this._result))):T(this.promise,I())}function I(){return new Error("Array Methods must be provided an Array")}function D(t){return new F(this,t).promise}function K(t){var e=this;return H(t)?new e(function(n,r){for(var o=t.length,i=0;o>i;i++)e.resolve(t[i]).then(n,r)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})}function N(t){var e=this,n=new e(w);return T(n,t),n}function U(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function z(t){this[oe]=L(),this._result=this._state=void 0,this._subscribers=[],w!==t&&("function"!=typeof t&&U(),this instanceof z?q(this,t):W())}function B(){var t=void 0;if("undefined"!=typeof o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=z}var G=void 0;G=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var H=G,J=0,Q=void 0,R=void 0,V=function(t,e){ne[J]=t,ne[J+1]=e,J+=2,2===J&&(R?R(d):re())},X="undefined"!=typeof window?window:void 0,Z=X||{},$=Z.MutationObserver||Z.WebKitMutationObserver,te="undefined"==typeof self&&"undefined"!=typeof r&&"[object process]"==={}.toString.call(r),ee="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ne=new Array(1e3),re=void 0;re=te?u():$?f():ee?a():void 0===X&&"function"==typeof t?h():l();var oe=Math.random().toString(36).substring(16),ie=void 0,se=1,ue=2,ce=new C,fe=new C,ae=0;return F.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ie&&t>n;n++)this._eachEntry(e[n],n)},F.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===v){var o=m(t);if(o===p&&t._state!==ie)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===z){var i=new n(w);E(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},F.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ie&&(this._remaining--,t===ue?T(r,n):this._result[e]=n),0===this._remaining&&x(r,this._result)},F.prototype._willSettleAt=function(t,e){var n=this;M(t,void 0,function(t){return n._settledAt(se,e,t)},function(t){return n._settledAt(ue,e,t)})},z.all=D,z.race=K,z.resolve=v,z.reject=N,z._setScheduler=i,z._setAsap=s,z._asap=V,z.prototype={constructor:z,then:p,"catch":function(t){return this.then(null,t)}},z.polyfill=B,z.Promise=z,z})}).call(this,t("/usr/local/share/npm/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"/usr/local/share/npm/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":3}],3:[function(t,e){var n=e.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}]},{},[1]);
!function t(e,n,r){function o(u,s){if(!n[u]){if(!e[u]){var c="function"==typeof require&&require;if(!s&&c)return c(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var a=n[u]={exports:{}};e[u][0].call(a.exports,function(t){var n=e[u][1][t];return o(n?n:t)},a,a.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(t){void 0===window.Promise&&t("es6-promise").polyfill()},{"es6-promise":2}],2:[function(t,e,n){(function(r,o){!function(t,r){"object"==typeof n&&"undefined"!=typeof e?e.exports=r():"function"==typeof define&&define.amd?define(r):t.ES6Promise=r()}(this,function(){"use strict";function e(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function n(t){return"function"==typeof t}function i(t){R=t}function u(t){V=t}function s(){return function(){return r.nextTick(h)}}function c(){return"undefined"!=typeof Q?function(){Q(h)}:l()}function f(){var t=0,e=new $(h),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function a(){var t=new MessageChannel;return t.port1.onmessage=h,function(){return t.port2.postMessage(0)}}function l(){var t=setTimeout;return function(){return t(h,1)}}function h(){for(var t=0;J>t;t+=2){var e=ne[t],n=ne[t+1];e(n),ne[t]=void 0,ne[t+1]=void 0}J=0}function p(){try{var e=t,n=e("vertx");return Q=n.runOnLoop||n.runOnContext,c()}catch(r){return l()}}function d(t,e){var n=arguments,r=this,o=new this.constructor(y);void 0===o[oe]&&D(o);var i=r._state;return i?!function(){var t=n[i-1];V(function(){return L(i,o,t,r._result)})}():O(r,o,t,e),o}function v(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return E(n,t),n}function y(){}function m(){return new TypeError("You cannot resolve a promise with itself")}function _(){return new TypeError("A promises callback cannot return that same promise.")}function w(t){try{return t.then}catch(e){return ce.error=e,ce}}function g(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function b(t,e,n){V(function(t){var r=!1,o=g(n,e,function(n){r||(r=!0,e!==n?E(t,n):j(t,n))},function(e){r||(r=!0,x(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,x(t,o))},t)}function T(t,e){e._state===ue?j(t,e._result):e._state===se?x(t,e._result):O(e,void 0,function(e){return E(t,e)},function(e){return x(t,e)})}function A(t,e,r){e.constructor===t.constructor&&r===d&&e.constructor.resolve===v?T(t,e):r===ce?(x(t,ce.error),ce.error=null):void 0===r?j(t,e):n(r)?b(t,e,r):j(t,e)}function E(t,n){t===n?x(t,m()):e(n)?A(t,n,w(n)):j(t,n)}function S(t){t._onerror&&t._onerror(t._result),M(t)}function j(t,e){t._state===ie&&(t._result=e,t._state=ue,0!==t._subscribers.length&&V(M,t))}function x(t,e){t._state===ie&&(t._state=se,t._result=e,V(S,t))}function O(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+ue]=n,o[i+se]=r,0===i&&t._state&&V(M,t)}function M(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,u=0;u<e.length;u+=3)r=e[u],o=e[u+n],r?L(n,r,o,i):o(i);t._subscribers.length=0}}function P(){this.error=null}function C(t,e){try{return t(e)}catch(n){return fe.error=n,fe}}function L(t,e,r,o){var i=n(r),u=void 0,s=void 0,c=void 0,f=void 0;if(i){if(u=C(r,o),u===fe?(f=!0,s=u.error,u.error=null):c=!0,e===u)return x(e,_()),void 0}else u=o,c=!0;e._state!==ie||(i&&c?E(e,u):f?x(e,s):t===ue?j(e,u):t===se&&x(e,u))}function k(t,e){try{e(function(e){E(t,e)},function(e){x(t,e)})}catch(n){x(t,n)}}function q(){return ae++}function D(t){t[oe]=ae++,t._state=void 0,t._result=void 0,t._subscribers=[]}function F(t,e){this._instanceConstructor=t,this.promise=new t(y),this.promise[oe]||D(this.promise),I(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&j(this.promise,this._result))):x(this.promise,N())}function N(){return new Error("Array Methods must be provided an Array")}function U(t){return new F(this,t).promise}function Y(t){var e=this;return I(t)?new e(function(n,r){for(var o=t.length,i=0;o>i;i++)e.resolve(t[i]).then(n,r)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})}function K(t){var e=this,n=new e(y);return x(n,t),n}function W(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function z(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function B(t){this[oe]=q(),this._result=this._state=void 0,this._subscribers=[],y!==t&&("function"!=typeof t&&W(),this instanceof B?k(this,t):z())}function G(){var t=void 0;if("undefined"!=typeof o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=B}var H=void 0;H=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var I=H,J=0,Q=void 0,R=void 0,V=function(t,e){ne[J]=t,ne[J+1]=e,J+=2,2===J&&(R?R(h):re())},X="undefined"!=typeof window?window:void 0,Z=X||{},$=Z.MutationObserver||Z.WebKitMutationObserver,te="undefined"==typeof self&&"undefined"!=typeof r&&"[object process]"==={}.toString.call(r),ee="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ne=new Array(1e3),re=void 0;re=te?s():$?f():ee?a():void 0===X&&"function"==typeof t?p():l();var oe=Math.random().toString(36).substring(16),ie=void 0,ue=1,se=2,ce=new P,fe=new P,ae=0;return F.prototype._enumerate=function(t){for(var e=0;this._state===ie&&e<t.length;e++)this._eachEntry(t[e],e)},F.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===v){var o=w(t);if(o===d&&t._state!==ie)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===B){var i=new n(y);A(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},F.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ie&&(this._remaining--,t===se?x(r,n):this._result[e]=n),0===this._remaining&&j(r,this._result)},F.prototype._willSettleAt=function(t,e){var n=this;O(t,void 0,function(t){return n._settledAt(ue,e,t)},function(t){return n._settledAt(se,e,t)})},B.all=U,B.race=Y,B.resolve=v,B.reject=K,B._setScheduler=i,B._setAsap=u,B._asap=V,B.prototype={constructor:B,then:d,"catch":function(t){return this.then(null,t)}},B.polyfill=G,B.Promise=B,B})}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:3}],3:[function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(a===setTimeout)return setTimeout(t,0);if((a===n||!a)&&setTimeout)return a=setTimeout,setTimeout(t,0);try{return a(t,0)}catch(e){try{return a.call(null,t,0)}catch(e){return a.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function u(){v&&p&&(v=!1,p.length?d=p.concat(d):y=-1,d.length&&s())}function s(){if(!v){var t=o(u);v=!0;for(var e=d.length;e;){for(p=d,d=[];++y<e;)p&&p[y].run();y=-1,e=d.length}p=null,v=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function f(){}var a,l,h=e.exports={};!function(){try{a="function"==typeof setTimeout?setTimeout:n}catch(t){a=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var p,d=[],v=!1,y=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new c(t,e)),1!==d.length||v||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=f,h.addListener=f,h.once=f,h.off=f,h.removeListener=f,h.removeAllListeners=f,h.emit=f,h.prependListener=f,h.prependOnceListener=f,h.listeners=function(){return[]},h.binding=function(){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}]},{},[1]);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc