@salesforce/lds-worker-api 1.457.0 → 1.459.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.459.0-414dbbb5aa
|
|
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
callbacks.push(callback);
|
|
4278
4278
|
}
|
|
4279
|
-
// version: 1.
|
|
4279
|
+
// version: 1.459.0-414dbbb5aa
|
|
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.459.0-414dbbb5aa
|
|
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.459.0-eda2fb69a9
|
|
32551
32551
|
|
|
32552
32552
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32553
32553
|
isOpen: function (e) {
|
|
@@ -97398,7 +97398,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
97398
97398
|
},
|
|
97399
97399
|
};
|
|
97400
97400
|
}
|
|
97401
|
-
// version: 1.
|
|
97401
|
+
// version: 1.459.0-414dbbb5aa
|
|
97402
97402
|
|
|
97403
97403
|
/**
|
|
97404
97404
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97424,7 +97424,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
97424
97424
|
},
|
|
97425
97425
|
};
|
|
97426
97426
|
}
|
|
97427
|
-
// version: 1.
|
|
97427
|
+
// version: 1.459.0-414dbbb5aa
|
|
97428
97428
|
|
|
97429
97429
|
function findExecutableOperation$1(input) {
|
|
97430
97430
|
const operations = input.query.definitions.filter(
|
|
@@ -100133,7 +100133,7 @@ register$1({
|
|
|
100133
100133
|
id: '@salesforce/lds-network-adapter',
|
|
100134
100134
|
instrument: instrument$2,
|
|
100135
100135
|
});
|
|
100136
|
-
// version: 1.
|
|
100136
|
+
// version: 1.459.0-414dbbb5aa
|
|
100137
100137
|
|
|
100138
100138
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100139
100139
|
const { stringify, parse } = JSON;
|
|
@@ -100214,11 +100214,27 @@ function validateExpectedType(value, expectedType) {
|
|
|
100214
100214
|
new Error(`Expected ${expectedTypeString}, but got ${actualType}: ${JSON.stringify(value)}`)
|
|
100215
100215
|
);
|
|
100216
100216
|
}
|
|
100217
|
+
function isSafeMergeTarget(value) {
|
|
100218
|
+
if (value === null || typeof value !== "object") {
|
|
100219
|
+
return false;
|
|
100220
|
+
}
|
|
100221
|
+
if (Array.isArray(value)) {
|
|
100222
|
+
return true;
|
|
100223
|
+
}
|
|
100224
|
+
const proto = Object.getPrototypeOf(value);
|
|
100225
|
+
return proto === Object.prototype || proto === null;
|
|
100226
|
+
}
|
|
100217
100227
|
function deepMerge$2(target, ...sources) {
|
|
100228
|
+
if (!isSafeMergeTarget(target)) {
|
|
100229
|
+
throw new Error("deepMerge: target must be a plain object");
|
|
100230
|
+
}
|
|
100218
100231
|
for (const source of sources) {
|
|
100219
100232
|
for (const key in source) {
|
|
100233
|
+
if (key === "__proto__") {
|
|
100234
|
+
continue;
|
|
100235
|
+
}
|
|
100220
100236
|
if (hasOwnProperty$3.call(source, key)) {
|
|
100221
|
-
const targetValue = target[key];
|
|
100237
|
+
const targetValue = hasOwnProperty$3.call(target, key) ? target[key] : void 0;
|
|
100222
100238
|
const sourceValue = source[key];
|
|
100223
100239
|
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
|
|
100224
100240
|
const length = sourceValue.length;
|
|
@@ -107669,7 +107685,7 @@ function registerCallback(cb) {
|
|
|
107669
107685
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107670
107686
|
}
|
|
107671
107687
|
}
|
|
107672
|
-
// version: 1.
|
|
107688
|
+
// version: 1.459.0-eda2fb69a9
|
|
107673
107689
|
|
|
107674
107690
|
function createFragmentMap(documentNode) {
|
|
107675
107691
|
const fragments = {};
|
|
@@ -136912,7 +136928,7 @@ register$1({
|
|
|
136912
136928
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136913
136929
|
instrument: instrument$1,
|
|
136914
136930
|
});
|
|
136915
|
-
// version: 1.
|
|
136931
|
+
// version: 1.459.0-eda2fb69a9
|
|
136916
136932
|
|
|
136917
136933
|
// On core the unstable adapters are re-exported with different names,
|
|
136918
136934
|
// we want to match them here.
|
|
@@ -137064,7 +137080,7 @@ withDefaultLuvio((luvio) => {
|
|
|
137064
137080
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137065
137081
|
graphQLImperative = ldsAdapter;
|
|
137066
137082
|
});
|
|
137067
|
-
// version: 1.
|
|
137083
|
+
// version: 1.459.0-eda2fb69a9
|
|
137068
137084
|
|
|
137069
137085
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137070
137086
|
__proto__: null,
|
|
@@ -137863,7 +137879,7 @@ const callbacks$1 = [];
|
|
|
137863
137879
|
function register(r) {
|
|
137864
137880
|
callbacks$1.forEach((callback) => callback(r));
|
|
137865
137881
|
}
|
|
137866
|
-
// version: 1.
|
|
137882
|
+
// version: 1.459.0-414dbbb5aa
|
|
137867
137883
|
|
|
137868
137884
|
/**
|
|
137869
137885
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139152,4 +139168,4 @@ const { luvio } = getRuntime();
|
|
|
139152
139168
|
setDefaultLuvio({ luvio });
|
|
139153
139169
|
|
|
139154
139170
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
139155
|
-
// version: 1.
|
|
139171
|
+
// version: 1.459.0-414dbbb5aa
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
}
|
|
4283
4283
|
callbacks.push(callback);
|
|
4284
4284
|
}
|
|
4285
|
-
// version: 1.
|
|
4285
|
+
// version: 1.459.0-414dbbb5aa
|
|
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.459.0-414dbbb5aa
|
|
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.459.0-eda2fb69a9
|
|
32557
32557
|
|
|
32558
32558
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32559
32559
|
isOpen: function (e) {
|
|
@@ -97404,7 +97404,7 @@
|
|
|
97404
97404
|
},
|
|
97405
97405
|
};
|
|
97406
97406
|
}
|
|
97407
|
-
// version: 1.
|
|
97407
|
+
// version: 1.459.0-414dbbb5aa
|
|
97408
97408
|
|
|
97409
97409
|
/**
|
|
97410
97410
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97430,7 +97430,7 @@
|
|
|
97430
97430
|
},
|
|
97431
97431
|
};
|
|
97432
97432
|
}
|
|
97433
|
-
// version: 1.
|
|
97433
|
+
// version: 1.459.0-414dbbb5aa
|
|
97434
97434
|
|
|
97435
97435
|
function findExecutableOperation$1(input) {
|
|
97436
97436
|
const operations = input.query.definitions.filter(
|
|
@@ -100139,7 +100139,7 @@
|
|
|
100139
100139
|
id: '@salesforce/lds-network-adapter',
|
|
100140
100140
|
instrument: instrument$2,
|
|
100141
100141
|
});
|
|
100142
|
-
// version: 1.
|
|
100142
|
+
// version: 1.459.0-414dbbb5aa
|
|
100143
100143
|
|
|
100144
100144
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100145
100145
|
const { stringify, parse } = JSON;
|
|
@@ -100220,11 +100220,27 @@
|
|
|
100220
100220
|
new Error(`Expected ${expectedTypeString}, but got ${actualType}: ${JSON.stringify(value)}`)
|
|
100221
100221
|
);
|
|
100222
100222
|
}
|
|
100223
|
+
function isSafeMergeTarget(value) {
|
|
100224
|
+
if (value === null || typeof value !== "object") {
|
|
100225
|
+
return false;
|
|
100226
|
+
}
|
|
100227
|
+
if (Array.isArray(value)) {
|
|
100228
|
+
return true;
|
|
100229
|
+
}
|
|
100230
|
+
const proto = Object.getPrototypeOf(value);
|
|
100231
|
+
return proto === Object.prototype || proto === null;
|
|
100232
|
+
}
|
|
100223
100233
|
function deepMerge$2(target, ...sources) {
|
|
100234
|
+
if (!isSafeMergeTarget(target)) {
|
|
100235
|
+
throw new Error("deepMerge: target must be a plain object");
|
|
100236
|
+
}
|
|
100224
100237
|
for (const source of sources) {
|
|
100225
100238
|
for (const key in source) {
|
|
100239
|
+
if (key === "__proto__") {
|
|
100240
|
+
continue;
|
|
100241
|
+
}
|
|
100226
100242
|
if (hasOwnProperty$3.call(source, key)) {
|
|
100227
|
-
const targetValue = target[key];
|
|
100243
|
+
const targetValue = hasOwnProperty$3.call(target, key) ? target[key] : void 0;
|
|
100228
100244
|
const sourceValue = source[key];
|
|
100229
100245
|
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
|
|
100230
100246
|
const length = sourceValue.length;
|
|
@@ -107675,7 +107691,7 @@
|
|
|
107675
107691
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107676
107692
|
}
|
|
107677
107693
|
}
|
|
107678
|
-
// version: 1.
|
|
107694
|
+
// version: 1.459.0-eda2fb69a9
|
|
107679
107695
|
|
|
107680
107696
|
function createFragmentMap(documentNode) {
|
|
107681
107697
|
const fragments = {};
|
|
@@ -136918,7 +136934,7 @@
|
|
|
136918
136934
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136919
136935
|
instrument: instrument$1,
|
|
136920
136936
|
});
|
|
136921
|
-
// version: 1.
|
|
136937
|
+
// version: 1.459.0-eda2fb69a9
|
|
136922
136938
|
|
|
136923
136939
|
// On core the unstable adapters are re-exported with different names,
|
|
136924
136940
|
// we want to match them here.
|
|
@@ -137070,7 +137086,7 @@
|
|
|
137070
137086
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137071
137087
|
graphQLImperative = ldsAdapter;
|
|
137072
137088
|
});
|
|
137073
|
-
// version: 1.
|
|
137089
|
+
// version: 1.459.0-eda2fb69a9
|
|
137074
137090
|
|
|
137075
137091
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137076
137092
|
__proto__: null,
|
|
@@ -137869,7 +137885,7 @@
|
|
|
137869
137885
|
function register(r) {
|
|
137870
137886
|
callbacks$1.forEach((callback) => callback(r));
|
|
137871
137887
|
}
|
|
137872
|
-
// version: 1.
|
|
137888
|
+
// version: 1.459.0-414dbbb5aa
|
|
137873
137889
|
|
|
137874
137890
|
/**
|
|
137875
137891
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139179,4 +139195,4 @@
|
|
|
139179
139195
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
139180
139196
|
|
|
139181
139197
|
}));
|
|
139182
|
-
// version: 1.
|
|
139198
|
+
// version: 1.459.0-414dbbb5aa
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.459.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.459.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.459.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.459.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.459.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.459.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.459.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.459.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.459.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|