@salesforce/lds-runtime-mobile 1.237.0 → 1.238.0
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/main.js +19 -7
- package/package.json +1 -1
- package/sfdc/main.js +19 -7
package/dist/main.js
CHANGED
|
@@ -15456,10 +15456,17 @@ class NimbusSqliteStore {
|
|
|
15456
15456
|
}
|
|
15457
15457
|
setMetadata(entries, segment) {
|
|
15458
15458
|
const table = this.getTable(segment);
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15459
|
+
let operation;
|
|
15460
|
+
if (this.plugin.supportsBatchUpdates === undefined ||
|
|
15461
|
+
this.plugin.supportsBatchUpdates() === false) {
|
|
15462
|
+
operation = table.entriesToUpsertOperations(entries, segment);
|
|
15463
|
+
// manually set the context type on the upsert so notifications do not notify rebuilds without
|
|
15464
|
+
// plugin updates
|
|
15465
|
+
operation.context.type = 'setMetadata';
|
|
15466
|
+
}
|
|
15467
|
+
else {
|
|
15468
|
+
operation = table.metadataToUpdateOperations(entries, segment);
|
|
15469
|
+
}
|
|
15463
15470
|
return this.batchOperationAsPromise([operation]);
|
|
15464
15471
|
}
|
|
15465
15472
|
batchOperations(operations) {
|
|
@@ -15472,7 +15479,11 @@ class NimbusSqliteStore {
|
|
|
15472
15479
|
const table = this.getTable(cur.segment);
|
|
15473
15480
|
if (this.plugin.supportsBatchUpdates === undefined ||
|
|
15474
15481
|
this.plugin.supportsBatchUpdates() === false) {
|
|
15475
|
-
|
|
15482
|
+
const upsert = table.entriesToUpsertOperations(cur.entries, cur.segment);
|
|
15483
|
+
// manually set the context type on the upsert so notifications do not notify rebuilds without
|
|
15484
|
+
// plugin updates
|
|
15485
|
+
upsert.context.type = 'setMetadata';
|
|
15486
|
+
acc.push(upsert);
|
|
15476
15487
|
}
|
|
15477
15488
|
else {
|
|
15478
15489
|
acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
|
|
@@ -15498,7 +15509,8 @@ class NimbusSqliteStore {
|
|
|
15498
15509
|
// if our context contains a type then set that as our main level type
|
|
15499
15510
|
// allows us in the future of updates to specify the segment change happening
|
|
15500
15511
|
// example being update call on metadata only or updating data
|
|
15501
|
-
if (c.type === 'update'
|
|
15512
|
+
if ((c.type === 'update' || c.type === 'upsert') &&
|
|
15513
|
+
c.context.type !== undefined) {
|
|
15502
15514
|
type = c.context.type;
|
|
15503
15515
|
}
|
|
15504
15516
|
return {
|
|
@@ -17047,4 +17059,4 @@ register({
|
|
|
17047
17059
|
});
|
|
17048
17060
|
|
|
17049
17061
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
17050
|
-
// version: 1.
|
|
17062
|
+
// version: 1.238.0-1140a1f61
|
package/package.json
CHANGED
package/sfdc/main.js
CHANGED
|
@@ -15456,10 +15456,17 @@ class NimbusSqliteStore {
|
|
|
15456
15456
|
}
|
|
15457
15457
|
setMetadata(entries, segment) {
|
|
15458
15458
|
const table = this.getTable(segment);
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15459
|
+
let operation;
|
|
15460
|
+
if (this.plugin.supportsBatchUpdates === undefined ||
|
|
15461
|
+
this.plugin.supportsBatchUpdates() === false) {
|
|
15462
|
+
operation = table.entriesToUpsertOperations(entries, segment);
|
|
15463
|
+
// manually set the context type on the upsert so notifications do not notify rebuilds without
|
|
15464
|
+
// plugin updates
|
|
15465
|
+
operation.context.type = 'setMetadata';
|
|
15466
|
+
}
|
|
15467
|
+
else {
|
|
15468
|
+
operation = table.metadataToUpdateOperations(entries, segment);
|
|
15469
|
+
}
|
|
15463
15470
|
return this.batchOperationAsPromise([operation]);
|
|
15464
15471
|
}
|
|
15465
15472
|
batchOperations(operations) {
|
|
@@ -15472,7 +15479,11 @@ class NimbusSqliteStore {
|
|
|
15472
15479
|
const table = this.getTable(cur.segment);
|
|
15473
15480
|
if (this.plugin.supportsBatchUpdates === undefined ||
|
|
15474
15481
|
this.plugin.supportsBatchUpdates() === false) {
|
|
15475
|
-
|
|
15482
|
+
const upsert = table.entriesToUpsertOperations(cur.entries, cur.segment);
|
|
15483
|
+
// manually set the context type on the upsert so notifications do not notify rebuilds without
|
|
15484
|
+
// plugin updates
|
|
15485
|
+
upsert.context.type = 'setMetadata';
|
|
15486
|
+
acc.push(upsert);
|
|
15476
15487
|
}
|
|
15477
15488
|
else {
|
|
15478
15489
|
acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
|
|
@@ -15498,7 +15509,8 @@ class NimbusSqliteStore {
|
|
|
15498
15509
|
// if our context contains a type then set that as our main level type
|
|
15499
15510
|
// allows us in the future of updates to specify the segment change happening
|
|
15500
15511
|
// example being update call on metadata only or updating data
|
|
15501
|
-
if (c.type === 'update'
|
|
15512
|
+
if ((c.type === 'update' || c.type === 'upsert') &&
|
|
15513
|
+
c.context.type !== undefined) {
|
|
15502
15514
|
type = c.context.type;
|
|
15503
15515
|
}
|
|
15504
15516
|
return {
|
|
@@ -17047,4 +17059,4 @@ register({
|
|
|
17047
17059
|
});
|
|
17048
17060
|
|
|
17049
17061
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
17050
|
-
// version: 1.
|
|
17062
|
+
// version: 1.238.0-1140a1f61
|