@snyk/code-client
Advanced tools
Comparing version 4.19.0 to 4.19.1
@@ -83,9 +83,5 @@ "use strict"; | ||
const projectName = (_b = (_a = options.report) === null || _a === void 0 ? void 0 : _a.projectName) === null || _b === void 0 ? void 0 : _b.trim(); | ||
const projectNameMaxLength = 64; | ||
if (!projectName || projectName.length === 0) { | ||
throw new Error('"project-name" must be provided for "report"'); | ||
} | ||
if (projectName.length > projectNameMaxLength) { | ||
throw new Error(`"project-name" must not exceed ${projectNameMaxLength} characters`); | ||
} | ||
if (/[^A-Za-z0-9-_/]/g.test(projectName)) { | ||
@@ -92,0 +88,0 @@ throw new Error(`"project-name" must not contain spaces or special characters except [/-_]`); |
@@ -94,3 +94,3 @@ { | ||
}, | ||
"version": "4.19.0" | ||
"version": "4.19.1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173326
2449