@k3000/store 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generator.mjs +7 -1
- package/package.json +1 -1
- package/test/1/data +0 -0
- package/test/1/index +0 -0
- package/test/2/data +0 -0
- package/test/2/index +0 -0
- package/test/2/index.mjs +20 -8
- package/test/3/data +0 -0
- package/test/3/index +0 -0
- package/test/3/index.mjs +20 -8
- package/test/4/data +0 -0
- package/test/4/index +0 -0
- package/test/4/index.mjs +20 -8
- package/test/5/data +0 -0
- package/test/5/index +0 -0
- package/test/5/index.mjs +20 -8
- package/test/6/data +0 -0
- package/test/6/index +0 -0
- package/test/6/index.mjs +19 -7
- package/test/7/data +0 -0
- package/test/7/index +0 -0
- package/test/7/index.mjs +20 -8
- package/test/8/data +0 -0
- package/test/8/index +0 -0
- package/test/8/index.mjs +20 -8
package/generator.mjs
CHANGED
|
@@ -1302,7 +1302,13 @@ ${Object.entries(value).map(([k, v]) => {
|
|
|
1302
1302
|
if (v.type === typeMap.time) {
|
|
1303
1303
|
|
|
1304
1304
|
return `
|
|
1305
|
-
indexBy${n}(
|
|
1305
|
+
indexBy${n}(after = {}, before) {
|
|
1306
|
+
|
|
1307
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
1308
|
+
|
|
1309
|
+
before = after.before
|
|
1310
|
+
after = after.after
|
|
1311
|
+
}
|
|
1306
1312
|
|
|
1307
1313
|
return super.findByRange($${k}, d2b(after || 0), d2b(before || MaxTime))
|
|
1308
1314
|
}`
|
package/package.json
CHANGED
package/test/1/data
CHANGED
|
Binary file
|
package/test/1/index
CHANGED
|
Binary file
|
package/test/2/data
CHANGED
|
Binary file
|
package/test/2/index
CHANGED
|
Binary file
|
package/test/2/index.mjs
CHANGED
|
@@ -331,24 +331,30 @@ class AdminSet extends Entities {
|
|
|
331
331
|
|
|
332
332
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
333
333
|
|
|
334
|
-
return super.findByRange($id,
|
|
334
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
indexByUid(uid, uid_2) {
|
|
338
338
|
|
|
339
339
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
340
340
|
|
|
341
|
-
return super.findByRange($uid, super.
|
|
341
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
indexByValid(valid, valid_2) {
|
|
345
345
|
|
|
346
346
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
347
347
|
|
|
348
|
-
return super.findByRange($valid, super.
|
|
348
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
indexByTime(
|
|
351
|
+
indexByTime(after = {}, before) {
|
|
352
|
+
|
|
353
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
354
|
+
|
|
355
|
+
before = after.before
|
|
356
|
+
after = after.after
|
|
357
|
+
}
|
|
352
358
|
|
|
353
359
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
354
360
|
}
|
|
@@ -393,17 +399,23 @@ class LogSet extends Entities {
|
|
|
393
399
|
|
|
394
400
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
395
401
|
|
|
396
|
-
return super.findByRange($id,
|
|
402
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
397
403
|
}
|
|
398
404
|
|
|
399
405
|
indexByUid(uid, uid_2) {
|
|
400
406
|
|
|
401
407
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
402
408
|
|
|
403
|
-
return super.findByRange($uid, super.
|
|
409
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
404
410
|
}
|
|
405
411
|
|
|
406
|
-
indexByTime(
|
|
412
|
+
indexByTime(after = {}, before) {
|
|
413
|
+
|
|
414
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
415
|
+
|
|
416
|
+
before = after.before
|
|
417
|
+
after = after.after
|
|
418
|
+
}
|
|
407
419
|
|
|
408
420
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
409
421
|
}
|
|
@@ -448,7 +460,7 @@ class TestSet extends Entities {
|
|
|
448
460
|
|
|
449
461
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
450
462
|
|
|
451
|
-
return super.findByRange($id,
|
|
463
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
452
464
|
}
|
|
453
465
|
}
|
|
454
466
|
|
package/test/3/data
CHANGED
|
Binary file
|
package/test/3/index
CHANGED
|
Binary file
|
package/test/3/index.mjs
CHANGED
|
@@ -338,24 +338,30 @@ class AdminSet extends Entities {
|
|
|
338
338
|
|
|
339
339
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
340
340
|
|
|
341
|
-
return super.findByRange($id,
|
|
341
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
indexByUid(uid, uid_2) {
|
|
345
345
|
|
|
346
346
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
347
347
|
|
|
348
|
-
return super.findByRange($uid, super.
|
|
348
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
indexByValid(valid, valid_2) {
|
|
352
352
|
|
|
353
353
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
354
354
|
|
|
355
|
-
return super.findByRange($valid, super.
|
|
355
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
indexByTime(
|
|
358
|
+
indexByTime(after = {}, before) {
|
|
359
|
+
|
|
360
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
361
|
+
|
|
362
|
+
before = after.before
|
|
363
|
+
after = after.after
|
|
364
|
+
}
|
|
359
365
|
|
|
360
366
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
361
367
|
}
|
|
@@ -400,17 +406,23 @@ class LogSet extends Entities {
|
|
|
400
406
|
|
|
401
407
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
402
408
|
|
|
403
|
-
return super.findByRange($id,
|
|
409
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
404
410
|
}
|
|
405
411
|
|
|
406
412
|
indexByUid(uid, uid_2) {
|
|
407
413
|
|
|
408
414
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
409
415
|
|
|
410
|
-
return super.findByRange($uid, super.
|
|
416
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
411
417
|
}
|
|
412
418
|
|
|
413
|
-
indexByTime(
|
|
419
|
+
indexByTime(after = {}, before) {
|
|
420
|
+
|
|
421
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
422
|
+
|
|
423
|
+
before = after.before
|
|
424
|
+
after = after.after
|
|
425
|
+
}
|
|
414
426
|
|
|
415
427
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
416
428
|
}
|
|
@@ -455,7 +467,7 @@ class TestSet extends Entities {
|
|
|
455
467
|
|
|
456
468
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
457
469
|
|
|
458
|
-
return super.findByRange($id,
|
|
470
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
459
471
|
}
|
|
460
472
|
}
|
|
461
473
|
|
package/test/4/data
CHANGED
|
Binary file
|
package/test/4/index
CHANGED
|
Binary file
|
package/test/4/index.mjs
CHANGED
|
@@ -338,24 +338,30 @@ class AdminSet extends Entities {
|
|
|
338
338
|
|
|
339
339
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
340
340
|
|
|
341
|
-
return super.findByRange($id,
|
|
341
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
indexByUid(uid, uid_2) {
|
|
345
345
|
|
|
346
346
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
347
347
|
|
|
348
|
-
return super.findByRange($uid, super.
|
|
348
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
indexByValid(valid, valid_2) {
|
|
352
352
|
|
|
353
353
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
354
354
|
|
|
355
|
-
return super.findByRange($valid, super.
|
|
355
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
indexByTime(
|
|
358
|
+
indexByTime(after = {}, before) {
|
|
359
|
+
|
|
360
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
361
|
+
|
|
362
|
+
before = after.before
|
|
363
|
+
after = after.after
|
|
364
|
+
}
|
|
359
365
|
|
|
360
366
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
361
367
|
}
|
|
@@ -400,17 +406,23 @@ class LogSet extends Entities {
|
|
|
400
406
|
|
|
401
407
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
402
408
|
|
|
403
|
-
return super.findByRange($id,
|
|
409
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
404
410
|
}
|
|
405
411
|
|
|
406
412
|
indexByUid(uid, uid_2) {
|
|
407
413
|
|
|
408
414
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
409
415
|
|
|
410
|
-
return super.findByRange($uid, super.
|
|
416
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
411
417
|
}
|
|
412
418
|
|
|
413
|
-
indexByTime(
|
|
419
|
+
indexByTime(after = {}, before) {
|
|
420
|
+
|
|
421
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
422
|
+
|
|
423
|
+
before = after.before
|
|
424
|
+
after = after.after
|
|
425
|
+
}
|
|
414
426
|
|
|
415
427
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
416
428
|
}
|
|
@@ -455,7 +467,7 @@ class TestSet extends Entities {
|
|
|
455
467
|
|
|
456
468
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
457
469
|
|
|
458
|
-
return super.findByRange($id,
|
|
470
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
459
471
|
}
|
|
460
472
|
}
|
|
461
473
|
|
package/test/5/data
CHANGED
|
Binary file
|
package/test/5/index
CHANGED
|
Binary file
|
package/test/5/index.mjs
CHANGED
|
@@ -338,24 +338,30 @@ class AdminSet extends Entities {
|
|
|
338
338
|
|
|
339
339
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
340
340
|
|
|
341
|
-
return super.findByRange($id,
|
|
341
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
indexByUid(uid, uid_2) {
|
|
345
345
|
|
|
346
346
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
347
347
|
|
|
348
|
-
return super.findByRange($uid, super.
|
|
348
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
indexByValid(valid, valid_2) {
|
|
352
352
|
|
|
353
353
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
354
354
|
|
|
355
|
-
return super.findByRange($valid, super.
|
|
355
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
indexByTime(
|
|
358
|
+
indexByTime(after = {}, before) {
|
|
359
|
+
|
|
360
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
361
|
+
|
|
362
|
+
before = after.before
|
|
363
|
+
after = after.after
|
|
364
|
+
}
|
|
359
365
|
|
|
360
366
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
361
367
|
}
|
|
@@ -400,17 +406,23 @@ class LogSet extends Entities {
|
|
|
400
406
|
|
|
401
407
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
402
408
|
|
|
403
|
-
return super.findByRange($id,
|
|
409
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
404
410
|
}
|
|
405
411
|
|
|
406
412
|
indexByUid(uid, uid_2) {
|
|
407
413
|
|
|
408
414
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
409
415
|
|
|
410
|
-
return super.findByRange($uid, super.
|
|
416
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
411
417
|
}
|
|
412
418
|
|
|
413
|
-
indexByTime(
|
|
419
|
+
indexByTime(after = {}, before) {
|
|
420
|
+
|
|
421
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
422
|
+
|
|
423
|
+
before = after.before
|
|
424
|
+
after = after.after
|
|
425
|
+
}
|
|
414
426
|
|
|
415
427
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
416
428
|
}
|
|
@@ -455,7 +467,7 @@ class TestSet extends Entities {
|
|
|
455
467
|
|
|
456
468
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
457
469
|
|
|
458
|
-
return super.findByRange($id,
|
|
470
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
459
471
|
}
|
|
460
472
|
}
|
|
461
473
|
|
package/test/6/data
CHANGED
|
Binary file
|
package/test/6/index
CHANGED
|
Binary file
|
package/test/6/index.mjs
CHANGED
|
@@ -239,24 +239,30 @@ class AdminSet extends Entities {
|
|
|
239
239
|
|
|
240
240
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
241
241
|
|
|
242
|
-
return super.findByRange($id,
|
|
242
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
indexByUid(uid, uid_2) {
|
|
246
246
|
|
|
247
247
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
248
248
|
|
|
249
|
-
return super.findByRange($uid, super.
|
|
249
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
indexByValid(valid, valid_2) {
|
|
253
253
|
|
|
254
254
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
255
255
|
|
|
256
|
-
return super.findByRange($valid, super.
|
|
256
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
indexByTime(
|
|
259
|
+
indexByTime(after = {}, before) {
|
|
260
|
+
|
|
261
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
262
|
+
|
|
263
|
+
before = after.before
|
|
264
|
+
after = after.after
|
|
265
|
+
}
|
|
260
266
|
|
|
261
267
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
262
268
|
}
|
|
@@ -301,17 +307,23 @@ class LogSet extends Entities {
|
|
|
301
307
|
|
|
302
308
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
303
309
|
|
|
304
|
-
return super.findByRange($id,
|
|
310
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
305
311
|
}
|
|
306
312
|
|
|
307
313
|
indexByUid(uid, uid_2) {
|
|
308
314
|
|
|
309
315
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
310
316
|
|
|
311
|
-
return super.findByRange($uid, super.
|
|
317
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
312
318
|
}
|
|
313
319
|
|
|
314
|
-
indexByTime(
|
|
320
|
+
indexByTime(after = {}, before) {
|
|
321
|
+
|
|
322
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
323
|
+
|
|
324
|
+
before = after.before
|
|
325
|
+
after = after.after
|
|
326
|
+
}
|
|
315
327
|
|
|
316
328
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
317
329
|
}
|
package/test/7/data
CHANGED
|
Binary file
|
package/test/7/index
CHANGED
|
Binary file
|
package/test/7/index.mjs
CHANGED
|
@@ -239,24 +239,30 @@ class AdminSet extends Entities {
|
|
|
239
239
|
|
|
240
240
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
241
241
|
|
|
242
|
-
return super.findByRange($id,
|
|
242
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
indexByUid(uid, uid_2) {
|
|
246
246
|
|
|
247
247
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
248
248
|
|
|
249
|
-
return super.findByRange($uid, super.
|
|
249
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
indexByValid(valid, valid_2) {
|
|
253
253
|
|
|
254
254
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
255
255
|
|
|
256
|
-
return super.findByRange($valid, super.
|
|
256
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
indexByTime(
|
|
259
|
+
indexByTime(after = {}, before) {
|
|
260
|
+
|
|
261
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
262
|
+
|
|
263
|
+
before = after.before
|
|
264
|
+
after = after.after
|
|
265
|
+
}
|
|
260
266
|
|
|
261
267
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
262
268
|
}
|
|
@@ -301,24 +307,30 @@ class LogSet extends Entities {
|
|
|
301
307
|
|
|
302
308
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
303
309
|
|
|
304
|
-
return super.findByRange($id,
|
|
310
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
305
311
|
}
|
|
306
312
|
|
|
307
313
|
indexByUid(uid, uid_2) {
|
|
308
314
|
|
|
309
315
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
310
316
|
|
|
311
|
-
return super.findByRange($uid, super.
|
|
317
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
312
318
|
}
|
|
313
319
|
|
|
314
320
|
indexByType(type, type_2) {
|
|
315
321
|
|
|
316
322
|
if (type_2 === undefined) return super.findByValue($type, super.uintToBuffer(type, $type))
|
|
317
323
|
|
|
318
|
-
return super.findByRange($type, super.
|
|
324
|
+
return super.findByRange($type, super.uintToBuffer(type, $type), super.uintToBuffer(type_2, $type))
|
|
319
325
|
}
|
|
320
326
|
|
|
321
|
-
indexByTime(
|
|
327
|
+
indexByTime(after = {}, before) {
|
|
328
|
+
|
|
329
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
330
|
+
|
|
331
|
+
before = after.before
|
|
332
|
+
after = after.after
|
|
333
|
+
}
|
|
322
334
|
|
|
323
335
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
324
336
|
}
|
package/test/8/data
CHANGED
|
Binary file
|
package/test/8/index
CHANGED
|
Binary file
|
package/test/8/index.mjs
CHANGED
|
@@ -239,24 +239,30 @@ class AdminSet extends Entities {
|
|
|
239
239
|
|
|
240
240
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
241
241
|
|
|
242
|
-
return super.findByRange($id,
|
|
242
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
indexByUid(uid, uid_2) {
|
|
246
246
|
|
|
247
247
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
248
248
|
|
|
249
|
-
return super.findByRange($uid, super.
|
|
249
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
indexByValid(valid, valid_2) {
|
|
253
253
|
|
|
254
254
|
if (valid_2 === undefined) return super.findByValue($valid, super.uintToBuffer(valid, $valid))
|
|
255
255
|
|
|
256
|
-
return super.findByRange($valid, super.
|
|
256
|
+
return super.findByRange($valid, super.uintToBuffer(valid, $valid), super.uintToBuffer(valid_2, $valid))
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
indexByTime(
|
|
259
|
+
indexByTime(after = {}, before) {
|
|
260
|
+
|
|
261
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
262
|
+
|
|
263
|
+
before = after.before
|
|
264
|
+
after = after.after
|
|
265
|
+
}
|
|
260
266
|
|
|
261
267
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
262
268
|
}
|
|
@@ -301,24 +307,30 @@ class LogSet extends Entities {
|
|
|
301
307
|
|
|
302
308
|
if (id_2 === undefined) return super.findByValue($id, uInt32BEToBuffer(id, $id))
|
|
303
309
|
|
|
304
|
-
return super.findByRange($id,
|
|
310
|
+
return super.findByRange($id, uInt32BEToBuffer(id, $id), uInt32BEToBuffer(id_2, $id))
|
|
305
311
|
}
|
|
306
312
|
|
|
307
313
|
indexByUid(uid, uid_2) {
|
|
308
314
|
|
|
309
315
|
if (uid_2 === undefined) return super.findByValue($uid, super.s2b(uid, $uid))
|
|
310
316
|
|
|
311
|
-
return super.findByRange($uid, super.
|
|
317
|
+
return super.findByRange($uid, super.s2b(uid, $uid), super.s2b(uid_2, $uid))
|
|
312
318
|
}
|
|
313
319
|
|
|
314
320
|
indexByType(type, type_2) {
|
|
315
321
|
|
|
316
322
|
if (type_2 === undefined) return super.findByValue($type, super.uintToBuffer(type, $type))
|
|
317
323
|
|
|
318
|
-
return super.findByRange($type, super.
|
|
324
|
+
return super.findByRange($type, super.uintToBuffer(type, $type), super.uintToBuffer(type_2, $type))
|
|
319
325
|
}
|
|
320
326
|
|
|
321
|
-
indexByTime(
|
|
327
|
+
indexByTime(after = {}, before) {
|
|
328
|
+
|
|
329
|
+
if (typeof after === "object" && Reflect.has(after, 'before')) {
|
|
330
|
+
|
|
331
|
+
before = after.before
|
|
332
|
+
after = after.after
|
|
333
|
+
}
|
|
322
334
|
|
|
323
335
|
return super.findByRange($time, d2b(after || 0), d2b(before || MaxTime))
|
|
324
336
|
}
|