Comparing version 1.10.1 to 1.11.0
@@ -0,1 +1,9 @@ | ||
v1.11.0 | ||
======= | ||
2017-08-22T15:40:22Z | ||
- Add array's `asyncForEach`, `asyncMap`, `asyncSome`, `asyncEvery` methods. | ||
- Add `eventField`'s `asyncFire` method. | ||
v1.10.1 | ||
@@ -2,0 +10,0 @@ ======= |
{ | ||
"name": "fus-ext", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"description": "FutureScript Extension", | ||
@@ -25,5 +25,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel": "5.x" | ||
"babel": "5.x", | ||
"babel-polyfill": "6.x" | ||
}, | ||
"main": "./target/main" | ||
} |
@@ -15,3 +15,3 @@ "use strict";Object.defineProperty(exports, "__esModule", { | ||
return (_dotDot = dotDot(a))[b].apply(_dotDot, [a].concat(_toConsumableArray(c))); | ||
};var _elementOrUseSelector, _ratioToIndex, _ratioToLength, _reverseToIndex, _positionToIndex, _amountToLength, clone, isEmpty, bound, portion, at, atOrNull, atOrVoid, includes, contains, first, firstOrNull, firstOrVoid, last, lastOrNull, lastOrVoid, single, singleOrNull, singleOrVoid, withMax, withMin, max, min, sum, average, median, product, group, _sort, sort, sortDescending, reverse, except, distinct, union, intersect, flatten, forEach, toObject, join, randomOne, random, takeRandomOne, takeRandom, removeAt, remove, removeAll, removeMatch, removeAllMatch, insertBefore, insertBeforeIndex, insertAfter;_elementOrUseSelector = function (element, selector) { | ||
};var _elementOrUseSelector, _ratioToIndex, _ratioToLength, _reverseToIndex, _positionToIndex, _amountToLength, clone, isEmpty, bound, portion, at, atOrNull, atOrVoid, includes, contains, first, firstOrNull, firstOrVoid, last, lastOrNull, lastOrVoid, single, singleOrNull, singleOrVoid, withMax, withMin, max, min, sum, average, median, product, group, _sort, sort, sortDescending, reverse, except, distinct, union, intersect, flatten, forEach, asyncForEach, asyncSome, asyncEvery, asyncMap, toObject, join, randomOne, random, takeRandomOne, takeRandom, removeAt, remove, removeAll, removeMatch, removeAllMatch, insertBefore, insertBeforeIndex, insertAfter;_elementOrUseSelector = function (element, selector) { | ||
return (function () { | ||
@@ -500,2 +500,90 @@ return ok_573300145710716007(selector) ? (function () { | ||
})(); | ||
};exports.asyncForEach = asyncForEach = function (arr, callback) { | ||
return (function () { | ||
var promise;promise = Promise.resolve();arr.forEach(function (element, index) { | ||
return (function () { | ||
promise = promise.then(function (value) { | ||
return (function () { | ||
return value === _main["break"] ? (function () { | ||
return _main["break"]; | ||
})() : (function () { | ||
return callback(element, index); | ||
})(); | ||
})(); | ||
}); | ||
})(); | ||
});return promise.then(function () { | ||
var arg_573300145710716007 = arguments;return (function () {})(); | ||
}); | ||
})(); | ||
};exports.asyncSome = asyncSome = function (arr, callback) { | ||
return (function () { | ||
var promise;promise = Promise.resolve(false);arr.forEach(function (element, index) { | ||
return (function () { | ||
promise = promise.then(function (value) { | ||
return (function () { | ||
return value ? (function () { | ||
return true; | ||
})() : (function () { | ||
return callback(element, index); | ||
})(); | ||
})(); | ||
}); | ||
})(); | ||
});return promise.then(function (m) { | ||
return (function () { | ||
return m ? (function () { | ||
return true; | ||
})() : (function () { | ||
return false; | ||
})(); | ||
})(); | ||
}); | ||
})(); | ||
};exports.asyncEvery = asyncEvery = function (arr, callback) { | ||
return (function () { | ||
var promise;promise = Promise.resolve(true);arr.forEach(function (element, index) { | ||
return (function () { | ||
promise = promise.then(function (value) { | ||
return (function () { | ||
return !value ? (function () { | ||
return false; | ||
})() : (function () { | ||
return callback(element, index); | ||
})(); | ||
})(); | ||
}); | ||
})(); | ||
});return promise.then(function (m) { | ||
return (function () { | ||
return m ? (function () { | ||
return true; | ||
})() : (function () { | ||
return false; | ||
})(); | ||
})(); | ||
}); | ||
})(); | ||
};exports.asyncMap = asyncMap = function (arr, callback) { | ||
return (function () { | ||
var r, promise;r = [];return arr.length === 0 ? (function () { | ||
return Promise.resolve(r); | ||
})() : (function () { | ||
promise = Promise.resolve();arr.forEach(function (element, index) { | ||
return (function () { | ||
promise = promise.then(function (value) { | ||
return (function () { | ||
index > 0 ? (function () { | ||
return r.push(value); | ||
})() : undefined;return callback(element, index); | ||
})(); | ||
}); | ||
})(); | ||
});return promise.then(function (value) { | ||
return (function () { | ||
r.push(value);return r; | ||
})(); | ||
}); | ||
})(); | ||
})(); | ||
};exports.toObject = toObject = function (arr) { | ||
@@ -651,2 +739,6 @@ return (function () { | ||
exports.forEach = forEach; | ||
exports.asyncForEach = asyncForEach; | ||
exports.asyncSome = asyncSome; | ||
exports.asyncEvery = asyncEvery; | ||
exports.asyncMap = asyncMap; | ||
exports.toObject = toObject; | ||
@@ -653,0 +745,0 @@ exports.join = join; |
@@ -260,2 +260,14 @@ "use strict";Object.defineProperty(exports, "__esModule", { | ||
})(); | ||
};f.asyncFire = function (arg) { | ||
return (function () { | ||
return dotDotCalc_573300145710716007(dotDot_573300145710716007, f._listeners, "asyncForEach", [function (listener) { | ||
return (function () { | ||
return ok_573300145710716007(arg) && arg.blocksListeners ? (function () { | ||
return var_573300145710716007_0; | ||
})() : (function () { | ||
return listener(arg, f._holder); | ||
})(); | ||
})(); | ||
}]); | ||
})(); | ||
};return f; | ||
@@ -262,0 +274,0 @@ })(); |
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 too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
400062
4910
2
1