@vercel/microfrontends 1.1.1-canary.3 → 1.1.1-canary.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.
- package/dist/bin/cli.cjs +225 -493
- package/dist/config.cjs +27 -62
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.ts +153 -4
- package/dist/config.js +27 -62
- package/dist/config.js.map +1 -1
- package/dist/experimental/sveltekit.cjs +228 -480
- package/dist/experimental/sveltekit.cjs.map +1 -1
- package/dist/experimental/sveltekit.js +218 -470
- package/dist/experimental/sveltekit.js.map +1 -1
- package/dist/experimental/vite.cjs +258 -502
- package/dist/experimental/vite.cjs.map +1 -1
- package/dist/experimental/vite.js +244 -488
- package/dist/experimental/vite.js.map +1 -1
- package/dist/microfrontends/server.cjs +227 -476
- package/dist/microfrontends/server.cjs.map +1 -1
- package/dist/microfrontends/server.d.ts +14 -20
- package/dist/microfrontends/server.js +217 -466
- package/dist/microfrontends/server.js.map +1 -1
- package/dist/next/config.cjs +229 -489
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.js +219 -479
- package/dist/next/config.js.map +1 -1
- package/dist/next/endpoints.d.ts +2 -2
- package/dist/next/middleware.cjs +42 -162
- package/dist/next/middleware.cjs.map +1 -1
- package/dist/next/middleware.d.ts +2 -4
- package/dist/next/middleware.js +42 -162
- package/dist/next/middleware.js.map +1 -1
- package/dist/next/testing.cjs +28 -64
- package/dist/next/testing.cjs.map +1 -1
- package/dist/next/testing.d.ts +4 -4
- package/dist/next/testing.js +28 -64
- package/dist/next/testing.js.map +1 -1
- package/dist/overrides.d.ts +3 -3
- package/dist/schema.cjs +2 -9
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.ts +3 -4
- package/dist/schema.js +1 -7
- package/dist/schema.js.map +1 -1
- package/dist/{types-6ee19ccc.d.ts → types-54064641.d.ts} +2 -13
- package/dist/{types-73527280.d.ts → types-a4add5ab.d.ts} +1 -1
- package/dist/{types-74e3336c.d.ts → types-f1260e44.d.ts} +1 -1
- package/dist/utils/mfe-port.cjs +232 -483
- package/dist/utils/mfe-port.cjs.map +1 -1
- package/dist/utils/mfe-port.js +218 -469
- package/dist/utils/mfe-port.js.map +1 -1
- package/dist/validation.cjs +0 -31
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.d.ts +1 -1
- package/dist/validation.js +0 -31
- package/dist/validation.js.map +1 -1
- package/package.json +1 -8
- package/schema/schema.json +0 -33
- package/dist/index-7e69650e.d.ts +0 -165
- package/dist/microfrontends.cjs +0 -969
- package/dist/microfrontends.cjs.map +0 -1
- package/dist/microfrontends.d.ts +0 -45
- package/dist/microfrontends.js +0 -942
- package/dist/microfrontends.js.map +0 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import '../types-74e3336c.js';
|
|
1
|
+
import { C as Config } from '../types-54064641.js';
|
|
2
|
+
import { O as OverridesConfig } from '../types-a4add5ab.js';
|
|
3
|
+
import { MicrofrontendConfigIsomorphic } from '../config.js';
|
|
4
|
+
import '../types-f1260e44.js';
|
|
6
5
|
|
|
7
|
-
declare class MicrofrontendsServer
|
|
6
|
+
declare class MicrofrontendsServer {
|
|
7
|
+
config: MicrofrontendConfigIsomorphic;
|
|
8
|
+
constructor({ config, overrides, }: {
|
|
9
|
+
config: Config;
|
|
10
|
+
overrides?: OverridesConfig;
|
|
11
|
+
});
|
|
8
12
|
/**
|
|
9
13
|
* Writes the configuration to a file.
|
|
10
14
|
*/
|
|
@@ -14,24 +18,22 @@ declare class MicrofrontendsServer extends Microfrontends {
|
|
|
14
18
|
/**
|
|
15
19
|
* Generates a MicrofrontendsServer instance from an unknown object.
|
|
16
20
|
*/
|
|
17
|
-
static fromUnknown({ config, cookies,
|
|
21
|
+
static fromUnknown({ config, cookies, }: {
|
|
18
22
|
config: unknown;
|
|
19
23
|
cookies?: {
|
|
20
24
|
name: string;
|
|
21
25
|
value: string;
|
|
22
26
|
}[];
|
|
23
|
-
meta: ConfigMeta;
|
|
24
27
|
}): MicrofrontendsServer;
|
|
25
28
|
/**
|
|
26
29
|
* Generates a MicrofrontendsServer instance from the environment.
|
|
27
30
|
* Uses additional validation that is only available when in a node runtime
|
|
28
31
|
*/
|
|
29
|
-
static fromEnv({ cookies,
|
|
32
|
+
static fromEnv({ cookies, }: {
|
|
30
33
|
cookies: {
|
|
31
34
|
name: string;
|
|
32
35
|
value: string;
|
|
33
36
|
}[];
|
|
34
|
-
meta: ConfigMeta;
|
|
35
37
|
}): MicrofrontendsServer;
|
|
36
38
|
/**
|
|
37
39
|
* Validates the configuration against the JSON schema
|
|
@@ -44,28 +46,20 @@ declare class MicrofrontendsServer extends Microfrontends {
|
|
|
44
46
|
*
|
|
45
47
|
* This can return either a Child or Main configuration.
|
|
46
48
|
*/
|
|
47
|
-
static infer({ directory, filePath,
|
|
49
|
+
static infer({ directory, filePath, cookies, }?: {
|
|
48
50
|
directory?: string;
|
|
49
51
|
filePath?: string;
|
|
50
|
-
meta?: ConfigMeta;
|
|
51
52
|
cookies?: {
|
|
52
53
|
name: string;
|
|
53
54
|
value: string;
|
|
54
55
|
}[];
|
|
55
|
-
options?: {
|
|
56
|
-
resolveMainConfig?: boolean;
|
|
57
|
-
};
|
|
58
56
|
}): MicrofrontendsServer;
|
|
59
|
-
static fromFile({ filePath, cookies,
|
|
57
|
+
static fromFile({ filePath, cookies, }: {
|
|
60
58
|
filePath: string;
|
|
61
|
-
meta: ConfigMeta;
|
|
62
59
|
cookies?: {
|
|
63
60
|
name: string;
|
|
64
61
|
value: string;
|
|
65
62
|
}[];
|
|
66
|
-
options?: {
|
|
67
|
-
resolveMainConfig?: boolean;
|
|
68
|
-
};
|
|
69
63
|
}): MicrofrontendsServer;
|
|
70
64
|
static fromMainConfigFile({ filePath, overrides, }: {
|
|
71
65
|
filePath: string;
|