@equinor/fusion-framework-vite-plugin-spa 1.0.0-next.8 → 1.0.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.
@@ -2705,10 +2705,30 @@ var semverExports = requireSemver();
2705
2705
  var semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
2706
2706
 
2707
2707
  /**
2708
- * Extension of {@link SemVer} to expose `satisfies`
2709
- * @see {@link [SemVer](https://www.npmjs.com/package/semver)}
2708
+ * Extends the `SemVer` class to provide additional semantic versioning utilities.
2709
+ *
2710
+ * @remarks
2711
+ * This class adds a `satisfies` method, which checks if the current semantic version instance
2712
+ * satisfies the given version range.
2713
+ *
2714
+ * @example
2715
+ * ```typescript
2716
+ * const version = new SemanticVersion('1.2.3');
2717
+ * if (version.satisfies('^1.0.0')) {
2718
+ * // Version is compatible
2719
+ * }
2720
+ * ```
2721
+ *
2722
+ * @extends SemVer
2723
+ * @see https://www.npmjs.com/package/semver
2710
2724
  */
2711
2725
  class SemanticVersion extends semverExports.SemVer {
2726
+ /**
2727
+ * Determines if the current semantic version satisfies the given version range.
2728
+ *
2729
+ * @param arg - The version range to test against, as accepted by the `satisfies` function.
2730
+ * @returns `true` if the current version satisfies the specified range, otherwise `false`.
2731
+ */
2712
2732
  satisfies(arg) {
2713
2733
  return semverExports.satisfies(this, arg);
2714
2734
  }
@@ -2747,6 +2767,19 @@ let ConsoleLogger$2 = class ConsoleLogger {
2747
2767
  this.level > 0 && console.error(...this._createMessage(msg));
2748
2768
  }
2749
2769
  };
