snyk 1.1193.0 → 1.1194.0

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.
@@ -12530,13 +12530,9 @@ async function initAndPollReportGeneric(initReportFunc, getReportFunc, options)
12530
12530
  async function reportBundle(options) {
12531
12531
  var _a, _b;
12532
12532
  const projectName = (_b = (_a = options.report) === null || _a === void 0 ? void 0 : _a.projectName) === null || _b === void 0 ? void 0 : _b.trim();
12533
- const projectNameMaxLength = 64;
12534
12533
  if (!projectName || projectName.length === 0) {
12535
12534
  throw new Error('"project-name" must be provided for "report"');
12536
12535
  }
12537
- if (projectName.length > projectNameMaxLength) {
12538
- throw new Error(`"project-name" must not exceed ${projectNameMaxLength} characters`);
12539
- }
12540
12536
  if (/[^A-Za-z0-9-_/]/g.test(projectName)) {
12541
12537
  throw new Error(`"project-name" must not contain spaces or special characters except [/-_]`);
12542
12538
  }