mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
New updates and modules
This commit is contained in:
parent
4d5d408898
commit
0abf0f90f6
959 changed files with 364301 additions and 17493 deletions
23
node_modules/level-js/util/key-range.js
generated
vendored
Normal file
23
node_modules/level-js/util/key-range.js
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* global IDBKeyRange */
|
||||
|
||||
'use strict'
|
||||
|
||||
var ltgt = require('ltgt')
|
||||
var NONE = {}
|
||||
|
||||
module.exports = function createKeyRange (options) {
|
||||
var lower = ltgt.lowerBound(options, NONE)
|
||||
var upper = ltgt.upperBound(options, NONE)
|
||||
var lowerOpen = ltgt.lowerBoundExclusive(options, NONE)
|
||||
var upperOpen = ltgt.upperBoundExclusive(options, NONE)
|
||||
|
||||
if (lower !== NONE && upper !== NONE) {
|
||||
return IDBKeyRange.bound(lower, upper, lowerOpen, upperOpen)
|
||||
} else if (lower !== NONE) {
|
||||
return IDBKeyRange.lowerBound(lower, lowerOpen)
|
||||
} else if (upper !== NONE) {
|
||||
return IDBKeyRange.upperBound(upper, upperOpen)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue