Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "immediate", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A cross browser microtask library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/calvinmetcalf/immediate", |
{ | ||
"name": "immediate", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A cross browser microtask library", | ||
@@ -5,0 +5,0 @@ "repo": "calvinmetcalf/immediate", |
@@ -1,5 +0,6 @@ | ||
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.immediate=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.immediate=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var types = [ | ||
_dereq_('./nextTick'), | ||
_dereq_('./mutation.js'), | ||
_dereq_('./messageChannel'), | ||
@@ -30,3 +31,3 @@ _dereq_('./stateChange'), | ||
while (++ i < len) { | ||
if (types[i].test()) { | ||
if (types[i] && types[i].test()) { | ||
scheduleDrain = types[i].install(drainQueue); | ||
@@ -42,3 +43,3 @@ break; | ||
} | ||
},{"./messageChannel":2,"./nextTick":3,"./stateChange":4,"./timeout":5}],2:[function(_dereq_,module,exports){ | ||
},{"./messageChannel":2,"./mutation.js":3,"./nextTick":6,"./stateChange":4,"./timeout":5}],2:[function(_dereq_,module,exports){ | ||
(function (global){ | ||
@@ -127,4 +128,6 @@ 'use strict'; | ||
}; | ||
},{}],6:[function(_dereq_,module,exports){ | ||
},{}]},{},[1]) | ||
(1) | ||
}); |
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.immediate=e()}}(function(){return function e(n,t,i){function o(u,f){if(!t[u]){if(!n[u]){var s="function"==typeof require&&require;if(!f&&s)return s(u,!0);if(r)return r(u,!0);throw new Error("Cannot find module '"+u+"'")}var a=t[u]={exports:{}};n[u][0].call(a.exports,function(e){var t=n[u][1][e];return o(t?t:e)},a,a.exports,e,n,t,i)}return t[u].exports}for(var r="function"==typeof require&&require,u=0;u<i.length;u++)o(i[u]);return o}({1:[function(e,n){"use strict";function t(){o=!0;for(var e,n,t=f.length;t;){for(n=f,f=[],e=-1;++e<t;)n[e]();t=f.length}o=!1}function i(e){1!==f.push(e)||o||r()}for(var o,r,u=[e("./nextTick"),e("./messageChannel"),e("./stateChange"),e("./timeout")],f=[],s=-1,a=u.length;++s<a;)if(u[s].test()){r=u[s].install(t);break}n.exports=i},{"./messageChannel":2,"./nextTick":3,"./stateChange":4,"./timeout":5}],2:[function(e,n,t){(function(e){"use strict";t.test=function(){return e.setImmediate?!1:"undefined"!=typeof e.MessageChannel},t.install=function(n){var t=new e.MessageChannel;return t.port1.onmessage=n,function(){t.port2.postMessage(0)}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,n,t){(function(e){"use strict";var n=e.MutationObserver||e.WebKitMutationObserver;t.test=function(){return n},t.install=function(t){var i=0,o=new n(t),r=e.document.createTextNode("");return o.observe(r,{characterData:!0}),function(){r.data=i=++i%2}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,n,t){(function(e){"use strict";t.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},t.install=function(n){return function(){var t=e.document.createElement("script");return t.onreadystatechange=function(){n(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t),n}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,n,t){"use strict";t.test=function(){return!0},t.install=function(e){return function(){setTimeout(e,0)}}},{}]},{},[1])(1)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.immediate=e()}}(function(){return function e(n,t,o){function i(u,f){if(!t[u]){if(!n[u]){var s="function"==typeof require&&require;if(!f&&s)return s(u,!0);if(r)return r(u,!0);throw new Error("Cannot find module '"+u+"'")}var a=t[u]={exports:{}};n[u][0].call(a.exports,function(e){var t=n[u][1][e];return i(t?t:e)},a,a.exports,e,n,t,o)}return t[u].exports}for(var r="function"==typeof require&&require,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(e,n){"use strict";function t(){i=!0;for(var e,n,t=f.length;t;){for(n=f,f=[],e=-1;++e<t;)n[e]();t=f.length}i=!1}function o(e){1!==f.push(e)||i||r()}for(var i,r,u=[e("./nextTick"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],f=[],s=-1,a=u.length;++s<a;)if(u[s]&&u[s].test()){r=u[s].install(t);break}n.exports=o},{"./messageChannel":2,"./mutation.js":3,"./nextTick":6,"./stateChange":4,"./timeout":5}],2:[function(e,n,t){(function(e){"use strict";t.test=function(){return e.setImmediate?!1:"undefined"!=typeof e.MessageChannel},t.install=function(n){var t=new e.MessageChannel;return t.port1.onmessage=n,function(){t.port2.postMessage(0)}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,n,t){(function(e){"use strict";var n=e.MutationObserver||e.WebKitMutationObserver;t.test=function(){return n},t.install=function(t){var o=0,i=new n(t),r=e.document.createTextNode("");return i.observe(r,{characterData:!0}),function(){r.data=o=++o%2}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,n,t){(function(e){"use strict";t.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},t.install=function(n){return function(){var t=e.document.createElement("script");return t.onreadystatechange=function(){n(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t),n}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,n,t){"use strict";t.test=function(){return!0},t.install=function(e){return function(){setTimeout(e,0)}}},{}],6:[function(){},{}]},{},[1])(1)}); |
'use strict'; | ||
var types = [ | ||
require('./nextTick'), | ||
require('./mutation.js'), | ||
require('./messageChannel'), | ||
@@ -29,3 +30,3 @@ require('./stateChange'), | ||
while (++ i < len) { | ||
if (types[i].test()) { | ||
if (types[i] && types[i].test()) { | ||
scheduleDrain = types[i].install(drainQueue); | ||
@@ -32,0 +33,0 @@ break; |
{ | ||
"name": "immediate", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A cross browser microtask library", | ||
@@ -30,3 +30,3 @@ "contributors": [ | ||
"browser": { | ||
"./lib/nextTick.js": "./lib/mutation.js" | ||
"./nextTick": false | ||
}, | ||
@@ -41,12 +41,12 @@ "bugs": "https://github.com/calvinmetcalf/immediate/issues", | ||
}, | ||
"devDependencies": { | ||
"uglify-js": "^2.4.12", | ||
"tape": "^2.10.2", | ||
"jshint": "^2.4.4", | ||
"testling": "^1.6.1", | ||
"browserify": "^3.32.1" | ||
}, | ||
"jam": { | ||
"main": "dist/immediate.js" | ||
}, | ||
"devDependencies": { | ||
"uglify-js": "^2.4.13", | ||
"tape": "^2.13.1", | ||
"jshint": "^2.5.1", | ||
"browserify": "^4.1.5", | ||
"testling": "^1.6.1" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16317
250