harperdb 4.3.19 → 4.3.20
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/README.md +3 -3
- package/bin/harperdb.js +27 -27
- package/bin/lite.js +20 -20
- package/launchServiceScripts/launchInstallNATSServer.js +2 -2
- package/launchServiceScripts/launchNatsIngestService.js +20 -20
- package/launchServiceScripts/launchNatsReplyService.js +20 -20
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +20 -20
- package/npm-shrinkwrap.json +57 -243
- package/package.json +3 -3
- package/resources/Resource.d.ts +6 -6
- package/resources/ResourceInterface.d.ts +56 -13
- package/server/jobs/jobProcess.js +20 -20
- package/server/threads/threadServer.js +20 -20
- package/studio/build-local/asset-manifest.json +2 -2
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/{main.05c1913d.js → main.35352915.js} +2 -2
- package/utility/scripts/restartHdb.js +20 -20
- package/resources/Table.d.ts +0 -588
- package/resources/databases.d.ts +0 -418
- /package/studio/build-local/static/js/{main.05c1913d.js.LICENSE.txt → main.35352915.js.LICENSE.txt} +0 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harperdb",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.20",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "harperdb",
|
|
9
|
-
"version": "4.3.
|
|
9
|
+
"version": "4.3.20",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"dependencies": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"passport-http": "0.3.0",
|
|
65
65
|
"passport-local": "1.0.0",
|
|
66
66
|
"pino": "8.16.0",
|
|
67
|
-
"pm2": "5.
|
|
67
|
+
"pm2": "5.4.1",
|
|
68
68
|
"prompt": "1.3.0",
|
|
69
69
|
"properties-reader": "2.3.0",
|
|
70
70
|
"recursive-iterator": "3.3.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"ulidx": "0.5.0",
|
|
80
80
|
"uuid": "9.0.1",
|
|
81
81
|
"validate.js": "0.13.1",
|
|
82
|
-
"ws": "8.
|
|
82
|
+
"ws": "8.17.1",
|
|
83
83
|
"yaml": "2.4.1"
|
|
84
84
|
},
|
|
85
85
|
"bin": {
|
|
@@ -940,11 +940,11 @@
|
|
|
940
940
|
}
|
|
941
941
|
},
|
|
942
942
|
"node_modules/@babel/generator": {
|
|
943
|
-
"version": "7.24.
|
|
944
|
-
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.
|
|
945
|
-
"integrity": "sha512-
|
|
943
|
+
"version": "7.24.8",
|
|
944
|
+
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.8.tgz",
|
|
945
|
+
"integrity": "sha512-47DG+6F5SzOi0uEvK4wMShmn5yY0mVjVJoWTphdY2B4Rx9wHgjK7Yhtr0ru6nE+sn0v38mzrWOlah0p/YlHHOQ==",
|
|
946
946
|
"dependencies": {
|
|
947
|
-
"@babel/types": "^7.24.
|
|
947
|
+
"@babel/types": "^7.24.8",
|
|
948
948
|
"@jridgewell/gen-mapping": "^0.3.5",
|
|
949
949
|
"@jridgewell/trace-mapping": "^0.3.25",
|
|
950
950
|
"jsesc": "^2.5.1"
|
|
@@ -999,9 +999,9 @@
|
|
|
999
999
|
}
|
|
1000
1000
|
},
|
|
1001
1001
|
"node_modules/@babel/helper-string-parser": {
|
|
1002
|
-
"version": "7.24.
|
|
1003
|
-
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.
|
|
1004
|
-
"integrity": "sha512-
|
|
1002
|
+
"version": "7.24.8",
|
|
1003
|
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz",
|
|
1004
|
+
"integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==",
|
|
1005
1005
|
"engines": {
|
|
1006
1006
|
"node": ">=6.9.0"
|
|
1007
1007
|
}
|
|
@@ -1085,9 +1085,9 @@
|
|
|
1085
1085
|
}
|
|
1086
1086
|
},
|
|
1087
1087
|
"node_modules/@babel/parser": {
|
|
1088
|
-
"version": "7.24.
|
|
1089
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.
|
|
1090
|
-
"integrity": "sha512-
|
|
1088
|
+
"version": "7.24.8",
|
|
1089
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.8.tgz",
|
|
1090
|
+
"integrity": "sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==",
|
|
1091
1091
|
"bin": {
|
|
1092
1092
|
"parser": "bin/babel-parser.js"
|
|
1093
1093
|
},
|
|
@@ -1096,9 +1096,9 @@
|
|
|
1096
1096
|
}
|
|
1097
1097
|
},
|
|
1098
1098
|
"node_modules/@babel/runtime": {
|
|
1099
|
-
"version": "7.24.
|
|
1100
|
-
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.
|
|
1101
|
-
"integrity": "sha512-
|
|
1099
|
+
"version": "7.24.8",
|
|
1100
|
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.8.tgz",
|
|
1101
|
+
"integrity": "sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==",
|
|
1102
1102
|
"dependencies": {
|
|
1103
1103
|
"regenerator-runtime": "^0.14.0"
|
|
1104
1104
|
},
|
|
@@ -1120,18 +1120,18 @@
|
|
|
1120
1120
|
}
|
|
1121
1121
|
},
|
|
1122
1122
|
"node_modules/@babel/traverse": {
|
|
1123
|
-
"version": "7.24.
|
|
1124
|
-
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.
|
|
1125
|
-
"integrity": "sha512-
|
|
1123
|
+
"version": "7.24.8",
|
|
1124
|
+
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.8.tgz",
|
|
1125
|
+
"integrity": "sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ==",
|
|
1126
1126
|
"dependencies": {
|
|
1127
1127
|
"@babel/code-frame": "^7.24.7",
|
|
1128
|
-
"@babel/generator": "^7.24.
|
|
1128
|
+
"@babel/generator": "^7.24.8",
|
|
1129
1129
|
"@babel/helper-environment-visitor": "^7.24.7",
|
|
1130
1130
|
"@babel/helper-function-name": "^7.24.7",
|
|
1131
1131
|
"@babel/helper-hoist-variables": "^7.24.7",
|
|
1132
1132
|
"@babel/helper-split-export-declaration": "^7.24.7",
|
|
1133
|
-
"@babel/parser": "^7.24.
|
|
1134
|
-
"@babel/types": "^7.24.
|
|
1133
|
+
"@babel/parser": "^7.24.8",
|
|
1134
|
+
"@babel/types": "^7.24.8",
|
|
1135
1135
|
"debug": "^4.3.1",
|
|
1136
1136
|
"globals": "^11.1.0"
|
|
1137
1137
|
},
|
|
@@ -1140,11 +1140,11 @@
|
|
|
1140
1140
|
}
|
|
1141
1141
|
},
|
|
1142
1142
|
"node_modules/@babel/types": {
|
|
1143
|
-
"version": "7.24.
|
|
1144
|
-
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.
|
|
1145
|
-
"integrity": "sha512-
|
|
1143
|
+
"version": "7.24.8",
|
|
1144
|
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.8.tgz",
|
|
1145
|
+
"integrity": "sha512-SkSBEHwwJRU52QEVZBmMBnE5Ux2/6WU1grdYyOhpbCNxbmJrDuDCphBzKZSO3taf0zztp+qkWlymE5tVL5l0TA==",
|
|
1146
1146
|
"dependencies": {
|
|
1147
|
-
"@babel/helper-string-parser": "^7.24.
|
|
1147
|
+
"@babel/helper-string-parser": "^7.24.8",
|
|
1148
1148
|
"@babel/helper-validator-identifier": "^7.24.7",
|
|
1149
1149
|
"to-fast-properties": "^2.0.0"
|
|
1150
1150
|
},
|
|
@@ -1396,9 +1396,9 @@
|
|
|
1396
1396
|
}
|
|
1397
1397
|
},
|
|
1398
1398
|
"node_modules/@jridgewell/sourcemap-codec": {
|
|
1399
|
-
"version": "1.
|
|
1400
|
-
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.
|
|
1401
|
-
"integrity": "sha512-
|
|
1399
|
+
"version": "1.5.0",
|
|
1400
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
|
|
1401
|
+
"integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
|
|
1402
1402
|
},
|
|
1403
1403
|
"node_modules/@jridgewell/trace-mapping": {
|
|
1404
1404
|
"version": "0.3.25",
|
|
@@ -1593,82 +1593,6 @@
|
|
|
1593
1593
|
"node": ">= 8"
|
|
1594
1594
|
}
|
|
1595
1595
|
},
|
|
1596
|
-
"node_modules/@opencensus/core": {
|
|
1597
|
-
"version": "0.0.9",
|
|
1598
|
-
"resolved": "https://registry.npmjs.org/@opencensus/core/-/core-0.0.9.tgz",
|
|
1599
|
-
"integrity": "sha512-31Q4VWtbzXpVUd2m9JS6HEaPjlKvNMOiF7lWKNmXF84yUcgfAFL5re7/hjDmdyQbOp32oGc+RFV78jXIldVz6Q==",
|
|
1600
|
-
"dependencies": {
|
|
1601
|
-
"continuation-local-storage": "^3.2.1",
|
|
1602
|
-
"log-driver": "^1.2.7",
|
|
1603
|
-
"semver": "^5.5.0",
|
|
1604
|
-
"shimmer": "^1.2.0",
|
|
1605
|
-
"uuid": "^3.2.1"
|
|
1606
|
-
},
|
|
1607
|
-
"engines": {
|
|
1608
|
-
"node": ">=6.0"
|
|
1609
|
-
}
|
|
1610
|
-
},
|
|
1611
|
-
"node_modules/@opencensus/core/node_modules/semver": {
|
|
1612
|
-
"version": "5.7.2",
|
|
1613
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
|
|
1614
|
-
"integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
|
|
1615
|
-
"bin": {
|
|
1616
|
-
"semver": "bin/semver"
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
"node_modules/@opencensus/core/node_modules/uuid": {
|
|
1620
|
-
"version": "3.4.0",
|
|
1621
|
-
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
|
1622
|
-
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
|
|
1623
|
-
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
|
|
1624
|
-
"bin": {
|
|
1625
|
-
"uuid": "bin/uuid"
|
|
1626
|
-
}
|
|
1627
|
-
},
|
|
1628
|
-
"node_modules/@opencensus/propagation-b3": {
|
|
1629
|
-
"version": "0.0.8",
|
|
1630
|
-
"resolved": "https://registry.npmjs.org/@opencensus/propagation-b3/-/propagation-b3-0.0.8.tgz",
|
|
1631
|
-
"integrity": "sha512-PffXX2AL8Sh0VHQ52jJC4u3T0H6wDK6N/4bg7xh4ngMYOIi13aR1kzVvX1sVDBgfGwDOkMbl4c54Xm3tlPx/+A==",
|
|
1632
|
-
"dependencies": {
|
|
1633
|
-
"@opencensus/core": "^0.0.8",
|
|
1634
|
-
"uuid": "^3.2.1"
|
|
1635
|
-
},
|
|
1636
|
-
"engines": {
|
|
1637
|
-
"node": ">=6.0"
|
|
1638
|
-
}
|
|
1639
|
-
},
|
|
1640
|
-
"node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core": {
|
|
1641
|
-
"version": "0.0.8",
|
|
1642
|
-
"resolved": "https://registry.npmjs.org/@opencensus/core/-/core-0.0.8.tgz",
|
|
1643
|
-
"integrity": "sha512-yUFT59SFhGMYQgX0PhoTR0LBff2BEhPrD9io1jWfF/VDbakRfs6Pq60rjv0Z7iaTav5gQlttJCX2+VPxFWCuoQ==",
|
|
1644
|
-
"dependencies": {
|
|
1645
|
-
"continuation-local-storage": "^3.2.1",
|
|
1646
|
-
"log-driver": "^1.2.7",
|
|
1647
|
-
"semver": "^5.5.0",
|
|
1648
|
-
"shimmer": "^1.2.0",
|
|
1649
|
-
"uuid": "^3.2.1"
|
|
1650
|
-
},
|
|
1651
|
-
"engines": {
|
|
1652
|
-
"node": ">=6.0"
|
|
1653
|
-
}
|
|
1654
|
-
},
|
|
1655
|
-
"node_modules/@opencensus/propagation-b3/node_modules/semver": {
|
|
1656
|
-
"version": "5.7.2",
|
|
1657
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
|
|
1658
|
-
"integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
|
|
1659
|
-
"bin": {
|
|
1660
|
-
"semver": "bin/semver"
|
|
1661
|
-
}
|
|
1662
|
-
},
|
|
1663
|
-
"node_modules/@opencensus/propagation-b3/node_modules/uuid": {
|
|
1664
|
-
"version": "3.4.0",
|
|
1665
|
-
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
|
1666
|
-
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
|
|
1667
|
-
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
|
|
1668
|
-
"bin": {
|
|
1669
|
-
"uuid": "bin/uuid"
|
|
1670
|
-
}
|
|
1671
|
-
},
|
|
1672
1596
|
"node_modules/@pm2/agent": {
|
|
1673
1597
|
"version": "2.0.4",
|
|
1674
1598
|
"resolved": "https://registry.npmjs.org/@pm2/agent/-/agent-2.0.4.tgz",
|
|
@@ -1727,12 +1651,10 @@
|
|
|
1727
1651
|
}
|
|
1728
1652
|
},
|
|
1729
1653
|
"node_modules/@pm2/io": {
|
|
1730
|
-
"version": "
|
|
1731
|
-
"resolved": "https://registry.npmjs.org/@pm2/io/-/io-
|
|
1732
|
-
"integrity": "sha512-
|
|
1654
|
+
"version": "6.0.1",
|
|
1655
|
+
"resolved": "https://registry.npmjs.org/@pm2/io/-/io-6.0.1.tgz",
|
|
1656
|
+
"integrity": "sha512-KiA+shC6sULQAr9mGZ1pg+6KVW9MF8NpG99x26Lf/082/Qy8qsTCtnJy+HQReW1A9Rdf0C/404cz0RZGZro+IA==",
|
|
1733
1657
|
"dependencies": {
|
|
1734
|
-
"@opencensus/core": "0.0.9",
|
|
1735
|
-
"@opencensus/propagation-b3": "0.0.8",
|
|
1736
1658
|
"async": "~2.6.1",
|
|
1737
1659
|
"debug": "~4.3.1",
|
|
1738
1660
|
"eventemitter2": "^6.3.1",
|
|
@@ -2864,17 +2786,9 @@
|
|
|
2864
2786
|
}
|
|
2865
2787
|
},
|
|
2866
2788
|
"node_modules/argparse": {
|
|
2867
|
-
"version": "
|
|
2868
|
-
"resolved": "https://registry.npmjs.org/argparse/-/argparse-
|
|
2869
|
-
"integrity": "sha512-
|
|
2870
|
-
"dependencies": {
|
|
2871
|
-
"sprintf-js": "~1.0.2"
|
|
2872
|
-
}
|
|
2873
|
-
},
|
|
2874
|
-
"node_modules/argparse/node_modules/sprintf-js": {
|
|
2875
|
-
"version": "1.0.3",
|
|
2876
|
-
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
|
2877
|
-
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
|
|
2789
|
+
"version": "2.0.1",
|
|
2790
|
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
|
2791
|
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
|
|
2878
2792
|
},
|
|
2879
2793
|
"node_modules/ast-types": {
|
|
2880
2794
|
"version": "0.13.4",
|
|
@@ -2892,26 +2806,6 @@
|
|
|
2892
2806
|
"resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz",
|
|
2893
2807
|
"integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg=="
|
|
2894
2808
|
},
|
|
2895
|
-
"node_modules/async-listener": {
|
|
2896
|
-
"version": "0.6.10",
|
|
2897
|
-
"resolved": "https://registry.npmjs.org/async-listener/-/async-listener-0.6.10.tgz",
|
|
2898
|
-
"integrity": "sha512-gpuo6xOyF4D5DE5WvyqZdPA3NGhiT6Qf07l7DCB0wwDEsLvDIbCr6j9S5aj5Ch96dLace5tXVzWBZkxU/c5ohw==",
|
|
2899
|
-
"dependencies": {
|
|
2900
|
-
"semver": "^5.3.0",
|
|
2901
|
-
"shimmer": "^1.1.0"
|
|
2902
|
-
},
|
|
2903
|
-
"engines": {
|
|
2904
|
-
"node": "<=0.11.8 || >0.11.10"
|
|
2905
|
-
}
|
|
2906
|
-
},
|
|
2907
|
-
"node_modules/async-listener/node_modules/semver": {
|
|
2908
|
-
"version": "5.7.2",
|
|
2909
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
|
|
2910
|
-
"integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
|
|
2911
|
-
"bin": {
|
|
2912
|
-
"semver": "bin/semver"
|
|
2913
|
-
}
|
|
2914
|
-
},
|
|
2915
2809
|
"node_modules/atomic-sleep": {
|
|
2916
2810
|
"version": "1.0.0",
|
|
2917
2811
|
"resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz",
|
|
@@ -3340,11 +3234,6 @@
|
|
|
3340
3234
|
"url": "https://www.patreon.com/infusion"
|
|
3341
3235
|
}
|
|
3342
3236
|
},
|
|
3343
|
-
"node_modules/concat-map": {
|
|
3344
|
-
"version": "0.0.1",
|
|
3345
|
-
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
3346
|
-
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
|
|
3347
|
-
},
|
|
3348
3237
|
"node_modules/content-disposition": {
|
|
3349
3238
|
"version": "0.5.4",
|
|
3350
3239
|
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
|
@@ -3356,15 +3245,6 @@
|
|
|
3356
3245
|
"node": ">= 0.6"
|
|
3357
3246
|
}
|
|
3358
3247
|
},
|
|
3359
|
-
"node_modules/continuation-local-storage": {
|
|
3360
|
-
"version": "3.2.1",
|
|
3361
|
-
"resolved": "https://registry.npmjs.org/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz",
|
|
3362
|
-
"integrity": "sha512-jx44cconVqkCEEyLSKWwkvUXwO561jXMa3LPjTPsm5QR22PA0/mhe33FT4Xb5y74JDvt/Cq+5lm8S8rskLv9ZA==",
|
|
3363
|
-
"dependencies": {
|
|
3364
|
-
"async-listener": "^0.6.0",
|
|
3365
|
-
"emitter-listener": "^1.1.1"
|
|
3366
|
-
}
|
|
3367
|
-
},
|
|
3368
3248
|
"node_modules/cookie": {
|
|
3369
3249
|
"version": "0.6.0",
|
|
3370
3250
|
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
|
|
@@ -3570,14 +3450,6 @@
|
|
|
3570
3450
|
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
|
3571
3451
|
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
|
3572
3452
|
},
|
|
3573
|
-
"node_modules/emitter-listener": {
|
|
3574
|
-
"version": "1.1.2",
|
|
3575
|
-
"resolved": "https://registry.npmjs.org/emitter-listener/-/emitter-listener-1.1.2.tgz",
|
|
3576
|
-
"integrity": "sha512-Bt1sBAGFHY9DKY+4/2cV6izcKJUf5T7/gkdmkxzX/qv9CcGH8xSwVRW5mtX03SWJtRTWSOpzCuWN9rBFYZepZQ==",
|
|
3577
|
-
"dependencies": {
|
|
3578
|
-
"shimmer": "^1.2.0"
|
|
3579
|
-
}
|
|
3580
|
-
},
|
|
3581
3453
|
"node_modules/emoji-regex": {
|
|
3582
3454
|
"version": "8.0.0",
|
|
3583
3455
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
@@ -4695,6 +4567,17 @@
|
|
|
4695
4567
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
4696
4568
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
|
|
4697
4569
|
},
|
|
4570
|
+
"node_modules/js-yaml": {
|
|
4571
|
+
"version": "4.1.0",
|
|
4572
|
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
|
4573
|
+
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
|
4574
|
+
"dependencies": {
|
|
4575
|
+
"argparse": "^2.0.1"
|
|
4576
|
+
},
|
|
4577
|
+
"bin": {
|
|
4578
|
+
"js-yaml": "bin/js-yaml.js"
|
|
4579
|
+
}
|
|
4580
|
+
},
|
|
4698
4581
|
"node_modules/jsbn": {
|
|
4699
4582
|
"version": "1.1.0",
|
|
4700
4583
|
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
|
@@ -4953,14 +4836,6 @@
|
|
|
4953
4836
|
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
|
|
4954
4837
|
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
|
|
4955
4838
|
},
|
|
4956
|
-
"node_modules/log-driver": {
|
|
4957
|
-
"version": "1.2.7",
|
|
4958
|
-
"resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz",
|
|
4959
|
-
"integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==",
|
|
4960
|
-
"engines": {
|
|
4961
|
-
"node": ">=0.8.6"
|
|
4962
|
-
}
|
|
4963
|
-
},
|
|
4964
4839
|
"node_modules/log-symbols": {
|
|
4965
4840
|
"version": "4.1.0",
|
|
4966
4841
|
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
|
|
@@ -5761,14 +5636,6 @@
|
|
|
5761
5636
|
"node": ">=4"
|
|
5762
5637
|
}
|
|
5763
5638
|
},
|
|
5764
|
-
"node_modules/path-is-absolute": {
|
|
5765
|
-
"version": "1.0.1",
|
|
5766
|
-
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
|
5767
|
-
"integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
|
|
5768
|
-
"engines": {
|
|
5769
|
-
"node": ">=0.10.0"
|
|
5770
|
-
}
|
|
5771
|
-
},
|
|
5772
5639
|
"node_modules/path-parse": {
|
|
5773
5640
|
"version": "1.0.7",
|
|
5774
5641
|
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
|
@@ -5914,12 +5781,12 @@
|
|
|
5914
5781
|
}
|
|
5915
5782
|
},
|
|
5916
5783
|
"node_modules/pm2": {
|
|
5917
|
-
"version": "5.
|
|
5918
|
-
"resolved": "https://registry.npmjs.org/pm2/-/pm2-5.
|
|
5919
|
-
"integrity": "sha512-
|
|
5784
|
+
"version": "5.4.1",
|
|
5785
|
+
"resolved": "https://registry.npmjs.org/pm2/-/pm2-5.4.1.tgz",
|
|
5786
|
+
"integrity": "sha512-y9ndADjy78XfzdbVHISn4WiUTrcvmsO7ieCtM/oC80rwPgBDg+bHkkz1e4eaLOW5a7sJsnDfQjJe4AqxNnIw5Q==",
|
|
5920
5787
|
"dependencies": {
|
|
5921
5788
|
"@pm2/agent": "~2.0.0",
|
|
5922
|
-
"@pm2/io": "~
|
|
5789
|
+
"@pm2/io": "~6.0.0",
|
|
5923
5790
|
"@pm2/js-api": "~0.8.0",
|
|
5924
5791
|
"@pm2/pm2-version-check": "latest",
|
|
5925
5792
|
"async": "~3.2.0",
|
|
@@ -5934,6 +5801,7 @@
|
|
|
5934
5801
|
"enquirer": "2.3.6",
|
|
5935
5802
|
"eventemitter2": "5.0.1",
|
|
5936
5803
|
"fclone": "1.0.11",
|
|
5804
|
+
"js-yaml": "~4.1.0",
|
|
5937
5805
|
"mkdirp": "1.0.4",
|
|
5938
5806
|
"needle": "2.4.0",
|
|
5939
5807
|
"pidusage": "~3.0",
|
|
@@ -5945,8 +5813,7 @@
|
|
|
5945
5813
|
"semver": "^7.2",
|
|
5946
5814
|
"source-map-support": "0.5.21",
|
|
5947
5815
|
"sprintf-js": "1.1.2",
|
|
5948
|
-
"vizion": "~2.2.1"
|
|
5949
|
-
"yamljs": "0.3.0"
|
|
5816
|
+
"vizion": "~2.2.1"
|
|
5950
5817
|
},
|
|
5951
5818
|
"bin": {
|
|
5952
5819
|
"pm2": "bin/pm2",
|
|
@@ -5955,7 +5822,7 @@
|
|
|
5955
5822
|
"pm2-runtime": "bin/pm2-runtime"
|
|
5956
5823
|
},
|
|
5957
5824
|
"engines": {
|
|
5958
|
-
"node": ">=
|
|
5825
|
+
"node": ">=12.0.0"
|
|
5959
5826
|
},
|
|
5960
5827
|
"optionalDependencies": {
|
|
5961
5828
|
"pm2-sysmonit": "^1.2.8"
|
|
@@ -7279,9 +7146,9 @@
|
|
|
7279
7146
|
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
|
|
7280
7147
|
},
|
|
7281
7148
|
"node_modules/ws": {
|
|
7282
|
-
"version": "8.
|
|
7283
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.
|
|
7284
|
-
"integrity": "sha512-
|
|
7149
|
+
"version": "8.17.1",
|
|
7150
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz",
|
|
7151
|
+
"integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==",
|
|
7285
7152
|
"engines": {
|
|
7286
7153
|
"node": ">=10.0.0"
|
|
7287
7154
|
},
|
|
@@ -7330,59 +7197,6 @@
|
|
|
7330
7197
|
"node": ">= 14"
|
|
7331
7198
|
}
|
|
7332
7199
|
},
|
|
7333
|
-
"node_modules/yamljs": {
|
|
7334
|
-
"version": "0.3.0",
|
|
7335
|
-
"resolved": "https://registry.npmjs.org/yamljs/-/yamljs-0.3.0.tgz",
|
|
7336
|
-
"integrity": "sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==",
|
|
7337
|
-
"dependencies": {
|
|
7338
|
-
"argparse": "^1.0.7",
|
|
7339
|
-
"glob": "^7.0.5"
|
|
7340
|
-
},
|
|
7341
|
-
"bin": {
|
|
7342
|
-
"json2yaml": "bin/json2yaml",
|
|
7343
|
-
"yaml2json": "bin/yaml2json"
|
|
7344
|
-
}
|
|
7345
|
-
},
|
|
7346
|
-
"node_modules/yamljs/node_modules/brace-expansion": {
|
|
7347
|
-
"version": "1.1.11",
|
|
7348
|
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
|
7349
|
-
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
|
7350
|
-
"dependencies": {
|
|
7351
|
-
"balanced-match": "^1.0.0",
|
|
7352
|
-
"concat-map": "0.0.1"
|
|
7353
|
-
}
|
|
7354
|
-
},
|
|
7355
|
-
"node_modules/yamljs/node_modules/glob": {
|
|
7356
|
-
"version": "7.2.3",
|
|
7357
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
|
7358
|
-
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
|
7359
|
-
"deprecated": "Glob versions prior to v9 are no longer supported",
|
|
7360
|
-
"dependencies": {
|
|
7361
|
-
"fs.realpath": "^1.0.0",
|
|
7362
|
-
"inflight": "^1.0.4",
|
|
7363
|
-
"inherits": "2",
|
|
7364
|
-
"minimatch": "^3.1.1",
|
|
7365
|
-
"once": "^1.3.0",
|
|
7366
|
-
"path-is-absolute": "^1.0.0"
|
|
7367
|
-
},
|
|
7368
|
-
"engines": {
|
|
7369
|
-
"node": "*"
|
|
7370
|
-
},
|
|
7371
|
-
"funding": {
|
|
7372
|
-
"url": "https://github.com/sponsors/isaacs"
|
|
7373
|
-
}
|
|
7374
|
-
},
|
|
7375
|
-
"node_modules/yamljs/node_modules/minimatch": {
|
|
7376
|
-
"version": "3.1.2",
|
|
7377
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
7378
|
-
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
|
7379
|
-
"dependencies": {
|
|
7380
|
-
"brace-expansion": "^1.1.7"
|
|
7381
|
-
},
|
|
7382
|
-
"engines": {
|
|
7383
|
-
"node": "*"
|
|
7384
|
-
}
|
|
7385
|
-
},
|
|
7386
7200
|
"node_modules/yargs": {
|
|
7387
7201
|
"version": "16.2.0",
|
|
7388
7202
|
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harperdb",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.20",
|
|
4
4
|
"description": "HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"passport-http": "0.3.0",
|
|
90
90
|
"passport-local": "1.0.0",
|
|
91
91
|
"pino": "8.16.0",
|
|
92
|
-
"pm2": "5.
|
|
92
|
+
"pm2": "5.4.1",
|
|
93
93
|
"prompt": "1.3.0",
|
|
94
94
|
"properties-reader": "2.3.0",
|
|
95
95
|
"recursive-iterator": "3.3.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"ulidx": "0.5.0",
|
|
105
105
|
"uuid": "9.0.1",
|
|
106
106
|
"validate.js": "0.13.1",
|
|
107
|
-
"ws": "8.
|
|
107
|
+
"ws": "8.17.1",
|
|
108
108
|
"yaml": "2.4.1"
|
|
109
109
|
},
|
|
110
110
|
"overrides": {
|
package/resources/Resource.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResourceInterface,
|
|
1
|
+
import { ResourceInterface, SubscriptionRequest, Id, Context, Query } from './ResourceInterface';
|
|
2
2
|
import { Transaction } from './DatabaseTransaction';
|
|
3
3
|
export declare const CONTEXT: unique symbol;
|
|
4
4
|
export declare const ID_PROPERTY: unique symbol;
|
|
@@ -20,12 +20,12 @@ export declare class Resource implements ResourceInterface {
|
|
|
20
20
|
static transactions: Transaction[] & {
|
|
21
21
|
timestamp: number;
|
|
22
22
|
};
|
|
23
|
+
[CONTEXT]: Context;
|
|
23
24
|
constructor(identifier: Id, source: any);
|
|
24
25
|
/**
|
|
25
26
|
* The get methods are for directly getting a resource, and called for HTTP GET requests.
|
|
26
27
|
*/
|
|
27
|
-
static get(identifier: Id, context?: Context): Promise<
|
|
28
|
-
static get(request: Request, context?: Context): Promise<object>;
|
|
28
|
+
static get(identifier: Id, context?: Context): Promise<Resource>;
|
|
29
29
|
static get(query: Query, context?: Context): Promise<AsyncIterable<object>>;
|
|
30
30
|
static get: typeof Resource.get;
|
|
31
31
|
get?(query?: any): Promise<any>;
|
|
@@ -41,7 +41,7 @@ export declare class Resource implements ResourceInterface {
|
|
|
41
41
|
reliesOnPrototype: boolean;
|
|
42
42
|
};
|
|
43
43
|
static delete(identifier: Id, context?: Context): Promise<boolean>;
|
|
44
|
-
static delete(request:
|
|
44
|
+
static delete(request: Context, context?: Context): Promise<object>;
|
|
45
45
|
static delete: typeof Resource.delete;
|
|
46
46
|
/**
|
|
47
47
|
* Generate a new primary key for a resource; by default we use UUIDs (for now).
|
|
@@ -99,7 +99,7 @@ export declare class Resource implements ResourceInterface {
|
|
|
99
99
|
* @param options
|
|
100
100
|
* @returns
|
|
101
101
|
*/
|
|
102
|
-
static getResource(id: Id, request:
|
|
102
|
+
static getResource(id: Id, request: Context, options?: any): Resource | Promise<Resource>;
|
|
103
103
|
/**
|
|
104
104
|
* This is called by protocols that wish to make a subscription for real-time notification/updates.
|
|
105
105
|
* This default implementation simply provides a streaming iterator that does not deliver any notifications
|
|
@@ -126,7 +126,7 @@ export declare class Resource implements ResourceInterface {
|
|
|
126
126
|
* Get the context for this resource
|
|
127
127
|
* @returns context object with information about the current transaction, user, and more
|
|
128
128
|
*/
|
|
129
|
-
getContext():
|
|
129
|
+
getContext(): Context;
|
|
130
130
|
}
|
|
131
131
|
export declare function snake_case(camelCase: string): string;
|
|
132
132
|
export declare function transformForSelect(select: any, resource: any): (object: any) => any;
|
|
@@ -14,28 +14,71 @@ export interface ResourceInterface<Key = any, Record = any> {
|
|
|
14
14
|
allowDelete(user: any, query: Query, context: Context): boolean | Promise<boolean>;
|
|
15
15
|
}
|
|
16
16
|
export interface Context {
|
|
17
|
+
/** The user making the request */
|
|
17
18
|
user?: any;
|
|
19
|
+
/** The database transaction object */
|
|
18
20
|
transaction: DatabaseTransaction;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
/** If the operation that will be performed with this context should check user authorization */
|
|
22
|
+
authorize?: number;
|
|
23
|
+
/** The last modification time of any data that has been accessed with this context */
|
|
24
|
+
lastModified?: number;
|
|
25
|
+
/** The time at which a saved record should expire */
|
|
26
|
+
expiresAt?: number;
|
|
27
|
+
/** Indicates that caching should not be applied */
|
|
28
|
+
noCache?: boolean;
|
|
29
|
+
/** Indicates that values from the source data should be stored as a cached value */
|
|
30
|
+
noCacheStore?: boolean;
|
|
31
|
+
/** Only return values from the table, and don't use data from the source */
|
|
32
|
+
onlyIfCached?: boolean;
|
|
33
|
+
/** Allows data from a caching table to be used if there is an error retrieving data from the source */
|
|
34
|
+
staleIfError?: boolean;
|
|
35
|
+
/** Indicates any cached data must be revalidated */
|
|
36
|
+
mustRevalidate?: boolean;
|
|
22
37
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
interface DirectCondition {
|
|
39
|
+
attribute: string;
|
|
40
|
+
comparator?: string;
|
|
41
|
+
value: any;
|
|
42
|
+
}
|
|
43
|
+
interface ConditionGroup {
|
|
44
|
+
conditions: Condition[];
|
|
45
|
+
operator?: string;
|
|
46
|
+
}
|
|
47
|
+
type Condition = DirectCondition | ConditionGroup;
|
|
48
|
+
interface Sort {
|
|
49
|
+
attribute: string;
|
|
50
|
+
descending?: boolean;
|
|
51
|
+
next?: Sort;
|
|
52
|
+
}
|
|
53
|
+
interface SubSelect {
|
|
54
|
+
name: string;
|
|
55
|
+
select: (string | SubSelect)[];
|
|
30
56
|
}
|
|
31
|
-
export interface Query
|
|
32
|
-
conditions
|
|
57
|
+
export interface Query {
|
|
58
|
+
/** The conditions to use in the query, that the returned records must satisfy */
|
|
59
|
+
conditions?: Condition[];
|
|
60
|
+
/** The number of records to return */
|
|
33
61
|
limit?: number;
|
|
62
|
+
/** The number of records to skip */
|
|
34
63
|
offset?: number;
|
|
64
|
+
/** The number of operator to use*/
|
|
65
|
+
operator?: 'AND' | 'OR';
|
|
66
|
+
/** The sort attribute and direction to use */
|
|
67
|
+
sort?: Sort;
|
|
68
|
+
/** The selected attributes to return */
|
|
69
|
+
select?: (string | SubSelect)[];
|
|
70
|
+
/** Return an explanation of the query order */
|
|
71
|
+
explain?: boolean;
|
|
72
|
+
/** Force the query to be executed in the order of conditions */
|
|
73
|
+
enforceExecutionOrder?: boolean;
|
|
35
74
|
}
|
|
36
|
-
export interface SubscriptionRequest
|
|
75
|
+
export interface SubscriptionRequest {
|
|
76
|
+
/** The starting time of events to return (defaults to now) */
|
|
37
77
|
startTime?: number;
|
|
78
|
+
/** The count of previously recorded events to return */
|
|
38
79
|
previousCount?: number;
|
|
80
|
+
/** If the current record state should be omitted as the first event */
|
|
81
|
+
omitCurrent?: boolean;
|
|
39
82
|
}
|
|
40
83
|
export type Id = number | string | (number | string | null)[] | null;
|
|
41
84
|
type UpdatableRecord<T> = T;
|