@equinor/fusion-framework-cli 15.5.2 → 15.5.4

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.
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '15.5.2';
2
+ export const version = '15.5.4';
3
3
  //# sourceMappingURL=version.js.map
@@ -37,6 +37,12 @@ export type CreateDevServerOptions = {
37
37
  };
38
38
  /** Origin of a local mock server (e.g. `http://localhost:4010`) to use for service discovery. */
39
39
  mock?: string;
40
+ /**
41
+ * Origin of a mock server used for service discovery only, when mock auth was enabled without
42
+ * `mock` (for example through `FUSION_SPA_MSAL_MOCK`). Keeps mock tokens away from real
43
+ * service discovery. Ignored when `mock` is set.
44
+ */
45
+ mockDiscovery?: string;
40
46
  };
41
47
  /**
42
48
  * Creates the full dev server configuration for Fusion CLI.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { RuntimeEnv } from '@equinor/fusion-framework-cli/lib';
2
+ /**
3
+ * Resolves the mock server origin implied by `FUSION_SPA_MSAL_MOCK`, so the dev server can send
4
+ * service discovery to the same mock that issues the tokens.
5
+ *
6
+ * `FUSION_SPA_MSAL_MOCK=true` (from the environment or a `.env` file) makes the SPA sign in with
7
+ * unsigned mock tokens. Real service discovery rejects those tokens, so forwarding discovery
8
+ * requests upstream only produces a stream of `401` responses. Mock auth therefore implies mock
9
+ * discovery, exactly like `--mock` does.
10
+ *
11
+ * @param env - Runtime environment; `mode` and `root` select the `.env` files to read.
12
+ * @param envDir - Optional Vite `envDir`, relative to `root`.
13
+ * @returns `FUSION_SPA_MSAL_MOCK_SERVER_URL`, or `http://localhost:4010` when only
14
+ * `FUSION_SPA_MSAL_MOCK` is set; `undefined` when mock auth is not enabled.
15
+ */
16
+ export declare function resolveMockAuthEndpoint(env: Pick<RuntimeEnv, 'mode' | 'root'>, envDir?: string): string | undefined;
@@ -1 +1 @@
1
- export declare const version = "15.5.2";
1
+ export declare const version = "15.5.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "15.5.2",
3
+ "version": "15.5.4",
4
4
  "keywords": [
5
5
  "Fusion",
6
6
  "Fusion Framework",
@@ -94,8 +94,8 @@
94
94
  "directory": "packages/cli"
95
95
  },
96
96
  "dependencies": {
97
- "@equinor/fusion-framework-dev-portal": "11.1.2",
98
- "@equinor/fusion-framework-dev-server": "2.2.0",
97
+ "@equinor/fusion-framework-dev-portal": "11.1.4",
98
+ "@equinor/fusion-framework-dev-server": "2.3.0",
99
99
  "@equinor/fusion-framework-module-azure-identity": "0.3.3",
100
100
  "@equinor/fusion-framework-vite-plugin-raw-imports": "2.0.4",
101
101
  "@equinor/fusion-framework-vite-plugin-react-router": "0.1.2",
@@ -123,13 +123,13 @@
123
123
  "@equinor/fusion-framework-module": "6.1.5",
124
124
  "@equinor/fusion-framework-module-app": "8.2.1",
125
125
  "@equinor/fusion-framework-module-http": "8.1.3",
126
- "@equinor/fusion-framework-module-service-discovery": "10.1.2",
126
+ "@equinor/fusion-framework-module-service-discovery": "10.2.0",
127
127
  "@rollup/plugin-commonjs": "^29.0.0",
128
128
  "@rollup/plugin-json": "^6.1.0",
129
129
  "@rollup/plugin-node-resolve": "^16.0.1",
130
130
  "@rollup/plugin-replace": "^6.0.2",
131
131
  "@rollup/plugin-terser": "^1.0.0",
132
- "@types/adm-zip": "^0.5.0",
132
+ "@types/adm-zip": "^0.6.0",
133
133
  "@types/normalize-package-data": "^2.4.4",
134
134
  "@types/semver": "^7.7.1",
135
135
  "adm-zip": "^0.6.0",