@equinor/fusion-framework-vite-plugin-spa 3.0.4 → 3.0.6

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @equinor/fusion-framework-vite-plugin-spa
2
2
 
3
+ ## 3.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`244d615`](https://github.com/equinor/fusion-framework/commit/244d615195721541870c98754ee37baca96b8584)]:
8
+ - @equinor/fusion-framework-module-msal@6.0.4
9
+
10
+ ## 3.0.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`655ab0e`](https://github.com/equinor/fusion-framework/commit/655ab0ea9568090271225cb51285e78c2d08941e)]:
15
+ - @equinor/fusion-framework-module-msal@6.0.3
16
+
3
17
  ## 3.0.4
4
18
 
5
19
  ### Patch Changes
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '3.0.4';
2
+ export const version = '3.0.6';
3
3
  //# sourceMappingURL=version.js.map
@@ -75,7 +75,7 @@ var hasRequiredRe;
75
75
  function requireRe () {
76
76
  if (hasRequiredRe) return re.exports;
77
77
  hasRequiredRe = 1;
78
- (function (module, exports) {
78
+ (function (module, exports$1) {
79
79
 
80
80
  const {
81
81
  MAX_SAFE_COMPONENT_LENGTH,
@@ -83,14 +83,14 @@ function requireRe () {
83
83
  MAX_LENGTH,
84
84
  } = requireConstants();
85
85
  const debug = requireDebug();
86
- exports = module.exports = {};
86
+ exports$1 = module.exports = {};
87
87
 
88
88
  // The actual regexps go on exports.re
89
- const re = exports.re = [];
90
- const safeRe = exports.safeRe = [];
91
- const src = exports.src = [];
92
- const safeSrc = exports.safeSrc = [];
93
- const t = exports.t = {};
89
+ const re = exports$1.re = [];
90
+ const safeRe = exports$1.safeRe = [];
91
+ const src = exports$1.src = [];
92
+ const safeSrc = exports$1.safeSrc = [];
93
+ const t = exports$1.t = {};
94
94
  let R = 0;
95
95
 
96
96
  const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
@@ -254,7 +254,7 @@ function requireRe () {
254
254
  createToken('LONETILDE', '(?:~>?)');
255
255
 
256
256
  createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
257
- exports.tildeTrimReplace = '$1~';
257
+ exports$1.tildeTrimReplace = '$1~';
258
258
 
259
259
  createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
260
260
  createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
@@ -264,7 +264,7 @@ function requireRe () {
264
264
  createToken('LONECARET', '(?:\\^)');
265
265
 
266
266
  createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
267
- exports.caretTrimReplace = '$1^';
267
+ exports$1.caretTrimReplace = '$1^';
268
268
 
269
269
  createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
270
270
  createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
@@ -277,7 +277,7 @@ function requireRe () {
277
277
  // it modifies, so that `> 1.2.3` ==> `>1.2.3`
278
278
  createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
279
279
  }\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
280
- exports.comparatorTrimReplace = '$1$2$3';
280
+ exports$1.comparatorTrimReplace = '$1$2$3';
281
281
 
282
282
  // Something like `1.2.3 - 1.2.4`
283
283
  // Note that these all use the loose form, because they'll be
@@ -20235,7 +20235,7 @@ class HttpClientMsal extends HttpClient {
20235
20235
  /**
20236
20236
  * HTTP module with MSAL authentication.
20237
20237
  */
20238
- const module$3 = {
20238
+ const module$4 = {
20239
20239
  name: 'http',
20240
20240
  /**
20241
20241
  * Configures the HTTP module with MSAL authentication.
@@ -20293,7 +20293,7 @@ const module$3 = {
20293
20293
  * @returns A module configurator that can be used to configure the HTTP module.
20294
20294
  */
20295
20295
  const configureHttpClient = (name, args) => ({
20296
- module: module$3,
20296
+ module: module$4,
20297
20297
  configure: (config) => {
20298
20298
  config.configureClient(name, args);
20299
20299
  },
@@ -21997,7 +21997,7 @@ var hasRequiredLodash_clonedeep;
21997
21997
  function requireLodash_clonedeep () {
21998
21998
  if (hasRequiredLodash_clonedeep) return lodash_clonedeep.exports;
21999
21999
  hasRequiredLodash_clonedeep = 1;
22000
- (function (module, exports) {
22000
+ (function (module, exports$1) {
22001
22001
  /** Used as the size to enable large array optimizations. */
22002
22002
  var LARGE_ARRAY_SIZE = 200;
22003
22003
 
@@ -22078,7 +22078,7 @@ function requireLodash_clonedeep () {
22078
22078
  var root = freeGlobal || freeSelf || Function('return this')();
22079
22079
 
22080
22080
  /** Detect free variable `exports`. */
22081
- var freeExports = exports && !exports.nodeType && exports;
22081
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
22082
22082
 
22083
22083
  /** Detect free variable `module`. */
22084
22084
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -24459,7 +24459,7 @@ class TelemetryProvider extends BaseModuleProvider {
24459
24459
  * - @param args - Initialization arguments, including configuration and module dependencies.
24460
24460
  * - @returns A promise that resolves to an instance of ITelemetryProvider.
24461
24461
  */
24462
- const module$2 = {
24462
+ const module$3 = {
24463
24463
  name: 'telemetry',
24464
24464
  configure: () => new TelemetryConfigurator(),
24465
24465
  initialize: async (args) => {
@@ -24540,7 +24540,7 @@ const enableTelemetry = (
24540
24540
  // biome-ignore lint/suspicious/noExplicitAny: must be any to support all module types
24541
24541
  configurator, options) => {
24542
24542
  configurator.addConfig({
24543
- module: module$2,
24543
+ module: module$3,
24544
24544
  configure: async (builder, ref) => {
24545
24545
  {
24546
24546
  builder.attachItems(mapConfiguratorEvents(configurator));
@@ -42812,7 +42812,7 @@ const createClientLogCallback = (provider, metadata, scope) => {
42812
42812
  };
42813
42813
 
42814
42814
  // Generated by genversion.
42815
- const version$2 = '6.0.2';
42815
+ const version$2 = '6.0.4';
42816
42816
 
42817
42817
  /**
42818
42818
  * Zod schema for telemetry configuration validation.
@@ -43519,8 +43519,10 @@ function createProxyProvider$1(provider) {
43519
43519
  case 'acquireToken': {
43520
43520
  // Adapt v4 acquireToken to v2 signature with proper type mapping
43521
43521
  const acquireToken = async (req) => {
43522
- const request = isRequestV4(req) ? req : { scopes: req.scopes, account: req.account };
43523
- const result = await target.acquireToken({ request });
43522
+ const args = isRequestV4(req)
43523
+ ? req
43524
+ : { request: { scopes: req.scopes, account: req.account } };
43525
+ const result = await target.acquireToken(args);
43524
43526
  // Convert null to undefined for v2 compatibility
43525
43527
  return result || undefined;
43526
43528
  };
@@ -43529,8 +43531,10 @@ function createProxyProvider$1(provider) {
43529
43531
  case 'acquireAccessToken': {
43530
43532
  // Adapt v4 acquireAccessToken to v2 signature
43531
43533
  const acquireAccessToken = async (req) => {
43532
- const request = isRequestV4(req) ? req : { scopes: req.scopes, account: req.account };
43533
- return await target.acquireAccessToken({ request });
43534
+ const args = isRequestV4(req)
43535
+ ? req
43536
+ : { request: { scopes: req.scopes, account: req.account } };
43537
+ return await target.acquireAccessToken(args);
43534
43538
  };
43535
43539
  return acquireAccessToken;
43536
43540
  }
@@ -43869,7 +43873,7 @@ class MsalProvider extends BaseModuleProvider {
43869
43873
  * ```
43870
43874
  */
43871
43875
  async acquireToken(options) {
43872
- const { behavior = 'redirect', silent = true, request } = options;
43876
+ const { behavior = 'redirect', silent = true, request = {}, } = options;
43873
43877
  const account = request.account ?? this.account ?? undefined;
43874
43878
  // Extract scopes from either new format (request.scopes) or legacy format (scopes)
43875
43879
  const scopes = options.request?.scopes ?? options?.scopes ?? [];
@@ -44216,7 +44220,7 @@ class MsalProvider extends BaseModuleProvider {
44216
44220
  * The module supports proxy providers for version compatibility, allowing v4 implementations
44217
44221
  * to work with v2-compatible code during migration periods.
44218
44222
  */
44219
- const module$1 = {
44223
+ const module$2 = {
44220
44224
  name: 'auth',
44221
44225
  version: new SemanticVersion(version$2),
44222
44226
  configure: () => new MsalConfigurator(),
@@ -44274,7 +44278,7 @@ const module$1 = {
44274
44278
  const enableMSAL = (
44275
44279
  // @biome-ignore lint/suspicious/noExplicitAny: must be any to support all module types
44276
44280
  configurator, configure) => {
44277
- const config = configure ? configureMsal(configure) : { module: module$1 };
44281
+ const config = configure ? configureMsal(configure) : { module: module$2 };
44278
44282
  configurator.addConfig(config);
44279
44283
  };
44280
44284
  /**
@@ -44292,7 +44296,7 @@ configurator, configure) => {
44292
44296
  * ```
44293
44297
  */
44294
44298
  const configureMsal = (configure) => ({
44295
- module: module$1,
44299
+ module: module$2,
44296
44300
  configure,
44297
44301
  });
44298
44302
 
@@ -46584,7 +46588,7 @@ const moduleName = 'serviceDiscovery';
46584
46588
  * Additionally, the service discovery module requires the HTTP module to be initialized before it can
46585
46589
  * function properly.
46586
46590
  */
46587
- const module = {
46591
+ const module$1 = {
46588
46592
  name: moduleName,
46589
46593
  configure: () => new ServiceDiscoveryConfigurator(),
46590
46594
  initialize: async (init) => {
@@ -46623,7 +46627,7 @@ const module = {
46623
46627
  * ```
46624
46628
  */
46625
46629
  const configureServiceDiscovery = (callback) => ({
46626
- module,
46630
+ module: module$1,
46627
46631
  configure: (config) => callback(config),
46628
46632
  });
46629
46633
  /**
@@ -47046,7 +47050,7 @@ async function registerServiceWorker(framework) {
47046
47050
  }
47047
47051
 
47048
47052
  // Generated by genversion.
47049
- const version = '3.0.4';
47053
+ const version = '3.0.6';
47050
47054
 
47051
47055
  // Allow dynamic import without vite
47052
47056
  const importWithoutVite = (path) => import(/* @vite-ignore */ path);