@salesforce/lds-worker-api 1.214.2 → 1.215.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.
@@ -795,4 +795,4 @@ if (process.env.NODE_ENV !== 'production') {
795
795
  }
796
796
 
797
797
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
798
- // version: 1.214.2-a5e1ff9a2
798
+ // version: 1.215.0-bad85aa50
@@ -3898,7 +3898,7 @@ function withDefaultLuvio(callback) {
3898
3898
  }
3899
3899
  callbacks.push(callback);
3900
3900
  }
3901
- // version: 1.214.2-a5e1ff9a2
3901
+ // version: 1.215.0-bad85aa50
3902
3902
 
3903
3903
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3904
3904
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15331,7 +15331,7 @@ function parseAndVisit(source) {
15331
15331
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15332
15332
  return luvioDocumentNode;
15333
15333
  }
15334
- // version: 1.214.2-a5e1ff9a2
15334
+ // version: 1.215.0-bad85aa50
15335
15335
 
15336
15336
  function unwrap(data) {
15337
15337
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16254,7 +16254,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16254
16254
  const { apiFamily, name } = metadata;
16255
16255
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16256
16256
  }
16257
- // version: 1.214.2-a5e1ff9a2
16257
+ // version: 1.215.0-bad85aa50
16258
16258
 
16259
16259
  /**
16260
16260
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -40936,7 +40936,7 @@ function typeCheckConfig$4(untrustedConfig) {
40936
40936
  }
40937
40937
  return config;
40938
40938
  }
40939
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
40939
+ function validateAdapterConfig$2$1(untrustedConfig, configPropertyNames) {
40940
40940
  if (!untrustedIsObject$2(untrustedConfig)) {
40941
40941
  return null;
40942
40942
  }
@@ -41005,7 +41005,7 @@ const factory$2 = (luvio) => {
41005
41005
  let config = null;
41006
41006
  if (untrustedIsObject$2(untrusted) &&
41007
41007
  untrustedIsObject$2(untrusted.fields)) {
41008
- config = validateAdapterConfig$2({ recordId: untrusted.fields.Id, ...untrusted }, updateRecord_ConfigPropertyNames);
41008
+ config = validateAdapterConfig$2$1({ recordId: untrusted.fields.Id, ...untrusted }, updateRecord_ConfigPropertyNames);
41009
41009
  }
41010
41010
  // Invalid or incomplete config
41011
41011
  if (config === null) {
@@ -41934,7 +41934,7 @@ withDefaultLuvio((luvio) => {
41934
41934
  });
41935
41935
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory));
41936
41936
  });
41937
- // version: 1.214.2-2e2871620
41937
+ // version: 1.215.0-dc8d4056e
41938
41938
 
41939
41939
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41940
41940
 
@@ -58532,7 +58532,7 @@ register({
58532
58532
  id: '@salesforce/lds-network-adapter',
58533
58533
  instrument: instrument$1,
58534
58534
  });
58535
- // version: 1.214.2-a5e1ff9a2
58535
+ // version: 1.215.0-bad85aa50
58536
58536
 
58537
58537
  const { create: create$2, keys: keys$2 } = Object;
58538
58538
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -75651,7 +75651,7 @@ function typeCheckConfig$1(untrustedConfig) {
75651
75651
  }
75652
75652
  return config;
75653
75653
  }
75654
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
75654
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
75655
75655
  if (!untrustedIsObject$1(untrustedConfig)) {
75656
75656
  return null;
75657
75657
  }
@@ -75878,6 +75878,19 @@ function ensureRegisteredOnce(registration) {
75878
75878
  }
75879
75879
  }
75880
75880
 
75881
+ function validateAdapterConfig$1(untrustedConfig, _configPropertyNames) {
75882
+ if (untrustedConfig !== null && typeof untrustedConfig === 'object') {
75883
+ const operationNameIsDefinedAsUndefined = ObjectPrototypeHasOwnProperty.call(untrustedConfig, 'operationName') &&
75884
+ untrustedConfig.operationName === undefined;
75885
+ const variablesIsDefinedAsUndefined = ObjectPrototypeHasOwnProperty.call(untrustedConfig, 'variables') &&
75886
+ untrustedConfig.variables === undefined;
75887
+ if (operationNameIsDefinedAsUndefined || variablesIsDefinedAsUndefined) {
75888
+ return null;
75889
+ }
75890
+ }
75891
+ return validateAdapterConfig$2(untrustedConfig, _configPropertyNames);
75892
+ }
75893
+
75881
75894
  const factory$1 = (luvio) => function graphql(untrustedConfig, requestContext) {
75882
75895
  const config = validateAdapterConfig$1(untrustedConfig, graphql_ConfigPropertyNames);
75883
75896
  // Invalid or incomplete config
@@ -76807,7 +76820,7 @@ register({
76807
76820
  configuration: { ...configurationForGraphQLAdapters },
76808
76821
  instrument,
76809
76822
  });
76810
- // version: 1.214.2-2e2871620
76823
+ // version: 1.215.0-dc8d4056e
76811
76824
 
76812
76825
  // On core the unstable adapters are re-exported with different names,
76813
76826
 
@@ -79054,7 +79067,7 @@ withDefaultLuvio((luvio) => {
79054
79067
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79055
79068
  graphQLImperative = ldsAdapter;
79056
79069
  });
79057
- // version: 1.214.2-2e2871620
79070
+ // version: 1.215.0-dc8d4056e
79058
79071
 
79059
79072
  var gqlApi = /*#__PURE__*/Object.freeze({
79060
79073
  __proto__: null,
@@ -79768,4 +79781,4 @@ const { luvio } = getRuntime();
79768
79781
  setDefaultLuvio({ luvio });
79769
79782
 
79770
79783
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
79771
- // version: 1.214.2-a5e1ff9a2
79784
+ // version: 1.215.0-bad85aa50
@@ -3904,7 +3904,7 @@
3904
3904
  }
3905
3905
  callbacks.push(callback);
3906
3906
  }
