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