Comparing version 0.2.0 to 0.2.1
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
module.exports = factory(require("jquery")); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
define(["jquery"], factory); | ||
else if(typeof exports === 'object') | ||
exports["AsyncFn"] = factory(); | ||
exports["AsyncFn"] = factory(require("jquery")); | ||
else | ||
root["AsyncFn"] = factory(); | ||
})(this, function() { | ||
return webpackJsonpAsyncFn([0],[ | ||
root["AsyncFn"] = factory(root["jquery"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
/******/ var installedModules = {}; | ||
/******/ | ||
/******/ // The require function | ||
/******/ function __webpack_require__(moduleId) { | ||
/******/ | ||
/******/ // Check if module is in cache | ||
/******/ if(installedModules[moduleId]) | ||
/******/ return installedModules[moduleId].exports; | ||
/******/ | ||
/******/ // Create a new module (and put it into the cache) | ||
/******/ var module = installedModules[moduleId] = { | ||
/******/ exports: {}, | ||
/******/ id: moduleId, | ||
/******/ loaded: false | ||
/******/ }; | ||
/******/ | ||
/******/ // Execute the module function | ||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | ||
/******/ | ||
/******/ // Flag the module as loaded | ||
/******/ module.loaded = true; | ||
/******/ | ||
/******/ // Return the exports of the module | ||
/******/ return module.exports; | ||
/******/ } | ||
/******/ | ||
/******/ | ||
/******/ // expose the modules object (__webpack_modules__) | ||
/******/ __webpack_require__.m = modules; | ||
/******/ | ||
/******/ // expose the module cache | ||
/******/ __webpack_require__.c = installedModules; | ||
/******/ | ||
/******/ // __webpack_public_path__ | ||
/******/ __webpack_require__.p = ""; | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(0); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
@@ -102,5 +144,11 @@ /***/ function(module, exports, __webpack_require__) { | ||
/***/ }, | ||
/* 2 */ | ||
/***/ function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_2__; | ||
/***/ } | ||
]) | ||
/******/ ]) | ||
}); | ||
; |
@@ -1,2 +0,2 @@ | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AsyncFn=t():n.AsyncFn=t()}(this,function(){return webpackJsonpAsyncFn([0],[function(n,t,e){n.exports=e(1)},function(n,t,e){var o;o=e(2),n.exports=window.AsyncFn=function(){function n(n){this.dfd=new o.Deferred,this.fn=n}return n.prototype.done=function(n){if(this.callback=n,this.isCalled)return this.callback()},n.prototype.call=function(){if(!this.isCalled)return this.fn().always(function(n){return function(){if(n.isCalled=!0,n.dfd.resolve(),n.callback)return n.callback()}}(this))},n.addToCallQueue=function(t){var e;return e=new n(t),null!=this.currentFn?this.currentFn.done(function(){return e.call()}):e.call(),this.currentFn=e},n.setImmediate=function(){var n,t,e,o;return t={},o=t,n=Math.random(),e=function(e){var o;if(e.data.toString()===n.toString())return t=t.next,o=t.func,delete t.func,o()},window.addEventListener&&window.postMessage?(window.addEventListener("message",e,!1),function(t){return o=o.next={func:t},window.postMessage(n,"*")}):function(n){return setTimeout(n,0)}}(),n}()}])}); | ||
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?exports.AsyncFn=e(require("jquery")):n.AsyncFn=e(n.jquery)}(this,function(n){return function(n){function e(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return n[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=n,e.c=t,e.p="",e(0)}([function(n,e,t){n.exports=t(1)},function(n,e,t){var r;r=t(2),n.exports=window.AsyncFn=function(){function n(n){this.dfd=new r.Deferred,this.fn=n}return n.prototype.done=function(n){if(this.callback=n,this.isCalled)return this.callback()},n.prototype.call=function(){if(!this.isCalled)return this.fn().always(function(n){return function(){if(n.isCalled=!0,n.dfd.resolve(),n.callback)return n.callback()}}(this))},n.addToCallQueue=function(e){var t;return t=new n(e),null!=this.currentFn?this.currentFn.done(function(){return t.call()}):t.call(),this.currentFn=t},n.setImmediate=function(){var n,e,t,r;return e={},r=e,n=Math.random(),t=function(t){var r;if(t.data.toString()===n.toString())return e=e.next,r=e.func,delete e.func,r()},window.addEventListener&&window.postMessage?(window.addEventListener("message",t,!1),function(e){return r=r.next={func:e},window.postMessage(n,"*")}):function(n){return setTimeout(n,0)}}(),n}()},function(e,t){e.exports=n}])}); | ||
//# sourceMappingURL=async_fn.min.js.map |
{ | ||
"name": "async_fn", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Sergey Shishkalov <sergeyshishkalov@gmail.com>", | ||
"description": "One-method library for calling asynchronous functions one by one in a queue", | ||
"main": "build/async_fn.min.js", | ||
"devDependencies": { | ||
@@ -7,0 +8,0 @@ "chai": "^3.5.0", |
@@ -7,2 +7,3 @@ const path = require('path') | ||
const plugins = [] | ||
const externals = [] | ||
if (isProduction) { | ||
@@ -12,4 +13,8 @@ plugins.push( | ||
new UnminifiedWebpackPlugin(), | ||
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js', Infinity) | ||
new webpack.ProvidePlugin({ | ||
$: "jquery" | ||
}) | ||
) | ||
externals.push('jquery') | ||
} | ||
@@ -20,4 +25,3 @@ | ||
entry: { | ||
async_fn: ['./src/index'], | ||
vendor: ['jquery'] | ||
async_fn: ['./src/index'] | ||
}, | ||
@@ -43,4 +47,5 @@ output: { | ||
}, | ||
plugins: plugins | ||
plugins: plugins, | ||
externals: externals | ||
} | ||
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24928
219
0
3