@equinor/fusion-framework-vite-plugin-spa 5.2.4-next.1 → 5.2.4
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/{TelemetryAdapter-C6KyX3cq.js → TelemetryAdapter-qfXdaj7x.js} +2 -3
- package/dist/TelemetryAdapter-qfXdaj7x.js.map +1 -0
- package/dist/{create-legacy-browser-delegate-CNfcydOG.js → create-legacy-browser-delegate-BqMGP3GI.js} +926 -3
- package/dist/create-legacy-browser-delegate-BqMGP3GI.js.map +1 -0
- package/dist/{enable-dev-server-tracing-ac1hNKwa.js → enable-dev-server-tracing-B9rBXrzF.js} +2 -3
- package/dist/{enable-dev-server-tracing-ac1hNKwa.js.map → enable-dev-server-tracing-B9rBXrzF.js.map} +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/html/bootstrap.js +824 -1832
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/{index-By7EVum8.js → mock-Do8FKTMU.js} +2 -3
- package/dist/mock-Do8FKTMU.js.map +1 -0
- package/dist/{module-BnhyaZvt.js → module-9J9oqYEu.js} +2155 -1468
- package/dist/module-9J9oqYEu.js.map +1 -0
- package/dist/{index-CYwi54x_.js → otlp-Dq76ZTYm.js} +6 -38
- package/dist/otlp-Dq76ZTYm.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/dist/TelemetryAdapter-C6KyX3cq.js.map +0 -1
- package/dist/create-legacy-browser-delegate-CNfcydOG.js.map +0 -1
- package/dist/index-By7EVum8.js.map +0 -1
- package/dist/index-CYwi54x_.js.map +0 -1
- package/dist/module-BnhyaZvt.js.map +0 -1
- package/dist/trace-api-DzxUyN-s.js +0 -927
- package/dist/trace-api-DzxUyN-s.js.map +0 -1
|
@@ -35,7 +35,6 @@ class BaseTelemetryAdapter {
|
|
|
35
35
|
* Otherwise, it delegates the processing of the item to the internal `_processItem` method.
|
|
36
36
|
*
|
|
37
37
|
* @param item - The telemetry item to be processed.
|
|
38
|
-
* @returns The processing promise, when asynchronous, so failures and shutdown remain owned.
|
|
39
38
|
*/
|
|
40
39
|
processItem(item) {
|
|
41
40
|
// If the adapter is not initialized, do not process the item
|
|
@@ -47,7 +46,7 @@ class BaseTelemetryAdapter {
|
|
|
47
46
|
return;
|
|
48
47
|
}
|
|
49
48
|
// Delegate the processing of the item to the internal `_processItem` method
|
|
50
|
-
|
|
49
|
+
this._processItem(item);
|
|
51
50
|
}
|
|
52
51
|
/**
|
|
53
52
|
* Initializes the telemetry adapter asynchronously.
|
|
@@ -89,4 +88,4 @@ class BaseTelemetryAdapter {
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
export { BaseTelemetryAdapter as B };
|
|
92
|
-
//# sourceMappingURL=TelemetryAdapter-
|
|
91
|
+
//# sourceMappingURL=TelemetryAdapter-qfXdaj7x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TelemetryAdapter-qfXdaj7x.js","sources":["../../../modules/telemetry/dist/esm/TelemetryAdapter.js"],"sourcesContent":["/**\n * Abstract base class for telemetry adapters.\n *\n * Provides a common implementation for filtering telemetry items before processing.\n * Subclasses must implement the `_processItem` method to define how telemetry items are handled.\n *\n * @template TelemetryItem - The type representing a telemetry item.\n * @implements {ITelemetryAdapter}\n *\n * @remarks\n * - An optional filter function can be provided to determine which telemetry items should be processed.\n *\n * @example\n * class MyTelemetryAdapter extends BaseTelemetryAdapter {\n * protected _processItem(item: TelemetryItem): void {\n * // Custom processing logic\n * }\n * }\n */\nexport class BaseTelemetryAdapter {\n #filter;\n #initialized = false;\n /**\n * Creates a new instance of the TelemetryAdapter.\n *\n * @param filter - An optional function to filter telemetry items. If provided, only items for which the function returns true will be processed.\n */\n constructor(filter) {\n this.#filter = filter;\n }\n /**\n * Processes a telemetry item by applying an optional filter before handling it.\n *\n * If a filter is defined and the item does not pass the filter, the method returns early.\n * Otherwise, it delegates the processing of the item to the internal `_processItem` method.\n *\n * @param item - The telemetry item to be processed.\n */\n processItem(item) {\n // If the adapter is not initialized, do not process the item\n if (!this.#initialized) {\n return;\n }\n // If a filter is defined and the item does not pass the filter, do not process the item\n if (this.#filter && !this.#filter(item)) {\n return;\n }\n // Delegate the processing of the item to the internal `_processItem` method\n this._processItem(item);\n }\n /**\n * Initializes the telemetry adapter asynchronously.\n *\n * This method can only be called once. Subsequent calls will return immediately\n * without performing any initialization. It calls the protected `_initialize` method which\n * subclasses can override to provide custom initialization logic.\n *\n * TODO(#5112): Consider changing return type from Promise<void> to Promise<TelemetryItem[]>\n * to allow adapters to return telemetry items (errors/warnings) that occurred during\n * initialization, eliminating the chicken-and-egg problem with reporting init errors.\n *\n * @returns A promise that resolves when initialization is complete.\n * @sealed\n */\n async initialize() {\n // If the adapter is already initialized, do not initialize it again\n if (this.#initialized) {\n return;\n }\n // Initialize the adapter\n await this._initialize();\n // Mark the adapter as initialized\n this.#initialized = true;\n }\n /**\n * Protected initialization method that subclasses can override.\n *\n * This method is called only once during the adapter's lifetime.\n * Subclasses should override this method to perform any necessary async setup.\n * The base implementation is a no-op for adapters that don't need initialization.\n *\n * @returns A promise that resolves when initialization is complete.\n * @protected\n */\n async _initialize() {\n // Default implementation - no-op for adapters that don't need initialization\n }\n}\n//# sourceMappingURL=TelemetryAdapter.js.map"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,oBAAoB,CAAC;AAClC,IAAI,OAAO;AACX,IAAI,YAAY,GAAG,KAAK;AACxB;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM;AAC7B,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,IAAI,EAAE;AACtB;AACA,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;AAChC,YAAY;AACZ,QAAQ;AACR;AACA,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AACjD,YAAY;AACZ,QAAQ;AACR;AACA,QAAQ,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;AAC/B,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,UAAU,GAAG;AACvB;AACA,QAAQ,IAAI,IAAI,CAAC,YAAY,EAAE;AAC/B,YAAY;AACZ,QAAQ;AACR;AACA,QAAQ,MAAM,IAAI,CAAC,WAAW,EAAE;AAChC;AACA,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI;AAChC,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,WAAW,GAAG;AACxB;AACA,IAAI;AACJ;;"}
|