@live-change/db 0.9.109 → 0.9.110
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/lib/ScriptContext.js +5 -0
- package/lib/utils.js +7 -0
- package/package.json +5 -5
package/lib/ScriptContext.js
CHANGED
|
@@ -2,6 +2,7 @@ import vm from 'vm'
|
|
|
2
2
|
import crypto from 'crypto'
|
|
3
3
|
import { ChangeStreamPipe } from './ChangeStream.js'
|
|
4
4
|
import pref_hooks from 'perf_hooks'
|
|
5
|
+
import { rangeIntersection, rangeUnion, unitRange, prefixRange } from './utils.js'
|
|
5
6
|
|
|
6
7
|
const defaultNativeGlobals = [
|
|
7
8
|
'Array', 'ArrayBuffer',
|
|
@@ -35,6 +36,10 @@ const defaultContext = {
|
|
|
35
36
|
pipe() {
|
|
36
37
|
return new ChangeStreamPipe()
|
|
37
38
|
},
|
|
39
|
+
rangeIntersection,
|
|
40
|
+
rangeUnion,
|
|
41
|
+
unitRange,
|
|
42
|
+
prefixRange,
|
|
38
43
|
'performance': pref_hooks.performance,
|
|
39
44
|
constructor: null
|
|
40
45
|
}
|
package/lib/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.110",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@live-change/db-store-level": "^0.9.
|
|
26
|
-
"@live-change/db-store-lmdb": "^0.9.
|
|
25
|
+
"@live-change/db-store-level": "^0.9.110",
|
|
26
|
+
"@live-change/db-store-lmdb": "^0.9.110",
|
|
27
27
|
"minimist": ">=1.2.3",
|
|
28
28
|
"next-tick": "^1.1.0",
|
|
29
29
|
"rimraf": "^5.0.5",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"websocket-extensions": ">=0.1.4"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@live-change/dao": "^0.9.
|
|
35
|
+
"@live-change/dao": "^0.9.110",
|
|
36
36
|
"get-random-values": "^1.2.2",
|
|
37
37
|
"node-interval-tree": "^1.3.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "856dd2e63a9c18efd85943caf04d898847c09805"
|
|
40
40
|
}
|