@salesforce/lds-worker-api 1.270.1 → 1.271.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.
|
@@ -1034,4 +1034,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1037
|
-
// version: 1.
|
|
1037
|
+
// version: 1.271.0-b5964d6f9
|
|
@@ -4140,7 +4140,7 @@ function withDefaultLuvio(callback) {
|
|
|
4140
4140
|
}
|
|
4141
4141
|
callbacks.push(callback);
|
|
4142
4142
|
}
|
|
4143
|
-
// version: 1.
|
|
4143
|
+
// version: 1.271.0-b5964d6f9
|
|
4144
4144
|
|
|
4145
4145
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4146
4146
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15648,7 +15648,7 @@ function gql(literals, ...subs) {
|
|
|
15648
15648
|
}
|
|
15649
15649
|
return superResult;
|
|
15650
15650
|
}
|
|
15651
|
-
// version: 1.
|
|
15651
|
+
// version: 1.271.0-b5964d6f9
|
|
15652
15652
|
|
|
15653
15653
|
function unwrap(data) {
|
|
15654
15654
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16573,7 +16573,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16573
16573
|
const { apiFamily, name } = metadata;
|
|
16574
16574
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16575
16575
|
}
|
|
16576
|
-
// version: 1.
|
|
16576
|
+
// version: 1.271.0-b5964d6f9
|
|
16577
16577
|
|
|
16578
16578
|
/**
|
|
16579
16579
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -21017,17 +21017,19 @@ function onResourceError(luvio, config, key, err) {
|
|
|
21017
21017
|
function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
|
|
21018
21018
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
21019
21019
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
21020
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21021
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
21022
|
+
// record request. The fulfill logic sends the same network response, so
|
|
21023
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21024
|
+
//
|
|
21025
|
+
// W-14381091 - Ensure hoisting the response body happens prior to
|
|
21026
|
+
// calling `luvio.handleSuccessResponse`, since both arguments capture
|
|
21027
|
+
// the response.
|
|
21028
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
21029
|
+
response.body = response.body.results[0]
|
|
21030
|
+
.result;
|
|
21031
|
+
}
|
|
21020
21032
|
return luvio.handleSuccessResponse(() => {
|
|
21021
|
-
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21022
|
-
// Komaci - a batch record request with a single record followed by a single
|
|
21023
|
-
// record request. The fulfill logic sends the same network response, so
|
|
21024
|
-
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21025
|
-
if (isSingleBatchRecordResponse(response.body)) {
|
|
21026
|
-
let recordResponse = response;
|
|
21027
|
-
recordResponse.body = response.body.results[0]
|
|
21028
|
-
.result;
|
|
21029
|
-
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
21030
|
-
}
|
|
21031
21033
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
21032
21034
|
}, () => {
|
|
21033
21035
|
const cache = new StoreKeyMap();
|
|
@@ -43141,7 +43143,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43141
43143
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43142
43144
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43143
43145
|
});
|
|
43144
|
-
// version: 1.
|
|
43146
|
+
// version: 1.271.0-c2f810db8
|
|
43145
43147
|
|
|
43146
43148
|
var ldsIdempotencyWriteDisabled = {
|
|
43147
43149
|
isOpen: function (e) {
|
|
@@ -61031,7 +61033,7 @@ register$1({
|
|
|
61031
61033
|
id: '@salesforce/lds-network-adapter',
|
|
61032
61034
|
instrument: instrument$2,
|
|
61033
61035
|
});
|
|
61034
|
-
// version: 1.
|
|
61036
|
+
// version: 1.271.0-b5964d6f9
|
|
61035
61037
|
|
|
61036
61038
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61037
61039
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79360,7 +79362,7 @@ register$1({
|
|
|
79360
79362
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79361
79363
|
instrument: instrument$1,
|
|
79362
79364
|
});
|
|
79363
|
-
// version: 1.
|
|
79365
|
+
// version: 1.271.0-c2f810db8
|
|
79364
79366
|
|
|
79365
79367
|
// On core the unstable adapters are re-exported with different names,
|
|
79366
79368
|
// we want to match them here.
|
|
@@ -81611,7 +81613,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81611
81613
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81612
81614
|
graphQLImperative = ldsAdapter;
|
|
81613
81615
|
});
|
|
81614
|
-
// version: 1.
|
|
81616
|
+
// version: 1.271.0-c2f810db8
|
|
81615
81617
|
|
|
81616
81618
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81617
81619
|
__proto__: null,
|
|
@@ -82309,7 +82311,7 @@ const callbacks$1 = [];
|
|
|
82309
82311
|
function register(r) {
|
|
82310
82312
|
callbacks$1.forEach((callback) => callback(r));
|
|
82311
82313
|
}
|
|
82312
|
-
// version: 1.
|
|
82314
|
+
// version: 1.271.0-b5964d6f9
|
|
82313
82315
|
|
|
82314
82316
|
/**
|
|
82315
82317
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87214,4 +87216,4 @@ const { luvio } = getRuntime();
|
|
|
87214
87216
|
setDefaultLuvio({ luvio });
|
|
87215
87217
|
|
|
87216
87218
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87217
|
-
// version: 1.
|
|
87219
|
+
// version: 1.271.0-b5964d6f9
|
|
@@ -4146,7 +4146,7 @@
|
|
|
4146
4146
|
}
|
|
4147
4147
|
callbacks.push(callback);
|
|
4148
4148
|
}
|
|
4149
|
-
// version: 1.
|
|
4149
|
+
// version: 1.271.0-b5964d6f9
|
|
4150
4150
|
|
|
4151
4151
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4152
4152
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15654,7 +15654,7 @@
|
|
|
15654
15654
|
}
|
|
15655
15655
|
return superResult;
|
|
15656
15656
|
}
|
|
15657
|
-
// version: 1.
|
|
15657
|
+
// version: 1.271.0-b5964d6f9
|
|
15658
15658
|
|
|
15659
15659
|
function unwrap(data) {
|
|
15660
15660
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16579,7 +16579,7 @@
|
|
|
16579
16579
|
const { apiFamily, name } = metadata;
|
|
16580
16580
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16581
16581
|
}
|
|
16582
|
-
// version: 1.
|
|
16582
|
+
// version: 1.271.0-b5964d6f9
|
|
16583
16583
|
|
|
16584
16584
|
/**
|
|
16585
16585
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -21023,17 +21023,19 @@
|
|
|
21023
21023
|
function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
|
|
21024
21024
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
21025
21025
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
21026
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21027
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
21028
|
+
// record request. The fulfill logic sends the same network response, so
|
|
21029
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21030
|
+
//
|
|
21031
|
+
// W-14381091 - Ensure hoisting the response body happens prior to
|
|
21032
|
+
// calling `luvio.handleSuccessResponse`, since both arguments capture
|
|
21033
|
+
// the response.
|
|
21034
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
21035
|
+
response.body = response.body.results[0]
|
|
21036
|
+
.result;
|
|
21037
|
+
}
|
|
21026
21038
|
return luvio.handleSuccessResponse(() => {
|
|
21027
|
-
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21028
|
-
// Komaci - a batch record request with a single record followed by a single
|
|
21029
|
-
// record request. The fulfill logic sends the same network response, so
|
|
21030
|
-
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21031
|
-
if (isSingleBatchRecordResponse(response.body)) {
|
|
21032
|
-
let recordResponse = response;
|
|
21033
|
-
recordResponse.body = response.body.results[0]
|
|
21034
|
-
.result;
|
|
21035
|
-
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
21036
|
-
}
|
|
21037
21039
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
21038
21040
|
}, () => {
|
|
21039
21041
|
const cache = new StoreKeyMap();
|
|
@@ -43147,7 +43149,7 @@
|
|
|
43147
43149
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43148
43150
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43149
43151
|
});
|
|
43150
|
-
// version: 1.
|
|
43152
|
+
// version: 1.271.0-c2f810db8
|
|
43151
43153
|
|
|
43152
43154
|
var ldsIdempotencyWriteDisabled = {
|
|
43153
43155
|
isOpen: function (e) {
|
|
@@ -61037,7 +61039,7 @@
|
|
|
61037
61039
|
id: '@salesforce/lds-network-adapter',
|
|
61038
61040
|
instrument: instrument$2,
|
|
61039
61041
|
});
|
|
61040
|
-
// version: 1.
|
|
61042
|
+
// version: 1.271.0-b5964d6f9
|
|
61041
61043
|
|
|
61042
61044
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61043
61045
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79366,7 +79368,7 @@
|
|
|
79366
79368
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79367
79369
|
instrument: instrument$1,
|
|
79368
79370
|
});
|
|
79369
|
-
// version: 1.
|
|
79371
|
+
// version: 1.271.0-c2f810db8
|
|
79370
79372
|
|
|
79371
79373
|
// On core the unstable adapters are re-exported with different names,
|
|
79372
79374
|
// we want to match them here.
|
|
@@ -81617,7 +81619,7 @@
|
|
|
81617
81619
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81618
81620
|
graphQLImperative = ldsAdapter;
|
|
81619
81621
|
});
|
|
81620
|
-
// version: 1.
|
|
81622
|
+
// version: 1.271.0-c2f810db8
|
|
81621
81623
|
|
|
81622
81624
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81623
81625
|
__proto__: null,
|
|
@@ -82315,7 +82317,7 @@
|
|
|
82315
82317
|
function register(r) {
|
|
82316
82318
|
callbacks$1.forEach((callback) => callback(r));
|
|
82317
82319
|
}
|
|
82318
|
-
// version: 1.
|
|
82320
|
+
// version: 1.271.0-b5964d6f9
|
|
82319
82321
|
|
|
82320
82322
|
/**
|
|
82321
82323
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87238,4 +87240,4 @@
|
|
|
87238
87240
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87239
87241
|
|
|
87240
87242
|
}));
|
|
87241
|
-
// version: 1.
|
|
87243
|
+
// version: 1.271.0-b5964d6f9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.271.0",
|
|
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.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-priming": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.271.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.271.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.271.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.271.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.271.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.271.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.271.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.271.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.271.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|