@salesforce/lds-worker-api 1.309.0-dev14 → 1.309.0-dev15
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.
|
@@ -1077,4 +1077,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1080
|
-
// version: 1.309.0-
|
|
1080
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.309.0-
|
|
4268
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
4269
4269
|
|
|
4270
4270
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4271
4271
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15764,7 +15764,7 @@ function gql(literals, ...subs) {
|
|
|
15764
15764
|
}
|
|
15765
15765
|
return superResult;
|
|
15766
15766
|
}
|
|
15767
|
-
// version: 1.309.0-
|
|
15767
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
15768
15768
|
|
|
15769
15769
|
function unwrap(data) {
|
|
15770
15770
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16705,7 +16705,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16705
16705
|
const { apiFamily, name } = metadata;
|
|
16706
16706
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16707
16707
|
}
|
|
16708
|
-
// version: 1.309.0-
|
|
16708
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
16709
16709
|
|
|
16710
16710
|
/**
|
|
16711
16711
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44812,7 +44812,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44812
44812
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44813
44813
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44814
44814
|
});
|
|
44815
|
-
// version: 1.309.0-
|
|
44815
|
+
// version: 1.309.0-dev15-880a224b78
|
|
44816
44816
|
|
|
44817
44817
|
var ldsIdempotencyWriteDisabled = {
|
|
44818
44818
|
isOpen: function (e) {
|
|
@@ -51160,6 +51160,14 @@ class AbstractResourceRequestActionHandler {
|
|
|
51160
51160
|
}
|
|
51161
51161
|
}
|
|
51162
51162
|
}
|
|
51163
|
+
if (response.status === HttpStatusCode$1.BadRequest &&
|
|
51164
|
+
this.hasIdempotencySupport() &&
|
|
51165
|
+
updatedAction.data !== undefined &&
|
|
51166
|
+
updatedAction.data.headers !== undefined &&
|
|
51167
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] !== undefined) {
|
|
51168
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
51169
|
+
actionDataChanged = true;
|
|
51170
|
+
}
|
|
51163
51171
|
if (this.isBackdatingEnabled &&
|
|
51164
51172
|
response.status === HttpStatusCode$1.BadRequest &&
|
|
51165
51173
|
this.isBackdatingError(response.body, action)) {
|
|
@@ -51168,10 +51176,6 @@ class AbstractResourceRequestActionHandler {
|
|
|
51168
51176
|
...updatedAction.data.body.fields,
|
|
51169
51177
|
LastModifiedDate: new Date(updatedAction.timestamp).toISOString(),
|
|
51170
51178
|
};
|
|
51171
|
-
if (this.hasIdempotencySupport() &&
|
|
51172
|
-
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY]) {
|
|
51173
|
-
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
51174
|
-
}
|
|
51175
51179
|
shouldRetry = true;
|
|
51176
51180
|
actionDataChanged = true;
|
|
51177
51181
|
}
|
|
@@ -64092,7 +64096,7 @@ register$1({
|
|
|
64092
64096
|
id: '@salesforce/lds-network-adapter',
|
|
64093
64097
|
instrument: instrument$2,
|
|
64094
64098
|
});
|
|
64095
|
-
// version: 1.309.0-
|
|
64099
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
64096
64100
|
|
|
64097
64101
|
const { create: create$3, keys: keys$3 } = Object;
|
|
64098
64102
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -84128,7 +84132,7 @@ register$1({
|
|
|
84128
84132
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
84129
84133
|
instrument: instrument$1,
|
|
84130
84134
|
});
|
|
84131
|
-
// version: 1.309.0-
|
|
84135
|
+
// version: 1.309.0-dev15-880a224b78
|
|
84132
84136
|
|
|
84133
84137
|
// On core the unstable adapters are re-exported with different names,
|
|
84134
84138
|
// we want to match them here.
|
|
@@ -86384,7 +86388,7 @@ withDefaultLuvio((luvio) => {
|
|
|
86384
86388
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
86385
86389
|
graphQLImperative = ldsAdapter;
|
|
86386
86390
|
});
|
|
86387
|
-
// version: 1.309.0-
|
|
86391
|
+
// version: 1.309.0-dev15-880a224b78
|
|
86388
86392
|
|
|
86389
86393
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
86390
86394
|
__proto__: null,
|
|
@@ -87125,7 +87129,7 @@ const callbacks$1 = [];
|
|
|
87125
87129
|
function register(r) {
|
|
87126
87130
|
callbacks$1.forEach((callback) => callback(r));
|
|
87127
87131
|
}
|
|
87128
|
-
// version: 1.309.0-
|
|
87132
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
87129
87133
|
|
|
87130
87134
|
/**
|
|
87131
87135
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -92087,4 +92091,4 @@ const { luvio } = getRuntime();
|
|
|
92087
92091
|
setDefaultLuvio({ luvio });
|
|
92088
92092
|
|
|
92089
92093
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
92090
|
-
// version: 1.309.0-
|
|
92094
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.309.0-
|
|
4274
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
4275
4275
|
|
|
4276
4276
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4277
4277
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15770,7 +15770,7 @@
|
|
|
15770
15770
|
}
|
|
15771
15771
|
return superResult;
|
|
15772
15772
|
}
|
|
15773
|
-
// version: 1.309.0-
|
|
15773
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
15774
15774
|
|
|
15775
15775
|
function unwrap(data) {
|
|
15776
15776
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16711,7 +16711,7 @@
|
|
|
16711
16711
|
const { apiFamily, name } = metadata;
|
|
16712
16712
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16713
16713
|
}
|
|
16714
|
-
// version: 1.309.0-
|
|
16714
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
16715
16715
|
|
|
16716
16716
|
/**
|
|
16717
16717
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44818,7 +44818,7 @@
|
|
|
44818
44818
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44819
44819
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44820
44820
|
});
|
|
44821
|
-
// version: 1.309.0-
|
|
44821
|
+
// version: 1.309.0-dev15-880a224b78
|
|
44822
44822
|
|
|
44823
44823
|
var ldsIdempotencyWriteDisabled = {
|
|
44824
44824
|
isOpen: function (e) {
|
|
@@ -51166,6 +51166,14 @@
|
|
|
51166
51166
|
}
|
|
51167
51167
|
}
|
|
51168
51168
|
}
|
|
51169
|
+
if (response.status === HttpStatusCode$1.BadRequest &&
|
|
51170
|
+
this.hasIdempotencySupport() &&
|
|
51171
|
+
updatedAction.data !== undefined &&
|
|
51172
|
+
updatedAction.data.headers !== undefined &&
|
|
51173
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] !== undefined) {
|
|
51174
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
51175
|
+
actionDataChanged = true;
|
|
51176
|
+
}
|
|
51169
51177
|
if (this.isBackdatingEnabled &&
|
|
51170
51178
|
response.status === HttpStatusCode$1.BadRequest &&
|
|
51171
51179
|
this.isBackdatingError(response.body, action)) {
|
|
@@ -51174,10 +51182,6 @@
|
|
|
51174
51182
|
...updatedAction.data.body.fields,
|
|
51175
51183
|
LastModifiedDate: new Date(updatedAction.timestamp).toISOString(),
|
|
51176
51184
|
};
|
|
51177
|
-
if (this.hasIdempotencySupport() &&
|
|
51178
|
-
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY]) {
|
|
51179
|
-
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
51180
|
-
}
|
|
51181
51185
|
shouldRetry = true;
|
|
51182
51186
|
actionDataChanged = true;
|
|
51183
51187
|
}
|
|
@@ -64098,7 +64102,7 @@
|
|
|
64098
64102
|
id: '@salesforce/lds-network-adapter',
|
|
64099
64103
|
instrument: instrument$2,
|
|
64100
64104
|
});
|
|
64101
|
-
// version: 1.309.0-
|
|
64105
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
64102
64106
|
|
|
64103
64107
|
const { create: create$3, keys: keys$3 } = Object;
|
|
64104
64108
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -84134,7 +84138,7 @@
|
|
|
84134
84138
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
84135
84139
|
instrument: instrument$1,
|
|
84136
84140
|
});
|
|
84137
|
-
// version: 1.309.0-
|
|
84141
|
+
// version: 1.309.0-dev15-880a224b78
|
|
84138
84142
|
|
|
84139
84143
|
// On core the unstable adapters are re-exported with different names,
|
|
84140
84144
|
// we want to match them here.
|
|
@@ -86390,7 +86394,7 @@
|
|
|
86390
86394
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
86391
86395
|
graphQLImperative = ldsAdapter;
|
|
86392
86396
|
});
|
|
86393
|
-
// version: 1.309.0-
|
|
86397
|
+
// version: 1.309.0-dev15-880a224b78
|
|
86394
86398
|
|
|
86395
86399
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
86396
86400
|
__proto__: null,
|
|
@@ -87131,7 +87135,7 @@
|
|
|
87131
87135
|
function register(r) {
|
|
87132
87136
|
callbacks$1.forEach((callback) => callback(r));
|
|
87133
87137
|
}
|
|
87134
|
-
// version: 1.309.0-
|
|
87138
|
+
// version: 1.309.0-dev15-f211d80f81
|
|
87135
87139
|
|
|
87136
87140
|
/**
|
|
87137
87141
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -92112,4 +92116,4 @@
|
|
|
92112
92116
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
92113
92117
|
|
|
92114
92118
|
}));
|
|
92115
|
-
// version: 1.309.0-
|
|
92119
|
+
// version: 1.309.0-dev15-f211d80f81
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.309.0-
|
|
3
|
+
"version": "1.309.0-dev15",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.309.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.309.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.309.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.309.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.309.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.309.0-
|
|
44
|
-
"@salesforce/lds-priming": "^1.309.0-
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.309.0-
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.309.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.309.0-dev15",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.309.0-dev15",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.309.0-dev15",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.309.0-dev15",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.309.0-dev15",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.309.0-dev15",
|
|
44
|
+
"@salesforce/lds-priming": "^1.309.0-dev15",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.309.0-dev15",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.309.0-dev15",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|