@salesforce/lds-instrumentation 1.321.0 → 1.323.0

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.
@@ -998,7 +998,6 @@ const executeAsyncActivityDefaultOptions = {
998
998
  *
999
999
  */
1000
1000
  async function executeAsyncActivity(name, execute, options) {
1001
- var _a, _b, _c, _d;
1002
1001
  const normalizedOptions = Object.assign({}, executeAsyncActivityDefaultOptions, options);
1003
1002
  const act = ldsInstrumentation.startActivity(name, options);
1004
1003
  let isError = false;
@@ -1006,11 +1005,8 @@ async function executeAsyncActivity(name, execute, options) {
1006
1005
  return await execute(act);
1007
1006
  }
1008
1007
  catch (err) {
1009
- // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1010
- if ((_a = normalizedOptions.errorPayload) === null || _a === void 0 ? void 0 : _a.schema) {
1011
- act.error(err, normalizedOptions.errorPayload.schema,
1012
- // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1013
- (_b = normalizedOptions.errorPayload) === null || _b === void 0 ? void 0 : _b.payload);
1008
+ if (normalizedOptions.errorPayload?.schema) {
1009
+ act.error(err, normalizedOptions.errorPayload.schema, normalizedOptions.errorPayload?.payload);
1014
1010
  }
1015
1011
  else {
1016
1012
  act.error(err, normalizedOptions.ERROR_SCOPE);
@@ -1022,11 +1018,7 @@ async function executeAsyncActivity(name, execute, options) {
1022
1018
  act.discard();
1023
1019
  }
1024
1020
  else {
1025
- act.stop(
1026
- // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1027
- (_c = normalizedOptions === null || normalizedOptions === void 0 ? void 0 : normalizedOptions.stopPayload) === null || _c === void 0 ? void 0 : _c.schema,
1028
- // eslint-disable-next-line @salesforce/lds/no-optional-chaining
1029
- (_d = normalizedOptions === null || normalizedOptions === void 0 ? void 0 : normalizedOptions.stopPayload) === null || _d === void 0 ? void 0 : _d.payload);
1021
+ act.stop(normalizedOptions?.stopPayload?.schema, normalizedOptions?.stopPayload?.payload);
1030
1022
  }
1031
1023
  }
1032
1024
  }
@@ -1568,4 +1560,4 @@ function onIdleDetected(callback) {
1568
1560
  const instrumentation = new Instrumentation();
1569
1561
 
1570
1562
  export { Instrumentation, LRUCache, metricKeys as METRIC_KEYS, executeAsyncActivity, handleIngestedNewData, handleOnDataOutOfTtlDurationUpdate, incrementCounterMetric, incrementGetRecordNormalInvokeCount, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, instrumentAdapter, instrumentLuvio, instrumentMethods, instrumentStoreMethods, instrumentation, logError, logObjectInfoChanged, onIdleDetected, setInstrumentationHooks, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation, setStoreEventObservers, setupInstrumentation, startAdapterActivity, updatePercentileHistogramMetric };
1571
- // version: 1.321.0-1fd3fba1c4
1563
+ // version: 1.323.0-ddaba12fc0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-instrumentation",
3
- "version": "1.321.0",
3
+ "version": "1.323.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Instrumentation utils for Lightning Data Service",
6
6
  "main": "dist/ldsInstrumentation.js",
@@ -33,16 +33,16 @@
33
33
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-instrumentation"
34
34
  },
35
35
  "dependencies": {
36
- "@salesforce/lds-bindings": "^1.321.0",
37
- "@salesforce/lds-default-luvio": "^1.321.0",
38
- "@salesforce/lds-utils-adapters": "^1.321.0",
36
+ "@salesforce/lds-bindings": "^1.323.0",
37
+ "@salesforce/lds-default-luvio": "^1.323.0",
38
+ "@salesforce/lds-utils-adapters": "^1.323.0",
39
39
  "o11y": "250.7.0",
40
40
  "o11y_schema": "248.40.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@salesforce/lds-adapters-uiapi": "^1.321.0",
44
- "@salesforce/lds-network-adapter": "^1.321.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.321.0"
43
+ "@salesforce/lds-adapters-uiapi": "^1.323.0",
44
+ "@salesforce/lds-network-adapter": "^1.323.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.323.0"
46
46
  },
47
47
  "luvioBundlesize": [
48
48
  {