@equinor/fusion-framework-module-msal 4.0.8 → 4.1.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.
- package/CHANGELOG.md +40 -0
- package/README.md +203 -48
- package/dist/esm/__tests__/versioning/resolve-version.test.js +207 -0
- package/dist/esm/__tests__/versioning/resolve-version.test.js.map +1 -0
- package/dist/esm/static.js +1 -1
- package/dist/esm/v2/provider.js +1 -1
- package/dist/esm/v2/provider.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/versioning/VersionError.js +78 -0
- package/dist/esm/versioning/VersionError.js.map +1 -0
- package/dist/esm/versioning/create-version-message.js +54 -0
- package/dist/esm/versioning/create-version-message.js.map +1 -0
- package/dist/esm/versioning/index.js +25 -0
- package/dist/esm/versioning/index.js.map +1 -0
- package/dist/esm/versioning/resolve-version.js +90 -0
- package/dist/esm/versioning/resolve-version.js.map +1 -0
- package/dist/esm/versioning/static.js +10 -0
- package/dist/esm/versioning/static.js.map +1 -0
- package/dist/esm/versioning/types.js +2 -0
- package/dist/esm/versioning/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/__tests__/versioning/resolve-version.test.d.ts +1 -0
- package/dist/types/static.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/versioning/VersionError.d.ts +73 -0
- package/dist/types/versioning/create-version-message.d.ts +34 -0
- package/dist/types/versioning/index.d.ts +23 -0
- package/dist/types/versioning/resolve-version.d.ts +43 -0
- package/dist/types/versioning/static.d.ts +8 -0
- package/dist/types/versioning/types.d.ts +54 -0
- package/package.json +5 -4
- package/src/__tests__/versioning/resolve-version.test.ts +255 -0
- package/src/v2/provider.ts +1 -1
- package/src/version.ts +1 -1
- package/src/versioning/VersionError.ts +103 -0
- package/src/versioning/create-version-message.ts +63 -0
- package/src/versioning/index.ts +29 -0
- package/src/versioning/resolve-version.ts +125 -0
- package/src/versioning/static.ts +8 -0
- package/src/versioning/types.ts +60 -0
- package/tsconfig.json +1 -1
- package/vitest.config.ts +11 -0
- package/dist/esm/resolve-version.js +0 -27
- package/dist/esm/resolve-version.js.map +0 -1
- package/dist/types/resolve-version.d.ts +0 -10
- package/src/resolve-version.ts +0 -43
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { VersionMessageType } from './static';
|
|
2
|
+
import { createVersionMessage } from './create-version-message';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a VersionError instance with a formatted message.
|
|
5
|
+
*
|
|
6
|
+
* This is a helper function that creates a VersionError with a human-readable
|
|
7
|
+
* message based on the error type and version information.
|
|
8
|
+
*
|
|
9
|
+
* @param type - The type of version error
|
|
10
|
+
* @param requestedVersion - The version that was requested
|
|
11
|
+
* @param latestVersion - The latest available version
|
|
12
|
+
* @param options - Additional error options including the error type
|
|
13
|
+
* @returns A new VersionError instance with formatted message
|
|
14
|
+
*/
|
|
15
|
+
const createVersionError = (type, requestedVersion, latestVersion, options) => {
|
|
16
|
+
return new VersionError(createVersionMessage(type, requestedVersion, latestVersion), requestedVersion, latestVersion, { ...options, type });
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Error class for version-related issues in the MSAL module.
|
|
20
|
+
*
|
|
21
|
+
* This error is thrown when there are version compatibility problems,
|
|
22
|
+
* such as requesting an incompatible major version or providing an invalid version string.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* try {
|
|
27
|
+
* resolveVersion('3.0.0'); // Assuming latest is 2.x
|
|
28
|
+
* } catch (error) {
|
|
29
|
+
* if (error instanceof VersionError) {
|
|
30
|
+
* console.error('Version error:', error.message);
|
|
31
|
+
* console.error('Requested:', error.requestedVersion);
|
|
32
|
+
* console.error('Latest:', error.latestVersion);
|
|
33
|
+
* console.error('Type:', error.type);
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* // Create a version error manually
|
|
41
|
+
* const error = VersionError.create(
|
|
42
|
+
* VersionError.Type.MajorIncompatibility,
|
|
43
|
+
* '3.0.0',
|
|
44
|
+
* '2.1.0'
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export class VersionError extends Error {
|
|
49
|
+
/** The version that was requested by the user */
|
|
50
|
+
requestedVersion;
|
|
51
|
+
/** The latest available version in the system */
|
|
52
|
+
latestVersion;
|
|
53
|
+
/** The specific type of version error that occurred */
|
|
54
|
+
type;
|
|
55
|
+
/** The error name for instanceof checks */
|
|
56
|
+
static Name = 'VersionError';
|
|
57
|
+
/** Reference to the VersionMessageType enum for convenience */
|
|
58
|
+
static Type = VersionMessageType;
|
|
59
|
+
/** Factory method for creating VersionError instances with formatted messages */
|
|
60
|
+
static create = createVersionError;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new VersionError instance.
|
|
63
|
+
*
|
|
64
|
+
* @param message - The error message describing the version issue
|
|
65
|
+
* @param requestedVersion - The version that was requested (will be stored as string)
|
|
66
|
+
* @param latestVersion - The latest available version (will be stored as string)
|
|
67
|
+
* @param options - Additional error options including the error type
|
|
68
|
+
*/
|
|
69
|
+
constructor(message, requestedVersion, latestVersion, options) {
|
|
70
|
+
super(message, options);
|
|
71
|
+
this.name = VersionError.Name;
|
|
72
|
+
// Store versions as strings
|
|
73
|
+
this.requestedVersion = String(requestedVersion);
|
|
74
|
+
this.latestVersion = String(latestVersion);
|
|
75
|
+
this.type = options?.type;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=VersionError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionError.js","sourceRoot":"","sources":["../../../src/versioning/VersionError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE;;;;;;;;;;;GAWG;AACH,MAAM,kBAAkB,GAAG,CACzB,IAAwB,EACxB,gBAAiC,EACjC,aAA8B,EAC9B,OAAsD,EACxC,EAAE;IAChB,OAAO,IAAI,YAAY,CACrB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAC3D,gBAAgB,EAChB,aAAa,EACb,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,iDAAiD;IACjC,gBAAgB,CAAS;IAEzC,iDAAiD;IACjC,aAAa,CAAS;IAEtC,uDAAuD;IACvC,IAAI,CAAsB;IAE1C,2CAA2C;IAC3C,MAAM,CAAC,IAAI,GAAG,cAAc,CAAC;IAE7B,+DAA+D;IAC/D,MAAM,CAAC,IAAI,GAAG,kBAAkB,CAAC;IAEjC,iFAAiF;IACjF,MAAM,CAAC,MAAM,GAA8B,kBAAkB,CAAC;IAE9D;;;;;;;OAOG;IACH,YACE,OAAe,EACf,gBAAiC,EACjC,aAA8B,EAC9B,OAAsD;QAEtD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;QAE9B,4BAA4B;QAC5B,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAE3C,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,CAAC;IAC5B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { VersionMessageType } from './static';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a human-readable version message based on the version message type.
|
|
4
|
+
*
|
|
5
|
+
* This function generates descriptive error messages for different version compatibility
|
|
6
|
+
* scenarios, helping developers understand version-related issues.
|
|
7
|
+
*
|
|
8
|
+
* @param type - The type of version message to create
|
|
9
|
+
* @param requestedVersion - The version that was requested by the user
|
|
10
|
+
* @param latestVersion - The latest available version in the system
|
|
11
|
+
* @returns A formatted, human-readable version message string
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const message = createVersionMessage(
|
|
16
|
+
* VersionMessageType.MajorIncompatibility,
|
|
17
|
+
* '3.0.0',
|
|
18
|
+
* '2.1.0'
|
|
19
|
+
* );
|
|
20
|
+
* // Returns: "Requested major version 3.0.0 is greater than the latest major version 2.1.0"
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const message = createVersionMessage(
|
|
26
|
+
* VersionMessageType.MinorMismatch,
|
|
27
|
+
* '2.1.0',
|
|
28
|
+
* '2.2.0'
|
|
29
|
+
* );
|
|
30
|
+
* // Returns: "Minor version mismatch, requested 2.1.0, latest 2.2.0"
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export const createVersionMessage = (type, requestedVersion, latestVersion) => {
|
|
34
|
+
// Convert versions to strings for consistent formatting
|
|
35
|
+
const requestedVersionString = String(requestedVersion);
|
|
36
|
+
const latestVersionString = String(latestVersion);
|
|
37
|
+
switch (type) {
|
|
38
|
+
case VersionMessageType.MajorIncompatibility:
|
|
39
|
+
return `Requested major version ${requestedVersionString} is greater than the latest major version ${latestVersionString}`;
|
|
40
|
+
case VersionMessageType.InvalidVersion:
|
|
41
|
+
return `Invalid version ${requestedVersionString}`;
|
|
42
|
+
case VersionMessageType.InvalidLatestVersion:
|
|
43
|
+
return `Failed to parse latest version "${latestVersionString}" - this indicates the version.ts file was not generated correctly. Check for import errors in the build process.`;
|
|
44
|
+
case VersionMessageType.MinorMismatch:
|
|
45
|
+
return `Minor version mismatch, requested ${requestedVersionString}, latest ${latestVersionString}`;
|
|
46
|
+
case VersionMessageType.PatchDifference:
|
|
47
|
+
return `Patch version difference, requested ${requestedVersionString}, latest ${latestVersionString}`;
|
|
48
|
+
case VersionMessageType.IncompatibleVersion:
|
|
49
|
+
return `Incompatible version, requested ${requestedVersionString}, latest ${latestVersionString}`;
|
|
50
|
+
default:
|
|
51
|
+
return createVersionMessage(VersionMessageType.IncompatibleVersion, requestedVersion, latestVersion);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=create-version-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-version-message.js","sourceRoot":"","sources":["../../../src/versioning/create-version-message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,IAAwB,EACxB,gBAAiC,EACjC,aAA8B,EACtB,EAAE;IACV,wDAAwD;IACxD,MAAM,sBAAsB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACxD,MAAM,mBAAmB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IAClD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,kBAAkB,CAAC,oBAAoB;YAC1C,OAAO,2BAA2B,sBAAsB,6CAA6C,mBAAmB,EAAE,CAAC;QAC7H,KAAK,kBAAkB,CAAC,cAAc;YACpC,OAAO,mBAAmB,sBAAsB,EAAE,CAAC;QACrD,KAAK,kBAAkB,CAAC,oBAAoB;YAC1C,OAAO,mCAAmC,mBAAmB,mHAAmH,CAAC;QACnL,KAAK,kBAAkB,CAAC,aAAa;YACnC,OAAO,qCAAqC,sBAAsB,YAAY,mBAAmB,EAAE,CAAC;QACtG,KAAK,kBAAkB,CAAC,eAAe;YACrC,OAAO,uCAAuC,sBAAsB,YAAY,mBAAmB,EAAE,CAAC;QACxG,KAAK,kBAAkB,CAAC,mBAAmB;YACzC,OAAO,mCAAmC,sBAAsB,YAAY,mBAAmB,EAAE,CAAC;QACpG;YACE,OAAO,oBAAoB,CACzB,kBAAkB,CAAC,mBAAmB,EACtC,gBAAgB,EAChB,aAAa,CACd,CAAC;IACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Versioning module for MSAL module compatibility checking.
|
|
3
|
+
*
|
|
4
|
+
* This module provides comprehensive version resolution and validation functionality
|
|
5
|
+
* for the MSAL module, ensuring compatibility between different MSAL library versions.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { resolveVersion, VersionError } from '@equinor/fusion-framework-module-msal/versioning';
|
|
10
|
+
*
|
|
11
|
+
* try {
|
|
12
|
+
* const result = resolveVersion('2.1.0');
|
|
13
|
+
* console.log('Version is compatible:', result.satisfiesLatest);
|
|
14
|
+
* } catch (error) {
|
|
15
|
+
* if (error instanceof VersionError) {
|
|
16
|
+
* console.error('Version error:', error.message);
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
// Core versioning functionality
|
|
22
|
+
export { resolveVersion } from './resolve-version';
|
|
23
|
+
// Error handling
|
|
24
|
+
export { VersionError } from './VersionError';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/versioning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,gCAAgC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,iBAAiB;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import semver from 'semver';
|
|
2
|
+
import { MsalModuleVersion } from '../static';
|
|
3
|
+
import { VersionError } from './VersionError';
|
|
4
|
+
/**
|
|
5
|
+
* Resolves and validates a version string against the latest available MSAL version.
|
|
6
|
+
*
|
|
7
|
+
* This function performs comprehensive version checking including:
|
|
8
|
+
* - Parsing and validating the requested version
|
|
9
|
+
* - Checking major version compatibility (throws on incompatibility)
|
|
10
|
+
* - Warning on minor version mismatches (logs warning but continues)
|
|
11
|
+
* - Ignoring patch version differences for maximum compatibility
|
|
12
|
+
*
|
|
13
|
+
* @param version - The version string or SemVer object to resolve. If not provided, defaults to latest.
|
|
14
|
+
* @returns A ResolvedVersion object containing parsed versions and compatibility information
|
|
15
|
+
*
|
|
16
|
+
* @throws {VersionError} When the requested version is invalid or incompatible
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // Resolve a specific version
|
|
21
|
+
* const result = resolveVersion('2.1.0');
|
|
22
|
+
* console.log(result.satisfiesLatest); // true if major version matches
|
|
23
|
+
*
|
|
24
|
+
* // Resolve with SemVer object
|
|
25
|
+
* const result2 = resolveVersion(new SemVer('2.0.0'));
|
|
26
|
+
*
|
|
27
|
+
* // Default to latest version
|
|
28
|
+
* const result3 = resolveVersion();
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* // Error handling
|
|
34
|
+
* try {
|
|
35
|
+
* const result = resolveVersion('3.0.0'); // Assuming latest is 2.x
|
|
36
|
+
* } catch (error) {
|
|
37
|
+
* if (error instanceof VersionError) {
|
|
38
|
+
* console.error('Version error:', error.message);
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export function resolveVersion(version) {
|
|
44
|
+
// Initialize warnings array to collect any version mismatches
|
|
45
|
+
const warnings = [];
|
|
46
|
+
// Parse the requested version, defaulting to latest if not provided
|
|
47
|
+
const versionString = version || MsalModuleVersion.Latest;
|
|
48
|
+
// Parse versions using coerce for backward compatibility
|
|
49
|
+
const wantedVersion = semver.coerce(versionString);
|
|
50
|
+
const latestVersion = semver.coerce(MsalModuleVersion.Latest);
|
|
51
|
+
// Validate that the requested version is a valid semver
|
|
52
|
+
if (!wantedVersion) {
|
|
53
|
+
throw VersionError.create(VersionError.Type.InvalidVersion, versionString, MsalModuleVersion.Latest);
|
|
54
|
+
}
|
|
55
|
+
// This should never happen! Indicates version.ts was not generated correctly
|
|
56
|
+
// This is a critical build-time issue that needs immediate attention
|
|
57
|
+
if (!latestVersion) {
|
|
58
|
+
throw VersionError.create(VersionError.Type.InvalidLatestVersion, versionString, MsalModuleVersion.Latest);
|
|
59
|
+
}
|
|
60
|
+
// Major version incompatibility check - this is a hard error
|
|
61
|
+
// Users cannot request a major version that doesn't exist yet
|
|
62
|
+
if (wantedVersion.major > latestVersion.major) {
|
|
63
|
+
throw VersionError.create(VersionError.Type.MajorIncompatibility, String(wantedVersion), String(latestVersion));
|
|
64
|
+
}
|
|
65
|
+
// Minor version mismatch - add warning but don't throw
|
|
66
|
+
// This helps developers stay aware of version differences without breaking functionality
|
|
67
|
+
if (wantedVersion.major === latestVersion.major && wantedVersion.minor !== latestVersion.minor) {
|
|
68
|
+
const minorMismatchWarning = VersionError.create(VersionError.Type.MinorMismatch, String(wantedVersion), String(latestVersion));
|
|
69
|
+
warnings.push(minorMismatchWarning.message);
|
|
70
|
+
}
|
|
71
|
+
// Find the corresponding enum version for the requested major version
|
|
72
|
+
// This is used for module configuration and feature detection
|
|
73
|
+
const enumVersion = Object.values(MsalModuleVersion).find((x) => semver.coerce(x)?.major === wantedVersion.major);
|
|
74
|
+
// If no matching enum version is found, this indicates a major version
|
|
75
|
+
// that doesn't have a corresponding enum value defined
|
|
76
|
+
if (!enumVersion) {
|
|
77
|
+
throw VersionError.create(VersionError.Type.MajorIncompatibility, String(wantedVersion), String(latestVersion));
|
|
78
|
+
}
|
|
79
|
+
// Return comprehensive version resolution result
|
|
80
|
+
return {
|
|
81
|
+
wantedVersion,
|
|
82
|
+
latestVersion,
|
|
83
|
+
isLatest: wantedVersion.compare(latestVersion) === 0,
|
|
84
|
+
satisfiesLatest: wantedVersion.major === latestVersion.major,
|
|
85
|
+
enumVersion,
|
|
86
|
+
warnings: warnings.length > 0 ? warnings : undefined,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export default resolveVersion;
|
|
90
|
+
//# sourceMappingURL=resolve-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-version.js","sourceRoot":"","sources":["../../../src/versioning/resolve-version.ts"],"names":[],"mappings":"AAAA,OAAO,MAAuB,MAAM,QAAQ,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,UAAU,cAAc,CAAC,OAAyB;IACtD,8DAA8D;IAC9D,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,oEAAoE;IACpE,MAAM,aAAa,GAAG,OAAO,IAAI,iBAAiB,CAAC,MAAM,CAAC;IAE1D,yDAAyD;IACzD,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE9D,wDAAwD;IACxD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,YAAY,CAAC,MAAM,CACvB,YAAY,CAAC,IAAI,CAAC,cAAc,EAChC,aAAa,EACb,iBAAiB,CAAC,MAAM,CACzB,CAAC;IACJ,CAAC;IAED,6EAA6E;IAC7E,qEAAqE;IACrE,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,YAAY,CAAC,MAAM,CACvB,YAAY,CAAC,IAAI,CAAC,oBAAoB,EACtC,aAAa,EACb,iBAAiB,CAAC,MAAM,CACzB,CAAC;IACJ,CAAC;IAED,6DAA6D;IAC7D,8DAA8D;IAC9D,IAAI,aAAa,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,EAAE,CAAC;QAC9C,MAAM,YAAY,CAAC,MAAM,CACvB,YAAY,CAAC,IAAI,CAAC,oBAAoB,EACtC,MAAM,CAAC,aAAa,CAAC,EACrB,MAAM,CAAC,aAAa,CAAC,CACtB,CAAC;IACJ,CAAC;IAED,uDAAuD;IACvD,yFAAyF;IACzF,IAAI,aAAa,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,IAAI,aAAa,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,EAAE,CAAC;QAC/F,MAAM,oBAAoB,GAAG,YAAY,CAAC,MAAM,CAC9C,YAAY,CAAC,IAAI,CAAC,aAAa,EAC/B,MAAM,CAAC,aAAa,CAAC,EACrB,MAAM,CAAC,aAAa,CAAC,CACtB,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,sEAAsE;IACtE,8DAA8D;IAC9D,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CACvD,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,aAAa,CAAC,KAAK,CACvD,CAAC;IAEF,uEAAuE;IACvE,uDAAuD;IACvD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,YAAY,CAAC,MAAM,CACvB,YAAY,CAAC,IAAI,CAAC,oBAAoB,EACtC,MAAM,CAAC,aAAa,CAAC,EACrB,MAAM,CAAC,aAAa,CAAC,CACtB,CAAC;IACJ,CAAC;IAED,iDAAiD;IACjD,OAAO;QACL,aAAa;QACb,aAAa;QACb,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC;QACpD,eAAe,EAAE,aAAa,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK;QAC5D,WAAW;QACX,QAAQ,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;KAC3B,CAAC;AAC9B,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var VersionMessageType;
|
|
2
|
+
(function (VersionMessageType) {
|
|
3
|
+
VersionMessageType["MajorIncompatibility"] = "major-incompatibility";
|
|
4
|
+
VersionMessageType["MinorMismatch"] = "minor-mismatch";
|
|
5
|
+
VersionMessageType["PatchDifference"] = "patch-difference";
|
|
6
|
+
VersionMessageType["InvalidVersion"] = "invalid-version";
|
|
7
|
+
VersionMessageType["InvalidLatestVersion"] = "invalid-latest-version";
|
|
8
|
+
VersionMessageType["IncompatibleVersion"] = "incompatible-version";
|
|
9
|
+
})(VersionMessageType || (VersionMessageType = {}));
|
|
10
|
+
//# sourceMappingURL=static.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.js","sourceRoot":"","sources":["../../../src/versioning/static.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,oEAA8C,CAAA;IAC9C,sDAAgC,CAAA;IAChC,0DAAoC,CAAA;IACpC,wDAAkC,CAAA;IAClC,qEAA+C,CAAA;IAC/C,kEAA4C,CAAA;AAC9C,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/versioning/types.ts"],"names":[],"mappings":""}
|