2770
+ /**
2771
+ * A specialized logger that extends {@link ConsoleLogger} to provide enhanced formatting for module names.
2772
+ *
2773
+ * The `ModuleConsoleLogger` class implements the {@link IModuleConsoleLogger} interface and provides a method
2774
+ * to format module names with a distinctive style for console output, making them more readable and visually
2775
+ * distinct. The formatted name includes a package emoji and applies color and uppercase transformations.
2776
+ *
2777
+ * @example
2778
+ * ```typescript
2779
+ * const logger = new ModuleConsoleLogger();
2780
+ * logger.formatModuleName('MyModule'); // 📦 MY MODULE (styled in green)
2781
+ * ```
2782
+ */
2750
2783
  class ModuleConsoleLogger extends ConsoleLogger$2 {
2751
2784
  formatModuleName(moduleOrName) {
2752
2785
  const name = typeof moduleOrName === 'string' ? moduleOrName : moduleOrName.name;
@@ -5012,11 +5045,16 @@ class BaseConfigBuilder {
5012
5045
  return lastValueFrom(this.createConfig(init, initial));
5013
5046
  }
5014
5047
  /**
5015
- * Sets a configuration callback for the specified target path in the configuration.
5048
+ * Sets a configuration value or a callback for a specific dot-path target within the configuration object.
5049
+ *
5050
+ * @typeParam TTarget - The dot-path string representing the target property in the configuration.
5051
+ * @param target - The dot-path key indicating where in the configuration the value or callback should be set.
5052
+ * @param value_or_cb - Either a direct value to set at the target location, or a callback function that returns the value (possibly asynchronously).
5053
+ *
5054
+ * @remarks
5055
+ * If a function is provided as `value_or_cb`, it will be used as a callback for deferred or computed configuration values.
5056
+ * Otherwise, the value is wrapped in an async function for consistency.
5016
5057
  *
5017
- * @param target - The target path in the configuration to set the callback for.
5018
- * @param cb - The callback function to be executed when the configuration for the specified target path is updated.
5019
- * @template TKey - a key of the config object
5020
5058
  * @protected
5021
5059
  * @sealed
5022
5060
  */
@@ -5079,7 +5117,7 @@ class BaseConfigBuilder {
5079
5117
  /**
5080
5118
  * Builds the configuration object by executing all registered configuration callbacks and merging the results.
5081
5119
  *
5082
- * @note overriding this method is not recommended, use {@link BaseConfigBuilder._createConfig} instead.
5120
+ * @remarks overriding this method is not recommended, use {@link BaseConfigBuilder._createConfig} instead.
5083
5121
  * - use {@link BaseConfigBuilder._createConfig} to add custom initialization logic before building the configuration.
5084
5122
  * - use {@link BaseConfigBuilder._processConfig} to validate and post-process the configuration.
5085
5123
  *
@@ -5195,6 +5233,8 @@ class ModulesConfigurator {
5195
5233
  logger = new ModuleConsoleLogger('ModulesConfigurator');
5196
5234
  /**
5197
5235
  * Array of configuration callbacks.
5236
+ * @protected
5237
+ * @sealed
5198
5238
  */
5199
5239
  _configs = [];
5200
5240
  /**
@@ -5868,8 +5908,9 @@ class ZodError extends Error {
5868
5908
  const formErrors = [];
5869
5909
  for (const sub of this.issues) {
5870
5910
  if (sub.path.length > 0) {
5871
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
5872
- fieldErrors[sub.path[0]].push(mapper(sub));
5911
+ const firstEl = sub.path[0];
5912
+ fieldErrors[firstEl] = fieldErrors[firstEl] || [];
5913
+ fieldErrors[firstEl].push(mapper(sub));
5873
5914
  }
5874
5915
  else {
5875
5916
  formErrors.push(mapper(sub));
@@ -5953,6 +5994,8 @@ const errorMap = (issue, _ctx) => {
5953
5994
  message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
5954
5995
  else if (issue.type === "number")
5955
5996
  message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
5997
+ else if (issue.type === "bigint")
5998
+ message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
5956
5999
  else if (issue.type === "date")
5957
6000
  message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
5958
6001
  else
@@ -6114,18 +6157,6 @@ var errorUtil;
6114
6157
  errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
6115
6158
  })(errorUtil || (errorUtil = {}));
6116
6159
 
6117
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6118
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
6119
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
6120
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6121
- };
6122
- var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
6123
- if (kind === "m") throw new TypeError("Private method is not writable");
6124
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
6125
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6126
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6127
- };
6128
- var _ZodEnum_cache, _ZodNativeEnum_cache;
6129
6160
  class ParseInputLazyPath {
6130
6161
  constructor(parent, value, path, key) {
6131
6162
  this._cachedPath = [];
@@ -6566,6 +6597,8 @@ function isValidJWT(jwt, alg) {
6566
6597
  return false;
6567
6598
  try {
6568
6599
  const [header] = jwt.split(".");
6600
+ if (!header)
6601
+ return false;
6569
6602
  // Convert base64url to base64
6570
6603
  const base64 = header
6571
6604
  .replace(/-/g, "+")
@@ -9148,10 +9181,6 @@ function createZodEnum(values, params) {
9148
9181
  });
9149
9182
  }
9150
9183
  class ZodEnum extends ZodType {
9151
- constructor() {
9152
- super(...arguments);
9153
- _ZodEnum_cache.set(this, void 0);
9154
- }
9155
9184
  _parse(input) {
9156
9185
  if (typeof input.data !== "string") {
9157
9186
  const ctx = this._getOrReturnCtx(input);
@@ -9163,10 +9192,10 @@ class ZodEnum extends ZodType {
9163
9192
  });
9164
9193
  return INVALID;
9165
9194
  }
9166
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
9167
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
9195
+ if (!this._cache) {
9196
+ this._cache = new Set(this._def.values);
9168
9197
  }
9169
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
9198
+ if (!this._cache.has(input.data)) {
9170
9199
  const ctx = this._getOrReturnCtx(input);
9171
9200
  const expectedValues = this._def.values;
9172
9201
  addIssueToContext(ctx, {
@@ -9215,13 +9244,8 @@ class ZodEnum extends ZodType {
9215
9244
  });
9216
9245
  }
9217
9246
  }
9218
- _ZodEnum_cache = new WeakMap();
9219
9247
  ZodEnum.create = createZodEnum;
9220
9248
  class ZodNativeEnum extends ZodType {
9221
- constructor() {
9222
- super(...arguments);
9223
- _ZodNativeEnum_cache.set(this, void 0);
9224
- }
9225
9249
  _parse(input) {
9226
9250
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
9227
9251
  const ctx = this._getOrReturnCtx(input);
@@ -9234,10 +9258,10 @@ class ZodNativeEnum extends ZodType {
9234
9258
  });
9235
9259
  return INVALID;
9236
9260
  }
9237
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
9238
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
9261
+ if (!this._cache) {
9262
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
9239
9263
  }
9240
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
9264
+ if (!this._cache.has(input.data)) {
9241
9265
  const expectedValues = util.objectValues(nativeEnumValues);
9242
9266
  addIssueToContext(ctx, {
9243
9267
  received: ctx.data,
@@ -9252,7 +9276,6 @@ class ZodNativeEnum extends ZodType {
9252
9276
  return this._def.values;
9253
9277
  }
9254
9278
  }
9255
- _ZodNativeEnum_cache = new WeakMap();
9256
9279
  ZodNativeEnum.create = (values, params) => {
9257
9280
  return new ZodNativeEnum({
9258
9281
  values: values,
@@ -9399,7 +9422,7 @@ class ZodEffects extends ZodType {
9399
9422
  parent: ctx,
9400
9423
  });
9401
9424
  if (!isValid(base))
9402
- return base;
9425
+ return INVALID;
9403
9426
  const result = effect.transform(base.value, checkCtx);
9404
9427
  if (result instanceof Promise) {
9405
9428
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -9409,7 +9432,7 @@ class ZodEffects extends ZodType {
9409
9432
  else {
9410
9433
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
9411
9434
  if (!isValid(base))
9412
- return base;
9435
+ return INVALID;
9413
9436
  return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
9414
9437
  status: status.value,
9415
9438
  value: result,
@@ -10975,7 +10998,7 @@ const configureHttpClient = (name, args) => ({
10975
10998
  var MsalModuleVersion;
10976
10999
  (function (MsalModuleVersion) {
10977
11000
  MsalModuleVersion["V2"] = "v2";
10978
- MsalModuleVersion["Latest"] = "4.0.7-next.1";
11001
+ MsalModuleVersion["Latest"] = "4.0.8";
10979
11002
  })(MsalModuleVersion || (MsalModuleVersion = {}));
10980
11003
 
10981
11004
  const VersionSchema = z$1.string().transform((x) => String(semver.coerce(x)));
@@ -30795,7 +30818,7 @@ const resolveDefaultLogLevel = () => {
30795
30818
  const defaultLogLevel = resolveDefaultLogLevel();
30796
30819
 
30797
30820
  // Generated by genversion.
30798
- const version = '1.1.4';
30821
+ const version = '1.1.5';
30799
30822
 
30800
30823
  /**
30801
30824
  * Defines an abstract base class for a logger implementation that provides common logging functionality.