@woodsportal/hubspot-kit 1.0.41-dev.1 → 1.0.41-dev.2

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/cli.js CHANGED
@@ -2343,6 +2343,7 @@ var FORBIDDEN_SHIP_TOKENS = [
2343
2343
  "dev.module-config"
2344
2344
  ];
2345
2345
  var FORBIDDEN_FIXTURE_MENU_TOKENS = ["User Home", "Primary Company Deals"];
2346
+ var FORBIDDEN_PREVIEW_FIXTURE_TOKENS = ["preview.editor@example.com", "CMS_EDITOR_PREVIEW"];
2346
2347
  function hashFile(path) {
2347
2348
  return createHash("sha256").update(readFileSync8(path)).digest("hex");
2348
2349
  }
@@ -2376,13 +2377,18 @@ async function runAuditShipBundle(ctx) {
2376
2377
  violations.push(`${file}: contains forbidden token "${token}"`);
2377
2378
  }
2378
2379
  }
2379
- const isCdnAppBundle = /[/\\]dist[/\\]cdn[/\\]app\..*\.js$/i.test(file);
2380
- if (isCdnAppBundle) {
2380
+ const isCdnAppEntry = /[/\\]dist[/\\]cdn[/\\]app\..*\.js$/i.test(file);
2381
+ if (isCdnAppEntry) {
2381
2382
  for (const token of FORBIDDEN_FIXTURE_MENU_TOKENS) {
2382
2383
  if (content.includes(token)) {
2383
2384
  violations.push(`${file}: contains fixture menu marker "${token}"`);
2384
2385
  }
2385
2386
  }
2387
+ for (const token of FORBIDDEN_PREVIEW_FIXTURE_TOKENS) {
2388
+ if (content.includes(token)) {
2389
+ violations.push(`${file}: contains preview fixture marker "${token}"`);
2390
+ }
2391
+ }
2386
2392
  }
2387
2393
  }
2388
2394
  }