Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@async-af/every

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@async-af/every - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

6

index.js
/*!
* AsyncAF (async/await fun)
*
* @async-af/every v3.4.0
* @async-af/every v3.5.0
*

@@ -164,7 +164,7 @@ * Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger)

const everyAF = function everyAF(callback, ...thisArg) {
const everyAF = function everyAF(callback, thisArg = undefined) {
return this.then(arr => {
if (!arr) throw TypeError(`Cannot read property 'everyAF' of ${arr}`);
if (!Array.isArray(arr)) throw TypeError(`${arr}.everyAF is not a function`);
return arr.every(callback, thisArg[0]);
return arr.every(callback, thisArg);
});

@@ -171,0 +171,0 @@ };

/*!
* AsyncAF (async/await fun)
*
* @async-af/every v3.4.0
* @async-af/every v3.5.0
*

@@ -165,10 +165,7 @@ * Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger)

var everyAF = function everyAF(callback) {
for (var _len = arguments.length, thisArg = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
thisArg[_key - 1] = arguments[_key];
}
var thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
return this.then(function (arr) {
if (!arr) throw TypeError("Cannot read property 'everyAF' of ".concat(arr));
if (!Array.isArray(arr)) throw TypeError("".concat(arr, ".everyAF is not a function"));
return arr.every(callback, thisArg[0]);
return arr.every(callback, thisArg);
});

@@ -175,0 +172,0 @@ };

/*!
* AsyncAF (async/await fun)
*
* @async-af/every v3.4.0
* @async-af/every v3.5.0
*

@@ -10,3 +10,3 @@ * Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger)

*/
!function webpackUniversalModuleDefinition(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("@async-af/every",[],r):"object"==typeof exports?exports["@async-af/every"]=r():(e["async-af"]=e["async-af"]||{},e["async-af"]["@async-af/every"]=r())}("undefined"!=typeof self?self:this,function(){return function(e){var r={};function __webpack_require__(t){if(r[t])return r[t].exports;var _=r[t]={i:t,l:!1,exports:{}};return e[t].call(_.exports,_,_.exports,__webpack_require__),_.l=!0,_.exports}return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.d=function(e,r,t){__webpack_require__.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},__webpack_require__.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=139)}({139:function(e,r,t){"use strict";t.r(r),r.default=function everyAF(e){for(var r=arguments.length,t=Array(r>1?r-1:0),_=1;_<r;_++)t[_-1]=arguments[_];return this.then(function(r){if(!r)throw TypeError("Cannot read property 'everyAF' of ".concat(r));if(!Array.isArray(r))throw TypeError("".concat(r,".everyAF is not a function"));return r.every(e,t[0])})}}}).default});
!function webpackUniversalModuleDefinition(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("@async-af/every",[],r):"object"==typeof exports?exports["@async-af/every"]=r():(e["async-af"]=e["async-af"]||{},e["async-af"]["@async-af/every"]=r())}("undefined"!=typeof self?self:this,function(){return function(e){var r={};function __webpack_require__(t){if(r[t])return r[t].exports;var _=r[t]={i:t,l:!1,exports:{}};return e[t].call(_.exports,_,_.exports,__webpack_require__),_.l=!0,_.exports}return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.d=function(e,r,t){__webpack_require__.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},__webpack_require__.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=142)}({142:function(e,r,t){"use strict";t.r(r),r.default=function everyAF(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(t){if(!t)throw TypeError("Cannot read property 'everyAF' of ".concat(t));if(!Array.isArray(t))throw TypeError("".concat(t,".everyAF is not a function"));return t.every(e,r)})}}}).default});
//# sourceMappingURL=min.js.map
/*!
* AsyncAF (async/await fun)
*
* @async-af/every v3.4.0
* @async-af/every v3.5.0
*

@@ -10,3 +10,3 @@ * Copyright (c) 2017-present, Scott Rudiger (https://github.com/ScottRudiger)

*/
!function webpackUniversalModuleDefinition(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("@async-af/every",[],r):"object"==typeof exports?exports["@async-af/every"]=r():(e["async-af"]=e["async-af"]||{},e["async-af"]["@async-af/every"]=r())}("undefined"!=typeof self?self:this,function(){return function(e){var r={};function __webpack_require__(_){if(r[_])return r[_].exports;var t=r[_]={i:_,l:!1,exports:{}};return e[_].call(t.exports,t,t.exports,__webpack_require__),t.l=!0,t.exports}return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.d=function(e,r,_){__webpack_require__.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:_})},__webpack_require__.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=4)}({4:function(e,r,_){"use strict";_.r(r),r.default=function everyAF(e,...r){return this.then(_=>{if(!_)throw TypeError(`Cannot read property 'everyAF' of ${_}`);if(!Array.isArray(_))throw TypeError(`${_}.everyAF is not a function`);return _.every(e,r[0])})}}}).default});
!function webpackUniversalModuleDefinition(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("@async-af/every",[],r):"object"==typeof exports?exports["@async-af/every"]=r():(e["async-af"]=e["async-af"]||{},e["async-af"]["@async-af/every"]=r())}("undefined"!=typeof self?self:this,function(){return function(e){var r={};function __webpack_require__(_){if(r[_])return r[_].exports;var t=r[_]={i:_,l:!1,exports:{}};return e[_].call(t.exports,t,t.exports,__webpack_require__),t.l=!0,t.exports}return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.d=function(e,r,_){__webpack_require__.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:_})},__webpack_require__.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=7)}({7:function(e,r,_){"use strict";_.r(r),r.default=function everyAF(e,r){return this.then(_=>{if(!_)throw TypeError(`Cannot read property 'everyAF' of ${_}`);if(!Array.isArray(_))throw TypeError(`${_}.everyAF is not a function`);return _.every(e,r)})}}}).default});
//# sourceMappingURL=min.js.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.4.0",
"version": "3.5.0",
"homepage": "https://async-af.js.org",

@@ -9,0 +9,0 @@ "bugs": {

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

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