@equinor/fusion-framework-vite-plugin-spa 1.0.0-next.9 → 1.0.1
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 +63 -0
- package/README.md +442 -99
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/html/bootstrap.js +56 -11
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/html/sw.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 +6 -6
- package/src/version.ts +1 -1
- package/tsconfig.json +2 -1
package/dist/html/bootstrap.js
CHANGED
|
@@ -2705,10 +2705,30 @@ var semverExports = requireSemver();
|
|
|
2705
2705
|
var semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
|
|
2706
2706
|
|
|
2707
2707
|
/**
|
|
2708
|
-
*
|
|
2709
|
-
*
|
|
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
|
|
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
|
-
* @
|
|
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
|
-
|
|
5872
|
-
fieldErrors[
|
|
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
|
|
@@ -6554,6 +6597,8 @@ function isValidJWT(jwt, alg) {
|
|
|
6554
6597
|
return false;
|
|
6555
6598
|
try {
|
|
6556
6599
|
const [header] = jwt.split(".");
|
|
6600
|
+
if (!header)
|
|
6601
|
+
return false;
|
|
6557
6602
|
// Convert base64url to base64
|
|
6558
6603
|
const base64 = header
|
|
6559
6604
|
.replace(/-/g, "+")
|
|
@@ -10953,7 +10998,7 @@ const configureHttpClient = (name, args) => ({
|
|
|
10953
10998
|
var MsalModuleVersion;
|
|
10954
10999
|
(function (MsalModuleVersion) {
|
|
10955
11000
|
MsalModuleVersion["V2"] = "v2";
|
|
10956
|
-
MsalModuleVersion["Latest"] = "4.0.
|
|
11001
|
+
MsalModuleVersion["Latest"] = "4.0.9";
|
|
10957
11002
|
})(MsalModuleVersion || (MsalModuleVersion = {}));
|
|
10958
11003
|
|
|
10959
11004
|
const VersionSchema = z$1.string().transform((x) => String(semver.coerce(x)));
|
|
@@ -30773,7 +30818,7 @@ const resolveDefaultLogLevel = () => {
|
|
|
30773
30818
|
const defaultLogLevel = resolveDefaultLogLevel();
|
|
30774
30819
|
|
|
30775
30820
|
// Generated by genversion.
|
|
30776
|
-
const version = '1.1.
|
|
30821
|
+
const version = '1.1.7';
|
|
30777
30822
|
|
|
30778
30823
|
/**
|
|
30779
30824
|
* Defines an abstract base class for a logger implementation that provides common logging functionality.
|