3907
- // version: 1.214.2-a5e1ff9a2
3907
+ // version: 1.215.0-bad85aa50
3908
3908
 
3909
3909
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3910
3910
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15337,7 +15337,7 @@
15337
15337
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15338
15338
  return luvioDocumentNode;
15339
15339
  }
15340
- // version: 1.214.2-a5e1ff9a2
15340
+ // version: 1.215.0-bad85aa50
15341
15341
 
15342
15342
  function unwrap(data) {
15343
15343
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16260,7 +16260,7 @@
16260
16260
  const { apiFamily, name } = metadata;
16261
16261
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16262
16262
  }
16263
- // version: 1.214.2-a5e1ff9a2
16263
+ // version: 1.215.0-bad85aa50
16264
16264
 
16265
16265
  /**
16266
16266
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -40942,7 +40942,7 @@
40942
40942
  }
40943
40943
  return config;
40944
40944
  }
40945
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
40945
+ function validateAdapterConfig$2$1(untrustedConfig, configPropertyNames) {
40946
40946
  if (!untrustedIsObject$2(untrustedConfig)) {
40947
40947
  return null;
40948
40948
  }
@@ -41011,7 +41011,7 @@
41011
41011
  let config = null;
41012
41012
  if (untrustedIsObject$2(untrusted) &&
41013
41013
  untrustedIsObject$2(untrusted.fields)) {
41014
- config = validateAdapterConfig$2({ recordId: untrusted.fields.Id, ...untrusted }, updateRecord_ConfigPropertyNames);
41014
+ config = validateAdapterConfig$2$1({ recordId: untrusted.fields.Id, ...untrusted }, updateRecord_ConfigPropertyNames);
41015
41015
  }
41016
41016
  // Invalid or incomplete config
41017
41017
  if (config === null) {
@@ -41940,7 +41940,7 @@
41940
41940
  });
41941
41941
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory));
41942
41942
  });
41943
- // version: 1.214.2-2e2871620
41943
+ // version: 1.215.0-dc8d4056e
41944
41944
 
41945
41945
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41946
41946
 
@@ -58538,7 +58538,7 @@
58538
58538
  id: '@salesforce/lds-network-adapter',
58539
58539
  instrument: instrument$1,
58540
58540
  });
58541
- // version: 1.214.2-a5e1ff9a2
58541
+ // version: 1.215.0-bad85aa50
58542
58542
 
58543
58543
  const { create: create$2, keys: keys$2 } = Object;
58544
58544
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -75657,7 +75657,7 @@
75657
75657
  }
75658
75658
  return config;
75659
75659
  }
75660
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
75660
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
75661
75661
  if (!untrustedIsObject$1(untrustedConfig)) {
75662
75662
  return null;
75663
75663
  }
@@ -75884,6 +75884,19 @@
75884
75884
  }
75885
75885
  }
75886
75886
 
75887
+ function validateAdapterConfig$1(untrustedConfig, _configPropertyNames) {
75888
+ if (untrustedConfig !== null && typeof untrustedConfig === 'object') {
75889
+ const operationNameIsDefinedAsUndefined = ObjectPrototypeHasOwnProperty.call(untrustedConfig, 'operationName') &&
75890
+ untrustedConfig.operationName === undefined;
75891
+ const variablesIsDefinedAsUndefined = ObjectPrototypeHasOwnProperty.call(untrustedConfig, 'variables') &&
75892
+ untrustedConfig.variables === undefined;
75893
+ if (operationNameIsDefinedAsUndefined || variablesIsDefinedAsUndefined) {
75894
+ return null;
75895
+ }
75896
+ }
75897
+ return validateAdapterConfig$2(untrustedConfig, _configPropertyNames);
75898
+ }
75899
+
75887
75900
  const factory$1 = (luvio) => function graphql(untrustedConfig, requestContext) {
75888
75901
  const config = validateAdapterConfig$1(untrustedConfig, graphql_ConfigPropertyNames);
75889
75902
  // Invalid or incomplete config
@@ -76813,7 +76826,7 @@
76813
76826
  configuration: { ...configurationForGraphQLAdapters },
76814
76827
  instrument,
76815
76828
  });
76816
- // version: 1.214.2-2e2871620
76829
+ // version: 1.215.0-dc8d4056e
76817
76830
 
76818
76831
  // On core the unstable adapters are re-exported with different names,
76819
76832
 
@@ -79060,7 +79073,7 @@
79060
79073
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79061
79074
  graphQLImperative = ldsAdapter;
79062
79075
  });
79063
- // version: 1.214.2-2e2871620
79076
+ // version: 1.215.0-dc8d4056e
79064
79077
 
79065
79078
  var gqlApi = /*#__PURE__*/Object.freeze({
79066
79079
  __proto__: null,
@@ -79791,4 +79804,4 @@
79791
79804
  Object.defineProperty(exports, '__esModule', { value: true });
79792
79805
 
79793
79806
  }));
79794
- // version: 1.214.2-a5e1ff9a2
79807
+ // version: 1.215.0-bad85aa50
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.214.2",
3
+ "version": "1.215.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",