@vercel/microfrontends 0.19.2 → 0.19.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 +46 -36
- package/dist/microfrontends/server.cjs +37 -35
- package/dist/microfrontends/server.cjs.map +1 -1
- package/dist/microfrontends/server.js +37 -35
- package/dist/microfrontends/server.js.map +1 -1
- package/dist/next/config.cjs +37 -35
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.js +37 -35
- package/dist/next/config.js.map +1 -1
- package/dist/utils/mfe-port.cjs +37 -35
- package/dist/utils/mfe-port.cjs.map +1 -1
- package/dist/utils/mfe-port.js +37 -35
- package/dist/utils/mfe-port.js.map +1 -1
- package/dist/validation.cjs +27 -28
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +27 -28
- package/dist/validation.js.map +1 -1
- package/package.json +9 -1
package/dist/next/config.js
CHANGED
|
@@ -921,13 +921,16 @@ function findDefaultMicrofrontendsPackages({
|
|
|
921
921
|
);
|
|
922
922
|
const matchingPaths = [];
|
|
923
923
|
for (const microfrontendsJsonPath of microfrontendsJsonPaths) {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
924
|
+
try {
|
|
925
|
+
const microfrontendsJsonContent = readFileSync2(
|
|
926
|
+
microfrontendsJsonPath,
|
|
927
|
+
"utf-8"
|
|
928
|
+
);
|
|
929
|
+
const microfrontendsJson = parse2(microfrontendsJsonContent);
|
|
930
|
+
if (isMainConfig(microfrontendsJson) && microfrontendsJson.applications[applicationName]) {
|
|
931
|
+
matchingPaths.push(microfrontendsJsonPath);
|
|
932
|
+
}
|
|
933
|
+
} catch (error) {
|
|
931
934
|
}
|
|
932
935
|
}
|
|
933
936
|
if (matchingPaths.length > 1) {
|
|
@@ -1146,15 +1149,14 @@ var schema_default = {
|
|
|
1146
1149
|
type: "string",
|
|
1147
1150
|
description: "Vercel project ID"
|
|
1148
1151
|
},
|
|
1149
|
-
development: {
|
|
1150
|
-
$ref: "#/definitions/Development"
|
|
1151
|
-
},
|
|
1152
1152
|
production: {
|
|
1153
1153
|
$ref: "#/definitions/HostConfig",
|
|
1154
1154
|
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1155
|
+
},
|
|
1156
|
+
development: {
|
|
1157
|
+
$ref: "#/definitions/Development"
|
|
1155
1158
|
}
|
|
1156
1159
|
},
|
|
1157
|
-
required: ["production"],
|
|
1158
1160
|
additionalProperties: false
|
|
1159
1161
|
},
|
|
1160
1162
|
Vercel: {
|
|
@@ -1168,6 +1170,26 @@ var schema_default = {
|
|
|
1168
1170
|
required: ["projectId"],
|
|
1169
1171
|
additionalProperties: false
|
|
1170
1172
|
},
|
|
1173
|
+
HostConfig: {
|
|
1174
|
+
type: "object",
|
|
1175
|
+
properties: {
|
|
1176
|
+
protocol: {
|
|
1177
|
+
type: "string",
|
|
1178
|
+
enum: ["http", "https"],
|
|
1179
|
+
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1180
|
+
},
|
|
1181
|
+
host: {
|
|
1182
|
+
type: "string",
|
|
1183
|
+
description: "The hostname or IP address of the server. This can be a domain name (e.g., `example.com`) or an IP address (e.g., `192.168.1.1`)."
|
|
1184
|
+
},
|
|
1185
|
+
port: {
|
|
1186
|
+
type: "number",
|
|
1187
|
+
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
required: ["host"],
|
|
1191
|
+
additionalProperties: false
|
|
1192
|
+
},
|
|
1171
1193
|
Development: {
|
|
1172
1194
|
type: "object",
|
|
1173
1195
|
properties: {
|
|
@@ -1216,26 +1238,6 @@ var schema_default = {
|
|
|
1216
1238
|
}
|
|
1217
1239
|
}
|
|
1218
1240
|
},
|
|
1219
|
-
HostConfig: {
|
|
1220
|
-
type: "object",
|
|
1221
|
-
properties: {
|
|
1222
|
-
protocol: {
|
|
1223
|
-
type: "string",
|
|
1224
|
-
enum: ["http", "https"],
|
|
1225
|
-
description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
|
|
1226
|
-
},
|
|
1227
|
-
host: {
|
|
1228
|
-
type: "string",
|
|
1229
|
-
description: "The hostname or IP address of the server. This can be a domain name (e.g., `example.com`) or an IP address (e.g., `192.168.1.1`)."
|
|
1230
|
-
},
|
|
1231
|
-
port: {
|
|
1232
|
-
type: "number",
|
|
1233
|
-
description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
|
|
1234
|
-
}
|
|
1235
|
-
},
|
|
1236
|
-
required: ["host"],
|
|
1237
|
-
additionalProperties: false
|
|
1238
|
-
},
|
|
1239
1241
|
ChildApplication: {
|
|
1240
1242
|
type: "object",
|
|
1241
1243
|
properties: {
|
|
@@ -1247,16 +1249,16 @@ var schema_default = {
|
|
|
1247
1249
|
type: "string",
|
|
1248
1250
|
description: "Vercel project ID"
|
|
1249
1251
|
},
|
|
1252
|
+
production: {
|
|
1253
|
+
$ref: "#/definitions/HostConfig",
|
|
1254
|
+
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1255
|
+
},
|
|
1250
1256
|
development: {
|
|
1251
1257
|
$ref: "#/definitions/Development"
|
|
1252
1258
|
},
|
|
1253
1259
|
routing: {
|
|
1254
1260
|
$ref: "#/definitions/Routing",
|
|
1255
1261
|
description: "Groups of path expressions that are routed to this application."
|
|
1256
|
-
},
|
|
1257
|
-
production: {
|
|
1258
|
-
$ref: "#/definitions/HostConfig",
|
|
1259
|
-
deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
|
|
1260
1262
|
}
|
|
1261
1263
|
},
|
|
1262
1264
|
required: ["routing"],
|