@salesforce/lds-instrumentation 1.124.2 → 1.124.3

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.
@@ -1,14 +1,14 @@
1
- /**
2
- * Inspired by https://www.npmjs.com/package/hashlru
3
- */
4
- export declare class LRUCache {
5
- private oldCache;
6
- private newCache;
7
- private size;
8
- private limit;
9
- constructor(limit: number);
10
- private checkSize;
11
- get(key: string): any;
12
- set(key: string, value: any): void;
13
- delete(key: string): void;
14
- }
1
+ /**
2
+ * Inspired by https://www.npmjs.com/package/hashlru
3
+ */
4
+ export declare class LRUCache {
5
+ private oldCache;
6
+ private newCache;
7
+ private size;
8
+ private limit;
9
+ constructor(limit: number);
10
+ private checkSize;
11
+ get(key: string): any;
12
+ set(key: string, value: any): void;
13
+ delete(key: string): void;
14
+ }
@@ -1,24 +1,24 @@
1
- /**
2
- * Observability / Critical Availability Program (230+)
3
- *
4
- * This file is intended to be used as a consolidated place for all definitions, functions,
5
- * and helpers related to "M1"[1].
6
- *
7
- * Below are the R.E.A.D.S. metrics for the Lightning Data Service, defined here[2].
8
- *
9
- * [1] https://salesforce.quip.com/NfW9AsbGEaTY
10
- * [2] https://salesforce.quip.com/1dFvAba1b0eq
11
- */
12
- export declare const OBSERVABILITY_NAMESPACE = "LIGHTNING.lds.service";
13
- export declare const ADAPTER_INVOCATION_COUNT_METRIC_NAME = "request";
14
- export declare const ADAPTER_ERROR_COUNT_METRIC_NAME = "error";
15
- /**
16
- * W-8828410
17
- * Counter for the number of UnfulfilledSnapshotErrors the luvio engine has.
18
- */
19
- export declare const TOTAL_ADAPTER_ERROR_COUNT = "error";
20
- /**
21
- * W-8828410
22
- * Counter for the number of invocations made into LDS by a wire adapter.
23
- */
24
- export declare const TOTAL_ADAPTER_REQUEST_SUCCESS_COUNT = "request";
1
+ /**
2
+ * Observability / Critical Availability Program (230+)
3
+ *
4
+ * This file is intended to be used as a consolidated place for all definitions, functions,
5
+ * and helpers related to "M1"[1].
6
+ *
7
+ * Below are the R.E.A.D.S. metrics for the Lightning Data Service, defined here[2].
8
+ *
9
+ * [1] https://salesforce.quip.com/NfW9AsbGEaTY
10
+ * [2] https://salesforce.quip.com/1dFvAba1b0eq
11
+ */
12
+ export declare const OBSERVABILITY_NAMESPACE = "LIGHTNING.lds.service";
13
+ export declare const ADAPTER_INVOCATION_COUNT_METRIC_NAME = "request";
14
+ export declare const ADAPTER_ERROR_COUNT_METRIC_NAME = "error";
15
+ /**
16
+ * W-8828410
17
+ * Counter for the number of UnfulfilledSnapshotErrors the luvio engine has.
18
+ */
19
+ export declare const TOTAL_ADAPTER_ERROR_COUNT = "error";
20
+ /**
21
+ * W-8828410
22
+ * Counter for the number of invocations made into LDS by a wire adapter.
23
+ */
24
+ export declare const TOTAL_ADAPTER_REQUEST_SUCCESS_COUNT = "request";
@@ -1,15 +1,15 @@
1
- /**
2
- * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
3
- * This is needed because insertion order for JSON.stringify(object) affects output:
4
- * JSON.stringify({a: 1, b: 2})
5
- * "{"a":1,"b":2}"
6
- * JSON.stringify({b: 2, a: 1})
7
- * "{"b":2,"a":1}"
8
- * Modified from the apex implementation to sort arrays non-destructively.
9
- * @param data Data to be JSON-stringified.
10
- * @returns JSON.stringified value with consistent ordering of keys.
11
- */
12
- export declare function stableJSONStringify(node: any): string | undefined;
13
- export declare function isPromise<D>(value: D | Promise<D> | null): value is Promise<D>;
14
- export declare function isAdapterError(error: unknown): boolean;
15
- export declare function throttle(callback: () => void, ms: number): () => void;
1
+ /**
2
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
3
+ * This is needed because insertion order for JSON.stringify(object) affects output:
4
+ * JSON.stringify({a: 1, b: 2})
5
+ * "{"a":1,"b":2}"
6
+ * JSON.stringify({b: 2, a: 1})
7
+ * "{"b":2,"a":1}"
8
+ * Modified from the apex implementation to sort arrays non-destructively.
9
+ * @param data Data to be JSON-stringified.
10
+ * @returns JSON.stringified value with consistent ordering of keys.
11
+ */
12
+ export declare function stableJSONStringify(node: any): string | undefined;
13
+ export declare function isPromise<D>(value: D | Promise<D> | null): value is Promise<D>;
14
+ export declare function isAdapterError(error: unknown): boolean;
15
+ export declare function throttle(callback: () => void, ms: number): () => void;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@salesforce/lds-instrumentation",
3
- "version": "1.124.2",
3
+ "version": "1.124.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Instrumentation utils for Lightning Data Service",
6
6
  "main": "dist/ldsInstrumentation.js",
7
7
  "module": "dist/ldsInstrumentation.js",
8
- "types": "dist/main.d.ts",
8
+ "types": "dist/types/main.d.ts",
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
12
  "exports": {
13
13
  ".": {
14
14
  "import": "./dist/ldsInstrumentation.js",
15
- "types": "./dist/main.d.ts",
15
+ "types": "./dist/types/main.d.ts",
16
16
  "default": "./dist/ldsInstrumentation.js"
17
17
  }
18
18
  },