@salesforce/lds-instrumentation 1.320.0 → 1.322.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.
- package/dist/ldsInstrumentation.js +5 -13
- package/package.json +7 -7
|
@@ -107,7 +107,7 @@ var TypeCheckShapes;
|
|
|
107
107
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
108
108
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
109
109
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
110
|
-
// engine version: 0.156.
|
|
110
|
+
// engine version: 0.156.5-f5fd8c7a
|
|
111
111
|
|
|
112
112
|
const DurableEnvironmentEventDiscriminator = 'durable';
|
|
113
113
|
function isDurableEnvironmentEvent(event) {
|
|
@@ -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
|
-
|
|
1010
|
-
|
|
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.
|
|
1563
|
+
// version: 1.322.0-6aa042602a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-instrumentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.322.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.
|
|
37
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
38
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
36
|
+
"@salesforce/lds-bindings": "^1.322.0",
|
|
37
|
+
"@salesforce/lds-default-luvio": "^1.322.0",
|
|
38
|
+
"@salesforce/lds-utils-adapters": "^1.322.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.
|
|
44
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-adapters-uiapi": "^1.322.0",
|
|
44
|
+
"@salesforce/lds-network-adapter": "^1.322.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.322.0"
|
|
46
46
|
},
|
|
47
47
|
"luvioBundlesize": [
|
|
48
48
|
{
|