@vscode/vsce 2.29.1-1 → 2.29.1-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/out/package.js +1 -0
- package/out/validation.js +1 -1
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -894,6 +894,7 @@ class ValidationProcessor extends BaseProcessor {
|
|
|
894
894
|
exports.ValidationProcessor = ValidationProcessor;
|
|
895
895
|
function validateManifest(manifest) {
|
|
896
896
|
(0, validation_1.validateExtensionName)(manifest.name);
|
|
897
|
+
(0, validation_1.validatePublisher)(manifest.publisher);
|
|
897
898
|
if (!manifest.version) {
|
|
898
899
|
throw new Error('Manifest missing field: version');
|
|
899
900
|
}
|
package/out/validation.js
CHANGED
|
@@ -35,7 +35,7 @@ function validatePublisher(publisher) {
|
|
|
35
35
|
throw new Error(`Missing publisher name. Learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publishing-extensions`);
|
|
36
36
|
}
|
|
37
37
|
if (!nameRegex.test(publisher)) {
|
|
38
|
-
throw new Error(`Invalid publisher name '${publisher}'. Expected the identifier of a publisher, not its human-friendly name.
|
|
38
|
+
throw new Error(`Invalid publisher name '${publisher}'. Expected the identifier of a publisher, not its human-friendly name. Learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publishing-extensions`);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.validatePublisher = validatePublisher;
|