@salesforce/lds-worker-api 1.157.0 → 1.157.2

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.157.0-4246d2656
773
+ // version: 1.157.2-6be62a141
@@ -3672,7 +3672,7 @@ class Luvio {
3672
3672
  return this.environment.buildStructuredKey(namespace, representationName, idValues);
3673
3673
  }
3674
3674
  }
3675
- // engine version: 0.143.1-f553bab7
3675
+ // engine version: 0.143.2-f0cd3fab
3676
3676
 
3677
3677
  /**
3678
3678
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3799,7 +3799,7 @@ function withDefaultLuvio(callback) {
3799
3799
  }
3800
3800
  callbacks.push(callback);
3801
3801
  }
3802
- // version: 1.157.0-4246d2656
3802
+ // version: 1.157.2-6be62a141
3803
3803
 
3804
3804
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3805
3805
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15232,7 +15232,7 @@ function parseAndVisit(source) {
15232
15232
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15233
15233
  return luvioDocumentNode;
15234
15234
  }
15235
- // version: 1.157.0-4246d2656
15235
+ // version: 1.157.2-6be62a141
15236
15236
 
15237
15237
  function unwrap(data) {
15238
15238
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16145,7 +16145,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16145
16145
  const { apiFamily, name } = metadata;
16146
16146
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16147
16147
  }
16148
- // version: 1.157.0-4246d2656
16148
+ // version: 1.157.2-6be62a141
16149
16149
 
16150
16150
  /**
16151
16151
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16228,7 +16228,7 @@ var FragmentReadResultState;
16228
16228
  ({
16229
16229
  state: FragmentReadResultState.Missing,
16230
16230
  });
16231
- // engine version: 0.143.1-f553bab7
16231
+ // engine version: 0.143.2-f0cd3fab
16232
16232
 
16233
16233
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16234
16234
 
@@ -44016,7 +44016,7 @@ withDefaultLuvio((luvio) => {
44016
44016
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44017
44017
  });
44018
44018
  });
44019
- // version: 1.157.0-612ff940a
44019
+ // version: 1.157.2-24516510a
44020
44020
 
44021
44021
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44022
44022
 
@@ -60050,7 +60050,7 @@ register({
60050
60050
  id: '@salesforce/lds-network-adapter',
60051
60051
  instrument: instrument$1,
60052
60052
  });
60053
- // version: 1.157.0-4246d2656
60053
+ // version: 1.157.2-6be62a141
60054
60054
 
60055
60055
  const { create: create$2, keys: keys$2 } = Object;
60056
60056
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -60361,9 +60361,9 @@ function findMaxOffset(metadata) {
60361
60361
  if (endOfList !== undefined) {
60362
60362
  return endOfList > 0 ? endOfList - 1 : 0; // Cursor based pagination in gql is off by one :)
60363
60363
  }
60364
- const { __END__: _, ...cursorMetadata } = metadata;
60365
- const values = Object.values(cursorMetadata).filter((value) => value !== undefined);
60366
- return Math.max(...values);
60364
+ // end is included in the above case.
60365
+ return Object.values(metadata)
60366
+ .reduce((acc, value) => Math.max(value !== null && value !== void 0 ? value : -1, acc), -1);
60367
60367
  }
60368
60368
  function getPageTokenAndOffset(paginationMetadata, token) {
60369
60369
  if (token === undefined) {
@@ -80895,7 +80895,7 @@ register({
80895
80895
  configuration: { ...configurationForGraphQLAdapters },
80896
80896
  instrument,
80897
80897
  });
80898
- // version: 1.157.0-612ff940a
80898
+ // version: 1.157.2-24516510a
80899
80899
 
80900
80900
  // On core the unstable adapters are re-exported with different names,
80901
80901
 
@@ -83142,7 +83142,7 @@ withDefaultLuvio((luvio) => {
83142
83142
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
83143
83143
  graphQLImperative = ldsAdapter;
83144
83144
  });
83145
- // version: 1.157.0-612ff940a
83145
+ // version: 1.157.2-24516510a
83146
83146
 
83147
83147
  var gqlApi = /*#__PURE__*/Object.freeze({
83148
83148
  __proto__: null,
@@ -83831,4 +83831,4 @@ const { luvio } = getRuntime();
83831
83831
  setDefaultLuvio({ luvio });
83832
83832
 
83833
83833
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
83834
- // version: 1.157.0-4246d2656
83834
+ // version: 1.157.2-6be62a141
@@ -3678,7 +3678,7 @@
3678
3678
  return this.environment.buildStructuredKey(namespace, representationName, idValues);
3679
3679
  }
3680
3680
  }
