@routier/core 0.0.1-alpha.2 → 0.0.1-alpha.3
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/collections/ReadonlySchemaCollection.d.ts +17 -0
- package/dist/collections/SchemaCollection.d.ts +5 -3
- package/dist/collections/index.d.ts +1 -0
- package/dist/collections/index.js +67 -9
- package/dist/collections/index.js.map +1 -1
- package/dist/expressions/parser.d.ts +1 -1
- package/dist/index.js +271 -116
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.js +7 -3
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/types.d.ts +2 -0
- package/dist/schema/communication/broadcast.d.ts +11 -0
- package/dist/schema/index.js +211 -104
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/types.d.ts +2 -2
- package/dist/utilities/functions.d.ts +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.js +18 -1
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/plugins/index.js
CHANGED
|
@@ -1509,6 +1509,7 @@ class OptimisticReplicationDbPlugin {
|
|
|
1509
1509
|
sourcePlugin.query({
|
|
1510
1510
|
id: (0,_utilities__WEBPACK_IMPORTED_MODULE_0__.uuid)(8),
|
|
1511
1511
|
schemas: event.schemas,
|
|
1512
|
+
source: "collection",
|
|
1512
1513
|
// Select All Data
|
|
1513
1514
|
operation: _query__WEBPACK_IMPORTED_MODULE_1__.Query.EMPTY(event.operation.schema)
|
|
1514
1515
|
}, (sourceResult) => {
|
|
@@ -1531,7 +1532,8 @@ class OptimisticReplicationDbPlugin {
|
|
|
1531
1532
|
readPlugin.bulkPersist({
|
|
1532
1533
|
id: (0,_utilities__WEBPACK_IMPORTED_MODULE_0__.uuid)(8),
|
|
1533
1534
|
schemas: event.schemas,
|
|
1534
|
-
operation: changesCollection
|
|
1535
|
+
operation: changesCollection,
|
|
1536
|
+
source: "collection",
|
|
1535
1537
|
}, (readPersistResult) => {
|
|
1536
1538
|
if (readPersistResult.ok === _results__WEBPACK_IMPORTED_MODULE_2__.Result.ERROR) {
|
|
1537
1539
|
done(readPersistResult);
|
|
@@ -1585,7 +1587,8 @@ class OptimisticReplicationDbPlugin {
|
|
|
1585
1587
|
this.plugins.read.bulkPersist({
|
|
1586
1588
|
id: (0,_utilities__WEBPACK_IMPORTED_MODULE_0__.uuid)(8),
|
|
1587
1589
|
operation: event.operation,
|
|
1588
|
-
schemas: event.schemas
|
|
1590
|
+
schemas: event.schemas,
|
|
1591
|
+
source: "data-store",
|
|
1589
1592
|
}, (r) => {
|
|
1590
1593
|
if (r.ok !== _results__WEBPACK_IMPORTED_MODULE_2__.Result.SUCCESS) {
|
|
1591
1594
|
done(r);
|
|
@@ -1604,7 +1607,8 @@ class OptimisticReplicationDbPlugin {
|
|
|
1604
1607
|
plugin.bulkPersist({
|
|
1605
1608
|
id: (0,_utilities__WEBPACK_IMPORTED_MODULE_0__.uuid)(8),
|
|
1606
1609
|
operation: optimisticBulkPersistChanges,
|
|
1607
|
-
schemas: event.schemas
|
|
1610
|
+
schemas: event.schemas,
|
|
1611
|
+
source: "data-store",
|
|
1608
1612
|
}, (r) => {
|
|
1609
1613
|
if (r.ok === _results__WEBPACK_IMPORTED_MODULE_2__.Result.ERROR) {
|
|
1610
1614
|
d(r);
|