@vscode/vsce
Advanced tools
Comparing version 2.19.0 to 2.20.0
@@ -651,4 +651,4 @@ "use strict"; | ||
if (!match || !match[1]) { | ||
this.expectedLicenseName = 'LICENSE.md, LICENSE.txt or LICENSE'; | ||
this.filter = name => /^extension\/license(\.(md|txt))?$/i.test(name); | ||
this.expectedLicenseName = 'LICENSE, LICENSE.md, or LICENSE.txt'; | ||
this.filter = name => /^extension\/licen[cs]e(\.(md|txt))?$/i.test(name); | ||
} | ||
@@ -655,0 +655,0 @@ else { |
@@ -121,4 +121,5 @@ "use strict"; | ||
if (extension && extension.versions) { | ||
const sameVersion = extension.versions.filter(v => v.version === manifest.version); | ||
if (sameVersion.length > 0) { | ||
const versionExists = extension.versions.some(v => (v.version === manifest.version) && | ||
(options.target ? v.targetPlatform === options.target : true)); | ||
if (versionExists) { | ||
if (options.skipDuplicate) { | ||
@@ -128,3 +129,3 @@ util_2.log.done(`Version ${manifest.version} is already published. Skipping publish.`); | ||
} | ||
if (sameVersion.some(v => v.targetPlatform === options.target)) { | ||
else { | ||
throw new Error(`${description} already exists.`); | ||
@@ -131,0 +132,0 @@ } |
{ | ||
"name": "@vscode/vsce", | ||
"version": "2.19.0", | ||
"version": "2.20.0", | ||
"description": "VSCode Extension Manager", | ||
@@ -54,3 +54,3 @@ "repository": { | ||
"read": "^1.0.7", | ||
"semver": "^5.1.0", | ||
"semver": "^7.5.2", | ||
"tmp": "^0.2.1", | ||
@@ -57,0 +57,0 @@ "typed-rest-client": "^1.8.4", |
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
150259
3055
Updatedsemver@^7.5.2