@salesforce/lds-worker-api 1.389.0 → 1.389.1

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.
@@ -1371,4 +1371,4 @@ if (process.env.NODE_ENV !== 'production') {
1371
1371
  }
1372
1372
 
1373
1373
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1374
- // version: 1.389.0-a312a201ad
1374
+ // version: 1.389.1-55a7286110
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.389.0-a312a201ad
4277
+ // version: 1.389.1-55a7286110
4278
4278
 
4279
4279
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4280
4280
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5318
5318
  const { apiFamily, name } = metadata;
5319
5319
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5320
5320
  }
5321
- // version: 1.389.0-a312a201ad
5321
+ // version: 1.389.1-55a7286110
5322
5322
 
5323
5323
  /**
5324
5324
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -34154,7 +34154,7 @@ withDefaultLuvio((luvio) => {
34154
34154
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
34155
34155
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
34156
34156
  });
34157
- // version: 1.389.0-375f8790ac
34157
+ // version: 1.389.1-c0c26cd070
34158
34158
 
34159
34159
  function requestIdleDetectedCallback(_callback) { }
34160
34160
  function declareNotifierTaskSingle(_name) {
@@ -94592,14 +94592,14 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
94592
94592
  if (this.shouldUseAuraNetwork()) {
94593
94593
  return this.convertAuraResponseToData(
94594
94594
  this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
94595
- (errs) => this.coerceError(errs)
94595
+ (errs) => this.coerceAuraErrors(errs)
94596
94596
  );
94597
94597
  } else if (this.shouldUseFetch()) {
94598
94598
  return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
94599
94599
  }
94600
94600
  return resolvedPromiseLike$3(err$1$1(toError("Aura/Fetch network services not found")));
94601
94601
  }
94602
- coerceError(auraErrors) {
94602
+ coerceAuraErrors(auraErrors) {
94603
94603
  return toError(auraErrors[0]);
94604
94604
  }
94605
94605
  async coerceFetchError(errorResponse) {
@@ -94731,14 +94731,14 @@ class AuraCacheControlCommand extends CacheControlCommand {
94731
94731
  if (this.shouldUseAuraNetwork()) {
94732
94732
  return this.convertAuraResponseToData(
94733
94733
  this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
94734
- (errs) => this.coerceError(errs)
94734
+ (errs) => this.coerceAuraErrors(errs)
94735
94735
  );
94736
94736
  } else if (this.shouldUseFetch()) {
94737
94737
  return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
94738
94738
  }
94739
94739
  return resolvedPromiseLike$3(err$1$1(toError("Aura/Fetch network services not found")));
94740
94740
  }
94741
- coerceError(auraErrors) {
94741
+ coerceAuraErrors(auraErrors) {
94742
94742
  return toError(auraErrors[0]);
94743
94743
  }
94744
94744
  async coerceFetchError(errorResponse) {
@@ -95993,7 +95993,7 @@ function buildServiceDescriptor$5(luvio) {
95993
95993
  },
95994
95994
  };
95995
95995
  }
95996
- // version: 1.389.0-375f8790ac
95996
+ // version: 1.389.1-c0c26cd070
95997
95997
 
95998
95998
  /**
95999
95999
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96019,7 +96019,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
96019
96019
  },
96020
96020
  };
96021
96021
  }
96022
- // version: 1.389.0-375f8790ac
96022
+ // version: 1.389.1-c0c26cd070
96023
96023
 
96024
96024
  /*!
96025
96025
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97052,7 +97052,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
97052
97052
  this.originalAuraParams,
97053
97053
  this.actionConfig
97054
97054
  ),
97055
- (errs) => this.coerceError(errs)
97055
+ (errs) => this.coerceAuraErrors(errs)
97056
97056
  ).then((result) => {
97057
97057
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
97058
97058
  });
@@ -98210,7 +98210,7 @@ register$1({
98210
98210
  id: '@salesforce/lds-network-adapter',
98211
98211
  instrument: instrument$2,
98212
98212
  });
98213
- // version: 1.389.0-a312a201ad
98213
+ // version: 1.389.1-55a7286110
98214
98214
 
98215
98215
  const { create: create$3, keys: keys$3 } = Object;
98216
98216
  const { stringify: stringify$1, parse } = JSON;
@@ -101030,7 +101030,7 @@ function handleEmit(res, callback) {
101030
101030
  }
101031
101031
  callback(consumerEmittedData);
101032
101032
  }
101033
- // version: 1.389.0-375f8790ac
101033
+ // version: 1.389.1-c0c26cd070
101034
101034
 
101035
101035
  class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
101036
101036
  constructor(services, typeRegistry) {
@@ -105184,7 +105184,7 @@ function registerCallback(cb) {
105184
105184
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, useOneStoreGraphQL);
105185
105185
  }
105186
105186
  }
105187
- // version: 1.389.0-375f8790ac
105187
+ // version: 1.389.1-c0c26cd070
105188
105188
 
105189
105189
  function createFragmentMap(documentNode) {
105190
105190
  const fragments = {};
@@ -131865,7 +131865,7 @@ register$1({
131865
131865
  configuration: { ...configurationForGraphQLAdapters$1 },
131866
131866
  instrument: instrument$1,
131867
131867
  });
131868
- // version: 1.389.0-375f8790ac
131868
+ // version: 1.389.1-c0c26cd070
131869
131869
 
131870
131870
  // On core the unstable adapters are re-exported with different names,
131871
131871
  // we want to match them here.
@@ -132017,7 +132017,7 @@ withDefaultLuvio((luvio) => {
132017
132017
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
132018
132018
  graphQLImperative = ldsAdapter;
132019
132019
  });
132020
- // version: 1.389.0-375f8790ac
132020
+ // version: 1.389.1-c0c26cd070
132021
132021
 
132022
132022
  var gqlApi = /*#__PURE__*/Object.freeze({
132023
132023
  __proto__: null,
@@ -132816,7 +132816,7 @@ const callbacks$1 = [];
132816
132816
  function register(r) {
132817
132817
  callbacks$1.forEach((callback) => callback(r));
132818
132818
  }
132819
- // version: 1.389.0-a312a201ad
132819
+ // version: 1.389.1-55a7286110
132820
132820
 
132821
132821
  /**
132822
132822
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -134132,4 +134132,4 @@ const { luvio } = getRuntime();
134132
134132
  setDefaultLuvio({ luvio });
134133
134133
 
134134
134134
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
134135
- // version: 1.389.0-a312a201ad
134135
+ // version: 1.389.1-55a7286110
@@ -4280,7 +4280,7 @@
4280
4280
  }
4281
4281
  callbacks.push(callback);
4282
4282
  }
4283
- // version: 1.389.0-a312a201ad
4283
+ // version: 1.389.1-55a7286110
4284
4284
 
4285
4285
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4286
4286
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5324,7 +5324,7 @@
5324
5324
  const { apiFamily, name } = metadata;
5325
5325
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5326
5326
  }
5327
- // version: 1.389.0-a312a201ad
5327
+ // version: 1.389.1-55a7286110
5328
5328
 
5329
5329
  /**
5330
5330
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -34160,7 +34160,7 @@
34160
34160
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
34161
34161
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
34162
34162
  });
34163
- // version: 1.389.0-375f8790ac
34163
+ // version: 1.389.1-c0c26cd070
34164
34164
 
34165
34165
  function requestIdleDetectedCallback(_callback) { }
34166
34166
  function declareNotifierTaskSingle(_name) {
@@ -94598,14 +94598,14 @@
94598
94598
  if (this.shouldUseAuraNetwork()) {
94599
94599
  return this.convertAuraResponseToData(
94600
94600
  this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
94601
- (errs) => this.coerceError(errs)
94601
+ (errs) => this.coerceAuraErrors(errs)
94602
94602
  );
94603
94603
  } else if (this.shouldUseFetch()) {
94604
94604
  return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
94605
94605
  }
94606
94606
  return resolvedPromiseLike$3(err$1$1(toError("Aura/Fetch network services not found")));
94607
94607
  }
94608
- coerceError(auraErrors) {
94608
+ coerceAuraErrors(auraErrors) {
94609
94609
  return toError(auraErrors[0]);
94610
94610
  }
94611
94611
  async coerceFetchError(errorResponse) {
@@ -94737,14 +94737,14 @@
94737
94737
  if (this.shouldUseAuraNetwork()) {
94738
94738
  return this.convertAuraResponseToData(
94739
94739
  this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
94740
- (errs) => this.coerceError(errs)
94740
+ (errs) => this.coerceAuraErrors(errs)
94741
94741
  );
94742
94742
  } else if (this.shouldUseFetch()) {
94743
94743
  return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
94744
94744
  }
94745
94745
  return resolvedPromiseLike$3(err$1$1(toError("Aura/Fetch network services not found")));
94746
94746
  }
94747
- coerceError(auraErrors) {
94747
+ coerceAuraErrors(auraErrors) {
94748
94748
  return toError(auraErrors[0]);
94749
94749
  }
94750
94750
  async coerceFetchError(errorResponse) {
@@ -95999,7 +95999,7 @@
95999
95999
  },
96000
96000
  };
96001
96001
  }
96002
- // version: 1.389.0-375f8790ac
96002
+ // version: 1.389.1-c0c26cd070
96003
96003
 
96004
96004
  /**
96005
96005
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96025,7 +96025,7 @@
96025
96025
  },
96026
96026
  };
96027
96027
  }
96028
- // version: 1.389.0-375f8790ac
96028
+ // version: 1.389.1-c0c26cd070
96029
96029
 
96030
96030
  /*!
96031
96031
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97058,7 +97058,7 @@
97058
97058
  this.originalAuraParams,
97059
97059
  this.actionConfig
97060
97060
  ),
97061
- (errs) => this.coerceError(errs)
97061
+ (errs) => this.coerceAuraErrors(errs)
97062
97062
  ).then((result) => {
97063
97063
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
97064
97064
  });
@@ -98216,7 +98216,7 @@
98216
98216
  id: '@salesforce/lds-network-adapter',
98217
98217
  instrument: instrument$2,
98218
98218
  });
98219
- // version: 1.389.0-a312a201ad
98219
+ // version: 1.389.1-55a7286110
98220
98220
 
98221
98221
  const { create: create$3, keys: keys$3 } = Object;
98222
98222
  const { stringify: stringify$1, parse } = JSON;
@@ -101036,7 +101036,7 @@
101036
101036
  }
101037
101037
  callback(consumerEmittedData);
101038
101038
  }
101039
- // version: 1.389.0-375f8790ac
101039
+ // version: 1.389.1-c0c26cd070
101040
101040
 
101041
101041
  class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
101042
101042
  constructor(services, typeRegistry) {
@@ -105190,7 +105190,7 @@
105190
105190
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, useOneStoreGraphQL);
105191
105191
  }
105192
105192
  }
105193
- // version: 1.389.0-375f8790ac
105193
+ // version: 1.389.1-c0c26cd070
105194
105194
 
105195
105195
  function createFragmentMap(documentNode) {
105196
105196
  const fragments = {};
@@ -131871,7 +131871,7 @@
131871
131871
  configuration: { ...configurationForGraphQLAdapters$1 },
131872
131872
  instrument: instrument$1,
131873
131873
  });
131874
- // version: 1.389.0-375f8790ac
131874
+ // version: 1.389.1-c0c26cd070
131875
131875
 
131876
131876
  // On core the unstable adapters are re-exported with different names,
131877
131877
  // we want to match them here.
@@ -132023,7 +132023,7 @@
132023
132023
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
132024
132024
  graphQLImperative = ldsAdapter;
132025
132025
  });
132026
- // version: 1.389.0-375f8790ac
132026
+ // version: 1.389.1-c0c26cd070
132027
132027
 
132028
132028
  var gqlApi = /*#__PURE__*/Object.freeze({
132029
132029
  __proto__: null,
@@ -132822,7 +132822,7 @@
132822
132822
  function register(r) {
132823
132823
  callbacks$1.forEach((callback) => callback(r));
132824
132824
  }
132825
- // version: 1.389.0-a312a201ad
132825
+ // version: 1.389.1-55a7286110
132826
132826
 
132827
132827
  /**
132828
132828
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -134159,4 +134159,4 @@
134159
134159
  exports.subscribeToAdapter = subscribeToAdapter;
134160
134160
 
134161
134161
  }));
134162
- // version: 1.389.0-a312a201ad
134162
+ // version: 1.389.1-55a7286110
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.389.0",
3
+ "version": "1.389.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.389.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.389.0",
40
- "@salesforce/lds-default-luvio": "^1.389.0",
41
- "@salesforce/lds-drafts": "^1.389.0",
42
- "@salesforce/lds-graphql-parser": "^1.389.0",
43
- "@salesforce/lds-luvio-engine": "^1.389.0",
44
- "@salesforce/lds-runtime-mobile": "^1.389.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.389.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.389.1",
39
+ "@salesforce/lds-adapters-uiapi": "^1.389.1",
40
+ "@salesforce/lds-default-luvio": "^1.389.1",
41
+ "@salesforce/lds-drafts": "^1.389.1",
42
+ "@salesforce/lds-graphql-parser": "^1.389.1",
43
+ "@salesforce/lds-luvio-engine": "^1.389.1",
44
+ "@salesforce/lds-runtime-mobile": "^1.389.1",
45
+ "@salesforce/nimbus-plugin-lds": "^1.389.1",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",