3681
- // engine version: 0.143.1-f553bab7
3681
+ // engine version: 0.143.2-f0cd3fab
3682
3682
 
3683
3683
  /**
3684
3684
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3805,7 +3805,7 @@
3805
3805
  }
3806
3806
  callbacks.push(callback);
3807
3807
  }
3808
- // version: 1.157.0-4246d2656
3808
+ // version: 1.157.2-6be62a141
3809
3809
 
3810
3810
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3811
3811
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15238,7 +15238,7 @@
15238
15238
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15239
15239
  return luvioDocumentNode;
15240
15240
  }
15241
- // version: 1.157.0-4246d2656
15241
+ // version: 1.157.2-6be62a141
15242
15242
 
15243
15243
  function unwrap(data) {
15244
15244
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16151,7 +16151,7 @@
16151
16151
  const { apiFamily, name } = metadata;
16152
16152
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16153
16153
  }
16154
- // version: 1.157.0-4246d2656
16154
+ // version: 1.157.2-6be62a141
16155
16155
 
16156
16156
  /**
16157
16157
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16234,7 +16234,7 @@
16234
16234
  ({
16235
16235
  state: FragmentReadResultState.Missing,
16236
16236
  });
16237
- // engine version: 0.143.1-f553bab7
16237
+ // engine version: 0.143.2-f0cd3fab
16238
16238
 
16239
16239
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16240
16240
 
@@ -44022,7 +44022,7 @@
44022
44022
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44023
44023
  });
44024
44024
  });
44025
- // version: 1.157.0-612ff940a
44025
+ // version: 1.157.2-24516510a
44026
44026
 
44027
44027
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44028
44028
 
@@ -60056,7 +60056,7 @@
60056
60056
  id: '@salesforce/lds-network-adapter',
60057
60057
  instrument: instrument$1,
60058
60058
  });
60059
- // version: 1.157.0-4246d2656
60059
+ // version: 1.157.2-6be62a141
60060
60060
 
60061
60061
  const { create: create$2, keys: keys$2 } = Object;
60062
60062
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -60367,9 +60367,9 @@
60367
60367
  if (endOfList !== undefined) {
60368
60368
  return endOfList > 0 ? endOfList - 1 : 0; // Cursor based pagination in gql is off by one :)
60369
60369
  }
60370
- const { __END__: _, ...cursorMetadata } = metadata;
60371
- const values = Object.values(cursorMetadata).filter((value) => value !== undefined);
60372
- return Math.max(...values);
60370
+ // end is included in the above case.
60371
+ return Object.values(metadata)
60372
+ .reduce((acc, value) => Math.max(value !== null && value !== void 0 ? value : -1, acc), -1);
60373
60373
  }
60374
60374
  function getPageTokenAndOffset(paginationMetadata, token) {
60375
60375
  if (token === undefined) {
@@ -80901,7 +80901,7 @@
80901
80901
  configuration: { ...configurationForGraphQLAdapters },
80902
80902
  instrument,
80903
80903
  });
80904
- // version: 1.157.0-612ff940a
80904
+ // version: 1.157.2-24516510a
80905
80905
 
80906
80906
  // On core the unstable adapters are re-exported with different names,
80907
80907
 
@@ -83148,7 +83148,7 @@
83148
83148
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
83149
83149
  graphQLImperative = ldsAdapter;
83150
83150
  });
83151
- // version: 1.157.0-612ff940a
83151
+ // version: 1.157.2-24516510a
83152
83152
 
83153
83153
  var gqlApi = /*#__PURE__*/Object.freeze({
83154
83154
  __proto__: null,
@@ -83854,4 +83854,4 @@
83854
83854
  Object.defineProperty(exports, '__esModule', { value: true });
83855
83855
 
83856
83856
  }));
83857
- // version: 1.157.0-4246d2656
83857
+ // version: 1.157.2-6be62a141
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.157.0",
3
+ "version": "1.157.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",