1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

New updates and modules

This commit is contained in:
DanieL 2022-07-15 11:08:01 -03:00
parent 4d5d408898
commit 0abf0f90f6
959 changed files with 364301 additions and 17493 deletions

15
node_modules/argsarray/.jshintrc generated vendored Normal file
View file

@ -0,0 +1,15 @@
{
"node": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": "nofunc",
"strict": true,
"white": true,
"indent": 2,
"trailing": true,
"quotmark": "single"
}

7
node_modules/argsarray/.npmignore generated vendored Normal file
View file

@ -0,0 +1,7 @@
node_modules
.DS_Store
*~
coverage
Thumbs.db
.bak
.tmp

3
node_modules/argsarray/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,3 @@
language: node_js
node_js:
- 0.10

19
node_modules/argsarray/index.js generated vendored Normal file
View file

@ -0,0 +1,19 @@
'use strict';
module.exports = argsArray;
function argsArray(fun) {
return function () {
var len = arguments.length;
if (len) {
var args = [];
var i = -1;
while (++i < len) {
args[i] = arguments[i];
}
return fun.call(this, args);
} else {
return fun.call(this, []);
}
};
}

4
node_modules/argsarray/license.md generated vendored Normal file
View file

@ -0,0 +1,4 @@
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
## TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

31
node_modules/argsarray/package.json generated vendored Normal file
View file

@ -0,0 +1,31 @@
{
"name": "argsarray",
"version": "0.0.1",
"description": "get arguments to a function as an array, withouth deoptimizing",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "tape test/test.*.js | tspec"
},
"repository": {
"type": "git",
"url": "git://github.com/calvinmetcalf/argsarray.git"
},
"keywords": [
"arguments",
"args"
],
"author": "Calvin Metcalf",
"license": "WTFPL",
"bugs": {
"url": "https://github.com/calvinmetcalf/argsarray/issues"
},
"homepage": "https://github.com/calvinmetcalf/argsarray",
"devDependencies": {
"tape": "^2.10.2",
"glob": "^3.2.9",
"tap-spec": "^0.1.5"
}
}

23
node_modules/argsarray/readme.md generated vendored Normal file
View file

@ -0,0 +1,23 @@
args array [![Build Status](https://travis-ci.org/calvinmetcalf/argsarray.png)](https://travis-ci.org/calvinmetcalf/argsarray)
===
```bash
npm install argsarray
```
simple library to treat function arguments as an array without leaking the arguments object ([which is bad](https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments)), based on something I wrote for [PouchDB](https://github.com/daleharvey/pouchdb).
Simple wrap a function in this and the function will always be called with an array of the arguments it was called with.
```js
var myFunc = argsarray(function myFunc(args) {
console.log(args);
});
myFunc(a, b, c);
//[a, b, c];
```
#license
wtfpl

11
node_modules/argsarray/test/test.basic.js generated vendored Normal file
View file

@ -0,0 +1,11 @@
'use strict';
var getArgs = require('../');
var test = require('tape');
test('should work', function (t) {
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'should work');
t.end();
});
ourFunc(1, 2, 3, 4);
});

11
node_modules/argsarray/test/test.noargs.js generated vendored Normal file
View file

@ -0,0 +1,11 @@
'use strict';
var getArgs = require('../');
var test = require('tape');
test('should work with no args', function (t) {
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [], 'should work');
t.end();
});
ourFunc();
});

32
node_modules/argsarray/test/test.scope.js generated vendored Normal file
View file

@ -0,0 +1,32 @@
'use strict';
var getArgs = require('../');
var test = require('tape');
test('scope should be the same', function (t) {
t.test('with call', function (t) {
var foo = {};
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'args should be right');
t.strictEquals(this, foo, 'scope should be the same');
t.end();
});
ourFunc.call(foo, 1, 2, 3, 4);
});
test('with apply', function (t) {
var foo = {};
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'args should be right');
t.strictEquals(this, foo, 'scope should be the same');
t.end();
});
ourFunc.apply(foo, [1, 2, 3, 4]);
});
test('with bind', function (t) {
var foo = {};
var ourFunc = getArgs(function (args) {
t.deepEquals(args, [1, 2, 3, 4], 'args should be right');
t.strictEquals(this, foo, 'scope should be the same');
t.end();
}).bind(foo, 1);
ourFunc(2, 3, 4);
});
});