@salesforce/lds-drafts 1.309.0-dev19 → 1.309.0-dev21

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
@@ -1369,8 +1369,8 @@ class AbstractResourceRequestActionHandler {
1369
1369
  // to be updated
1370
1370
  for (const { draftId, draftKey, canonicalId, canonicalKey } of redirects) {
1371
1371
  if (basePath.search(draftId) >= 0 || stringifiedBody.search(draftId) >= 0) {
1372
- basePath = basePath.replace(draftId, canonicalId);
1373
- stringifiedBody = stringifiedBody.replace(draftId, canonicalId);
1372
+ basePath = basePath.replace(new RegExp(draftId, 'g'), canonicalId);
1373
+ stringifiedBody = stringifiedBody.replace(new RegExp(draftId, 'g'), canonicalId);
1374
1374
  queueOperationMutated = true;
1375
1375
  }
1376
1376
  // if the action is performed on a previous draft id, we need to replace the action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-drafts",
3
- "version": "1.309.0-dev19",
3
+ "version": "1.309.0-dev21",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Drafts",
6
6
  "main": "dist/ldsDrafts.js",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@luvio/engine": "0.156.4-dev2",
28
28
  "@luvio/environments": "0.156.4-dev2",
29
- "@salesforce/lds-utils-adapters": "^1.309.0-dev19"
29
+ "@salesforce/lds-utils-adapters": "^1.309.0-dev21"
30
30
  },
31
31
  "volta": {
32
32
  "extends": "../../package.json"