@salesforce/lds-worker-api 1.455.0 → 1.456.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.
|
@@ -1373,4 +1373,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1376
|
-
// version: 1.
|
|
1376
|
+
// version: 1.456.0-cef836b978
|
|
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
callbacks.push(callback);
|
|
4278
4278
|
}
|
|
4279
|
-
// version: 1.
|
|
4279
|
+
// version: 1.456.0-cef836b978
|
|
4280
4280
|
|
|
4281
4281
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4282
4282
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5320,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5320
5320
|
const { apiFamily, name } = metadata;
|
|
5321
5321
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5322
5322
|
}
|
|
5323
|
-
// version: 1.
|
|
5323
|
+
// version: 1.456.0-cef836b978
|
|
5324
5324
|
|
|
5325
5325
|
function isSupportedEntity(_objectApiName) {
|
|
5326
5326
|
return true;
|
|
@@ -32547,7 +32547,7 @@ withDefaultLuvio((luvio) => {
|
|
|
32547
32547
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32548
32548
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32549
32549
|
});
|
|
32550
|
-
// version: 1.
|
|
32550
|
+
// version: 1.456.0-6ed480b93c
|
|
32551
32551
|
|
|
32552
32552
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32553
32553
|
isOpen: function (e) {
|
|
@@ -97385,7 +97385,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
97385
97385
|
},
|
|
97386
97386
|
};
|
|
97387
97387
|
}
|
|
97388
|
-
// version: 1.
|
|
97388
|
+
// version: 1.456.0-cef836b978
|
|
97389
97389
|
|
|
97390
97390
|
/**
|
|
97391
97391
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97411,7 +97411,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
97411
97411
|
},
|
|
97412
97412
|
};
|
|
97413
97413
|
}
|
|
97414
|
-
// version: 1.
|
|
97414
|
+
// version: 1.456.0-cef836b978
|
|
97415
97415
|
|
|
97416
97416
|
function findExecutableOperation$1(input) {
|
|
97417
97417
|
const operations = input.query.definitions.filter(
|
|
@@ -100120,7 +100120,7 @@ register$1({
|
|
|
100120
100120
|
id: '@salesforce/lds-network-adapter',
|
|
100121
100121
|
instrument: instrument$2,
|
|
100122
100122
|
});
|
|
100123
|
-
// version: 1.
|
|
100123
|
+
// version: 1.456.0-cef836b978
|
|
100124
100124
|
|
|
100125
100125
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100126
100126
|
const { stringify, parse } = JSON;
|
|
@@ -100584,10 +100584,11 @@ class BaseArrayFieldDef {
|
|
|
100584
100584
|
}
|
|
100585
100585
|
]);
|
|
100586
100586
|
}
|
|
100587
|
+
const existingArrayData = input.existingNormalizedData?.data;
|
|
100587
100588
|
const arrayNormalizationErrors = [];
|
|
100588
100589
|
const normalizedArray = [];
|
|
100589
100590
|
input.data.forEach((item, index) => {
|
|
100590
|
-
const existingItemData =
|
|
100591
|
+
const existingItemData = existingArrayData?.[index];
|
|
100591
100592
|
const normalizedItemResult = this.items.write(cache, {
|
|
100592
100593
|
...input,
|
|
100593
100594
|
data: item,
|
|
@@ -107655,7 +107656,7 @@ function registerCallback(cb) {
|
|
|
107655
107656
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107656
107657
|
}
|
|
107657
107658
|
}
|
|
107658
|
-
// version: 1.
|
|
107659
|
+
// version: 1.456.0-6ed480b93c
|
|
107659
107660
|
|
|
107660
107661
|
function createFragmentMap(documentNode) {
|
|
107661
107662
|
const fragments = {};
|
|
@@ -136898,7 +136899,7 @@ register$1({
|
|
|
136898
136899
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136899
136900
|
instrument: instrument$1,
|
|
136900
136901
|
});
|
|
136901
|
-
// version: 1.
|
|
136902
|
+
// version: 1.456.0-6ed480b93c
|
|
136902
136903
|
|
|
136903
136904
|
// On core the unstable adapters are re-exported with different names,
|
|
136904
136905
|
// we want to match them here.
|
|
@@ -137050,7 +137051,7 @@ withDefaultLuvio((luvio) => {
|
|
|
137050
137051
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137051
137052
|
graphQLImperative = ldsAdapter;
|
|
137052
137053
|
});
|
|
137053
|
-
// version: 1.
|
|
137054
|
+
// version: 1.456.0-6ed480b93c
|
|
137054
137055
|
|
|
137055
137056
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137056
137057
|
__proto__: null,
|
|
@@ -137849,7 +137850,7 @@ const callbacks$1 = [];
|
|
|
137849
137850
|
function register(r) {
|
|
137850
137851
|
callbacks$1.forEach((callback) => callback(r));
|
|
137851
137852
|
}
|
|
137852
|
-
// version: 1.
|
|
137853
|
+
// version: 1.456.0-cef836b978
|
|
137853
137854
|
|
|
137854
137855
|
/**
|
|
137855
137856
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139138,4 +139139,4 @@ const { luvio } = getRuntime();
|
|
|
139138
139139
|
setDefaultLuvio({ luvio });
|
|
139139
139140
|
|
|
139140
139141
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
139141
|
-
// version: 1.
|
|
139142
|
+
// version: 1.456.0-cef836b978
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
}
|
|
4283
4283
|
callbacks.push(callback);
|
|
4284
4284
|
}
|
|
4285
|
-
// version: 1.
|
|
4285
|
+
// version: 1.456.0-cef836b978
|
|
4286
4286
|
|
|
4287
4287
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4288
4288
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5326,7 +5326,7 @@
|
|
|
5326
5326
|
const { apiFamily, name } = metadata;
|
|
5327
5327
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5328
5328
|
}
|
|
5329
|
-
// version: 1.
|
|
5329
|
+
// version: 1.456.0-cef836b978
|
|
5330
5330
|
|
|
5331
5331
|
function isSupportedEntity(_objectApiName) {
|
|
5332
5332
|
return true;
|
|
@@ -32553,7 +32553,7 @@
|
|
|
32553
32553
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32554
32554
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32555
32555
|
});
|
|
32556
|
-
// version: 1.
|
|
32556
|
+
// version: 1.456.0-6ed480b93c
|
|
32557
32557
|
|
|
32558
32558
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32559
32559
|
isOpen: function (e) {
|
|
@@ -97391,7 +97391,7 @@
|
|
|
97391
97391
|
},
|
|
97392
97392
|
};
|
|
97393
97393
|
}
|
|
97394
|
-
// version: 1.
|
|
97394
|
+
// version: 1.456.0-cef836b978
|
|
97395
97395
|
|
|
97396
97396
|
/**
|
|
97397
97397
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97417,7 +97417,7 @@
|
|
|
97417
97417
|
},
|
|
97418
97418
|
};
|
|
97419
97419
|
}
|
|
97420
|
-
// version: 1.
|
|
97420
|
+
// version: 1.456.0-cef836b978
|
|
97421
97421
|
|
|
97422
97422
|
function findExecutableOperation$1(input) {
|
|
97423
97423
|
const operations = input.query.definitions.filter(
|
|
@@ -100126,7 +100126,7 @@
|
|
|
100126
100126
|
id: '@salesforce/lds-network-adapter',
|
|
100127
100127
|
instrument: instrument$2,
|
|
100128
100128
|
});
|
|
100129
|
-
// version: 1.
|
|
100129
|
+
// version: 1.456.0-cef836b978
|
|
100130
100130
|
|
|
100131
100131
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100132
100132
|
const { stringify, parse } = JSON;
|
|
@@ -100590,10 +100590,11 @@
|
|
|
100590
100590
|
}
|
|
100591
100591
|
]);
|
|
100592
100592
|
}
|
|
100593
|
+
const existingArrayData = input.existingNormalizedData?.data;
|
|
100593
100594
|
const arrayNormalizationErrors = [];
|
|
100594
100595
|
const normalizedArray = [];
|
|
100595
100596
|
input.data.forEach((item, index) => {
|
|
100596
|
-
const existingItemData =
|
|
100597
|
+
const existingItemData = existingArrayData?.[index];
|
|
100597
100598
|
const normalizedItemResult = this.items.write(cache, {
|
|
100598
100599
|
...input,
|
|
100599
100600
|
data: item,
|
|
@@ -107661,7 +107662,7 @@
|
|
|
107661
107662
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107662
107663
|
}
|
|
107663
107664
|
}
|
|
107664
|
-
// version: 1.
|
|
107665
|
+
// version: 1.456.0-6ed480b93c
|
|
107665
107666
|
|
|
107666
107667
|
function createFragmentMap(documentNode) {
|
|
107667
107668
|
const fragments = {};
|
|
@@ -136904,7 +136905,7 @@
|
|
|
136904
136905
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136905
136906
|
instrument: instrument$1,
|
|
136906
136907
|
});
|
|
136907
|
-
// version: 1.
|
|
136908
|
+
// version: 1.456.0-6ed480b93c
|
|
136908
136909
|
|
|
136909
136910
|
// On core the unstable adapters are re-exported with different names,
|
|
136910
136911
|
// we want to match them here.
|
|
@@ -137056,7 +137057,7 @@
|
|
|
137056
137057
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137057
137058
|
graphQLImperative = ldsAdapter;
|
|
137058
137059
|
});
|
|
137059
|
-
// version: 1.
|
|
137060
|
+
// version: 1.456.0-6ed480b93c
|
|
137060
137061
|
|
|
137061
137062
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137062
137063
|
__proto__: null,
|
|
@@ -137855,7 +137856,7 @@
|
|
|
137855
137856
|
function register(r) {
|
|
137856
137857
|
callbacks$1.forEach((callback) => callback(r));
|
|
137857
137858
|
}
|
|
137858
|
-
// version: 1.
|
|
137859
|
+
// version: 1.456.0-cef836b978
|
|
137859
137860
|
|
|
137860
137861
|
/**
|
|
137861
137862
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139165,4 +139166,4 @@
|
|
|
139165
139166
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
139166
139167
|
|
|
139167
139168
|
}));
|
|
139168
|
-
// version: 1.
|
|
139169
|
+
// version: 1.456.0-cef836b978
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.456.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
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-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.456.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.456.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.456.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.456.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.456.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.456.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.456.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.456.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|