@salesforce/lds-worker-api 1.114.4 → 1.114.5

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.
@@ -747,4 +747,4 @@ if (process.env.NODE_ENV !== 'production') {
747
747
  }
748
748
 
749
749
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
750
- // version: 1.114.4-844684b4c
750
+ // version: 1.114.5-f719a4bce
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
3776
3776
  }
3777
3777
  callbacks.push(callback);
3778
3778
  }
3779
- // version: 1.114.4-844684b4c
3779
+ // version: 1.114.5-f719a4bce
3780
3780
 
3781
3781
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3782
3782
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
15200
15200
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15201
15201
  return luvioDocumentNode;
15202
15202
  }
15203
- // version: 1.114.4-844684b4c
15203
+ // version: 1.114.5-f719a4bce
15204
15204
 
15205
15205
  function unwrap(data) {
15206
15206
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16113,7 +16113,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16113
16113
  const { apiFamily, name } = metadata;
16114
16114
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16115
16115
  }
16116
- // version: 1.114.4-844684b4c
16116
+ // version: 1.114.5-f719a4bce
16117
16117
 
16118
16118
  /**
16119
16119
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44347,7 +44347,7 @@ withDefaultLuvio((luvio) => {
44347
44347
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44348
44348
  });
44349
44349
  });
44350
- // version: 1.114.4-efecf667d
44350
+ // version: 1.114.5-f7ec91a8d
44351
44351
 
44352
44352
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44353
44353
 
@@ -49568,11 +49568,11 @@ class DurableDraftQueue {
49568
49568
  mergeActions(targetActionId, sourceActionId) {
49569
49569
  // ids must be unique
49570
49570
  if (targetActionId === sourceActionId) {
49571
- return Promise.reject(new Error('target and source action ids cannot be the same'));
49571
+ return Promise.reject(new Error('targetActionId and sourceActionId cannot be the same.'));
49572
49572
  }
49573
49573
  // cannot have a replace action already in progress
49574
49574
  if (this.replacingAction !== undefined) {
49575
- return Promise.reject(new Error('Cannot replace actions while a replace action is in progress'));
49575
+ return Promise.reject(new Error('Cannot merge actions while a replace/merge action operation is in progress.'));
49576
49576
  }
49577
49577
  this.stopQueueManually();
49578
49578
  const promise = this.getQueueActions().then(async (actions) => {
@@ -49580,13 +49580,13 @@ class DurableDraftQueue {
49580
49580
  if (target === undefined) {
49581
49581
  this.replacingAction = undefined;
49582
49582
  await this.startQueueSafe();
49583
- throw Error('No action to replace');
49583
+ throw Error('targetActionId not found in the draft queue.');
49584
49584
  }
49585
49585
  const source = actions.find((action) => action.id === sourceActionId);
49586
49586
  if (source === undefined) {
49587
49587
  this.replacingAction = undefined;
49588
49588
  await this.startQueueSafe();
49589
- throw Error('No action to replace');
49589
+ throw Error('sourceActionId not found in the draft queue.');
49590
49590
  }
49591
49591
  // put in a try/finally block so we don't leave this.replacingAction
49592
49592
  // indefinitely set
@@ -55934,28 +55934,28 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
55934
55934
  const { method: sourceMethod, body: sourceBody } = sourceData;
55935
55935
  // pre-requisites
55936
55936
  if (targetCacheKey !== sourceCacheKey) {
55937
- throw Error('Cannot merge actions for different targetIds');
55937
+ throw Error('Cannot merge actions for different targetIds.');
55938
55938
  }
55939
55939
  if (targetTag !== sourceTag) {
55940
- throw Error('Cannot merge actions for different tags');
55940
+ throw Error('Cannot merge actions for different tags.');
55941
55941
  }
55942
55942
  if (targetStatus === DraftActionStatus.Completed ||
55943
55943
  targetStatus === DraftActionStatus.Uploading) {
55944
- throw Error(`cannot merge actions when targetAction is in ${targetStatus} status`);
55944
+ throw Error(`Cannot merge actions when targetAction is in ${targetStatus} status.`);
55945
55945
  }
55946
55946
  if (sourceStatus === DraftActionStatus.Completed ||
55947
55947
  sourceStatus === DraftActionStatus.Uploading) {
55948
- throw Error(`cannot merge actions when sourceAction is in ${sourceStatus} status`);
55948
+ throw Error(`Cannot merge actions when sourceAction is in ${sourceStatus} status.`);
55949
55949
  }
55950
55950
  if (targetMethod.toLowerCase() === 'delete' || sourceMethod.toLowerCase() === 'delete') {
55951
- throw Error('cannot merge DELETE actions');
55951
+ throw Error('Cannot merge DELETE actions.');
55952
55952
  }
55953
55953
  if (targetMethod.toLowerCase() === 'patch' && sourceMethod.toLowerCase() === 'post') {
55954
55954
  // overlaying a POST over a PATCH is not supported
55955
- throw Error('cannot merge a POST action over top of a PATCH action');
55955
+ throw Error('Cannot merge a POST action over top of a PATCH action.');
55956
55956
  }
55957
55957
  if (targetVersion !== sourceVersion) {
55958
- throw Error('cannot merge actions with different versions');
55958
+ throw Error('Cannot merge actions with different versions.');
55959
55959
  }
55960
55960
  // overlay top-level properties, maintain target's timestamp and id
55961
55961
  const merged = {
@@ -59839,7 +59839,7 @@ register({
59839
59839
  id: '@salesforce/lds-network-adapter',
59840
59840
  instrument: instrument$1,
59841
59841
  });
59842
- // version: 1.114.4-844684b4c
59842
+ // version: 1.114.5-f719a4bce
59843
59843
 
59844
59844
  const { create: create$2, keys: keys$2 } = Object;
59845
59845
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -77565,7 +77565,7 @@ register({
77565
77565
  configuration: { ...configurationForGraphQLAdapters },
77566
77566
  instrument,
77567
77567
  });
77568
- // version: 1.114.4-efecf667d
77568
+ // version: 1.114.5-f7ec91a8d
77569
77569
 
77570
77570
  // On core the unstable adapters are re-exported with different names,
77571
77571
 
@@ -79694,7 +79694,7 @@ withDefaultLuvio((luvio) => {
79694
79694
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79695
79695
  graphQLImperative = ldsAdapter;
79696
79696
  });
79697
- // version: 1.114.4-efecf667d
79697
+ // version: 1.114.5-f7ec91a8d
79698
79698
 
79699
79699
  var gqlApi = /*#__PURE__*/Object.freeze({
79700
79700
  __proto__: null,
@@ -80372,4 +80372,4 @@ const { luvio } = getRuntime();
80372
80372
  setDefaultLuvio({ luvio });
80373
80373
 
80374
80374
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
80375
- // version: 1.114.4-844684b4c
80375
+ // version: 1.114.5-f719a4bce
@@ -3782,7 +3782,7 @@
3782
3782
  }
3783
3783
  callbacks.push(callback);
3784
3784
  }
3785
- // version: 1.114.4-844684b4c
3785
+ // version: 1.114.5-f719a4bce
3786
3786
 
3787
3787
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3788
3788
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15206,7 +15206,7 @@
15206
15206
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15207
15207
  return luvioDocumentNode;
15208
15208
  }
15209
- // version: 1.114.4-844684b4c
15209
+ // version: 1.114.5-f719a4bce
15210
15210
 
15211
15211
  function unwrap(data) {
15212
15212
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16119,7 +16119,7 @@
16119
16119
  const { apiFamily, name } = metadata;
16120
16120
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16121
16121
  }
16122
- // version: 1.114.4-844684b4c
16122
+ // version: 1.114.5-f719a4bce
16123
16123
 
16124
16124
  /**
16125
16125
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44353,7 +44353,7 @@
44353
44353
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44354
44354
  });
44355
44355
  });
44356
- // version: 1.114.4-efecf667d
44356
+ // version: 1.114.5-f7ec91a8d
44357
44357
 
44358
44358
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44359
44359
 
@@ -49574,11 +49574,11 @@
49574
49574
  mergeActions(targetActionId, sourceActionId) {
49575
49575
  // ids must be unique
49576
49576
  if (targetActionId === sourceActionId) {
49577
- return Promise.reject(new Error('target and source action ids cannot be the same'));
49577
+ return Promise.reject(new Error('targetActionId and sourceActionId cannot be the same.'));
49578
49578
  }
49579
49579
  // cannot have a replace action already in progress
49580
49580
  if (this.replacingAction !== undefined) {
49581
- return Promise.reject(new Error('Cannot replace actions while a replace action is in progress'));
49581
+ return Promise.reject(new Error('Cannot merge actions while a replace/merge action operation is in progress.'));
49582
49582
  }
49583
49583
  this.stopQueueManually();
49584
49584
  const promise = this.getQueueActions().then(async (actions) => {
@@ -49586,13 +49586,13 @@
49586
49586
  if (target === undefined) {
49587
49587
  this.replacingAction = undefined;
49588
49588
  await this.startQueueSafe();
49589
- throw Error('No action to replace');
49589
+ throw Error('targetActionId not found in the draft queue.');
49590
49590
  }
49591
49591
  const source = actions.find((action) => action.id === sourceActionId);
49592
49592
  if (source === undefined) {
49593
49593
  this.replacingAction = undefined;
49594
49594
  await this.startQueueSafe();
49595
- throw Error('No action to replace');
49595
+ throw Error('sourceActionId not found in the draft queue.');
49596
49596
  }
49597
49597
  // put in a try/finally block so we don't leave this.replacingAction
49598
49598
  // indefinitely set
@@ -55940,28 +55940,28 @@
55940
55940
  const { method: sourceMethod, body: sourceBody } = sourceData;
55941
55941
  // pre-requisites
55942
55942
  if (targetCacheKey !== sourceCacheKey) {
55943
- throw Error('Cannot merge actions for different targetIds');
55943
+ throw Error('Cannot merge actions for different targetIds.');
55944
55944
  }
55945
55945
  if (targetTag !== sourceTag) {
55946
- throw Error('Cannot merge actions for different tags');
55946
+ throw Error('Cannot merge actions for different tags.');
55947
55947
  }
55948
55948
  if (targetStatus === DraftActionStatus.Completed ||
55949
55949
  targetStatus === DraftActionStatus.Uploading) {
55950
- throw Error(`cannot merge actions when targetAction is in ${targetStatus} status`);
55950
+ throw Error(`Cannot merge actions when targetAction is in ${targetStatus} status.`);
55951
55951
  }
55952
55952
  if (sourceStatus === DraftActionStatus.Completed ||
55953
55953
  sourceStatus === DraftActionStatus.Uploading) {
55954
- throw Error(`cannot merge actions when sourceAction is in ${sourceStatus} status`);
55954
+ throw Error(`Cannot merge actions when sourceAction is in ${sourceStatus} status.`);
55955
55955
  }
55956
55956
  if (targetMethod.toLowerCase() === 'delete' || sourceMethod.toLowerCase() === 'delete') {
55957
- throw Error('cannot merge DELETE actions');
55957
+ throw Error('Cannot merge DELETE actions.');
55958
55958
  }
55959
55959
  if (targetMethod.toLowerCase() === 'patch' && sourceMethod.toLowerCase() === 'post') {
55960
55960
  // overlaying a POST over a PATCH is not supported
55961
- throw Error('cannot merge a POST action over top of a PATCH action');
55961
+ throw Error('Cannot merge a POST action over top of a PATCH action.');
55962
55962
  }
55963
55963
  if (targetVersion !== sourceVersion) {
55964
- throw Error('cannot merge actions with different versions');
55964
+ throw Error('Cannot merge actions with different versions.');
55965
55965
  }
55966
55966
  // overlay top-level properties, maintain target's timestamp and id
55967
55967
  const merged = {
@@ -59845,7 +59845,7 @@
59845
59845
  id: '@salesforce/lds-network-adapter',
59846
59846
  instrument: instrument$1,
59847
59847
  });
59848
- // version: 1.114.4-844684b4c
59848
+ // version: 1.114.5-f719a4bce
59849
59849
 
59850
59850
  const { create: create$2, keys: keys$2 } = Object;
59851
59851
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -77571,7 +77571,7 @@
77571
77571
  configuration: { ...configurationForGraphQLAdapters },
77572
77572
  instrument,
77573
77573
  });
77574
- // version: 1.114.4-efecf667d
77574
+ // version: 1.114.5-f7ec91a8d
77575
77575
 
77576
77576
  // On core the unstable adapters are re-exported with different names,
77577
77577
 
@@ -79700,7 +79700,7 @@
79700
79700
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79701
79701
  graphQLImperative = ldsAdapter;
79702
79702
  });
79703
- // version: 1.114.4-efecf667d
79703
+ // version: 1.114.5-f7ec91a8d
79704
79704
 
79705
79705
  var gqlApi = /*#__PURE__*/Object.freeze({
79706
79706
  __proto__: null,
@@ -80395,4 +80395,4 @@
80395
80395
  Object.defineProperty(exports, '__esModule', { value: true });
80396
80396
 
80397
80397
  }));
80398
- // version: 1.114.4-844684b4c
80398
+ // version: 1.114.5-f719a4bce
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.114.4",
3
+ "version": "1.114.5",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/umd/lds-worker-api.js",