@salesforce/lds-worker-api 1.464.0 → 1.465.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.
|
@@ -1426,4 +1426,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
1428
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToMergeAndMetadata, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1429
|
-
// version: 1.
|
|
1429
|
+
// version: 1.465.0-91ef58ca05
|
|
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
callbacks.push(callback);
|
|
4278
4278
|
}
|
|
4279
|
-
// version: 1.
|
|
4279
|
+
// version: 1.465.0-91ef58ca05
|
|
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.465.0-91ef58ca05
|
|
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.465.0-4371689bb7
|
|
32551
32551
|
|
|
32552
32552
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32553
32553
|
isOpen: function (e) {
|
|
@@ -95696,8 +95696,8 @@ let InternalError$1 = class InternalError extends Error {
|
|
|
95696
95696
|
}
|
|
95697
95697
|
};
|
|
95698
95698
|
class UserVisibleError extends Error {
|
|
95699
|
-
constructor(data) {
|
|
95700
|
-
super();
|
|
95699
|
+
constructor(data, message) {
|
|
95700
|
+
super(message);
|
|
95701
95701
|
this.data = data;
|
|
95702
95702
|
this.type = "user-visible";
|
|
95703
95703
|
}
|
|
@@ -95805,7 +95805,11 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
95805
95805
|
return void 0;
|
|
95806
95806
|
}
|
|
95807
95807
|
coerceAuraErrors(auraErrors) {
|
|
95808
|
-
|
|
95808
|
+
const response = getFetchResponseFromAuraError(auraErrors[0]);
|
|
95809
|
+
return new UserVisibleError(
|
|
95810
|
+
response,
|
|
95811
|
+
`Error from ${this.endpoint}, status ${response.status}`
|
|
95812
|
+
);
|
|
95809
95813
|
}
|
|
95810
95814
|
/**
|
|
95811
95815
|
* Customize how non-2xx fetch fallback responses are converted into errors.
|
|
@@ -95902,7 +95906,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
95902
95906
|
this.auraParams,
|
|
95903
95907
|
this.actionConfig
|
|
95904
95908
|
),
|
|
95905
|
-
this.coerceAuraErrors
|
|
95909
|
+
(errs) => this.coerceAuraErrors(errs)
|
|
95906
95910
|
);
|
|
95907
95911
|
} else if (this.shouldUseFetch()) {
|
|
95908
95912
|
const [input, init] = this.fetchParams;
|
|
@@ -97843,7 +97847,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
97843
97847
|
},
|
|
97844
97848
|
};
|
|
97845
97849
|
}
|
|
97846
|
-
// version: 1.
|
|
97850
|
+
// version: 1.465.0-91ef58ca05
|
|
97847
97851
|
|
|
97848
97852
|
/**
|
|
97849
97853
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97869,7 +97873,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
97869
97873
|
},
|
|
97870
97874
|
};
|
|
97871
97875
|
}
|
|
97872
|
-
// version: 1.
|
|
97876
|
+
// version: 1.465.0-91ef58ca05
|
|
97873
97877
|
|
|
97874
97878
|
function findExecutableOperation$1(input) {
|
|
97875
97879
|
const operations = input.query.definitions.filter(
|
|
@@ -100588,7 +100592,7 @@ register$1({
|
|
|
100588
100592
|
id: '@salesforce/lds-network-adapter',
|
|
100589
100593
|
instrument: instrument$2,
|
|
100590
100594
|
});
|
|
100591
|
-
// version: 1.
|
|
100595
|
+
// version: 1.465.0-91ef58ca05
|
|
100592
100596
|
|
|
100593
100597
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100594
100598
|
const { stringify, parse } = JSON;
|
|
@@ -108140,7 +108144,7 @@ function registerCallback(cb) {
|
|
|
108140
108144
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
108141
108145
|
}
|
|
108142
108146
|
}
|
|
108143
|
-
// version: 1.
|
|
108147
|
+
// version: 1.465.0-4371689bb7
|
|
108144
108148
|
|
|
108145
108149
|
function createFragmentMap(documentNode) {
|
|
108146
108150
|
const fragments = {};
|
|
@@ -137383,7 +137387,7 @@ register$1({
|
|
|
137383
137387
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
137384
137388
|
instrument: instrument$1,
|
|
137385
137389
|
});
|
|
137386
|
-
// version: 1.
|
|
137390
|
+
// version: 1.465.0-4371689bb7
|
|
137387
137391
|
|
|
137388
137392
|
// On core the unstable adapters are re-exported with different names,
|
|
137389
137393
|
// we want to match them here.
|
|
@@ -137535,7 +137539,7 @@ withDefaultLuvio((luvio) => {
|
|
|
137535
137539
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137536
137540
|
graphQLImperative = ldsAdapter;
|
|
137537
137541
|
});
|
|
137538
|
-
// version: 1.
|
|
137542
|
+
// version: 1.465.0-4371689bb7
|
|
137539
137543
|
|
|
137540
137544
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137541
137545
|
__proto__: null,
|
|
@@ -138387,7 +138391,7 @@ const callbacks$1 = [];
|
|
|
138387
138391
|
function register(r) {
|
|
138388
138392
|
callbacks$1.forEach((callback) => callback(r));
|
|
138389
138393
|
}
|
|
138390
|
-
// version: 1.
|
|
138394
|
+
// version: 1.465.0-91ef58ca05
|
|
138391
138395
|
|
|
138392
138396
|
/**
|
|
138393
138397
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139676,4 +139680,4 @@ const { luvio } = getRuntime();
|
|
|
139676
139680
|
setDefaultLuvio({ luvio });
|
|
139677
139681
|
|
|
139678
139682
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToMergeAndMetadata, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
139679
|
-
// version: 1.
|
|
139683
|
+
// version: 1.465.0-91ef58ca05
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
}
|
|
4283
4283
|
callbacks.push(callback);
|
|
4284
4284
|
}
|
|
4285
|
-
// version: 1.
|
|
4285
|
+
// version: 1.465.0-91ef58ca05
|
|
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.465.0-91ef58ca05
|
|
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.465.0-4371689bb7
|
|
32557
32557
|
|
|
32558
32558
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32559
32559
|
isOpen: function (e) {
|
|
@@ -95702,8 +95702,8 @@
|
|
|
95702
95702
|
}
|
|
95703
95703
|
};
|
|
95704
95704
|
class UserVisibleError extends Error {
|
|
95705
|
-
constructor(data) {
|
|
95706
|
-
super();
|
|
95705
|
+
constructor(data, message) {
|
|
95706
|
+
super(message);
|
|
95707
95707
|
this.data = data;
|
|
95708
95708
|
this.type = "user-visible";
|
|
95709
95709
|
}
|
|
@@ -95811,7 +95811,11 @@
|
|
|
95811
95811
|
return void 0;
|
|
95812
95812
|
}
|
|
95813
95813
|
coerceAuraErrors(auraErrors) {
|
|
95814
|
-
|
|
95814
|
+
const response = getFetchResponseFromAuraError(auraErrors[0]);
|
|
95815
|
+
return new UserVisibleError(
|
|
95816
|
+
response,
|
|
95817
|
+
`Error from ${this.endpoint}, status ${response.status}`
|
|
95818
|
+
);
|
|
95815
95819
|
}
|
|
95816
95820
|
/**
|
|
95817
95821
|
* Customize how non-2xx fetch fallback responses are converted into errors.
|
|
@@ -95908,7 +95912,7 @@
|
|
|
95908
95912
|
this.auraParams,
|
|
95909
95913
|
this.actionConfig
|
|
95910
95914
|
),
|
|
95911
|
-
this.coerceAuraErrors
|
|
95915
|
+
(errs) => this.coerceAuraErrors(errs)
|
|
95912
95916
|
);
|
|
95913
95917
|
} else if (this.shouldUseFetch()) {
|
|
95914
95918
|
const [input, init] = this.fetchParams;
|
|
@@ -97849,7 +97853,7 @@
|
|
|
97849
97853
|
},
|
|
97850
97854
|
};
|
|
97851
97855
|
}
|
|
97852
|
-
// version: 1.
|
|
97856
|
+
// version: 1.465.0-91ef58ca05
|
|
97853
97857
|
|
|
97854
97858
|
/**
|
|
97855
97859
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97875,7 +97879,7 @@
|
|
|
97875
97879
|
},
|
|
97876
97880
|
};
|
|
97877
97881
|
}
|
|
97878
|
-
// version: 1.
|
|
97882
|
+
// version: 1.465.0-91ef58ca05
|
|
97879
97883
|
|
|
97880
97884
|
function findExecutableOperation$1(input) {
|
|
97881
97885
|
const operations = input.query.definitions.filter(
|
|
@@ -100594,7 +100598,7 @@
|
|
|
100594
100598
|
id: '@salesforce/lds-network-adapter',
|
|
100595
100599
|
instrument: instrument$2,
|
|
100596
100600
|
});
|
|
100597
|
-
// version: 1.
|
|
100601
|
+
// version: 1.465.0-91ef58ca05
|
|
100598
100602
|
|
|
100599
100603
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100600
100604
|
const { stringify, parse } = JSON;
|
|
@@ -108146,7 +108150,7 @@
|
|
|
108146
108150
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
108147
108151
|
}
|
|
108148
108152
|
}
|
|
108149
|
-
// version: 1.
|
|
108153
|
+
// version: 1.465.0-4371689bb7
|
|
108150
108154
|
|
|
108151
108155
|
function createFragmentMap(documentNode) {
|
|
108152
108156
|
const fragments = {};
|
|
@@ -137389,7 +137393,7 @@
|
|
|
137389
137393
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
137390
137394
|
instrument: instrument$1,
|
|
137391
137395
|
});
|
|
137392
|
-
// version: 1.
|
|
137396
|
+
// version: 1.465.0-4371689bb7
|
|
137393
137397
|
|
|
137394
137398
|
// On core the unstable adapters are re-exported with different names,
|
|
137395
137399
|
// we want to match them here.
|
|
@@ -137541,7 +137545,7 @@
|
|
|
137541
137545
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137542
137546
|
graphQLImperative = ldsAdapter;
|
|
137543
137547
|
});
|
|
137544
|
-
// version: 1.
|
|
137548
|
+
// version: 1.465.0-4371689bb7
|
|
137545
137549
|
|
|
137546
137550
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137547
137551
|
__proto__: null,
|
|
@@ -138393,7 +138397,7 @@
|
|
|
138393
138397
|
function register(r) {
|
|
138394
138398
|
callbacks$1.forEach((callback) => callback(r));
|
|
138395
138399
|
}
|
|
138396
|
-
// version: 1.
|
|
138400
|
+
// version: 1.465.0-91ef58ca05
|
|
138397
138401
|
|
|
138398
138402
|
/**
|
|
138399
138403
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139704,4 +139708,4 @@
|
|
|
139704
139708
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
139705
139709
|
|
|
139706
139710
|
}));
|
|
139707
|
-
// version: 1.
|
|
139711
|
+
// version: 1.465.0-91ef58ca05
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.465.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.465.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.465.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.465.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.465.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.465.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.465.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.465.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.465.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|