@routier/core 0.0.1-alpha.1 → 0.0.1-alpha.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/dist/assertions/index.d.ts +5 -0
- package/dist/assertions/index.js +131 -0
- package/dist/assertions/index.js.map +1 -0
- package/dist/codegen/SlotPath.d.ts +7 -0
- package/dist/codegen/blocks.d.ts +130 -0
- package/dist/codegen/handlers/CloneHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/CompareHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/DeserializeHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/EnableChangeTrackingHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/EnrichmentHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/FreezeHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/HashHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/HashTypeHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/IdSelectorHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/MergeHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/PrepareHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/SerializeHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/StripHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/clone/CloneObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/clone/CloneValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/compare/CompareObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/compare/CompareValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/deserialize/DeserializeComputedValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/deserialize/DeserializeDateHandler.d.ts +9 -0
- package/dist/codegen/handlers/deserialize/DeserializeFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/deserialize/DeserializeObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/deserialize/DeserializeValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/enableChangeTracking/EnableChangeTrackingObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/enableChangeTracking/EnableChangeTrackingPrimitiveValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentComputedValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentDefaultFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentDefaultValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentNullableObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentObjectIdentityHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentPrimitiveHandler.d.ts +6 -0
- package/dist/codegen/handlers/enrichment/EnrichmentPrimitiveIdentityHandler.d.ts +6 -0
- package/dist/codegen/handlers/freeze/FreezeObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/freeze/FreezePrimitiveValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashComputedValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashDateHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashIdentityHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashKeyHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/hashType/HashTypeValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/idSelector/IdSelectorValueHandler.d.ts +6 -0
- package/{src/codegen/handlers/index.ts → dist/codegen/handlers/index.d.ts} +1 -1
- package/dist/codegen/handlers/merge/MergeComputedValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/merge/MergeDefaultFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/merge/MergeDefaultValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/merge/MergeFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/merge/MergePrimitiveHandler.d.ts +6 -0
- package/dist/codegen/handlers/prepare/PrepareComputedValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/prepare/PrepareFunctionHandler.d.ts +6 -0
- package/dist/codegen/handlers/prepare/PrepareIdentityHandler.d.ts +6 -0
- package/dist/codegen/handlers/prepare/PrepareKeyHandler.d.ts +6 -0
- package/dist/codegen/handlers/prepare/PrepareObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/prepare/PrepareValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/serialize/SerializeDateHandler.d.ts +9 -0
- package/dist/codegen/handlers/serialize/SerializeObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/serialize/SerializeValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/strip/StripIdentityHandler.d.ts +6 -0
- package/dist/codegen/handlers/strip/StripKeyHandler.d.ts +6 -0
- package/dist/codegen/handlers/strip/StripObjectHandler.d.ts +6 -0
- package/dist/codegen/handlers/strip/StripValueHandler.d.ts +6 -0
- package/dist/codegen/handlers/types.d.ts +18 -0
- package/{src/codegen/index.ts → dist/codegen/index.d.ts} +1 -1
- package/dist/codegen/types.d.ts +9 -0
- package/dist/codegen/utils.d.ts +22 -0
- package/dist/collections/Changes.d.ts +51 -0
- package/dist/collections/Changes.test.d.ts +1 -0
- package/dist/collections/IdSet.d.ts +7 -0
- package/dist/collections/MemoryDataCollection.d.ts +22 -0
- package/dist/collections/MemoryDataCollection.test.d.ts +1 -0
- package/dist/collections/SchemaCollection.d.ts +8 -0
- package/dist/collections/TagCollection.d.ts +15 -0
- package/dist/collections/TagCollection.test.d.ts +1 -0
- package/{src/collections/index.ts → dist/collections/index.d.ts} +1 -1
- package/dist/collections/index.js +659 -0
- package/dist/collections/index.js.map +1 -0
- package/dist/errors/SchemaError.d.ts +3 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +90 -0
- package/dist/errors/index.js.map +1 -0
- package/{src/expressions/index.ts → dist/expressions/index.d.ts} +1 -1
- package/{src/expressions/parser.ts → dist/expressions/index.js} +387 -205
- package/dist/expressions/index.js.map +1 -0
- package/dist/expressions/parser.d.ts +4 -0
- package/dist/expressions/parser.test.d.ts +1 -0
- package/{src/expressions/types.ts → dist/expressions/types.d.ts} +42 -99
- package/dist/expressions/utils.d.ts +10 -0
- package/dist/expressions/utils.test.d.ts +1 -0
- package/{src/index.ts → dist/index.d.ts} +1 -1
- package/dist/index.js +8434 -0
- package/dist/index.js.map +1 -0
- package/dist/performance/index.d.ts +5 -0
- package/dist/performance/index.js +65 -0
- package/dist/performance/index.js.map +1 -0
- package/dist/pipeline/SyncronousQueue.d.ts +7 -0
- package/dist/pipeline/SyncronousQueue.test.d.ts +1 -0
- package/dist/pipeline/TrampolinePipeline.d.ts +36 -0
- package/dist/pipeline/TrampolinePipeline.test.d.ts +1 -0
- package/dist/pipeline/index.d.ts +2 -0
- package/{src/pipeline/TrampolinePipeline.ts → dist/pipeline/index.js} +297 -140
- package/dist/pipeline/index.js.map +1 -0
- package/dist/plugins/EphemeralDataPlugin.d.ts +13 -0
- package/dist/plugins/capabilities/DbPluginCapability.d.ts +23 -0
- package/{src/plugins/capabilities/index.ts → dist/plugins/capabilities/index.d.ts} +1 -1
- package/dist/plugins/capabilities/logging/DbPluginLoggingCapability.d.ts +28 -0
- package/dist/plugins/capabilities/logging/index.d.ts +1 -0
- package/{src/plugins/index.ts → dist/plugins/index.d.ts} +1 -1
- package/dist/plugins/index.js +2328 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/query/Query.d.ts +13 -0
- package/dist/plugins/query/QueryOptionsCollection.d.ts +27 -0
- package/dist/plugins/query/QueryOptionsCollection.test.d.ts +1 -0
- package/{src/plugins/query/index.ts → dist/plugins/query/index.d.ts} +1 -1
- package/{src/plugins/query/types.ts → dist/plugins/query/types.d.ts} +29 -20
- package/dist/plugins/replication/OptimisticReplicationDbPlugin.d.ts +21 -0
- package/dist/plugins/replication/ReplicationDbPlugin.d.ts +21 -0
- package/{src/plugins/replication/index.ts → dist/plugins/replication/index.d.ts} +1 -1
- package/{src/plugins/replication/types.ts → dist/plugins/replication/types.d.ts} +1 -2
- package/dist/plugins/translators/DataTranslator.d.ts +18 -0
- package/dist/plugins/translators/JsonTranslator.d.ts +17 -0
- package/dist/plugins/translators/JsonTranslator.test.d.ts +1 -0
- package/dist/plugins/translators/SqlTranslator.d.ts +14 -0
- package/{src/plugins/translators/index.ts → dist/plugins/translators/index.d.ts} +1 -1
- package/{src/plugins/types.ts → dist/plugins/types.d.ts} +11 -26
- package/dist/results/Result.d.ts +29 -0
- package/{src/results/index.ts → dist/results/index.d.ts} +1 -1
- package/dist/results/index.js +192 -0
- package/dist/results/index.js.map +1 -0
- package/{src/results/types.ts → dist/results/types.d.ts} +18 -7
- package/dist/results/utils.d.ts +2 -0
- package/dist/schema/PropertyInfo.d.ts +132 -0
- package/dist/schema/PropertyInfo.test.d.ts +1 -0
- package/dist/schema/SchemaDefinition.d.ts +17 -0
- package/dist/schema/builder.d.ts +17 -0
- package/{src/schema/index.ts → dist/schema/index.d.ts} +1 -1
- package/dist/schema/index.js +4822 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/property/base/SchemaBase.d.ts +23 -0
- package/dist/schema/property/base/index.d.ts +1 -0
- package/dist/schema/property/modifiers/SchemaDefault.d.ts +13 -0
- package/dist/schema/property/modifiers/SchemaDeserialize.d.ts +11 -0
- package/dist/schema/property/modifiers/SchemaDistinct.d.ts +7 -0
- package/dist/schema/property/modifiers/SchemaFrom.d.ts +23 -0
- package/dist/schema/property/modifiers/SchemaIdentity.d.ts +7 -0
- package/dist/schema/property/modifiers/SchemaIndex.d.ts +23 -0
- package/dist/schema/property/modifiers/SchemaKey.d.ts +13 -0
- package/dist/schema/property/modifiers/SchemaNullable.d.ts +9 -0
- package/dist/schema/property/modifiers/SchemaOptional.d.ts +9 -0
- package/dist/schema/property/modifiers/SchemaReadonly.d.ts +15 -0
- package/dist/schema/property/modifiers/SchemaSerialize.d.ts +9 -0
- package/dist/schema/property/modifiers/SchemaTracked.d.ts +7 -0
- package/{src/schema/property/modifiers/index.ts → dist/schema/property/modifiers/index.d.ts} +1 -1
- package/dist/schema/property/types/SchemaArray.d.ts +23 -0
- package/dist/schema/property/types/SchemaBoolean.d.ts +27 -0
- package/dist/schema/property/types/SchemaDate.d.ts +27 -0
- package/dist/schema/property/types/SchemaNumber.d.ts +31 -0
- package/dist/schema/property/types/SchemaObject.d.ts +20 -0
- package/dist/schema/property/types/SchemaString.d.ts +31 -0
- package/{src/schema/property/types/index.ts → dist/schema/property/types/index.d.ts} +1 -1
- package/dist/schema/table/SchemaComputed.d.ts +10 -0
- package/dist/schema/table/SchemaFunction.d.ts +8 -0
- package/{src/schema/table/index.ts → dist/schema/table/index.d.ts} +1 -1
- package/{src/schema/types.ts → dist/schema/types.d.ts} +59 -99
- package/{src/types/index.ts → dist/types/index.d.ts} +1 -2
- package/dist/types/index.js +25 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utilities/arrays.d.ts +1 -0
- package/dist/utilities/arrays.test.d.ts +1 -0
- package/dist/utilities/dates.d.ts +1 -0
- package/dist/utilities/dates.test.d.ts +1 -0
- package/dist/utilities/dbPluginEventUtils.d.ts +14 -0
- package/{src/utilities/index.ts → dist/utilities/index.d.ts} +1 -1
- package/dist/utilities/index.js +554 -0
- package/dist/utilities/index.js.map +1 -0
- package/dist/utilities/objects.d.ts +2 -0
- package/dist/utilities/queryOptionsCollection.d.ts +2 -0
- package/dist/utilities/replication.d.ts +3 -0
- package/dist/utilities/runtime.d.ts +1 -0
- package/dist/utilities/strings.d.ts +1 -0
- package/dist/utilities/types.d.ts +1 -0
- package/dist/utilities/uuid.d.ts +2 -0
- package/package.json +6 -1
- package/readme.md +95 -0
- package/CHANGELOG.md +0 -8
- package/rspack.config.mjs +0 -65
- package/src/assertions/index.ts +0 -37
- package/src/codegen/SlotPath.ts +0 -20
- package/src/codegen/blocks.ts +0 -578
- package/src/codegen/handlers/CloneHandlerBuilder.ts +0 -13
- package/src/codegen/handlers/CompareHandlerBuilder.ts +0 -13
- package/src/codegen/handlers/DeserializeHandlerBuilder.ts +0 -20
- package/src/codegen/handlers/EnableChangeTrackingHandlerBuilder.ts +0 -13
- package/src/codegen/handlers/EnrichmentHandlerBuilder.ts +0 -28
- package/src/codegen/handlers/FreezeHandlerBuilder.ts +0 -13
- package/src/codegen/handlers/HashHandlerBuilder.ts +0 -25
- package/src/codegen/handlers/HashTypeHandlerBuilder.ts +0 -11
- package/src/codegen/handlers/IdSelectorHandlerBuilder.ts +0 -10
- package/src/codegen/handlers/MergeHandlerBuilder.ts +0 -19
- package/src/codegen/handlers/PrepareHandlerBuilder.ts +0 -23
- package/src/codegen/handlers/SerializeHandlerBuilder.ts +0 -15
- package/src/codegen/handlers/StripHandlerBuilder.ts +0 -18
- package/src/codegen/handlers/clone/CloneObjectHandler.ts +0 -29
- package/src/codegen/handlers/clone/CloneValueHandler.ts +0 -33
- package/src/codegen/handlers/compare/CompareObjectHandler.ts +0 -15
- package/src/codegen/handlers/compare/CompareValueHandler.ts +0 -27
- package/src/codegen/handlers/deserialize/DeserializeComputedValueHandler.ts +0 -16
- package/src/codegen/handlers/deserialize/DeserializeDateHandler.ts +0 -45
- package/src/codegen/handlers/deserialize/DeserializeFunctionHandler.ts +0 -16
- package/src/codegen/handlers/deserialize/DeserializeObjectHandler.ts +0 -29
- package/src/codegen/handlers/deserialize/DeserializeValueHandler.ts +0 -33
- package/src/codegen/handlers/enableChangeTracking/EnableChangeTrackingObjectHandler.ts +0 -20
- package/src/codegen/handlers/enableChangeTracking/EnableChangeTrackingPrimitiveValueHandler.ts +0 -15
- package/src/codegen/handlers/enrichment/EnrichmentComputedValueHandler.ts +0 -37
- package/src/codegen/handlers/enrichment/EnrichmentDefaultFunctionHandler.ts +0 -50
- package/src/codegen/handlers/enrichment/EnrichmentDefaultValueHandler.ts +0 -18
- package/src/codegen/handlers/enrichment/EnrichmentFunctionHandler.ts +0 -38
- package/src/codegen/handlers/enrichment/EnrichmentNullableObjectHandler.ts +0 -44
- package/src/codegen/handlers/enrichment/EnrichmentObjectHandler.ts +0 -29
- package/src/codegen/handlers/enrichment/EnrichmentObjectIdentityHandler.ts +0 -16
- package/src/codegen/handlers/enrichment/EnrichmentPrimitiveHandler.ts +0 -13
- package/src/codegen/handlers/enrichment/EnrichmentPrimitiveIdentityHandler.ts +0 -21
- package/src/codegen/handlers/freeze/FreezeObjectHandler.ts +0 -20
- package/src/codegen/handlers/freeze/FreezePrimitiveValueHandler.ts +0 -15
- package/src/codegen/handlers/hash/HashComputedValueHandler.ts +0 -15
- package/src/codegen/handlers/hash/HashDateHandler.ts +0 -26
- package/src/codegen/handlers/hash/HashFunctionHandler.ts +0 -16
- package/src/codegen/handlers/hash/HashIdentityHandler.ts +0 -15
- package/src/codegen/handlers/hash/HashKeyHandler.ts +0 -26
- package/src/codegen/handlers/hash/HashValueHandler.ts +0 -26
- package/src/codegen/handlers/hashType/HashTypeValueHandler.ts +0 -20
- package/src/codegen/handlers/idSelector/IdSelectorValueHandler.ts +0 -28
- package/src/codegen/handlers/merge/MergeComputedValueHandler.ts +0 -37
- package/src/codegen/handlers/merge/MergeDefaultFunctionHandler.ts +0 -40
- package/src/codegen/handlers/merge/MergeDefaultValueHandler.ts +0 -32
- package/src/codegen/handlers/merge/MergeFunctionHandler.ts +0 -16
- package/src/codegen/handlers/merge/MergePrimitiveHandler.ts +0 -21
- package/src/codegen/handlers/prepare/PrepareComputedValueHandler.ts +0 -16
- package/src/codegen/handlers/prepare/PrepareFunctionHandler.ts +0 -16
- package/src/codegen/handlers/prepare/PrepareIdentityHandler.ts +0 -21
- package/src/codegen/handlers/prepare/PrepareKeyHandler.ts +0 -21
- package/src/codegen/handlers/prepare/PrepareObjectHandler.ts +0 -38
- package/src/codegen/handlers/prepare/PrepareValueHandler.ts +0 -36
- package/src/codegen/handlers/serialize/SerializeDateHandler.ts +0 -45
- package/src/codegen/handlers/serialize/SerializeObjectHandler.ts +0 -28
- package/src/codegen/handlers/serialize/SerializeValueHandler.ts +0 -33
- package/src/codegen/handlers/strip/StripIdentityHandler.ts +0 -15
- package/src/codegen/handlers/strip/StripKeyHandler.ts +0 -15
- package/src/codegen/handlers/strip/StripObjectHandler.ts +0 -35
- package/src/codegen/handlers/strip/StripValueHandler.ts +0 -36
- package/src/codegen/handlers/types.ts +0 -119
- package/src/codegen/types.ts +0 -2
- package/src/codegen/utils.ts +0 -74
- package/src/collections/Changes.test.ts +0 -337
- package/src/collections/Changes.ts +0 -177
- package/src/collections/IdSet.ts +0 -28
- package/src/collections/MemoryDataCollection.test.ts +0 -424
- package/src/collections/MemoryDataCollection.ts +0 -134
- package/src/collections/SchemaCollection.ts +0 -22
- package/src/collections/TagCollection.test.ts +0 -443
- package/src/collections/TagCollection.ts +0 -62
- package/src/errors/SchemaError.ts +0 -6
- package/src/errors/index.ts +0 -1
- package/src/expressions/parser.test.ts +0 -913
- package/src/expressions/utils.test.ts +0 -346
- package/src/expressions/utils.ts +0 -59
- package/src/performance/index.ts +0 -26
- package/src/pipeline/SyncronousQueue.test.ts +0 -269
- package/src/pipeline/SyncronousQueue.ts +0 -30
- package/src/pipeline/TrampolinePipeline.test.ts +0 -374
- package/src/pipeline/index.ts +0 -2
- package/src/plugins/EphemeralDataPlugin.ts +0 -132
- package/src/plugins/capabilities/DbPluginCapability.ts +0 -111
- package/src/plugins/capabilities/logging/DbPluginLoggingCapability.ts +0 -261
- package/src/plugins/capabilities/logging/index.ts +0 -1
- package/src/plugins/query/Query.ts +0 -67
- package/src/plugins/query/QueryOptionsCollection.test.ts +0 -86
- package/src/plugins/query/QueryOptionsCollection.ts +0 -154
- package/src/plugins/replication/OptimisticReplicationDbPlugin.ts +0 -202
- package/src/plugins/replication/ReplicationDbPlugin.ts +0 -137
- package/src/plugins/translators/DataTranslator.ts +0 -46
- package/src/plugins/translators/JsonTranslator.test.ts +0 -618
- package/src/plugins/translators/JsonTranslator.ts +0 -211
- package/src/plugins/translators/SqlTranslator.ts +0 -45
- package/src/results/Result.ts +0 -91
- package/src/results/utils.ts +0 -15
- package/src/schema/PropertyInfo.test.ts +0 -479
- package/src/schema/PropertyInfo.ts +0 -374
- package/src/schema/SchemaDefinition.ts +0 -626
- package/src/schema/builder.ts +0 -18
- package/src/schema/property/base/SchemaBase.ts +0 -49
- package/src/schema/property/base/index.ts +0 -1
- package/src/schema/property/modifiers/SchemaDefault.ts +0 -29
- package/src/schema/property/modifiers/SchemaDeserialize.ts +0 -23
- package/src/schema/property/modifiers/SchemaDistinct.ts +0 -14
- package/src/schema/property/modifiers/SchemaFrom.ts +0 -54
- package/src/schema/property/modifiers/SchemaIdentity.ts +0 -13
- package/src/schema/property/modifiers/SchemaIndex.ts +0 -60
- package/src/schema/property/modifiers/SchemaKey.ts +0 -28
- package/src/schema/property/modifiers/SchemaNullable.ts +0 -18
- package/src/schema/property/modifiers/SchemaOptional.ts +0 -19
- package/src/schema/property/modifiers/SchemaReadonly.ts +0 -34
- package/src/schema/property/modifiers/SchemaSerialize.ts +0 -18
- package/src/schema/property/modifiers/SchemaTracked.ts +0 -14
- package/src/schema/property/types/SchemaArray.ts +0 -50
- package/src/schema/property/types/SchemaBoolean.ts +0 -59
- package/src/schema/property/types/SchemaDate.ts +0 -58
- package/src/schema/property/types/SchemaNumber.ts +0 -69
- package/src/schema/property/types/SchemaObject.ts +0 -44
- package/src/schema/property/types/SchemaString.ts +0 -69
- package/src/schema/table/SchemaComputed.ts +0 -20
- package/src/schema/table/SchemaFunction.ts +0 -15
- package/src/utilities/arrays.test.ts +0 -312
- package/src/utilities/arrays.ts +0 -12
- package/src/utilities/dates.test.ts +0 -388
- package/src/utilities/dates.ts +0 -11
- package/src/utilities/dbPluginEventUtils.ts +0 -44
- package/src/utilities/objects.ts +0 -7
- package/src/utilities/queryOptionsCollection.ts +0 -16
- package/src/utilities/replication.ts +0 -23
- package/src/utilities/runtime.ts +0 -3
- package/src/utilities/strings.ts +0 -18
- package/src/utilities/types.ts +0 -1
- package/src/utilities/uuid.ts +0 -56
- package/tsconfig.json +0 -28
- package/vitest.config.ts +0 -11
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
var __webpack_modules__ = ({
|
|
2
|
+
"./src/expressions/utils.ts":
|
|
3
|
+
/*!**********************************!*\
|
|
4
|
+
!*** ./src/expressions/utils.ts ***!
|
|
5
|
+
\**********************************/
|
|
6
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
9
|
+
forEach: () => (forEach),
|
|
10
|
+
getProperties: () => (getProperties),
|
|
11
|
+
isPropertyExpression: () => (isPropertyExpression)
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Extracts all properties referenced in an expression
|
|
15
|
+
* @param expression The expression to analyze
|
|
16
|
+
* @returns Array of PropertyInfo objects referenced in the expression
|
|
17
|
+
*/
|
|
18
|
+
function getProperties(expression) {
|
|
19
|
+
const properties = [];
|
|
20
|
+
function traverse(expr) {
|
|
21
|
+
// If this is a property expression, add it to our collection
|
|
22
|
+
if (expr.type === "property") {
|
|
23
|
+
properties.push(expr.property);
|
|
24
|
+
}
|
|
25
|
+
// Traverse left and right expressions if they exist
|
|
26
|
+
if (expr.left) {
|
|
27
|
+
traverse(expr.left);
|
|
28
|
+
}
|
|
29
|
+
if (expr.right) {
|
|
30
|
+
traverse(expr.right);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
traverse(expression);
|
|
34
|
+
return properties;
|
|
35
|
+
}
|
|
36
|
+
function isPropertyExpression(expression) {
|
|
37
|
+
return expression.type === "property";
|
|
38
|
+
}
|
|
39
|
+
function forEach(expression, callback) {
|
|
40
|
+
function traverse(expr) {
|
|
41
|
+
// Call the callback for this expression
|
|
42
|
+
// If callback returns false, stop traversing
|
|
43
|
+
if (!callback(expr)) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
// Traverse left and right expressions if they exist
|
|
47
|
+
if (expr.left) {
|
|
48
|
+
if (!traverse(expr.left)) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (expr.right) {
|
|
53
|
+
if (!traverse(expr.right)) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
traverse(expression);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
}),
|
|
64
|
+
"./src/plugins/query/QueryOptionsCollection.ts":
|
|
65
|
+
/*!*****************************************************!*\
|
|
66
|
+
!*** ./src/plugins/query/QueryOptionsCollection.ts ***!
|
|
67
|
+
\*****************************************************/
|
|
68
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
69
|
+
__webpack_require__.r(__webpack_exports__);
|
|
70
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
71
|
+
QueryOptionsCollection: () => (QueryOptionsCollection)
|
|
72
|
+
});
|
|
73
|
+
/* ESM import */var _expressions_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../expressions/utils */ "./src/expressions/utils.ts");
|
|
74
|
+
|
|
75
|
+
class QueryOptionsCollection {
|
|
76
|
+
options = new Map();
|
|
77
|
+
nextExecutionTarget = "database";
|
|
78
|
+
nextIndex = 0;
|
|
79
|
+
enumeratedItems = [];
|
|
80
|
+
get items() {
|
|
81
|
+
return this.options;
|
|
82
|
+
}
|
|
83
|
+
get isEmpty() {
|
|
84
|
+
return this.items.size === 0;
|
|
85
|
+
}
|
|
86
|
+
static EMPTY() {
|
|
87
|
+
return new QueryOptionsCollection();
|
|
88
|
+
}
|
|
89
|
+
static isEmpty(options) {
|
|
90
|
+
return options.isEmpty;
|
|
91
|
+
}
|
|
92
|
+
add(name, value) {
|
|
93
|
+
if (name === "map") {
|
|
94
|
+
const mapValue = value;
|
|
95
|
+
// Evaluate the map value to see if we are renaming properties,
|
|
96
|
+
// if we are we need to perform everything after in memory
|
|
97
|
+
if (mapValue.fields.some(x => x.isRename === true) || mapValue.fields.some(x => x.property?.isUnmapped === true)) {
|
|
98
|
+
// Cut over to memory execution since we are renaming a property with .map
|
|
99
|
+
// We do not want to figure out how the new name flows through the entire query
|
|
100
|
+
this.nextExecutionTarget = "memory";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (name === "filter") {
|
|
104
|
+
// Need to check for unmapped properties
|
|
105
|
+
const filterValue = value;
|
|
106
|
+
if (filterValue.expression.type === "not-parsable") {
|
|
107
|
+
this.nextExecutionTarget = "memory";
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
(0,_expressions_utils__WEBPACK_IMPORTED_MODULE_0__.forEach)(filterValue.expression, (expression) => {
|
|
111
|
+
if ((0,_expressions_utils__WEBPACK_IMPORTED_MODULE_0__.isPropertyExpression)(expression) && expression.property.isUnmapped) {
|
|
112
|
+
// Cut over to memory execution, unmapped properties are not in the database and
|
|
113
|
+
// cannot be queried
|
|
114
|
+
this.nextExecutionTarget = "memory";
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
return true;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const item = {
|
|
122
|
+
index: this.nextIndex,
|
|
123
|
+
option: {
|
|
124
|
+
name,
|
|
125
|
+
target: this.nextExecutionTarget,
|
|
126
|
+
value
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
this.nextIndex++;
|
|
130
|
+
const found = this.options.get(name);
|
|
131
|
+
this.options.set(name, [...found ?? [], item]);
|
|
132
|
+
}
|
|
133
|
+
split() {
|
|
134
|
+
this.resolveEnumeration();
|
|
135
|
+
const sortedItems = this.enumeratedItems.toSorted((a, b) => a.index - b.index);
|
|
136
|
+
const memoryQueryOptionsCollection = new QueryOptionsCollection();
|
|
137
|
+
const databaseQueryOptionsCollection = new QueryOptionsCollection();
|
|
138
|
+
for (let i = 0, length = sortedItems.length; i < length; i++) {
|
|
139
|
+
const sortedItem = sortedItems[i];
|
|
140
|
+
if (sortedItem.option.target === "database") {
|
|
141
|
+
databaseQueryOptionsCollection.add(sortedItem.option.name, sortedItem.option.value);
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
memoryQueryOptionsCollection.add(sortedItem.option.name, sortedItem.option.value);
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
memory: memoryQueryOptionsCollection,
|
|
148
|
+
database: databaseQueryOptionsCollection
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
has(name) {
|
|
152
|
+
return this.options.has(name);
|
|
153
|
+
}
|
|
154
|
+
get(name) {
|
|
155
|
+
return this.options.get(name) ?? [];
|
|
156
|
+
}
|
|
157
|
+
getLast(name) {
|
|
158
|
+
this.resolveEnumeration();
|
|
159
|
+
for (let i = this.enumeratedItems.length - 1; i >= 0; i--) {
|
|
160
|
+
const item = this.enumeratedItems[i];
|
|
161
|
+
if (item.option.name === name) {
|
|
162
|
+
return item.option;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
getValues(name) {
|
|
168
|
+
const found = this.options.get(name);
|
|
169
|
+
if (found == null) {
|
|
170
|
+
return [];
|
|
171
|
+
}
|
|
172
|
+
return found.map(w => w.option.value);
|
|
173
|
+
}
|
|
174
|
+
getEnumeration() {
|
|
175
|
+
return [...this.options.values()].flat().toSorted((a, b) => a.index - b.index);
|
|
176
|
+
}
|
|
177
|
+
resolveEnumeration() {
|
|
178
|
+
if (this.enumeratedItems.length != this.nextIndex) {
|
|
179
|
+
this.enumeratedItems = this.getEnumeration();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
forEach(iterator) {
|
|
183
|
+
this.resolveEnumeration();
|
|
184
|
+
for (let i = 0, length = this.enumeratedItems.length; i < length; i++) {
|
|
185
|
+
iterator(this.enumeratedItems[i].option);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
}),
|
|
192
|
+
"./src/utilities/arrays.ts":
|
|
193
|
+
/*!*********************************!*\
|
|
194
|
+
!*** ./src/utilities/arrays.ts ***!
|
|
195
|
+
\*********************************/
|
|
196
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
197
|
+
__webpack_require__.r(__webpack_exports__);
|
|
198
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
199
|
+
toMap: () => (toMap)
|
|
200
|
+
});
|
|
201
|
+
const toMap = (data, keySelector) => {
|
|
202
|
+
const result = new Map();
|
|
203
|
+
for (let i = 0; i < data.length; i++) {
|
|
204
|
+
const item = data[i];
|
|
205
|
+
const key = keySelector(item);
|
|
206
|
+
result.set(key, item);
|
|
207
|
+
}
|
|
208
|
+
return result;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
}),
|
|
213
|
+
"./src/utilities/dates.ts":
|
|
214
|
+
/*!********************************!*\
|
|
215
|
+
!*** ./src/utilities/dates.ts ***!
|
|
216
|
+
\********************************/
|
|
217
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
218
|
+
__webpack_require__.r(__webpack_exports__);
|
|
219
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
220
|
+
isDate: () => (isDate)
|
|
221
|
+
});
|
|
222
|
+
const isDate = (data) => {
|
|
223
|
+
if (data == null) {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
if (typeof data !== "object") {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
return data instanceof Date;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
}),
|
|
234
|
+
"./src/utilities/dbPluginEventUtils.ts":
|
|
235
|
+
/*!*********************************************!*\
|
|
236
|
+
!*** ./src/utilities/dbPluginEventUtils.ts ***!
|
|
237
|
+
\*********************************************/
|
|
238
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
239
|
+
__webpack_require__.r(__webpack_exports__);
|
|
240
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
241
|
+
toEventArray: () => (toEventArray)
|
|
242
|
+
});
|
|
243
|
+
const toEventArray = (event) => {
|
|
244
|
+
const result = [];
|
|
245
|
+
for (const [schemaId, changes] of event.operation) {
|
|
246
|
+
if (changes.hasItems === false) {
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
if (changes.adds.length > 0) {
|
|
250
|
+
result.push(...changes.adds.map(add => {
|
|
251
|
+
return [schemaId, { data: { ...add }, type: "add" }];
|
|
252
|
+
}));
|
|
253
|
+
}
|
|
254
|
+
if (changes.updates.length > 0) {
|
|
255
|
+
result.push(...changes.updates.map(update => {
|
|
256
|
+
return [schemaId, { data: { ...update }, type: "update" }];
|
|
257
|
+
}));
|
|
258
|
+
}
|
|
259
|
+
if (changes.removes.length > 0) {
|
|
260
|
+
result.push(...changes.removes.map(remove => {
|
|
261
|
+
return [schemaId, { data: { ...remove }, type: "remove" }];
|
|
262
|
+
}));
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return result;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
}),
|
|
270
|
+
"./src/utilities/objects.ts":
|
|
271
|
+
/*!**********************************!*\
|
|
272
|
+
!*** ./src/utilities/objects.ts ***!
|
|
273
|
+
\**********************************/
|
|
274
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
275
|
+
__webpack_require__.r(__webpack_exports__);
|
|
276
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
277
|
+
cast: () => (cast),
|
|
278
|
+
clone: () => (clone)
|
|
279
|
+
});
|
|
280
|
+
const cast = (item) => {
|
|
281
|
+
return item;
|
|
282
|
+
};
|
|
283
|
+
function clone(data) {
|
|
284
|
+
return JSON.parse(JSON.stringify(data));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
}),
|
|
289
|
+
"./src/utilities/queryOptionsCollection.ts":
|
|
290
|
+
/*!*************************************************!*\
|
|
291
|
+
!*** ./src/utilities/queryOptionsCollection.ts ***!
|
|
292
|
+
\*************************************************/
|
|
293
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
294
|
+
__webpack_require__.r(__webpack_exports__);
|
|
295
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
296
|
+
combineQueryOptionsCollections: () => (combineQueryOptionsCollections)
|
|
297
|
+
});
|
|
298
|
+
/* ESM import */var _plugins_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../plugins/query */ "./src/plugins/query/QueryOptionsCollection.ts");
|
|
299
|
+
|
|
300
|
+
const combineQueryOptionsCollections = (...collections) => {
|
|
301
|
+
const result = new _plugins_query__WEBPACK_IMPORTED_MODULE_0__.QueryOptionsCollection();
|
|
302
|
+
for (let i = 0, length = collections.length; i < length; i++) {
|
|
303
|
+
const collection = collections[i];
|
|
304
|
+
// Add scoped items first
|
|
305
|
+
collection.forEach(item => {
|
|
306
|
+
result.add(item.name, item.value);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
return result;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
}),
|
|
314
|
+
"./src/utilities/replication.ts":
|
|
315
|
+
/*!**************************************!*\
|
|
316
|
+
!*** ./src/utilities/replication.ts ***!
|
|
317
|
+
\**************************************/
|
|
318
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
319
|
+
__webpack_require__.r(__webpack_exports__);
|
|
320
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
321
|
+
resolveBulkPersistChanges: () => (resolveBulkPersistChanges)
|
|
322
|
+
});
|
|
323
|
+
const resolveBulkPersistChanges = (event, result, bulkPersistChanges) => {
|
|
324
|
+
// make sure we swap the adds here, that way we can make sure other persist events
|
|
325
|
+
// don't take their additions and try to change subsequent calls
|
|
326
|
+
for (const [schemaId, changes] of event.operation) {
|
|
327
|
+
const schemmaBulkPersistResult = result.get(schemaId);
|
|
328
|
+
const schemaBulkPersistChanges = bulkPersistChanges.resolve(schemaId);
|
|
329
|
+
// Set the original removes
|
|
330
|
+
schemaBulkPersistChanges.removes = changes.removes;
|
|
331
|
+
// Set the original updates
|
|
332
|
+
schemaBulkPersistChanges.updates = changes.updates;
|
|
333
|
+
// Take the adds from the result and set them to be persisted
|
|
334
|
+
// in the replicated plugins because the id's are set in the
|
|
335
|
+
// memory data store
|
|
336
|
+
schemaBulkPersistChanges.adds = schemmaBulkPersistResult.adds;
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
}),
|
|
342
|
+
"./src/utilities/runtime.ts":
|
|
343
|
+
/*!**********************************!*\
|
|
344
|
+
!*** ./src/utilities/runtime.ts ***!
|
|
345
|
+
\**********************************/
|
|
346
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
347
|
+
__webpack_require__.r(__webpack_exports__);
|
|
348
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
349
|
+
isNodeRuntime: () => (isNodeRuntime)
|
|
350
|
+
});
|
|
351
|
+
const isNodeRuntime = () => typeof process !== 'undefined' &&
|
|
352
|
+
process.versions != null &&
|
|
353
|
+
process.versions.node != null;
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
}),
|
|
357
|
+
"./src/utilities/strings.ts":
|
|
358
|
+
/*!**********************************!*\
|
|
359
|
+
!*** ./src/utilities/strings.ts ***!
|
|
360
|
+
\**********************************/
|
|
361
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
362
|
+
__webpack_require__.r(__webpack_exports__);
|
|
363
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
364
|
+
hash: () => (hash)
|
|
365
|
+
});
|
|
366
|
+
const hash = (value, seed = 0) => {
|
|
367
|
+
// From Stack Overflow
|
|
368
|
+
// https://stackoverflow.com/a/52171480/3329760
|
|
369
|
+
let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed;
|
|
370
|
+
for (let i = 0, ch; i < value.length; i++) {
|
|
371
|
+
ch = value.charCodeAt(i);
|
|
372
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
373
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
374
|
+
}
|
|
375
|
+
h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507);
|
|
376
|
+
h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
377
|
+
h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507);
|
|
378
|
+
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
379
|
+
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
}),
|
|
384
|
+
"./src/utilities/uuid.ts":
|
|
385
|
+
/*!*******************************!*\
|
|
386
|
+
!*** ./src/utilities/uuid.ts ***!
|
|
387
|
+
\*******************************/
|
|
388
|
+
(function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
389
|
+
__webpack_require__.r(__webpack_exports__);
|
|
390
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
391
|
+
uuid: () => (uuid),
|
|
392
|
+
uuidv4: () => (uuidv4)
|
|
393
|
+
});
|
|
394
|
+
const uuid = (length = 16) => {
|
|
395
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
396
|
+
const charLength = chars.length;
|
|
397
|
+
let result = '';
|
|
398
|
+
for (let i = 0; i < length; i++) {
|
|
399
|
+
result += chars[Math.random() * charLength | 0];
|
|
400
|
+
}
|
|
401
|
+
return result;
|
|
402
|
+
};
|
|
403
|
+
const HEX_CHARS = '0123456789abcdef';
|
|
404
|
+
const UUID_TEMPLATE = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
|
|
405
|
+
const hasCrypto = typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function';
|
|
406
|
+
const uuidv4 = () => {
|
|
407
|
+
let randomBytes = null;
|
|
408
|
+
if (hasCrypto) {
|
|
409
|
+
randomBytes = crypto.getRandomValues(new Uint8Array(16));
|
|
410
|
+
}
|
|
411
|
+
let byteIndex = 0;
|
|
412
|
+
let uuid = '';
|
|
413
|
+
for (let i = 0; i < UUID_TEMPLATE.length; i++) {
|
|
414
|
+
const c = UUID_TEMPLATE[i];
|
|
415
|
+
if (c === '-') {
|
|
416
|
+
uuid += '-';
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
let r;
|
|
420
|
+
if (hasCrypto && randomBytes) {
|
|
421
|
+
// Each byte gives two hex digits (nibbles)
|
|
422
|
+
r =
|
|
423
|
+
(i % 2 === 0
|
|
424
|
+
? randomBytes[byteIndex] >> 4
|
|
425
|
+
: randomBytes[byteIndex++] & 0x0f);
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
r = Math.floor(Math.random() * 16);
|
|
429
|
+
}
|
|
430
|
+
if (c === 'x') {
|
|
431
|
+
uuid += HEX_CHARS[r];
|
|
432
|
+
}
|
|
433
|
+
else if (c === 'y') {
|
|
434
|
+
// Variant bits: 8, 9, A, or B
|
|
435
|
+
uuid += HEX_CHARS[(r & 0x3) | 0x8];
|
|
436
|
+
}
|
|
437
|
+
else if (c === '4') {
|
|
438
|
+
uuid += '4';
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
return uuid;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
}),
|
|
446
|
+
|
|
447
|
+
});
|
|
448
|
+
/************************************************************************/
|
|
449
|
+
// The module cache
|
|
450
|
+
var __webpack_module_cache__ = {};
|
|
451
|
+
|
|
452
|
+
// The require function
|
|
453
|
+
function __webpack_require__(moduleId) {
|
|
454
|
+
|
|
455
|
+
// Check if module is in cache
|
|
456
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
457
|
+
if (cachedModule !== undefined) {
|
|
458
|
+
return cachedModule.exports;
|
|
459
|
+
}
|
|
460
|
+
// Create a new module (and put it into the cache)
|
|
461
|
+
var module = (__webpack_module_cache__[moduleId] = {
|
|
462
|
+
exports: {}
|
|
463
|
+
});
|
|
464
|
+
// Execute the module function
|
|
465
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
466
|
+
|
|
467
|
+
// Return the exports of the module
|
|
468
|
+
return module.exports;
|
|
469
|
+
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/************************************************************************/
|
|
473
|
+
// webpack/runtime/define_property_getters
|
|
474
|
+
(() => {
|
|
475
|
+
__webpack_require__.d = (exports, definition) => {
|
|
476
|
+
for(var key in definition) {
|
|
477
|
+
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
478
|
+
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
})();
|
|
483
|
+
// webpack/runtime/has_own_property
|
|
484
|
+
(() => {
|
|
485
|
+
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
486
|
+
})();
|
|
487
|
+
// webpack/runtime/make_namespace_object
|
|
488
|
+
(() => {
|
|
489
|
+
// define __esModule on exports
|
|
490
|
+
__webpack_require__.r = (exports) => {
|
|
491
|
+
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
492
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
493
|
+
}
|
|
494
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
495
|
+
};
|
|
496
|
+
})();
|
|
497
|
+
/************************************************************************/
|
|
498
|
+
var __webpack_exports__ = {};
|
|
499
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
500
|
+
(() => {
|
|
501
|
+
|
|
502
|
+
/*!********************************!*\
|
|
503
|
+
!*** ./src/utilities/index.ts ***!
|
|
504
|
+
\********************************/
|
|
505
|
+
__webpack_require__.r(__webpack_exports__);
|
|
506
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
507
|
+
cast: () => (/* reexport safe */ _objects__WEBPACK_IMPORTED_MODULE_3__.cast),
|
|
508
|
+
clone: () => (/* reexport safe */ _objects__WEBPACK_IMPORTED_MODULE_3__.clone),
|
|
509
|
+
combineQueryOptionsCollections: () => (/* reexport safe */ _queryOptionsCollection__WEBPACK_IMPORTED_MODULE_7__.combineQueryOptionsCollections),
|
|
510
|
+
hash: () => (/* reexport safe */ _strings__WEBPACK_IMPORTED_MODULE_1__.hash),
|
|
511
|
+
isDate: () => (/* reexport safe */ _dates__WEBPACK_IMPORTED_MODULE_2__.isDate),
|
|
512
|
+
isNodeRuntime: () => (/* reexport safe */ _runtime__WEBPACK_IMPORTED_MODULE_4__.isNodeRuntime),
|
|
513
|
+
resolveBulkPersistChanges: () => (/* reexport safe */ _replication__WEBPACK_IMPORTED_MODULE_6__.resolveBulkPersistChanges),
|
|
514
|
+
toEventArray: () => (/* reexport safe */ _dbPluginEventUtils__WEBPACK_IMPORTED_MODULE_8__.toEventArray),
|
|
515
|
+
toMap: () => (/* reexport safe */ _arrays__WEBPACK_IMPORTED_MODULE_0__.toMap),
|
|
516
|
+
uuid: () => (/* reexport safe */ _uuid__WEBPACK_IMPORTED_MODULE_5__.uuid),
|
|
517
|
+
uuidv4: () => (/* reexport safe */ _uuid__WEBPACK_IMPORTED_MODULE_5__.uuidv4)
|
|
518
|
+
});
|
|
519
|
+
/* ESM import */var _arrays__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrays */ "./src/utilities/arrays.ts");
|
|
520
|
+
/* ESM import */var _strings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./strings */ "./src/utilities/strings.ts");
|
|
521
|
+
/* ESM import */var _dates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dates */ "./src/utilities/dates.ts");
|
|
522
|
+
/* ESM import */var _objects__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./objects */ "./src/utilities/objects.ts");
|
|
523
|
+
/* ESM import */var _runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./runtime */ "./src/utilities/runtime.ts");
|
|
524
|
+
/* ESM import */var _uuid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./uuid */ "./src/utilities/uuid.ts");
|
|
525
|
+
/* ESM import */var _replication__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replication */ "./src/utilities/replication.ts");
|
|
526
|
+
/* ESM import */var _queryOptionsCollection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./queryOptionsCollection */ "./src/utilities/queryOptionsCollection.ts");
|
|
527
|
+
/* ESM import */var _dbPluginEventUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dbPluginEventUtils */ "./src/utilities/dbPluginEventUtils.ts");
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
})();
|
|
540
|
+
|
|
541
|
+
var __webpack_exports__cast = __webpack_exports__.cast;
|
|
542
|
+
var __webpack_exports__clone = __webpack_exports__.clone;
|
|
543
|
+
var __webpack_exports__combineQueryOptionsCollections = __webpack_exports__.combineQueryOptionsCollections;
|
|
544
|
+
var __webpack_exports__hash = __webpack_exports__.hash;
|
|
545
|
+
var __webpack_exports__isDate = __webpack_exports__.isDate;
|
|
546
|
+
var __webpack_exports__isNodeRuntime = __webpack_exports__.isNodeRuntime;
|
|
547
|
+
var __webpack_exports__resolveBulkPersistChanges = __webpack_exports__.resolveBulkPersistChanges;
|
|
548
|
+
var __webpack_exports__toEventArray = __webpack_exports__.toEventArray;
|
|
549
|
+
var __webpack_exports__toMap = __webpack_exports__.toMap;
|
|
550
|
+
var __webpack_exports__uuid = __webpack_exports__.uuid;
|
|
551
|
+
var __webpack_exports__uuidv4 = __webpack_exports__.uuidv4;
|
|
552
|
+
export { __webpack_exports__cast as cast, __webpack_exports__clone as clone, __webpack_exports__combineQueryOptionsCollections as combineQueryOptionsCollections, __webpack_exports__hash as hash, __webpack_exports__isDate as isDate, __webpack_exports__isNodeRuntime as isNodeRuntime, __webpack_exports__resolveBulkPersistChanges as resolveBulkPersistChanges, __webpack_exports__toEventArray as toEventArray, __webpack_exports__toMap as toMap, __webpack_exports__uuid as uuid, __webpack_exports__uuidv4 as uuidv4 };
|
|
553
|
+
|
|
554
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities/index.js","sources":["webpack://@routier/core/./src/expressions/utils.ts","webpack://@routier/core/./src/plugins/query/QueryOptionsCollection.ts","webpack://@routier/core/./src/utilities/arrays.ts","webpack://@routier/core/./src/utilities/dates.ts","webpack://@routier/core/./src/utilities/dbPluginEventUtils.ts","webpack://@routier/core/./src/utilities/objects.ts","webpack://@routier/core/./src/utilities/queryOptionsCollection.ts","webpack://@routier/core/./src/utilities/replication.ts","webpack://@routier/core/./src/utilities/runtime.ts","webpack://@routier/core/./src/utilities/strings.ts","webpack://@routier/core/./src/utilities/uuid.ts","webpack://@routier/core/webpack/runtime/define_property_getters","webpack://@routier/core/webpack/runtime/has_own_property","webpack://@routier/core/webpack/runtime/make_namespace_object","webpack://@routier/core/./src/utilities/index.ts"],"sourcesContent":["import { PropertyInfo } from \"../schema\";\nimport { Expression, PropertyExpression } from \"./types\";\n\n/**\n * Extracts all properties referenced in an expression\n * @param expression The expression to analyze\n * @returns Array of PropertyInfo objects referenced in the expression\n */\nexport function getProperties(expression: Expression): PropertyInfo<any>[] {\n const properties: PropertyInfo<any>[] = [];\n\n function traverse(expr: Expression) {\n // If this is a property expression, add it to our collection\n if (expr.type === \"property\") {\n properties.push((expr as PropertyExpression).property);\n }\n\n // Traverse left and right expressions if they exist\n if (expr.left) {\n traverse(expr.left);\n }\n if (expr.right) {\n traverse(expr.right);\n }\n }\n\n traverse(expression);\n return properties;\n}\n\nexport function isPropertyExpression(expression: Expression): expression is PropertyExpression {\n return expression.type === \"property\";\n}\n\nexport function forEach(expression: Expression, callback: (expression: Expression) => boolean) {\n function traverse(expr: Expression): boolean {\n // Call the callback for this expression\n // If callback returns false, stop traversing\n if (!callback(expr)) {\n return false;\n }\n\n // Traverse left and right expressions if they exist\n if (expr.left) {\n if (!traverse(expr.left)) {\n return false;\n }\n }\n if (expr.right) {\n if (!traverse(expr.right)) {\n return false;\n }\n }\n\n return true;\n }\n\n traverse(expression);\n}","import { forEach, isPropertyExpression } from \"../../expressions/utils\";\nimport { QueryOption, QueryOptionName, QueryOptionExecutionTarget, QueryOptionValueMap } from \"./types\";\n\nexport type QueryCollectionItem<T, K extends QueryOptionName> = { index: number, option: QueryOption<T, K> };\n\nexport class QueryOptionsCollection<T> {\n\n private options: Map<QueryOptionName, QueryCollectionItem<any, any>[]> = new Map<QueryOptionName, QueryCollectionItem<any, any>[]>();\n private nextExecutionTarget: QueryOptionExecutionTarget = \"database\";\n private nextIndex: number = 0;\n private enumeratedItems: QueryCollectionItem<any, any>[] = [];\n\n get items() {\n return this.options;\n }\n\n get isEmpty() {\n return this.items.size === 0;\n }\n\n static EMPTY<R>() {\n return new QueryOptionsCollection<R>();\n }\n\n static isEmpty<T>(options: QueryOptionsCollection<T>) {\n return options.isEmpty;\n }\n\n add<K extends QueryOptionName>(name: K, value: QueryOption<T, K>[\"value\"]) {\n\n if (name === \"map\") {\n const mapValue = value as QueryOptionValueMap<T>[\"map\"];\n\n // Evaluate the map value to see if we are renaming properties, \n // if we are we need to perform everything after in memory\n if (mapValue.fields.some(x => x.isRename === true) || mapValue.fields.some(x => x.property?.isUnmapped === true)) {\n // Cut over to memory execution since we are renaming a property with .map\n // We do not want to figure out how the new name flows through the entire query\n this.nextExecutionTarget = \"memory\";\n }\n }\n\n if (name === \"filter\") {\n // Need to check for unmapped properties\n const filterValue = value as QueryOptionValueMap<T>[\"filter\"];\n\n if (filterValue.expression.type === \"not-parsable\") {\n this.nextExecutionTarget = \"memory\";\n } else {\n forEach(filterValue.expression, (expression) => {\n\n if (isPropertyExpression(expression) && expression.property.isUnmapped) {\n // Cut over to memory execution, unmapped properties are not in the database and\n // cannot be queried\n this.nextExecutionTarget = \"memory\";\n return false;\n }\n\n return true;\n });\n }\n }\n\n const item: QueryCollectionItem<T, K> = {\n index: this.nextIndex,\n option: {\n name,\n target: this.nextExecutionTarget,\n value\n }\n }\n\n this.nextIndex++;\n\n const found = this.options.get(name);\n\n this.options.set(name, [...found ?? [], item]);\n }\n\n split(): { memory: QueryOptionsCollection<T>, database: QueryOptionsCollection<T> } {\n this.resolveEnumeration();\n\n const sortedItems = this.enumeratedItems.toSorted((a, b) => a.index - b.index);\n const memoryQueryOptionsCollection = new QueryOptionsCollection<T>();\n const databaseQueryOptionsCollection = new QueryOptionsCollection<T>();\n\n for (let i = 0, length = sortedItems.length; i < length; i++) {\n const sortedItem = sortedItems[i];\n\n if (sortedItem.option.target === \"database\") {\n databaseQueryOptionsCollection.add(sortedItem.option.name, sortedItem.option.value);\n continue;\n }\n\n memoryQueryOptionsCollection.add(sortedItem.option.name, sortedItem.option.value);\n }\n\n return {\n memory: memoryQueryOptionsCollection,\n database: databaseQueryOptionsCollection\n }\n }\n\n has<K extends QueryOptionName>(name: K): boolean {\n return this.options.has(name);\n }\n\n get<K extends QueryOptionName>(name: K): QueryCollectionItem<T, K>[] {\n return this.options.get(name) ?? [] as QueryCollectionItem<T, K>[];\n }\n\n getLast<K extends QueryOptionName>(name: K): QueryOption<T, K> | null {\n this.resolveEnumeration();\n\n for (let i = this.enumeratedItems.length - 1; i >= 0; i--) {\n const item = this.enumeratedItems[i];\n\n if (item.option.name === name) {\n return item.option;\n }\n }\n\n return null\n }\n\n getValues<K extends QueryOptionName>(name: K): QueryCollectionItem<T, K>[\"option\"][\"value\"][] | undefined {\n\n const found = this.options.get(name);\n\n if (found == null) {\n return [];\n }\n\n return found.map(w => w.option.value) as QueryCollectionItem<T, K>[\"option\"][\"value\"][];\n }\n\n private getEnumeration() {\n return [...this.options.values()].flat().toSorted((a, b) => a.index - b.index);\n }\n\n private resolveEnumeration() {\n if (this.enumeratedItems.length != this.nextIndex) {\n this.enumeratedItems = this.getEnumeration();\n }\n }\n\n forEach(iterator: (item: QueryCollectionItem<T, any>[\"option\"]) => void) {\n this.resolveEnumeration();\n\n for (let i = 0, length = this.enumeratedItems.length; i < length; i++) {\n iterator(this.enumeratedItems[i].option);\n }\n }\n}","export const toMap = <T extends {}>(data: T[], keySelector: (item: T) => T[keyof T] | string) => {\n\n const result = new Map<T[keyof T] | string, T>();\n\n for (let i = 0; i < data.length; i++) {\n const item = data[i];\n const key = keySelector(item);\n result.set(key, item);\n }\n\n return result;\n}\n","export const isDate = (data: unknown): data is Date => {\n if (data == null) {\n return false;\n }\n\n if (typeof data !== \"object\") {\n return false;\n }\n\n return data instanceof Date;\n}","import { InferCreateType, InferType, SchemaId } from \"src/schema\";\nimport { DbPluginBulkPersistEvent, EntityUpdateInfo } from \"../plugins\";\n\ntype DbEvent = {\n type: \"add\",\n data: InferCreateType<unknown>;\n} | {\n type: \"update\",\n data: EntityUpdateInfo<unknown>;\n} | {\n type: \"remove\",\n data: InferType<unknown>;\n}\n\nexport const toEventArray = (event: DbPluginBulkPersistEvent): [SchemaId, DbEvent][] => {\n\n const result: [SchemaId, DbEvent][] = [];\n for (const [schemaId, changes] of event.operation) {\n\n if (changes.hasItems === false) {\n continue;\n }\n\n if (changes.adds.length > 0) {\n result.push(...changes.adds.map(add => {\n return [schemaId as SchemaId, { data: { ...add }, type: \"add\" }] as [SchemaId, DbEvent];\n }));\n }\n\n if (changes.updates.length > 0) {\n result.push(...changes.updates.map(update => {\n return [schemaId as SchemaId, { data: { ...update }, type: \"update\" }] as [SchemaId, DbEvent];\n }));\n }\n\n if (changes.removes.length > 0) {\n result.push(...changes.removes.map(remove => {\n return [schemaId as SchemaId, { data: { ...remove }, type: \"remove\" }] as [SchemaId, DbEvent];\n }));\n }\n }\n\n return result\n}","export const cast = <TIn, TOut>(item: TIn) => {\n return item as unknown as TOut;\n}\n\nexport function clone<T extends {}>(data: T): T {\n return JSON.parse(JSON.stringify(data)) as T;\n}","import { QueryOptionsCollection } from \"../plugins/query\";\n\nexport const combineQueryOptionsCollections = <T>(...collections: QueryOptionsCollection<T>[]) => {\n const result = new QueryOptionsCollection<T>();\n\n for (let i = 0, length = collections.length; i < length; i++) {\n const collection = collections[i];\n\n // Add scoped items first\n collection.forEach(item => {\n result.add(item.name, item.value);\n });\n }\n\n return result;\n}","import { BulkPersistResult, BulkPersistChanges } from \"../collections\";\nimport { DbPluginBulkPersistEvent } from \"../plugins\";\n\nexport const resolveBulkPersistChanges = (event: DbPluginBulkPersistEvent, result: BulkPersistResult, bulkPersistChanges: BulkPersistChanges) => {\n // make sure we swap the adds here, that way we can make sure other persist events\n // don't take their additions and try to change subsequent calls\n for (const [schemaId, changes] of event.operation) {\n\n const schemmaBulkPersistResult = result.get(schemaId);\n const schemaBulkPersistChanges = bulkPersistChanges.resolve(schemaId);\n\n // Set the original removes\n schemaBulkPersistChanges.removes = changes.removes;\n\n // Set the original updates\n schemaBulkPersistChanges.updates = changes.updates;\n\n // Take the adds from the result and set them to be persisted\n // in the replicated plugins because the id's are set in the \n // memory data store\n schemaBulkPersistChanges.adds = schemmaBulkPersistResult.adds;\n }\n}","export const isNodeRuntime = () => typeof process !== 'undefined' &&\n process.versions != null &&\n process.versions.node != null;","export const hash = (value: string, seed: number = 0) => {\n // From Stack Overflow\n // https://stackoverflow.com/a/52171480/3329760\n let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed;\n\n for (let i = 0, ch: number; i < value.length; i++) {\n ch = value.charCodeAt(i);\n h1 = Math.imul(h1 ^ ch, 2654435761);\n h2 = Math.imul(h2 ^ ch, 1597334677);\n }\n\n h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507);\n h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);\n h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507);\n h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);\n\n return 4294967296 * (2097151 & h2) + (h1 >>> 0);\n}","export const uuid = (length: number = 16): string => {\n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n const charLength = chars.length;\n let result = '';\n\n for (let i = 0; i < length; i++) {\n result += chars[Math.random() * charLength | 0];\n }\n return result;\n}\n\nconst HEX_CHARS = '0123456789abcdef';\nconst UUID_TEMPLATE = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n\nconst hasCrypto =\n typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function';\n\nexport const uuidv4 = (): string => {\n let randomBytes: Uint8Array | null = null;\n if (hasCrypto) {\n randomBytes = crypto.getRandomValues(new Uint8Array(16));\n }\n\n let byteIndex = 0;\n let uuid = '';\n\n for (let i = 0; i < UUID_TEMPLATE.length; i++) {\n const c = UUID_TEMPLATE[i];\n if (c === '-') {\n uuid += '-';\n continue;\n }\n\n let r: number;\n if (hasCrypto && randomBytes) {\n // Each byte gives two hex digits (nibbles)\n r =\n (i % 2 === 0\n ? randomBytes[byteIndex] >> 4\n : randomBytes[byteIndex++] & 0x0f);\n } else {\n r = Math.floor(Math.random() * 16);\n }\n\n if (c === 'x') {\n uuid += HEX_CHARS[r];\n } else if (c === 'y') {\n // Variant bits: 8, 9, A, or B\n uuid += HEX_CHARS[(r & 0x3) | 0x8];\n } else if (c === '4') {\n uuid += '4';\n }\n }\n\n return uuid;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export * from './arrays';\nexport * from './strings';\nexport * from './dates';\nexport * from './objects';\nexport * from './runtime';\nexport * from './uuid';\nexport * from './replication';\nexport * from './types';\nexport * from './queryOptionsCollection';\nexport * from './dbPluginEventUtils';"],"names":[],"mappings":";;;;;;;;;;;;AAGA;;;;GAIG;AACI,SAAS,aAAa,CAAC,UAAsB;IAChD,MAAM,UAAU,GAAwB,EAAE,CAAC;IAE3C,SAAS,QAAQ,CAAC,IAAgB;QAC9B,6DAA6D;QAC7D,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC3B,UAAU,CAAC,IAAI,CAAE,IAA2B,CAAC,QAAQ,CAAC,CAAC;QAC3D,CAAC;QAED,oDAAoD;QACpD,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrB,OAAO,UAAU,CAAC;AACtB,CAAC;AAEM,SAAS,oBAAoB,CAAC,UAAsB;IACvD,OAAO,UAAU,CAAC,IAAI,KAAK,UAAU,CAAC;AAC1C,CAAC;AAEM,SAAS,O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,CAAC,SAAS,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACJ,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACvC,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YACZ,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;aAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YACnB,8BAA8B;YAC9B,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;QACvC,CAAC;aAAM,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YACnB,IAAI,IAAI,GAAG,CAAC;QAChB,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvDF;AACA;AACA;AACA,kDAAkD,wCAAwC;AAC1F;AACA;AACA;;;;ACNA;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNyB;AACC;AACF;AACE;AACA;AACH;AACO;AACN;AACiB;AACJ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BulkPersistResult, BulkPersistChanges } from "../collections";
|
|
2
|
+
import { DbPluginBulkPersistEvent } from "../plugins";
|
|
3
|
+
export declare const resolveBulkPersistChanges: (event: DbPluginBulkPersistEvent, result: BulkPersistResult, bulkPersistChanges: BulkPersistChanges) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isNodeRuntime: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hash: (value: string, seed?: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UnknownRecord = Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routier/core",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
10
15
|
"exports": {
|
|
11
16
|
".": "./dist/index.js",
|
|
12
17
|
"./utilities": "./dist/utilities/index.js",
|