mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
New updates and modules
This commit is contained in:
parent
4d5d408898
commit
0abf0f90f6
959 changed files with 364301 additions and 17493 deletions
15
node_modules/level-concat-iterator/index.js
generated
vendored
Normal file
15
node_modules/level-concat-iterator/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
module.exports = function (iterator, cb) {
|
||||
var data = []
|
||||
var next = function () {
|
||||
iterator.next(function (err, key, value) {
|
||||
if (err || (key === undefined && value === undefined)) {
|
||||
return iterator.end(function (err2) {
|
||||
cb(err || err2, data)
|
||||
})
|
||||
}
|
||||
data.push({ key: key, value: value })
|
||||
next()
|
||||
})
|
||||
}
|
||||
next()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue