@salesforce/lds-drafts 1.114.2 → 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.
package/dist/ldsDrafts.js CHANGED
@@ -739,11 +739,11 @@ class DurableDraftQueue {
739
739
  mergeActions(targetActionId, sourceActionId) {
740
740
  // ids must be unique
741
741
  if (targetActionId === sourceActionId) {
742
- return Promise.reject(new Error('target and source action ids cannot be the same'));
742
+ return Promise.reject(new Error('targetActionId and sourceActionId cannot be the same.'));
743
743
  }
744
744
  // cannot have a replace action already in progress
745
745
  if (this.replacingAction !== undefined) {
746
- return Promise.reject(new Error('Cannot replace actions while a replace action is in progress'));
746
+ return Promise.reject(new Error('Cannot merge actions while a replace/merge action operation is in progress.'));
747
747
  }
748
748
  this.stopQueueManually();
749
749
  const promise = this.getQueueActions().then(async (actions) => {
@@ -751,13 +751,13 @@ class DurableDraftQueue {
751
751
  if (target === undefined) {
752
752
  this.replacingAction = undefined;
753
753
  await this.startQueueSafe();
754
- throw Error('No action to replace');
754
+ throw Error('targetActionId not found in the draft queue.');
755
755
  }
756
756
  const source = actions.find((action) => action.id === sourceActionId);
757
757
  if (source === undefined) {
758
758
  this.replacingAction = undefined;
759
759
  await this.startQueueSafe();
760
- throw Error('No action to replace');
760
+ throw Error('sourceActionId not found in the draft queue.');
761
761
  }
762
762
  // put in a try/finally block so we don't leave this.replacingAction
763
763
  // indefinitely set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-drafts",
3
- "version": "1.114.2",
3
+ "version": "1.114.5",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Drafts",
6
6
  "main": "dist/ldsDrafts.js",
@@ -26,6 +26,6 @@
26
26
  "dependencies": {
27
27
  "@luvio/engine": "0.137.1",
28
28
  "@luvio/environments": "0.137.1",
29
- "@salesforce/lds-utils-adapters": "^1.114.2"
29
+ "@salesforce/lds-utils-adapters": "*"
30
30
  }
31
31
  }