harperdb 4.2.0-alpha.11 → 4.2.0-alpha.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harperdb",
3
- "version": "4.2.0-alpha.11",
3
+ "version": "4.2.0-alpha.13",
4
4
  "description": "HarperDB is a distributed SQL & NoSQL data platform focused on speed, flexibility, and ease of use.",
5
5
  "keywords": [
6
6
  "database",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE",
36
36
  "dependencies": {
37
- "@aws-sdk/client-s3": "3.382.0",
38
- "@aws-sdk/lib-storage": "3.382.0",
37
+ "@aws-sdk/client-s3": "3.383.0",
38
+ "@aws-sdk/lib-storage": "3.383.0",
39
39
  "@aws-sdk/abort-controller": "3.370.0",
40
40
  "@endo/static-module-record": "^0.7.16",
41
41
  "@fastify/autoload": "~5.7.1",
@@ -62,7 +62,7 @@
62
62
  "fs-extra": "11.1.1",
63
63
  "graphql": "^16.6.0",
64
64
  "human-readable-ids": "1.0.4",
65
- "inquirer": "8.2.5",
65
+ "inquirer": "8.2.6",
66
66
  "is-number": "7.0.0",
67
67
  "joi": "17.9.2",
68
68
  "json2csv": "5.0.7",
@@ -86,7 +86,7 @@
86
86
  "passport": "0.6.0",
87
87
  "passport-http": "0.3.0",
88
88
  "passport-local": "1.0.0",
89
- "pino": "8.14.2",
89
+ "pino": "8.15.0",
90
90
  "pm2": "5.3.0",
91
91
  "prompt": "1.3.0",
92
92
  "properties-reader": "2.2.0",
@@ -96,7 +96,7 @@
96
96
  "ses": "^0.18.1",
97
97
  "stream-chain": "2.2.5",
98
98
  "stream-json": "1.8.0",
99
- "systeminformation": "5.18.9",
99
+ "systeminformation": "5.18.11",
100
100
  "tar-fs": "2.1.1",
101
101
  "ulidx": "0.5.0",
102
102
  "uuid": "9.0.0",
@@ -0,0 +1,9 @@
1
+ export declare function setAnalyticsEnabled(enabled: any): void;
2
+ /**
3
+ * Record an action for analytics (like an HTTP request, replication, MQTT message)
4
+ * @param path
5
+ * @param value
6
+ */
7
+ export declare function recordAction(value: any, metric: any, path?: any, method?: any, type?: any): void;
8
+ export declare function recordActionBinary(value: any, metric: any, path?: any, method?: any, type?: any): void;
9
+ export declare function addAnalyticsListener(callback: any): void;
@@ -99,6 +99,7 @@ export declare function table({ table: table_name, database: database_name, expi
99
99
  _txnForRequest(): any;
100
100
  validate(record: any): void;
101
101
  getUpdatedTime(): any;
102
+ wasLoadedFromSource(): boolean | void;
102
103
  updateModificationTime(latest?: number): void;
103
104
  post(new_record: any): any;
104
105
  connect(query?: {}): AsyncIterable<any>;
@@ -157,6 +158,7 @@ export declare function table({ table: table_name, database: database_name, expi
157
158
  _txnForRequest(): any;
158
159
  validate(record: any): void;
159
160
  getUpdatedTime(): any;
161
+ wasLoadedFromSource(): boolean | void;
160
162
  updateModificationTime(latest?: number): void;
161
163
  post(new_record: any): any;
162
164
  connect(query?: {}): AsyncIterable<any>;
@@ -198,6 +200,7 @@ export declare function table({ table: table_name, database: database_name, expi
198
200
  _txnForRequest(): any;
199
201
  validate(record: any): void;
200
202
  getUpdatedTime(): any;
203
+ wasLoadedFromSource(): boolean | void;
201
204
  updateModificationTime(latest?: number): void;
202
205
  post(new_record: any): any;
203
206
  connect(query?: {}): AsyncIterable<any>;
@@ -243,6 +246,10 @@ export declare function table({ table: table_name, database: database_name, expi
243
246
  getNewId(): any;
244
247
  create(id_prefix: import("./ResourceInterface").Id, record: any, context: import("./ResourceInterface").Context): Promise<import("./ResourceInterface").Id>;
245
248
  create(record: any, context: import("./ResourceInterface").Context): Promise<import("./ResourceInterface").Id>;
249
+ invalidate: {
250
+ (id_or_query: import("./ResourceInterface").Id, data_or_context?: any, context?: import("./ResourceInterface").Context): any;
251
+ reliesOnPrototype: boolean;
252
+ };
246
253
  post: {
247
254
  (id_or_query: import("./ResourceInterface").Id, data_or_context?: any, context?: import("./ResourceInterface").Context): any;
248
255
  reliesOnPrototype: boolean;