@routier/core 0.1.0-rc.2 → 0.2.1
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/dist/assertions/index.d.ts +30 -0
- package/dist/assertions/index.js +92 -19
- package/dist/assertions/index.js.map +1 -1
- package/dist/capabilities/index.js +75 -105
- package/dist/capabilities/index.js.map +1 -1
- package/dist/codegen/blocks.test.d.ts +1 -0
- package/dist/codegen/handlers/SetHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/index.d.ts +1 -0
- package/dist/codegen/handlers/serialize/SerializeComputedHandler.d.ts +6 -0
- package/dist/codegen/handlers/set/SetComplexHandler.d.ts +6 -0
- package/dist/codegen/index.js +22 -36
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/utils.test.d.ts +1 -0
- package/dist/collections/Changes.d.ts +2 -2
- package/dist/collections/IdSet.test.d.ts +1 -0
- package/dist/collections/TagCollection.contract.test.d.ts +1 -0
- package/dist/collections/TagCollection.d.ts +7 -7
- package/dist/collections/index.js +50 -93
- package/dist/collections/index.js.map +1 -1
- package/dist/errors/index.js +4 -15
- package/dist/errors/index.js.map +1 -1
- package/dist/expressions/constants.d.ts +2 -0
- package/dist/expressions/index.d.ts +2 -0
- package/dist/expressions/index.js +450 -114
- package/dist/expressions/index.js.map +1 -1
- package/dist/expressions/sql.d.ts +28 -0
- package/dist/expressions/sql.test.d.ts +1 -0
- package/dist/expressions/utils.d.ts +1 -2
- package/dist/index.js +3058 -2618
- package/dist/index.js.map +1 -1
- package/dist/performance/index.js +22 -22
- package/dist/performance/index.js.map +1 -1
- package/dist/pipeline/index.js +48 -60
- package/dist/pipeline/index.js.map +1 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/index.js +268 -937
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/query/Query.test.d.ts +1 -0
- package/dist/plugins/query/QueryOptionsCollection.d.ts +1 -0
- package/dist/plugins/translators/SqlTranslator.test.d.ts +1 -0
- package/dist/plugins/translators/TranslatedArrayValue.d.ts +3 -1
- package/dist/plugins/translators/TranslatedGroupValue.d.ts +3 -1
- package/dist/plugins/translators/TranslatedSingleValue.d.ts +3 -1
- package/dist/plugins/translators/TranslatedValues.test.d.ts +1 -0
- package/dist/plugins/translators/types.d.ts +8 -1
- package/dist/plugins/types.d.ts +6 -10
- package/dist/results/Result.d.ts +2 -2
- package/dist/results/Result.test.d.ts +1 -0
- package/dist/results/index.js +11 -26
- package/dist/results/index.js.map +1 -1
- package/dist/results/utils.test.d.ts +1 -0
- package/dist/schema/PropertyInfo.d.ts +5 -1
- package/dist/schema/SchemaDefinition.d.ts +35 -6
- package/dist/schema/communication/broadcast.test.d.ts +1 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.js +2115 -1513
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/property/base/SchemaBase.d.ts +3 -1
- package/dist/schema/property/modifiers/SchemaDeserialize.d.ts +5 -1
- package/dist/schema/property/modifiers/SchemaForeignKey.d.ts +15 -0
- package/dist/schema/property/modifiers/SchemaKey.d.ts +2 -0
- package/dist/schema/property/modifiers/SchemaNullable.d.ts +5 -1
- package/dist/schema/property/modifiers/SchemaOptional.d.ts +3 -1
- package/dist/schema/property/modifiers/SchemaTag.d.ts +27 -0
- package/dist/schema/property/modifiers/SchemaTracked.d.ts +5 -1
- package/dist/schema/property/modifiers/index.d.ts +2 -0
- package/dist/schema/property/types/SchemaArray.d.ts +2 -0
- package/dist/schema/property/types/SchemaBoolean.d.ts +2 -0
- package/dist/schema/property/types/SchemaDate.d.ts +2 -0
- package/dist/schema/property/types/SchemaNumber.d.ts +5 -1
- package/dist/schema/property/types/SchemaObject.d.ts +2 -0
- package/dist/schema/property/types/SchemaString.d.ts +5 -1
- package/dist/schema/types.d.ts +41 -29
- package/dist/schema/utils/standardJsonSchema.d.ts +90 -0
- package/dist/schema/utils/standardJsonSchema.test.d.ts +1 -0
- package/dist/types/index.js +0 -6
- package/dist/types/index.js.map +1 -1
- package/dist/utilities/functions.d.ts +1 -1
- package/dist/utilities/index.js +213 -138
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/runtime.test.d.ts +1 -0
- package/dist/utilities/types.d.ts +17 -2
- package/dist/utilities/uuid.test.d.ts +1 -0
- package/package.json +2 -2
- package/readme.md +1 -1
- package/dist/plugins/replication/OptimisticReplicationDbPlugin.d.ts +0 -22
- package/dist/plugins/replication/ReplicationDbPlugin.d.ts +0 -22
- package/dist/plugins/replication/index.d.ts +0 -3
- package/dist/plugins/replication/types.d.ts +0 -4
- package/dist/schema/testSchemas.test.d.ts +0 -314
- /package/dist/{pipeline/WorkPipeline.test.d.ts → codegen/SlotPath.test.d.ts} +0 -0
package/dist/utilities/index.js
CHANGED
|
@@ -1,14 +1,134 @@
|
|
|
1
1
|
var __webpack_modules__ = ({
|
|
2
|
-
"./src/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"./src/assertions/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
3
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
5
|
+
assertDate: () => (assertDate),
|
|
6
|
+
assertInstanceOf: () => (assertInstanceOf),
|
|
7
|
+
assertIsArray: () => (assertIsArray),
|
|
8
|
+
assertIsNotNull: () => (assertIsNotNull),
|
|
9
|
+
assertIsNumber: () => (assertIsNumber),
|
|
10
|
+
assertString: () => (assertString),
|
|
11
|
+
isComparatorExpression: () => (isComparatorExpression),
|
|
12
|
+
isEmptyExpression: () => (isEmptyExpression),
|
|
13
|
+
isExpression: () => (isExpression),
|
|
14
|
+
isNotParsableExpression: () => (isNotParsableExpression),
|
|
15
|
+
isOperatorExpression: () => (isOperatorExpression),
|
|
16
|
+
isPropertyExpression: () => (isPropertyExpression),
|
|
17
|
+
isValueExpression: () => (isValueExpression)
|
|
18
|
+
});
|
|
19
|
+
/* import */ var _expressions_constants__rspack_import_1 = __webpack_require__("./src/expressions/constants.ts");
|
|
20
|
+
/* import */ var _utilities__rspack_import_0 = __webpack_require__("./src/utilities/dates.ts");
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function assertDate(data) {
|
|
24
|
+
if ((0,_utilities__rspack_import_0.isDate)(data) === false) {
|
|
25
|
+
throw new TypeError('Value is not a Date');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function assertIsNotNull(data, message) {
|
|
29
|
+
if (data == null) {
|
|
30
|
+
if (message == null) {
|
|
31
|
+
throw new TypeError('Assertion failed, data is null');
|
|
32
|
+
}
|
|
33
|
+
if (typeof message === "string") {
|
|
34
|
+
throw new TypeError(message);
|
|
35
|
+
}
|
|
36
|
+
throw new TypeError(message());
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function assertIsArray(data, message) {
|
|
40
|
+
if (!Array.isArray(data)) {
|
|
41
|
+
throw new TypeError(message ?? 'Assertion failed, data is not of type Array');
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function assertString(data, message) {
|
|
45
|
+
if (typeof data !== "string") {
|
|
46
|
+
throw new TypeError(message ?? 'Assertion failed, data is not of type String');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function assertInstanceOf(value, Instance) {
|
|
50
|
+
if (value instanceof Instance) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (value != null && typeof value === "object" && "constructor" in value) {
|
|
54
|
+
throw new TypeError(`value is not instance of type. Type: ${value.constructor.name}`);
|
|
55
|
+
}
|
|
56
|
+
throw new TypeError(`value is not instance of type`);
|
|
57
|
+
}
|
|
58
|
+
function assertIsNumber(value) {
|
|
59
|
+
if (typeof value !== "number") {
|
|
60
|
+
throw new TypeError("value is not of type `number`");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function isObjectWithType(value) {
|
|
64
|
+
return typeof value === "object" && value !== null && "type" in value;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Type guard: narrows `value` to `Expression` when it is an object with a valid `type` property.
|
|
68
|
+
*/
|
|
69
|
+
function isExpression(value) {
|
|
70
|
+
return isObjectWithType(value) && _expressions_constants__rspack_import_1.EXPRESSION_TYPES.includes(value.type);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Type guard: narrows `value` to `OperatorExpression` when it is an object with `type === "operator"`.
|
|
74
|
+
*/
|
|
75
|
+
function isOperatorExpression(value) {
|
|
76
|
+
return isObjectWithType(value) && value.type === "operator";
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Type guard: narrows `value` to `ComparatorExpression` when it is an object with `type === "comparator"`.
|
|
80
|
+
*/
|
|
81
|
+
function isComparatorExpression(value) {
|
|
82
|
+
return isObjectWithType(value) && value.type === "comparator";
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Type guard: narrows `value` to `PropertyExpression` when it is an object with `type === "property"`.
|
|
86
|
+
*/
|
|
87
|
+
function isPropertyExpression(value) {
|
|
88
|
+
return isObjectWithType(value) && value.type === "property";
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Type guard: narrows `value` to `ValueExpression` when it is an object with `type === "value"`.
|
|
92
|
+
*/
|
|
93
|
+
function isValueExpression(value) {
|
|
94
|
+
return isObjectWithType(value) && value.type === "value";
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Type guard: narrows `value` to `EmptyExpression` when it is an object with `type === "empty"`.
|
|
98
|
+
*/
|
|
99
|
+
function isEmptyExpression(value) {
|
|
100
|
+
return isObjectWithType(value) && value.type === "empty";
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Type guard: narrows `value` to `NotParsableExpression` when it is an object with `type === "not-parsable"`.
|
|
104
|
+
*/
|
|
105
|
+
function isNotParsableExpression(value) {
|
|
106
|
+
return isObjectWithType(value) && value.type === "not-parsable";
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
},
|
|
111
|
+
"./src/expressions/constants.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
112
|
+
__webpack_require__.r(__webpack_exports__);
|
|
113
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
114
|
+
EXPRESSION_TYPES: () => (EXPRESSION_TYPES)
|
|
115
|
+
});
|
|
116
|
+
const EXPRESSION_TYPES = [
|
|
117
|
+
"operator",
|
|
118
|
+
"comparator",
|
|
119
|
+
"property",
|
|
120
|
+
"value",
|
|
121
|
+
"empty",
|
|
122
|
+
"not-parsable",
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
},
|
|
127
|
+
"./src/expressions/utils.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
7
128
|
__webpack_require__.r(__webpack_exports__);
|
|
8
129
|
__webpack_require__.d(__webpack_exports__, {
|
|
9
130
|
forEach: () => (forEach),
|
|
10
|
-
getProperties: () => (getProperties)
|
|
11
|
-
isPropertyExpression: () => (isPropertyExpression)
|
|
131
|
+
getProperties: () => (getProperties)
|
|
12
132
|
});
|
|
13
133
|
/**
|
|
14
134
|
* Extracts all properties referenced in an expression
|
|
@@ -33,9 +153,6 @@ function getProperties(expression) {
|
|
|
33
153
|
traverse(expression);
|
|
34
154
|
return properties;
|
|
35
155
|
}
|
|
36
|
-
function isPropertyExpression(expression) {
|
|
37
|
-
return expression.type === "property";
|
|
38
|
-
}
|
|
39
156
|
function forEach(expression, callback) {
|
|
40
157
|
function traverse(expr) {
|
|
41
158
|
// Call the callback for this expression
|
|
@@ -60,17 +177,15 @@ function forEach(expression, callback) {
|
|
|
60
177
|
}
|
|
61
178
|
|
|
62
179
|
|
|
63
|
-
}
|
|
64
|
-
"./src/plugins/query/QueryOptionsCollection.ts"
|
|
65
|
-
/*!*****************************************************!*\
|
|
66
|
-
!*** ./src/plugins/query/QueryOptionsCollection.ts ***!
|
|
67
|
-
\*****************************************************/
|
|
68
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
180
|
+
},
|
|
181
|
+
"./src/plugins/query/QueryOptionsCollection.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
69
182
|
__webpack_require__.r(__webpack_exports__);
|
|
70
183
|
__webpack_require__.d(__webpack_exports__, {
|
|
71
184
|
QueryOptionsCollection: () => (QueryOptionsCollection)
|
|
72
185
|
});
|
|
73
|
-
/*
|
|
186
|
+
/* import */ var _assertions__rspack_import_1 = __webpack_require__("./src/assertions/index.ts");
|
|
187
|
+
/* import */ var _expressions_utils__rspack_import_0 = __webpack_require__("./src/expressions/utils.ts");
|
|
188
|
+
|
|
74
189
|
|
|
75
190
|
class QueryOptionsCollection {
|
|
76
191
|
options = new Map();
|
|
@@ -107,8 +222,8 @@ class QueryOptionsCollection {
|
|
|
107
222
|
this.nextExecutionTarget = "memory";
|
|
108
223
|
}
|
|
109
224
|
else {
|
|
110
|
-
(0,
|
|
111
|
-
if ((0,
|
|
225
|
+
(0,_expressions_utils__rspack_import_0.forEach)(filterValue.expression, (expression) => {
|
|
226
|
+
if ((0,_assertions__rspack_import_1.isPropertyExpression)(expression) && expression.property.isUnmapped) {
|
|
112
227
|
// Cut over to memory execution, unmapped properties are not in the database and
|
|
113
228
|
// cannot be queried
|
|
114
229
|
this.nextExecutionTarget = "memory";
|
|
@@ -148,6 +263,10 @@ class QueryOptionsCollection {
|
|
|
148
263
|
database: databaseQueryOptionsCollection
|
|
149
264
|
};
|
|
150
265
|
}
|
|
266
|
+
hasTransformations() {
|
|
267
|
+
const transformationOptions = ["map", "group", "min", "max", "count", "sum"];
|
|
268
|
+
return transformationOptions.some((name) => this.options.has(name));
|
|
269
|
+
}
|
|
151
270
|
has(name) {
|
|
152
271
|
return this.options.has(name);
|
|
153
272
|
}
|
|
@@ -188,12 +307,8 @@ class QueryOptionsCollection {
|
|
|
188
307
|
}
|
|
189
308
|
|
|
190
309
|
|
|
191
|
-
}
|
|
192
|
-
"./src/utilities/arrays.ts"
|
|
193
|
-
/*!*********************************!*\
|
|
194
|
-
!*** ./src/utilities/arrays.ts ***!
|
|
195
|
-
\*********************************/
|
|
196
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
310
|
+
},
|
|
311
|
+
"./src/utilities/arrays.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
197
312
|
__webpack_require__.r(__webpack_exports__);
|
|
198
313
|
__webpack_require__.d(__webpack_exports__, {
|
|
199
314
|
toMap: () => (toMap)
|
|
@@ -209,12 +324,8 @@ const toMap = (data, keySelector) => {
|
|
|
209
324
|
};
|
|
210
325
|
|
|
211
326
|
|
|
212
|
-
}
|
|
213
|
-
"./src/utilities/dates.ts"
|
|
214
|
-
/*!********************************!*\
|
|
215
|
-
!*** ./src/utilities/dates.ts ***!
|
|
216
|
-
\********************************/
|
|
217
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
327
|
+
},
|
|
328
|
+
"./src/utilities/dates.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
218
329
|
__webpack_require__.r(__webpack_exports__);
|
|
219
330
|
__webpack_require__.d(__webpack_exports__, {
|
|
220
331
|
isDate: () => (isDate)
|
|
@@ -230,12 +341,8 @@ const isDate = (data) => {
|
|
|
230
341
|
};
|
|
231
342
|
|
|
232
343
|
|
|
233
|
-
}
|
|
234
|
-
"./src/utilities/dbPluginEventUtils.ts"
|
|
235
|
-
/*!*********************************************!*\
|
|
236
|
-
!*** ./src/utilities/dbPluginEventUtils.ts ***!
|
|
237
|
-
\*********************************************/
|
|
238
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
344
|
+
},
|
|
345
|
+
"./src/utilities/dbPluginEventUtils.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
239
346
|
__webpack_require__.r(__webpack_exports__);
|
|
240
347
|
__webpack_require__.d(__webpack_exports__, {
|
|
241
348
|
toEventArray: () => (toEventArray)
|
|
@@ -266,39 +373,42 @@ const toEventArray = (event) => {
|
|
|
266
373
|
};
|
|
267
374
|
|
|
268
375
|
|
|
269
|
-
}
|
|
270
|
-
"./src/utilities/functions.ts"
|
|
271
|
-
/*!************************************!*\
|
|
272
|
-
!*** ./src/utilities/functions.ts ***!
|
|
273
|
-
\************************************/
|
|
274
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
376
|
+
},
|
|
377
|
+
"./src/utilities/functions.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
275
378
|
__webpack_require__.r(__webpack_exports__);
|
|
276
379
|
__webpack_require__.d(__webpack_exports__, {
|
|
277
380
|
noop: () => (noop)
|
|
278
381
|
});
|
|
279
|
-
const noop = (...
|
|
382
|
+
const noop = (..._args) => { };
|
|
280
383
|
|
|
281
384
|
|
|
282
|
-
}
|
|
283
|
-
"./src/utilities/logger.ts"
|
|
284
|
-
/*!*********************************!*\
|
|
285
|
-
!*** ./src/utilities/logger.ts ***!
|
|
286
|
-
\*********************************/
|
|
287
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
385
|
+
},
|
|
386
|
+
"./src/utilities/logger.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
288
387
|
__webpack_require__.r(__webpack_exports__);
|
|
289
388
|
__webpack_require__.d(__webpack_exports__, {
|
|
290
389
|
logger: () => (logger)
|
|
291
390
|
});
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
391
|
+
/**
|
|
392
|
+
* Enable logging by setting `globalThis.__ROUTIER_DEBUG__ = true` before any routier code runs.
|
|
393
|
+
*/
|
|
394
|
+
const shouldLog = () => {
|
|
395
|
+
if (typeof globalThis !== 'undefined') {
|
|
396
|
+
const g = globalThis;
|
|
397
|
+
if (g.__ROUTIER_DEBUG__ === true)
|
|
398
|
+
return true;
|
|
399
|
+
}
|
|
400
|
+
if (typeof process !== 'undefined' && process.env != null) {
|
|
401
|
+
const debug = process.env.DEBUG;
|
|
402
|
+
if (debug === 'routier' || debug === '*')
|
|
403
|
+
return true;
|
|
404
|
+
const env = "development"?.toLowerCase();
|
|
405
|
+
if (env === 'dev' || env === 'development' || env === 'test')
|
|
406
|
+
return true;
|
|
407
|
+
}
|
|
408
|
+
return false;
|
|
298
409
|
};
|
|
299
|
-
const shouldLog = isDevelopment();
|
|
300
410
|
const tryLog = (type, ...args) => {
|
|
301
|
-
if (shouldLog) {
|
|
411
|
+
if (shouldLog()) {
|
|
302
412
|
console[type](...args);
|
|
303
413
|
}
|
|
304
414
|
};
|
|
@@ -324,12 +434,8 @@ const logger = {
|
|
|
324
434
|
};
|
|
325
435
|
|
|
326
436
|
|
|
327
|
-
}
|
|
328
|
-
"./src/utilities/objects.ts"
|
|
329
|
-
/*!**********************************!*\
|
|
330
|
-
!*** ./src/utilities/objects.ts ***!
|
|
331
|
-
\**********************************/
|
|
332
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
437
|
+
},
|
|
438
|
+
"./src/utilities/objects.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
333
439
|
__webpack_require__.r(__webpack_exports__);
|
|
334
440
|
__webpack_require__.d(__webpack_exports__, {
|
|
335
441
|
cast: () => (cast),
|
|
@@ -343,20 +449,16 @@ function clone(data) {
|
|
|
343
449
|
}
|
|
344
450
|
|
|
345
451
|
|
|
346
|
-
}
|
|
347
|
-
"./src/utilities/queryOptionsCollection.ts"
|
|
348
|
-
/*!*************************************************!*\
|
|
349
|
-
!*** ./src/utilities/queryOptionsCollection.ts ***!
|
|
350
|
-
\*************************************************/
|
|
351
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
452
|
+
},
|
|
453
|
+
"./src/utilities/queryOptionsCollection.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
352
454
|
__webpack_require__.r(__webpack_exports__);
|
|
353
455
|
__webpack_require__.d(__webpack_exports__, {
|
|
354
456
|
combineQueryOptionsCollections: () => (combineQueryOptionsCollections)
|
|
355
457
|
});
|
|
356
|
-
/*
|
|
458
|
+
/* import */ var _plugins_query__rspack_import_0 = __webpack_require__("./src/plugins/query/QueryOptionsCollection.ts");
|
|
357
459
|
|
|
358
460
|
const combineQueryOptionsCollections = (...collections) => {
|
|
359
|
-
const result = new
|
|
461
|
+
const result = new _plugins_query__rspack_import_0.QueryOptionsCollection();
|
|
360
462
|
for (let i = 0, length = collections.length; i < length; i++) {
|
|
361
463
|
const collection = collections[i];
|
|
362
464
|
// Add scoped items first
|
|
@@ -368,12 +470,8 @@ const combineQueryOptionsCollections = (...collections) => {
|
|
|
368
470
|
};
|
|
369
471
|
|
|
370
472
|
|
|
371
|
-
}
|
|
372
|
-
"./src/utilities/replication.ts"
|
|
373
|
-
/*!**************************************!*\
|
|
374
|
-
!*** ./src/utilities/replication.ts ***!
|
|
375
|
-
\**************************************/
|
|
376
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
473
|
+
},
|
|
474
|
+
"./src/utilities/replication.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
377
475
|
__webpack_require__.r(__webpack_exports__);
|
|
378
476
|
__webpack_require__.d(__webpack_exports__, {
|
|
379
477
|
resolveBulkPersistChanges: () => (resolveBulkPersistChanges)
|
|
@@ -396,12 +494,8 @@ const resolveBulkPersistChanges = (event, result, bulkPersistChanges) => {
|
|
|
396
494
|
};
|
|
397
495
|
|
|
398
496
|
|
|
399
|
-
}
|
|
400
|
-
"./src/utilities/runtime.ts"
|
|
401
|
-
/*!**********************************!*\
|
|
402
|
-
!*** ./src/utilities/runtime.ts ***!
|
|
403
|
-
\**********************************/
|
|
404
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
497
|
+
},
|
|
498
|
+
"./src/utilities/runtime.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
405
499
|
__webpack_require__.r(__webpack_exports__);
|
|
406
500
|
__webpack_require__.d(__webpack_exports__, {
|
|
407
501
|
isNodeRuntime: () => (isNodeRuntime)
|
|
@@ -411,12 +505,8 @@ const isNodeRuntime = () => typeof process !== 'undefined' &&
|
|
|
411
505
|
process.versions.node != null;
|
|
412
506
|
|
|
413
507
|
|
|
414
|
-
}
|
|
415
|
-
"./src/utilities/strings.ts"
|
|
416
|
-
/*!**********************************!*\
|
|
417
|
-
!*** ./src/utilities/strings.ts ***!
|
|
418
|
-
\**********************************/
|
|
419
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
508
|
+
},
|
|
509
|
+
"./src/utilities/strings.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
420
510
|
__webpack_require__.r(__webpack_exports__);
|
|
421
511
|
__webpack_require__.d(__webpack_exports__, {
|
|
422
512
|
fastHash: () => (fastHash),
|
|
@@ -577,12 +667,8 @@ function stringifyPlainObject(obj, maxDepth, currentDepth) {
|
|
|
577
667
|
}
|
|
578
668
|
|
|
579
669
|
|
|
580
|
-
}
|
|
581
|
-
"./src/utilities/unsafeCast.ts"
|
|
582
|
-
/*!*************************************!*\
|
|
583
|
-
!*** ./src/utilities/unsafeCast.ts ***!
|
|
584
|
-
\*************************************/
|
|
585
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
670
|
+
},
|
|
671
|
+
"./src/utilities/unsafeCast.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
586
672
|
__webpack_require__.r(__webpack_exports__);
|
|
587
673
|
__webpack_require__.d(__webpack_exports__, {
|
|
588
674
|
unsafeCast: () => (unsafeCast)
|
|
@@ -592,12 +678,8 @@ const unsafeCast = (value) => {
|
|
|
592
678
|
};
|
|
593
679
|
|
|
594
680
|
|
|
595
|
-
}
|
|
596
|
-
"./src/utilities/uuid.ts"
|
|
597
|
-
/*!*******************************!*\
|
|
598
|
-
!*** ./src/utilities/uuid.ts ***!
|
|
599
|
-
\*******************************/
|
|
600
|
-
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
681
|
+
},
|
|
682
|
+
"./src/utilities/uuid.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
601
683
|
__webpack_require__.r(__webpack_exports__);
|
|
602
684
|
__webpack_require__.d(__webpack_exports__, {
|
|
603
685
|
uuid: () => (uuid),
|
|
@@ -654,10 +736,9 @@ const uuidv4 = () => {
|
|
|
654
736
|
};
|
|
655
737
|
|
|
656
738
|
|
|
657
|
-
}
|
|
739
|
+
},
|
|
658
740
|
|
|
659
741
|
});
|
|
660
|
-
/************************************************************************/
|
|
661
742
|
// The module cache
|
|
662
743
|
var __webpack_module_cache__ = {};
|
|
663
744
|
|
|
@@ -681,7 +762,6 @@ return module.exports;
|
|
|
681
762
|
|
|
682
763
|
}
|
|
683
764
|
|
|
684
|
-
/************************************************************************/
|
|
685
765
|
// webpack/runtime/define_property_getters
|
|
686
766
|
(() => {
|
|
687
767
|
__webpack_require__.d = (exports, definition) => {
|
|
@@ -706,45 +786,40 @@ __webpack_require__.r = (exports) => {
|
|
|
706
786
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
707
787
|
};
|
|
708
788
|
})();
|
|
709
|
-
/************************************************************************/
|
|
710
789
|
var __webpack_exports__ = {};
|
|
711
790
|
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
712
791
|
(() => {
|
|
713
|
-
|
|
714
|
-
/*!********************************!*\
|
|
715
|
-
!*** ./src/utilities/index.ts ***!
|
|
716
|
-
\********************************/
|
|
717
792
|
__webpack_require__.r(__webpack_exports__);
|
|
718
793
|
__webpack_require__.d(__webpack_exports__, {
|
|
719
|
-
cast: () => (/* reexport safe */
|
|
720
|
-
clone: () => (/* reexport safe */
|
|
721
|
-
combineQueryOptionsCollections: () => (/* reexport safe */
|
|
722
|
-
fastHash: () => (/* reexport safe */
|
|
723
|
-
hash: () => (/* reexport safe */
|
|
724
|
-
isDate: () => (/* reexport safe */
|
|
725
|
-
isNodeRuntime: () => (/* reexport safe */
|
|
726
|
-
logger: () => (/* reexport safe */
|
|
727
|
-
noop: () => (/* reexport safe */
|
|
728
|
-
resolveBulkPersistChanges: () => (/* reexport safe */
|
|
729
|
-
stringifyObject: () => (/* reexport safe */
|
|
730
|
-
toEventArray: () => (/* reexport safe */
|
|
731
|
-
toMap: () => (/* reexport safe */
|
|
732
|
-
unsafeCast: () => (/* reexport safe */
|
|
733
|
-
uuid: () => (/* reexport safe */
|
|
734
|
-
uuidv4: () => (/* reexport safe */
|
|
794
|
+
cast: () => (/* reexport safe */ _objects__rspack_import_3.cast),
|
|
795
|
+
clone: () => (/* reexport safe */ _objects__rspack_import_3.clone),
|
|
796
|
+
combineQueryOptionsCollections: () => (/* reexport safe */ _queryOptionsCollection__rspack_import_7.combineQueryOptionsCollections),
|
|
797
|
+
fastHash: () => (/* reexport safe */ _strings__rspack_import_1.fastHash),
|
|
798
|
+
hash: () => (/* reexport safe */ _strings__rspack_import_1.hash),
|
|
799
|
+
isDate: () => (/* reexport safe */ _dates__rspack_import_2.isDate),
|
|
800
|
+
isNodeRuntime: () => (/* reexport safe */ _runtime__rspack_import_4.isNodeRuntime),
|
|
801
|
+
logger: () => (/* reexport safe */ _logger__rspack_import_11.logger),
|
|
802
|
+
noop: () => (/* reexport safe */ _functions__rspack_import_9.noop),
|
|
803
|
+
resolveBulkPersistChanges: () => (/* reexport safe */ _replication__rspack_import_6.resolveBulkPersistChanges),
|
|
804
|
+
stringifyObject: () => (/* reexport safe */ _strings__rspack_import_1.stringifyObject),
|
|
805
|
+
toEventArray: () => (/* reexport safe */ _dbPluginEventUtils__rspack_import_8.toEventArray),
|
|
806
|
+
toMap: () => (/* reexport safe */ _arrays__rspack_import_0.toMap),
|
|
807
|
+
unsafeCast: () => (/* reexport safe */ _unsafeCast__rspack_import_10.unsafeCast),
|
|
808
|
+
uuid: () => (/* reexport safe */ _uuid__rspack_import_5.uuid),
|
|
809
|
+
uuidv4: () => (/* reexport safe */ _uuid__rspack_import_5.uuidv4)
|
|
735
810
|
});
|
|
736
|
-
/*
|
|
737
|
-
/*
|
|
738
|
-
/*
|
|
739
|
-
/*
|
|
740
|
-
/*
|
|
741
|
-
/*
|
|
742
|
-
/*
|
|
743
|
-
/*
|
|
744
|
-
/*
|
|
745
|
-
/*
|
|
746
|
-
/*
|
|
747
|
-
/*
|
|
811
|
+
/* import */ var _arrays__rspack_import_0 = __webpack_require__("./src/utilities/arrays.ts");
|
|
812
|
+
/* import */ var _strings__rspack_import_1 = __webpack_require__("./src/utilities/strings.ts");
|
|
813
|
+
/* import */ var _dates__rspack_import_2 = __webpack_require__("./src/utilities/dates.ts");
|
|
814
|
+
/* import */ var _objects__rspack_import_3 = __webpack_require__("./src/utilities/objects.ts");
|
|
815
|
+
/* import */ var _runtime__rspack_import_4 = __webpack_require__("./src/utilities/runtime.ts");
|
|
816
|
+
/* import */ var _uuid__rspack_import_5 = __webpack_require__("./src/utilities/uuid.ts");
|
|
817
|
+
/* import */ var _replication__rspack_import_6 = __webpack_require__("./src/utilities/replication.ts");
|
|
818
|
+
/* import */ var _queryOptionsCollection__rspack_import_7 = __webpack_require__("./src/utilities/queryOptionsCollection.ts");
|
|
819
|
+
/* import */ var _dbPluginEventUtils__rspack_import_8 = __webpack_require__("./src/utilities/dbPluginEventUtils.ts");
|
|
820
|
+
/* import */ var _functions__rspack_import_9 = __webpack_require__("./src/utilities/functions.ts");
|
|
821
|
+
/* import */ var _unsafeCast__rspack_import_10 = __webpack_require__("./src/utilities/unsafeCast.ts");
|
|
822
|
+
/* import */ var _logger__rspack_import_11 = __webpack_require__("./src/utilities/logger.ts");
|
|
748
823
|
|
|
749
824
|
|
|
750
825
|
|