@equinor/fusion-framework-vite-plugin-spa 3.0.1-cli-search-index.0 → 3.0.2
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/CHANGELOG.md +9 -8
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/html/bootstrap.js +42 -8
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/index.html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -15
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
# @equinor/fusion-framework-vite-plugin-spa
|
|
2
2
|
|
|
3
|
-
## 3.0.
|
|
3
|
+
## 3.0.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Updated dependencies [[`78f3679`](https://github.com/equinor/fusion-framework/commit/78f3679b09716f69b3093edcff9f06ad605092c3)]:
|
|
8
|
+
- @equinor/fusion-framework-module-telemetry@4.6.0
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
- @equinor/fusion-framework-module-telemetry@4.
|
|
10
|
+
## 3.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`1827381`](https://github.com/equinor/fusion-framework/commit/182738177dbbf5baaf9732ef3b540b4df80932f6)]:
|
|
15
|
+
- @equinor/fusion-framework-module-telemetry@4.5.0
|
|
15
16
|
|
|
16
17
|
## 3.0.0
|
|
17
18
|
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
package/dist/html/bootstrap.js
CHANGED
|
@@ -5296,7 +5296,7 @@ class BaseModuleProvider {
|
|
|
5296
5296
|
}
|
|
5297
5297
|
|
|
5298
5298
|
// Generated by genversion.
|
|
5299
|
-
const version$8 = '5.0.
|
|
5299
|
+
const version$8 = '5.0.5';
|
|
5300
5300
|
|
|
5301
5301
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5302
5302
|
/**
|
|
@@ -19275,7 +19275,7 @@ class HttpClientConfigurator {
|
|
|
19275
19275
|
}
|
|
19276
19276
|
|
|
19277
19277
|
// Generated by genversion.
|
|
19278
|
-
const version$6 = '7.0.
|
|
19278
|
+
const version$6 = '7.0.5';
|
|
19279
19279
|
|
|
19280
19280
|
/**
|
|
19281
19281
|
* Exception thrown when a client cannot be found.
|
|
@@ -21599,14 +21599,32 @@ class TelemetryConfigurator extends BaseConfigBuilder {
|
|
|
21599
21599
|
this._set('parent', parent);
|
|
21600
21600
|
return this;
|
|
21601
21601
|
}
|
|
21602
|
+
/**
|
|
21603
|
+
* Attaches an observable stream of telemetry items to the configurator.
|
|
21604
|
+
*
|
|
21605
|
+
* @param item$ - An observable input stream of telemetry items to be processed.
|
|
21606
|
+
* @returns The current instance for method chaining.
|
|
21607
|
+
*/
|
|
21602
21608
|
attachItems(item$) {
|
|
21603
21609
|
this._set('items$', item$);
|
|
21604
21610
|
return this;
|
|
21605
21611
|
}
|
|
21612
|
+
/**
|
|
21613
|
+
* Sets the filter configuration for telemetry items.
|
|
21614
|
+
*
|
|
21615
|
+
* The filter determines which telemetry items should be passed to adapters and/or relayed to parent providers.
|
|
21616
|
+
*
|
|
21617
|
+
* @param filter - Either a filter object with `adapter` and `relay` functions, or a callback that returns such a filter object.
|
|
21618
|
+
* @returns The current instance for method chaining.
|
|
21619
|
+
*/
|
|
21620
|
+
setFilter(filter) {
|
|
21621
|
+
this._set('filter', filter);
|
|
21622
|
+
return this;
|
|
21623
|
+
}
|
|
21606
21624
|
}
|
|
21607
21625
|
|
|
21608
21626
|
// Generated by genversion.
|
|
21609
|
-
const version$5 = '4.
|
|
21627
|
+
const version$5 = '4.6.0';
|
|
21610
21628
|
|
|
21611
21629
|
/**
|
|
21612
21630
|
* Enum representing the severity levels of telemetry items.
|
|
@@ -23883,6 +23901,7 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
23883
23901
|
#items = new Subject();
|
|
23884
23902
|
#initialized = false;
|
|
23885
23903
|
#adapters = {};
|
|
23904
|
+
#filters;
|
|
23886
23905
|
#defaultScope;
|
|
23887
23906
|
#eventProvider;
|
|
23888
23907
|
get items() {
|
|
@@ -23905,6 +23924,7 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
23905
23924
|
this.#metadata = config?.metadata;
|
|
23906
23925
|
this.#defaultScope = config?.defaultScope ?? [];
|
|
23907
23926
|
this.#eventProvider = deps?.event;
|
|
23927
|
+
this.#filters = config?.filter;
|
|
23908
23928
|
}
|
|
23909
23929
|
/**
|
|
23910
23930
|
* Initializes the telemetry provider with adapters, parent provider, and optional initial items.
|
|
@@ -23957,7 +23977,7 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
23957
23977
|
async _initializeAdapters() {
|
|
23958
23978
|
// Initialize all adapters, do it in parallel
|
|
23959
23979
|
const adapterEntries = Object.entries(this.#adapters);
|
|
23960
|
-
const initializationPromises = adapterEntries.map(([
|
|
23980
|
+
const initializationPromises = adapterEntries.map(([_identifier, adapter]) => adapter.initialize());
|
|
23961
23981
|
// Wait for all adapters to settle (either resolve or reject)
|
|
23962
23982
|
const results = await Promise.allSettled(initializationPromises);
|
|
23963
23983
|
// Check each result and dispatch errors for failed initializations
|
|
@@ -23973,6 +23993,7 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
23973
23993
|
/**
|
|
23974
23994
|
* Subscribes all adapters to the telemetry item stream.
|
|
23975
23995
|
* Each adapter processes every telemetry item as it is emitted.
|
|
23996
|
+
* If an adapter filter is configured, only items that pass the filter will be sent to adapters.
|
|
23976
23997
|
* If an adapter throws, the error is dispatched as a telemetry error event.
|
|
23977
23998
|
*
|
|
23978
23999
|
* @returns Subscription to the telemetry item stream
|
|
@@ -23983,6 +24004,11 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
23983
24004
|
throw new Error('TelemetryProvider is not initialized');
|
|
23984
24005
|
}
|
|
23985
24006
|
return this.#items.subscribe((item) => {
|
|
24007
|
+
const { adapter: adapterFilter } = this.#filters ?? {};
|
|
24008
|
+
// Apply adapter filter if configured - skip item if filter returns false
|
|
24009
|
+
if (adapterFilter && !adapterFilter(item)) {
|
|
24010
|
+
return;
|
|
24011
|
+
}
|
|
23986
24012
|
// Iterate through all registered adapters
|
|
23987
24013
|
for (const [identifier, adapter] of Object.entries(this.#adapters)) {
|
|
23988
24014
|
try {
|
|
@@ -24003,13 +24029,21 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
24003
24029
|
*
|
|
24004
24030
|
* Subscribes to the internal telemetry item stream and forwards each processed item
|
|
24005
24031
|
* to the specified target provider by invoking its `track` method.
|
|
24032
|
+
* If a relay filter is configured, only items that pass the filter will be relayed.
|
|
24006
24033
|
*
|
|
24007
24034
|
* @param target - The telemetry provider to which telemetry data should be relayed.
|
|
24008
24035
|
* @returns A Subscription object that can be used to unsubscribe from the relay.
|
|
24009
24036
|
*/
|
|
24010
24037
|
_relayTelemetryData(target) {
|
|
24011
24038
|
// Subscribe to the processed stream and forward each item to the parent provider
|
|
24012
|
-
return this.#items.subscribe((item) =>
|
|
24039
|
+
return this.#items.subscribe((item) => {
|
|
24040
|
+
const { relay: relayFilter } = this.#filters ?? {};
|
|
24041
|
+
// Apply relay filter if configured - skip item if filter returns false
|
|
24042
|
+
if (relayFilter && !relayFilter(item)) {
|
|
24043
|
+
return;
|
|
24044
|
+
}
|
|
24045
|
+
target.track(item);
|
|
24046
|
+
});
|
|
24013
24047
|
}
|
|
24014
24048
|
/**
|
|
24015
24049
|
* Dispatches a telemetry event to the event provider, if available.
|
|
@@ -42548,7 +42582,7 @@ const createClientLogCallback = (provider, metadata, scope) => {
|
|
|
42548
42582
|
};
|
|
42549
42583
|
|
|
42550
42584
|
// Generated by genversion.
|
|
42551
|
-
const version$2 = '6.0.
|
|
42585
|
+
const version$2 = '6.0.0';
|
|
42552
42586
|
|
|
42553
42587
|
/**
|
|
42554
42588
|
* Zod schema for telemetry configuration validation.
|
|
@@ -46252,7 +46286,7 @@ class ServiceDiscoveryConfigurator extends BaseConfigBuilder {
|
|
|
46252
46286
|
}
|
|
46253
46287
|
|
|
46254
46288
|
// Generated by genversion.
|
|
46255
|
-
const version$1 = '9.0.
|
|
46289
|
+
const version$1 = '9.0.4';
|
|
46256
46290
|
|
|
46257
46291
|
class ServiceDiscoveryProvider extends BaseModuleProvider {
|
|
46258
46292
|
config;
|
|
@@ -46771,7 +46805,7 @@ async function registerServiceWorker(framework) {
|
|
|
46771
46805
|
}
|
|
46772
46806
|
|
|
46773
46807
|
// Generated by genversion.
|
|
46774
|
-
const version = '3.0.
|
|
46808
|
+
const version = '3.0.2';
|
|
46775
46809
|
|
|
46776
46810
|
// Allow dynamic import without vite
|
|
46777
46811
|
const importWithoutVite = (path) => import(/* @vite-ignore */ path);
|