@trust0/ridb-core 1.7.1 → 1.7.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/build/ridb_core.d.ts +10 -10
- package/build/ridb_core.js +50 -4
- package/build/ridb_core_bg.js +22 -3
- package/package.json +1 -2
package/build/ridb_core.d.ts
CHANGED
|
@@ -38,16 +38,6 @@ declare function __wbgtest_console_warn(args: Array<any>): void;
|
|
|
38
38
|
*/
|
|
39
39
|
declare function __wbgtest_console_error(args: Array<any>): void;
|
|
40
40
|
/**
|
|
41
|
-
*/
|
|
42
|
-
declare enum Errors {
|
|
43
|
-
Error = 0,
|
|
44
|
-
HookError = 1,
|
|
45
|
-
QueryError = 2,
|
|
46
|
-
SerializationError = 3,
|
|
47
|
-
ValidationError = 4,
|
|
48
|
-
AuthenticationError = 5,
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
41
|
* Represents the type of operation to be performed on the collection.
|
|
52
42
|
*/
|
|
53
43
|
declare enum OpType {
|
|
@@ -72,6 +62,16 @@ declare enum OpType {
|
|
|
72
62
|
*/
|
|
73
63
|
COUNT = 4,
|
|
74
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
*/
|
|
67
|
+
declare enum Errors {
|
|
68
|
+
Error = 0,
|
|
69
|
+
HookError = 1,
|
|
70
|
+
QueryError = 2,
|
|
71
|
+
SerializationError = 3,
|
|
72
|
+
ValidationError = 4,
|
|
73
|
+
AuthenticationError = 5,
|
|
74
|
+
}
|
|
75
75
|
|
|
76
76
|
type Operators<T> = {
|
|
77
77
|
$gte?: number,
|
package/build/ridb_core.js
CHANGED
|
@@ -2,8 +2,54 @@ if (typeof Buffer === 'undefined') {
|
|
|
2
2
|
global.Buffer = require('buffer').Buffer;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
5
22
|
|
|
6
23
|
// pkg/ridb_core.js
|
|
24
|
+
var ridb_core_exports = {};
|
|
25
|
+
__export(ridb_core_exports, {
|
|
26
|
+
BasePlugin: () => BasePlugin,
|
|
27
|
+
BaseStorage: () => BaseStorage,
|
|
28
|
+
Collection: () => Collection,
|
|
29
|
+
CoreStorage: () => CoreStorage,
|
|
30
|
+
Database: () => Database,
|
|
31
|
+
Errors: () => Errors,
|
|
32
|
+
InMemory: () => InMemory,
|
|
33
|
+
IndexDB: () => IndexDB,
|
|
34
|
+
OpType: () => OpType,
|
|
35
|
+
Operation: () => Operation,
|
|
36
|
+
Property: () => Property,
|
|
37
|
+
Query: () => Query,
|
|
38
|
+
QueryOptions: () => QueryOptions,
|
|
39
|
+
RIDBError: () => RIDBError,
|
|
40
|
+
Schema: () => Schema,
|
|
41
|
+
WasmBindgenTestContext: () => WasmBindgenTestContext,
|
|
42
|
+
__wbgtest_console_debug: () => __wbgtest_console_debug,
|
|
43
|
+
__wbgtest_console_error: () => __wbgtest_console_error,
|
|
44
|
+
__wbgtest_console_info: () => __wbgtest_console_info,
|
|
45
|
+
__wbgtest_console_log: () => __wbgtest_console_log,
|
|
46
|
+
__wbgtest_console_warn: () => __wbgtest_console_warn,
|
|
47
|
+
default: () => ridb_core_default,
|
|
48
|
+
initSync: () => initSync,
|
|
49
|
+
is_debug_mode: () => is_debug_mode,
|
|
50
|
+
main_js: () => main_js
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(ridb_core_exports);
|
|
7
53
|
var wasm;
|
|
8
54
|
var heap = new Array(128).fill(void 0);
|
|
9
55
|
heap.push(void 0, null, true, false);
|
|
@@ -334,7 +380,6 @@ function __wbg_adapter_333(arg0, arg1, arg2, arg3, arg4) {
|
|
|
334
380
|
function __wbg_adapter_388(arg0, arg1, arg2, arg3) {
|
|
335
381
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h424d8c39cf909020(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
336
382
|
}
|
|
337
|
-
var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
|
|
338
383
|
var OpType = Object.freeze({
|
|
339
384
|
/**
|
|
340
385
|
* Create operation.
|
|
@@ -362,6 +407,7 @@ var OpType = Object.freeze({
|
|
|
362
407
|
COUNT: 4,
|
|
363
408
|
"4": "COUNT"
|
|
364
409
|
});
|
|
410
|
+
var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
|
|
365
411
|
var BasePluginFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
366
412
|
}, unregister: () => {
|
|
367
413
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_baseplugin_free(ptr >>> 0));
|
|
@@ -3028,7 +3074,8 @@ async function __wbg_init(input) {
|
|
|
3028
3074
|
return __wbg_finalize_init(instance, module2);
|
|
3029
3075
|
}
|
|
3030
3076
|
var ridb_core_default = __wbg_init;
|
|
3031
|
-
export
|
|
3077
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3078
|
+
0 && (module.exports = {
|
|
3032
3079
|
BasePlugin,
|
|
3033
3080
|
BaseStorage,
|
|
3034
3081
|
Collection,
|
|
@@ -3050,8 +3097,7 @@ export {
|
|
|
3050
3097
|
__wbgtest_console_info,
|
|
3051
3098
|
__wbgtest_console_log,
|
|
3052
3099
|
__wbgtest_console_warn,
|
|
3053
|
-
ridb_core_default as default,
|
|
3054
3100
|
initSync,
|
|
3055
3101
|
is_debug_mode,
|
|
3056
3102
|
main_js
|
|
3057
|
-
};
|
|
3103
|
+
});
|