@bleedingdev/modern-js-create 3.2.0-ultramodern.41 → 3.2.0-ultramodern.43

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -5138,6 +5138,7 @@ async function fetchText(url) {
5138
5138
  return {
5139
5139
  ok: response.ok,
5140
5140
  status: response.status,
5141
+ accessControlAllowOrigin: response.headers.get('access-control-allow-origin'),
5141
5142
  contentType: response.headers.get('content-type'),
5142
5143
  body: await response.text(),
5143
5144
  };
@@ -5246,6 +5247,16 @@ async function validateApp(app, publicUrl) {
5246
5247
  manifest.ok,
5247
5248
  \`\${app.id} MF manifest returned HTTP \${manifest.status}\`,
5248
5249
  );
5250
+ evidence.assertions.push({
5251
+ type: 'mf-manifest-cors',
5252
+ route: manifestRoute,
5253
+ actual: manifest.accessControlAllowOrigin,
5254
+ status: manifest.accessControlAllowOrigin === '*' ? 'pass' : 'fail',
5255
+ });
5256
+ assert(
5257
+ manifest.accessControlAllowOrigin === '*',
5258
+ \`\${app.id} MF manifest is missing Cloudflare CORS headers\`,
5259
+ );
5249
5260
 
5250
5261
  const localeRoute = routes.locale ?? \`/locales/en/\${app.i18n?.namespace}.json\`;
5251
5262
  const locale = await fetchText(joinUrl(publicUrl, localeRoute));
@@ -5263,6 +5274,16 @@ async function validateApp(app, publicUrl) {
5263
5274
  statusCode: locale.status,
5264
5275
  });
5265
5276
  assert(locale.ok, \`\${app.id} locale JSON returned HTTP \${locale.status}\`);
5277
+ evidence.assertions.push({
5278
+ type: 'i18n-cors',
5279
+ route: localeRoute,
5280
+ actual: locale.accessControlAllowOrigin,
5281
+ status: locale.accessControlAllowOrigin === '*' ? 'pass' : 'fail',
5282
+ });
5283
+ assert(
5284
+ locale.accessControlAllowOrigin === '*',
5285
+ \`\${app.id} locale JSON is missing Cloudflare CORS headers\`,
5286
+ );
5266
5287
  assert(
5267
5288
  localeJson && Object.hasOwn(localeJson, app.i18n?.namespace),
5268
5289
  \`\${app.id} locale JSON is missing namespace \${app.i18n?.namespace}\`,
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.2.0-ultramodern.41",
24
+ "version": "3.2.0-ultramodern.43",
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "main": "./dist/index.js",
27
27
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "@types/node": "^25.9.1",
42
42
  "@typescript/native-preview": "7.0.0-dev.20260527.2",
43
43
  "tsx": "^4.22.3",
44
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.41"
44
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.43"
45
45
  },
46
46
  "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",
@@ -54,6 +54,6 @@
54
54
  "start": "node ./dist/index.js"
55
55
  },
56
56
  "ultramodern": {
57
- "frameworkVersion": "3.2.0-ultramodern.41"
57
+ "frameworkVersion": "3.2.0-ultramodern.43"
58
58
  }
59
59
  }