@equinor/fusion-framework-cli 15.3.1 → 15.3.3
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 +25 -0
- package/bin/build/bin.mjs +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -8
- package/dist/types/bin/utils/apply-dev-server-mocks.d.ts +0 -12
- package/dist/types/bin/utils/apply-dev-server-mocks.test.d.ts +0 -1
- package/dist/types/bin/utils/discover-dev-server-mocks.d.ts +0 -20
- package/dist/types/bin/utils/discover-dev-server-mocks.test.d.ts +0 -1
package/dist/esm/version.js
CHANGED
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "15.3.
|
|
1
|
+
export declare const version = "15.3.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -111,11 +111,11 @@
|
|
|
111
111
|
"vite": "^8.0.0",
|
|
112
112
|
"vite-tsconfig-paths": "^6.0.4",
|
|
113
113
|
"zod": "^4.4.3",
|
|
114
|
-
"@equinor/fusion-framework-dev-
|
|
115
|
-
"@equinor/fusion-
|
|
116
|
-
"@equinor/fusion-framework-module-azure-identity": "0.3.1",
|
|
114
|
+
"@equinor/fusion-framework-dev-server": "2.1.2",
|
|
115
|
+
"@equinor/fusion-imports": "2.0.4",
|
|
117
116
|
"@equinor/fusion-framework-vite-plugin-raw-imports": "2.0.3",
|
|
118
|
-
"@equinor/fusion-
|
|
117
|
+
"@equinor/fusion-framework-module-azure-identity": "0.3.2",
|
|
118
|
+
"@equinor/fusion-framework-dev-portal": "11.0.6"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
"type-fest": "^5.0.0",
|
|
138
138
|
"typescript": "^7.0.2",
|
|
139
139
|
"vitest": "^4.1.10",
|
|
140
|
-
"@equinor/fusion-framework-cli-plugin-mock-server": "^0.1.1",
|
|
141
140
|
"@equinor/fusion-framework-module": "6.1.4",
|
|
142
141
|
"@equinor/fusion-framework-module-http": "8.1.1",
|
|
143
142
|
"@equinor/fusion-framework-module-service-discovery": "10.1.1",
|
|
144
|
-
"@equinor/fusion-framework-
|
|
145
|
-
"@equinor/fusion-framework-module-app": "8.1.1"
|
|
143
|
+
"@equinor/fusion-framework-cli-plugin-mock-server": "^0.1.2",
|
|
144
|
+
"@equinor/fusion-framework-module-app": "8.1.1",
|
|
145
|
+
"@equinor/fusion-framework-react-router": "2.4.2"
|
|
146
146
|
},
|
|
147
147
|
"peerDependenciesMeta": {
|
|
148
148
|
"typescript": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type DevServerOptions } from '@equinor/fusion-framework-dev-server';
|
|
2
|
-
import type { DevServerMockService } from './discover-dev-server-mocks.js';
|
|
3
|
-
/**
|
|
4
|
-
* Adds discovered local mock services to a dev-server configuration.
|
|
5
|
-
*
|
|
6
|
-
* @param config - Loaded dev-server configuration, including any user-defined processor and routes.
|
|
7
|
-
* @param mocks - Local services derived from visible `defineService` modules.
|
|
8
|
-
* @returns A configuration where local services replace real entries by key.
|
|
9
|
-
* @throws {Error} When a mock marked as new collides with upstream service discovery.
|
|
10
|
-
*/
|
|
11
|
-
export declare function applyDevServerMocks(config: DevServerOptions, mocks: DevServerMockService[]): DevServerOptions;
|
|
12
|
-
export default applyDevServerMocks;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { FusionService } from '@equinor/fusion-framework-dev-server';
|
|
2
|
-
interface LocalMockService {
|
|
3
|
-
key: string;
|
|
4
|
-
serviceDiscovery: false | 'merge' | 'new' | 'replace';
|
|
5
|
-
}
|
|
6
|
-
/** Discovery-visible local mock service used by normal app development. */
|
|
7
|
-
export interface DevServerMockService extends FusionService {
|
|
8
|
-
/** Controls collision behavior when overlaying upstream service discovery. */
|
|
9
|
-
serviceDiscovery: Exclude<LocalMockService['serviceDiscovery'], false>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Discovers visible `defineService` modules for normal-development proxying.
|
|
13
|
-
*
|
|
14
|
-
* @param directory - Directory scanned non-recursively for dev-server mock definitions.
|
|
15
|
-
* @param port - Manually started standalone mock-server port.
|
|
16
|
-
* @returns Local service-discovery entries in deterministic filename order.
|
|
17
|
-
* @throws {Error} When the directory cannot be read or a discovered module has an invalid export.
|
|
18
|
-
*/
|
|
19
|
-
export declare function discoverDevServerMocks(directory: string, port: number): Promise<DevServerMockService[]>;
|
|
20
|
-
export default discoverDevServerMocks;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|