@salesforce/lds-worker-api 1.309.0-dev20 → 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.
@@ -1085,4 +1085,4 @@ if (process.env.NODE_ENV !== 'production') {
1085
1085
  }
1086
1086
 
1087
1087
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1088
- // version: 1.309.0-dev20-7df11c6508
1088
+ // version: 1.309.0-dev21-29cc13cf0a
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.309.0-dev20-7df11c6508
4268
+ // version: 1.309.0-dev21-29cc13cf0a
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15764,7 +15764,7 @@ function gql(literals, ...subs) {
15764
15764
  }
15765
15765
  return superResult;
15766
15766
  }
15767
- // version: 1.309.0-dev20-7df11c6508
15767
+ // version: 1.309.0-dev21-29cc13cf0a
15768
15768
 
15769
15769
  function unwrap(data) {
15770
15770
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16705,7 +16705,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16705
16705
  const { apiFamily, name } = metadata;
16706
16706
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16707
16707
  }
16708
- // version: 1.309.0-dev20-7df11c6508
16708
+ // version: 1.309.0-dev21-29cc13cf0a
16709
16709
 
16710
16710
  /**
16711
16711
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44812,7 +44812,7 @@ withDefaultLuvio((luvio) => {
44812
44812
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44813
44813
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44814
44814
  });
44815
- // version: 1.309.0-dev20-96b0b3663c
44815
+ // version: 1.309.0-dev21-4baf03ecaf
44816
44816
 
44817
44817
  var ldsIdempotencyWriteDisabled = {
44818
44818
  isOpen: function (e) {
@@ -51290,8 +51290,8 @@ class AbstractResourceRequestActionHandler {
51290
51290
  // to be updated
51291
51291
  for (const { draftId, draftKey, canonicalId, canonicalKey } of redirects) {
51292
51292
  if (basePath.search(draftId) >= 0 || stringifiedBody.search(draftId) >= 0) {
51293
- basePath = basePath.replace(draftId, canonicalId);
51294
- stringifiedBody = stringifiedBody.replace(draftId, canonicalId);
51293
+ basePath = basePath.replace(new RegExp(draftId, 'g'), canonicalId);
51294
+ stringifiedBody = stringifiedBody.replace(new RegExp(draftId, 'g'), canonicalId);
51295
51295
  queueOperationMutated = true;
51296
51296
  }
51297
51297
  // if the action is performed on a previous draft id, we need to replace the action
@@ -64113,7 +64113,7 @@ register$1({
64113
64113
  id: '@salesforce/lds-network-adapter',
64114
64114
  instrument: instrument$2,
64115
64115
  });
64116
- // version: 1.309.0-dev20-7df11c6508
64116
+ // version: 1.309.0-dev21-29cc13cf0a
64117
64117
 
64118
64118
  const { create: create$3, keys: keys$3 } = Object;
64119
64119
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -84149,7 +84149,7 @@ register$1({
84149
84149
  configuration: { ...configurationForGraphQLAdapters$1 },
84150
84150
  instrument: instrument$1,
84151
84151
  });
84152
- // version: 1.309.0-dev20-96b0b3663c
84152
+ // version: 1.309.0-dev21-4baf03ecaf
84153
84153
 
84154
84154
  // On core the unstable adapters are re-exported with different names,
84155
84155
  // we want to match them here.
@@ -86405,7 +86405,7 @@ withDefaultLuvio((luvio) => {
86405
86405
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
86406
86406
  graphQLImperative = ldsAdapter;
86407
86407
  });
86408
- // version: 1.309.0-dev20-96b0b3663c
86408
+ // version: 1.309.0-dev21-4baf03ecaf
86409
86409
 
86410
86410
  var gqlApi = /*#__PURE__*/Object.freeze({
86411
86411
  __proto__: null,
@@ -87154,7 +87154,7 @@ const callbacks$1 = [];
87154
87154
  function register(r) {
87155
87155
  callbacks$1.forEach((callback) => callback(r));
87156
87156
  }
87157
- // version: 1.309.0-dev20-7df11c6508
87157
+ // version: 1.309.0-dev21-29cc13cf0a
87158
87158
 
87159
87159
  /**
87160
87160
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -92116,4 +92116,4 @@ const { luvio } = getRuntime();
92116
92116
  setDefaultLuvio({ luvio });
92117
92117
 
92118
92118
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
92119
- // version: 1.309.0-dev20-7df11c6508
92119
+ // version: 1.309.0-dev21-29cc13cf0a
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.309.0-dev20-7df11c6508
4274
+ // version: 1.309.0-dev21-29cc13cf0a
4275
4275
 
4276
4276
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4277
4277
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15770,7 +15770,7 @@
15770
15770
  }
15771
15771
  return superResult;
15772
15772
  }
15773
- // version: 1.309.0-dev20-7df11c6508
15773
+ // version: 1.309.0-dev21-29cc13cf0a
15774
15774
 
15775
15775
  function unwrap(data) {
15776
15776
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16711,7 +16711,7 @@
16711
16711
  const { apiFamily, name } = metadata;
16712
16712
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16713
16713
  }
16714
- // version: 1.309.0-dev20-7df11c6508
16714
+ // version: 1.309.0-dev21-29cc13cf0a
16715
16715
 
16716
16716
  /**
16717
16717
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44818,7 +44818,7 @@
44818
44818
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44819
44819
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44820
44820
  });
44821
- // version: 1.309.0-dev20-96b0b3663c
44821
+ // version: 1.309.0-dev21-4baf03ecaf
44822
44822
 
44823
44823
  var ldsIdempotencyWriteDisabled = {
44824
44824
  isOpen: function (e) {
@@ -51296,8 +51296,8 @@
51296
51296
  // to be updated
51297
51297
  for (const { draftId, draftKey, canonicalId, canonicalKey } of redirects) {
51298
51298
  if (basePath.search(draftId) >= 0 || stringifiedBody.search(draftId) >= 0) {
51299
- basePath = basePath.replace(draftId, canonicalId);
51300
- stringifiedBody = stringifiedBody.replace(draftId, canonicalId);
51299
+ basePath = basePath.replace(new RegExp(draftId, 'g'), canonicalId);
51300
+ stringifiedBody = stringifiedBody.replace(new RegExp(draftId, 'g'), canonicalId);
51301
51301
  queueOperationMutated = true;
51302
51302
  }
51303
51303
  // if the action is performed on a previous draft id, we need to replace the action
@@ -64119,7 +64119,7 @@
64119
64119
  id: '@salesforce/lds-network-adapter',
64120
64120
  instrument: instrument$2,
64121
64121
  });
64122
- // version: 1.309.0-dev20-7df11c6508
64122
+ // version: 1.309.0-dev21-29cc13cf0a
64123
64123
 
64124
64124
  const { create: create$3, keys: keys$3 } = Object;
64125
64125
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -84155,7 +84155,7 @@
84155
84155
  configuration: { ...configurationForGraphQLAdapters$1 },
84156
84156
  instrument: instrument$1,
84157
84157
  });
84158
- // version: 1.309.0-dev20-96b0b3663c
84158
+ // version: 1.309.0-dev21-4baf03ecaf
84159
84159
 
84160
84160
  // On core the unstable adapters are re-exported with different names,
84161
84161
  // we want to match them here.
@@ -86411,7 +86411,7 @@
86411
86411
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
86412
86412
  graphQLImperative = ldsAdapter;
86413
86413
  });
86414
- // version: 1.309.0-dev20-96b0b3663c
86414
+ // version: 1.309.0-dev21-4baf03ecaf
86415
86415
 
86416
86416
  var gqlApi = /*#__PURE__*/Object.freeze({
86417
86417
  __proto__: null,
@@ -87160,7 +87160,7 @@
87160
87160
  function register(r) {
87161
87161
  callbacks$1.forEach((callback) => callback(r));
87162
87162
  }
87163
- // version: 1.309.0-dev20-7df11c6508
87163
+ // version: 1.309.0-dev21-29cc13cf0a
87164
87164
 
87165
87165
  /**
87166
87166
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -92141,4 +92141,4 @@
92141
92141
  exports.subscribeToAdapter = subscribeToAdapter;
92142
92142
 
92143
92143
  }));
92144
- // version: 1.309.0-dev20-7df11c6508
92144
+ // version: 1.309.0-dev21-29cc13cf0a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.309.0-dev20",
3
+ "version": "1.309.0-dev21",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.309.0-dev20",
39
- "@salesforce/lds-adapters-uiapi": "^1.309.0-dev20",
40
- "@salesforce/lds-default-luvio": "^1.309.0-dev20",
41
- "@salesforce/lds-drafts": "^1.309.0-dev20",
42
- "@salesforce/lds-graphql-parser": "^1.309.0-dev20",
43
- "@salesforce/lds-luvio-engine": "^1.309.0-dev20",
44
- "@salesforce/lds-priming": "^1.309.0-dev20",
45
- "@salesforce/lds-runtime-mobile": "^1.309.0-dev20",
46
- "@salesforce/nimbus-plugin-lds": "^1.309.0-dev20",
38
+ "@salesforce/lds-adapters-graphql": "^1.309.0-dev21",
39
+ "@salesforce/lds-adapters-uiapi": "^1.309.0-dev21",
40
+ "@salesforce/lds-default-luvio": "^1.309.0-dev21",
41
+ "@salesforce/lds-drafts": "^1.309.0-dev21",
42
+ "@salesforce/lds-graphql-parser": "^1.309.0-dev21",
43
+ "@salesforce/lds-luvio-engine": "^1.309.0-dev21",
44
+ "@salesforce/lds-priming": "^1.309.0-dev21",
45
+ "@salesforce/lds-runtime-mobile": "^1.309.0-dev21",
46
+ "@salesforce/nimbus-plugin-lds": "^1.309.0-dev21",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",