@salesforce/lds-worker-api 1.150.2 → 1.150.3
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.
|
@@ -770,4 +770,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
770
770
|
}
|
|
771
771
|
|
|
772
772
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
773
|
-
// version: 1.150.
|
|
773
|
+
// version: 1.150.3-aa1654353
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
* Any changes made to this file in p4 will be automatically overwritten.
|
|
12
12
|
* *******************************************************************************************
|
|
13
13
|
*/
|
|
14
|
-
import ldsAdapterForwardingGate from '@salesforce/gate/lds.graphqlAdapterForwarding';
|
|
15
|
-
|
|
16
14
|
var SnapshotState$3;
|
|
17
15
|
(function (SnapshotState) {
|
|
18
16
|
SnapshotState["Fulfilled"] = "Fulfilled";
|
|
@@ -3801,7 +3799,7 @@ function withDefaultLuvio(callback) {
|
|
|
3801
3799
|
}
|
|
3802
3800
|
callbacks.push(callback);
|
|
3803
3801
|
}
|
|
3804
|
-
// version: 1.150.
|
|
3802
|
+
// version: 1.150.3-aa1654353
|
|
3805
3803
|
|
|
3806
3804
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3807
3805
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15225,7 +15223,7 @@ function parseAndVisit(source) {
|
|
|
15225
15223
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15226
15224
|
return luvioDocumentNode;
|
|
15227
15225
|
}
|
|
15228
|
-
// version: 1.150.
|
|
15226
|
+
// version: 1.150.3-aa1654353
|
|
15229
15227
|
|
|
15230
15228
|
function unwrap(data) {
|
|
15231
15229
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16138,7 +16136,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16138
16136
|
const { apiFamily, name } = metadata;
|
|
16139
16137
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16140
16138
|
}
|
|
16141
|
-
// version: 1.150.
|
|
16139
|
+
// version: 1.150.3-aa1654353
|
|
16142
16140
|
|
|
16143
16141
|
/**
|
|
16144
16142
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44001,7 +43999,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44001
43999
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44002
44000
|
});
|
|
44003
44001
|
});
|
|
44004
|
-
// version: 1.150.
|
|
44002
|
+
// version: 1.150.3-e3114409f
|
|
44005
44003
|
|
|
44006
44004
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44007
44005
|
|
|
@@ -59623,7 +59621,7 @@ register({
|
|
|
59623
59621
|
id: '@salesforce/lds-network-adapter',
|
|
59624
59622
|
instrument: instrument$1,
|
|
59625
59623
|
});
|
|
59626
|
-
// version: 1.150.
|
|
59624
|
+
// version: 1.150.3-aa1654353
|
|
59627
59625
|
|
|
59628
59626
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59629
59627
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80468,7 +80466,7 @@ register({
|
|
|
80468
80466
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80469
80467
|
instrument,
|
|
80470
80468
|
});
|
|
80471
|
-
// version: 1.150.
|
|
80469
|
+
// version: 1.150.3-e3114409f
|
|
80472
80470
|
|
|
80473
80471
|
// On core the unstable adapters are re-exported with different names,
|
|
80474
80472
|
|
|
@@ -80520,6 +80518,15 @@ var unstableLightningRelatedListApi = /*#__PURE__*/Object.freeze({
|
|
|
80520
80518
|
get unstable_getRelatedListInfoBatch_imperative () { return unstable_getRelatedListInfoBatch_imperative; }
|
|
80521
80519
|
});
|
|
80522
80520
|
|
|
80521
|
+
var ldsAdapterForwardingGate = {
|
|
80522
|
+
isOpen: function (e) {
|
|
80523
|
+
return e.fallback;
|
|
80524
|
+
},
|
|
80525
|
+
hasError: function () {
|
|
80526
|
+
return !0;
|
|
80527
|
+
},
|
|
80528
|
+
};
|
|
80529
|
+
|
|
80523
80530
|
/**
|
|
80524
80531
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
80525
80532
|
* All rights reserved.
|
|
@@ -82706,7 +82713,7 @@ withDefaultLuvio((luvio) => {
|
|
|
82706
82713
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82707
82714
|
graphQLImperative = ldsAdapter;
|
|
82708
82715
|
});
|
|
82709
|
-
// version: 1.150.
|
|
82716
|
+
// version: 1.150.3-e3114409f
|
|
82710
82717
|
|
|
82711
82718
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82712
82719
|
__proto__: null,
|
|
@@ -83395,4 +83402,4 @@ const { luvio } = getRuntime();
|
|
|
83395
83402
|
setDefaultLuvio({ luvio });
|
|
83396
83403
|
|
|
83397
83404
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
83398
|
-
// version: 1.150.
|
|
83405
|
+
// version: 1.150.3-aa1654353
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
* *******************************************************************************************
|
|
13
13
|
*/
|
|
14
14
|
(function (global, factory) {
|
|
15
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports
|
|
16
|
-
typeof define === 'function' && define.amd ? define(['exports'
|
|
17
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ldsWorkerApi = {}
|
|
18
|
-
})(this, (function (exports
|
|
19
|
-
|
|
20
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
|
-
|
|
22
|
-
var ldsAdapterForwardingGate__default = /*#__PURE__*/_interopDefaultLegacy(ldsAdapterForwardingGate);
|
|
15
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
16
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
17
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ldsWorkerApi = {}));
|
|
18
|
+
})(this, (function (exports) { 'use strict';
|
|
23
19
|
|
|
24
20
|
var SnapshotState$3;
|
|
25
21
|
(function (SnapshotState) {
|
|
@@ -3809,7 +3805,7 @@
|
|
|
3809
3805
|
}
|
|
3810
3806
|
callbacks.push(callback);
|
|
3811
3807
|
}
|
|
3812
|
-
// version: 1.150.
|
|
3808
|
+
// version: 1.150.3-aa1654353
|
|
3813
3809
|
|
|
3814
3810
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3815
3811
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15233,7 +15229,7 @@
|
|
|
15233
15229
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15234
15230
|
return luvioDocumentNode;
|
|
15235
15231
|
}
|
|
15236
|
-
// version: 1.150.
|
|
15232
|
+
// version: 1.150.3-aa1654353
|
|
15237
15233
|
|
|
15238
15234
|
function unwrap(data) {
|
|
15239
15235
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16146,7 +16142,7 @@
|
|
|
16146
16142
|
const { apiFamily, name } = metadata;
|
|
16147
16143
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16148
16144
|
}
|
|
16149
|
-
// version: 1.150.
|
|
16145
|
+
// version: 1.150.3-aa1654353
|
|
16150
16146
|
|
|
16151
16147
|
/**
|
|
16152
16148
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44009,7 +44005,7 @@
|
|
|
44009
44005
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44010
44006
|
});
|
|
44011
44007
|
});
|
|
44012
|
-
// version: 1.150.
|
|
44008
|
+
// version: 1.150.3-e3114409f
|
|
44013
44009
|
|
|
44014
44010
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44015
44011
|
|
|
@@ -59631,7 +59627,7 @@
|
|
|
59631
59627
|
id: '@salesforce/lds-network-adapter',
|
|
59632
59628
|
instrument: instrument$1,
|
|
59633
59629
|
});
|
|
59634
|
-
// version: 1.150.
|
|
59630
|
+
// version: 1.150.3-aa1654353
|
|
59635
59631
|
|
|
59636
59632
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59637
59633
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80476,7 +80472,7 @@
|
|
|
80476
80472
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80477
80473
|
instrument,
|
|
80478
80474
|
});
|
|
80479
|
-
// version: 1.150.
|
|
80475
|
+
// version: 1.150.3-e3114409f
|
|
80480
80476
|
|
|
80481
80477
|
// On core the unstable adapters are re-exported with different names,
|
|
80482
80478
|
|
|
@@ -80528,6 +80524,15 @@
|
|
|
80528
80524
|
get unstable_getRelatedListInfoBatch_imperative () { return unstable_getRelatedListInfoBatch_imperative; }
|
|
80529
80525
|
});
|
|
80530
80526
|
|
|
80527
|
+
var ldsAdapterForwardingGate = {
|
|
80528
|
+
isOpen: function (e) {
|
|
80529
|
+
return e.fallback;
|
|
80530
|
+
},
|
|
80531
|
+
hasError: function () {
|
|
80532
|
+
return !0;
|
|
80533
|
+
},
|
|
80534
|
+
};
|
|
80535
|
+
|
|
80531
80536
|
/**
|
|
80532
80537
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
80533
80538
|
* All rights reserved.
|
|
@@ -82630,7 +82635,7 @@
|
|
|
82630
82635
|
return null;
|
|
82631
82636
|
}
|
|
82632
82637
|
const { query, variables, useUiApiAdapter } = validatedConfig;
|
|
82633
|
-
if (useUiApiAdapter === true ||
|
|
82638
|
+
if (useUiApiAdapter === true || ldsAdapterForwardingGate.isOpen({ fallback: false })) {
|
|
82634
82639
|
// Forward to new adapters
|
|
82635
82640
|
const resolvedQuery = astResolver(query);
|
|
82636
82641
|
if (resolvedQuery === undefined) {
|
|
@@ -82714,7 +82719,7 @@
|
|
|
82714
82719
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82715
82720
|
graphQLImperative = ldsAdapter;
|
|
82716
82721
|
});
|
|
82717
|
-
// version: 1.150.
|
|
82722
|
+
// version: 1.150.3-e3114409f
|
|
82718
82723
|
|
|
82719
82724
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82720
82725
|
__proto__: null,
|
|
@@ -83420,4 +83425,4 @@
|
|
|
83420
83425
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
83421
83426
|
|
|
83422
83427
|
}));
|
|
83423
|
-
// version: 1.150.
|
|
83428
|
+
// version: 1.150.3-aa1654353
|