@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.
@@ -956,13 +956,16 @@ function findDefaultMicrofrontendsPackages({
956
956
  );
957
957
  const matchingPaths = [];
958
958
  for (const microfrontendsJsonPath of microfrontendsJsonPaths) {
959
- const microfrontendsJsonContent = (0, import_node_fs3.readFileSync)(
960
- microfrontendsJsonPath,
961
- "utf-8"
962
- );
963
- const microfrontendsJson = (0, import_jsonc_parser2.parse)(microfrontendsJsonContent);
964
- if (isMainConfig(microfrontendsJson) && microfrontendsJson.applications[applicationName]) {
965
- matchingPaths.push(microfrontendsJsonPath);
959
+ try {
960
+ const microfrontendsJsonContent = (0, import_node_fs3.readFileSync)(
961
+ microfrontendsJsonPath,
962
+ "utf-8"
963
+ );
964
+ const microfrontendsJson = (0, import_jsonc_parser2.parse)(microfrontendsJsonContent);
965
+ if (isMainConfig(microfrontendsJson) && microfrontendsJson.applications[applicationName]) {
966
+ matchingPaths.push(microfrontendsJsonPath);
967
+ }
968
+ } catch (error) {
966
969
  }
967
970
  }
968
971
  if (matchingPaths.length > 1) {
@@ -1181,15 +1184,14 @@ var schema_default = {
1181
1184
  type: "string",
1182
1185
  description: "Vercel project ID"
1183
1186
  },
1184
- development: {
1185
- $ref: "#/definitions/Development"
1186
- },
1187
1187
  production: {
1188
1188
  $ref: "#/definitions/HostConfig",
1189
1189
  deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
1190
+ },
1191
+ development: {
1192
+ $ref: "#/definitions/Development"
1190
1193
  }
1191
1194
  },
1192
- required: ["production"],
1193
1195
  additionalProperties: false
1194
1196
  },
1195
1197
  Vercel: {
@@ -1203,6 +1205,26 @@ var schema_default = {
1203
1205
  required: ["projectId"],
1204
1206
  additionalProperties: false
1205
1207
  },
1208
+ HostConfig: {
1209
+ type: "object",
1210
+ properties: {
1211
+ protocol: {
1212
+ type: "string",
1213
+ enum: ["http", "https"],
1214
+ description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1215
+ },
1216
+ host: {
1217
+ type: "string",
1218
+ 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`)."
1219
+ },
1220
+ port: {
1221
+ type: "number",
1222
+ description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1223
+ }
1224
+ },
1225
+ required: ["host"],
1226
+ additionalProperties: false
1227
+ },
1206
1228
  Development: {
1207
1229
  type: "object",
1208
1230
  properties: {
@@ -1251,26 +1273,6 @@ var schema_default = {
1251
1273
  }
1252
1274
  }
1253
1275
  },
1254
- HostConfig: {
1255
- type: "object",
1256
- properties: {
1257
- protocol: {
1258
- type: "string",
1259
- enum: ["http", "https"],
1260
- description: "The protocol to be used for the connection.\n- `http`: Hypertext Transfer Protocol (HTTP).\n- `https`: Secure Hypertext Transfer Protocol (HTTPS).\n\n*"
1261
- },
1262
- host: {
1263
- type: "string",
1264
- 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`)."
1265
- },
1266
- port: {
1267
- type: "number",
1268
- description: "The port number to be used for the connection. Common values include `80` for HTTP and `443` for HTTPS."
1269
- }
1270
- },
1271
- required: ["host"],
1272
- additionalProperties: false
1273
- },
1274
1276
  ChildApplication: {
1275
1277
  type: "object",
1276
1278
  properties: {
@@ -1282,16 +1284,16 @@ var schema_default = {
1282
1284
  type: "string",
1283
1285
  description: "Vercel project ID"
1284
1286
  },
1287
+ production: {
1288
+ $ref: "#/definitions/HostConfig",
1289
+ deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
1290
+ },
1285
1291
  development: {
1286
1292
  $ref: "#/definitions/Development"
1287
1293
  },
1288
1294
  routing: {
1289
1295
  $ref: "#/definitions/Routing",
1290
1296
  description: "Groups of path expressions that are routed to this application."
1291
- },
1292
- production: {
1293
- $ref: "#/definitions/HostConfig",
1294
- deprecated: "This is a duplicate of the `development.fallback` field and this will be removed soon."
1295
1297
  }
1296
1298
  },
1297
1299
  required: ["routing"],