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

Updates node modules

This commit is contained in:
DanieL 2023-02-17 15:04:26 -03:00
parent 41e60bca0a
commit 3c001dd8e3
1172 changed files with 192787 additions and 0 deletions

1
node_modules/unordered-array-remove/.npmignore generated vendored Normal file
View file

@ -0,0 +1 @@
node_modules

6
node_modules/unordered-array-remove/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,6 @@
language: node_js
node_js:
- '0.10'
- '0.12'
- '4.0'
- '5.0'

21
node_modules/unordered-array-remove/LICENSE generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 Mathias Buus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

26
node_modules/unordered-array-remove/README.md generated vendored Normal file
View file

@ -0,0 +1,26 @@
# unordered-array-remove
Efficiently remove an element from an unordered array without doing a splice
```
npm install unordered-array-remove
```
[![build status](http://img.shields.io/travis/mafintosh/unordered-array-remove.svg?style=flat)](http://travis-ci.org/mafintosh/unordered-array-remove)
## Usage
``` js
var remove = require('unordered-array-remove')
var list = ['a', 'b', 'c', 'd', 'e']
remove(list, 2) // remove 'c'
console.log(list) // returns ['a', 'b', 'e', 'd'] (no 'c')
```
This works by popping the last element (which is fast because it doesn't need shift all array elements)
and overwriting the removed index with this element.
## License
MIT

12
node_modules/unordered-array-remove/index.js generated vendored Normal file
View file

@ -0,0 +1,12 @@
module.exports = remove
function remove (arr, i) {
if (i >= arr.length || i < 0) return
var last = arr.pop()
if (i < arr.length) {
var tmp = arr[i]
arr[i] = last
return tmp
}
return last
}

23
node_modules/unordered-array-remove/package.json generated vendored Normal file
View file

@ -0,0 +1,23 @@
{
"name": "unordered-array-remove",
"version": "1.0.2",
"description": "Efficiently remove an element from an unordered array without doing a splice",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"tape": "^4.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/mafintosh/unordered-array-remove.git"
},
"scripts": {
"test": "tape test.js"
},
"author": "Mathias Buus (@mafintosh)",
"license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/unordered-array-remove/issues"
},
"homepage": "https://github.com/mafintosh/unordered-array-remove"
}

22
node_modules/unordered-array-remove/test.js generated vendored Normal file
View file

@ -0,0 +1,22 @@
var tape = require('tape')
var remove = require('./')
tape('remove', function (t) {
var list = [0, 1, 2]
remove(list, 1)
t.same(list.sort(), [0, 2])
remove(list, 0)
t.same(list.sort(), [2])
remove(list, 0)
t.same(list, [])
t.end()
})
tape('out of bounds', function (t) {
var list = [0, 1, 2]
remove(list, 42)
t.same(list, [0, 1, 2])
remove(list, -1)
t.same(list, [0, 1, 2])
t.end()
})