🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

async_fn

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async_fn - npm Package Compare versions

Comparing version

to
0.2.4

.idea/async_fn.iml

56

build/async_fn.deprecated.js

@@ -14,10 +14,10 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ 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)

@@ -29,23 +29,23 @@ /******/ var module = installedModules[moduleId] = {

/******/ };
/******/
/******/ // 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

@@ -57,3 +57,3 @@ /******/ return __webpack_require__(0);

/* 0 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -63,10 +63,10 @@ module.exports = __webpack_require__(1);

/***/ },
/***/ }),
/* 1 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {
var $;
$ = __webpack_require__(2).$;
module.exports = window.AsyncFn = (function() {

@@ -77,3 +77,3 @@ function AsyncFn(asyncFn) {

}
AsyncFn.prototype.done = function(callback) {

@@ -85,3 +85,3 @@ this.callback = callback;

};
AsyncFn.prototype.call = function() {

@@ -101,3 +101,3 @@ if (this.isCalled) {

};
AsyncFn.addToCallQueue = function(fn) {

@@ -115,3 +115,3 @@ var asyncFn;

};
AsyncFn.setImmediate = (function() {

@@ -123,4 +123,4 @@ var ID, head, onmessage, tail;

onmessage = function(e) {
var func;
if (e.data.toString() !== ID.toString()) {
var func, ref;
if (((ref = e.data) != null ? ref.toString() : void 0) !== ID.toString()) {
return;

@@ -147,14 +147,14 @@ }

})();
return AsyncFn;
})();
/***/ },
/***/ }),
/* 2 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {
var jquery;
if (true) {

@@ -172,5 +172,5 @@ module.exports = {

/***/ }
/***/ })
/******/ ])
});
;

@@ -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 function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return n[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var e={};return t.m=n,t.c=e,t.p="",t(0)}([function(n,t,e){n.exports=e(1)},function(n,t,e){var r;r=e(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(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,r;return t={},r=t,n=Math.random(),e=function(e){var r;if(e.data.toString()===n.toString())return t=t.next,r=t.func,delete t.func,r()},window.addEventListener&&window.postMessage?(window.addEventListener("message",e,!1),function(t){return r=r.next={func:t},window.postMessage(n,"*")}):function(n){return setTimeout(n,0)}}(),n}()},function(n,t,e){n.exports={$:window.$}}])});
!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 function(n){function t(o){if(e[o])return e[o].exports;var r=e[o]={exports:{},id:o,loaded:!1};return n[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var e={};return t.m=n,t.c=e,t.p="",t(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,r;if((null!=(r=e.data)?r.toString():void 0)===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,t,e){n.exports={$:window.$}}])});
//# sourceMappingURL=async_fn.deprecated.min.js.map

@@ -14,10 +14,10 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ 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)

@@ -29,23 +29,23 @@ /******/ var module = installedModules[moduleId] = {

/******/ };
/******/
/******/ // 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

@@ -57,3 +57,3 @@ /******/ return __webpack_require__(0);

/* 0 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -63,10 +63,10 @@ module.exports = __webpack_require__(1);

/***/ },
/***/ }),
/* 1 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {
var $;
$ = __webpack_require__(2).$;
module.exports = window.AsyncFn = (function() {

@@ -77,3 +77,3 @@ function AsyncFn(asyncFn) {

}
AsyncFn.prototype.done = function(callback) {

@@ -85,3 +85,3 @@ this.callback = callback;

};
AsyncFn.prototype.call = function() {

@@ -101,3 +101,3 @@ if (this.isCalled) {

};
AsyncFn.addToCallQueue = function(fn) {

@@ -115,3 +115,3 @@ var asyncFn;

};
AsyncFn.setImmediate = (function() {

@@ -123,4 +123,4 @@ var ID, head, onmessage, tail;

onmessage = function(e) {
var func;
if (e.data.toString() !== ID.toString()) {
var func, ref;
if (((ref = e.data) != null ? ref.toString() : void 0) !== ID.toString()) {
return;

@@ -147,14 +147,14 @@ }

})();
return AsyncFn;
})();
/***/ },
/***/ }),
/* 2 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {
var jquery;
if (false) {

@@ -172,11 +172,11 @@ module.exports = {

/***/ },
/***/ }),
/* 3 */
/***/ function(module, exports) {
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_3__;
/***/ }
/***/ })
/******/ ])
});
;

@@ -1,2 +0,2 @@

!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(n,e,t){var r;r=t(3),n.exports={$:r}},function(e,t){e.exports=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,o;if((null!=(o=t.data)?o.toString():void 0)===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(n,e,t){var r;r=t(3),n.exports={$:r}},function(e,t){e.exports=n}])});
//# sourceMappingURL=async_fn.min.js.map
{
"name": "async_fn",
"version": "0.2.3",
"version": "0.2.4",
"author": "Sergey Shishkalov <sergeyshishkalov@gmail.com>",

@@ -5,0 +5,0 @@ "description": "One-method library for calling asynchronous functions one by one in a queue",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet