refactor(Cypress): add nodemodules

This commit is contained in:
2021-09-02 17:18:41 +02:00
parent 1aa57bbd0a
commit bc6e1bc12e
4238 changed files with 340975 additions and 8 deletions

29
node_modules/util-arity/arity.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
var FUNCTIONS = {};
/**
* Create a function wrapper that specifies the argument length.
*
* @param {number} arity
* @param {Function} fn
* @return {Function}
*/
module.exports = function (arity, fn) {
if (!FUNCTIONS[arity]) {
var params = [];
if (typeof arity !== 'number') {
throw new TypeError('Expected arity to be a number, got ' + arity);
}
for (var i = 0; i < arity; i++) {
params.push('_' + i);
}
FUNCTIONS[arity] = new Function(
'fn',
'return function arity' + arity + ' (' + params.join(', ') + ') { return fn.apply(this, arguments); }'
);
}
return FUNCTIONS[arity](fn);
};