@vscode/vsce 3.9.3-6 → 3.9.3-7

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/npm.js CHANGED
@@ -105,8 +105,8 @@ function asYarnDependency(prefix, tree, prune) {
105
105
  }
106
106
  function selectYarnDependencies(deps, packagedDependencies) {
107
107
  const index = new (class {
108
+ data = Object.create(null);
108
109
  constructor() {
109
- this.data = Object.create(null);
110
110
  for (const dep of deps) {
111
111
  if (this.data[dep.name]) {
112
112
  throw Error(`Dependency seen more than once: ${dep.name}`);
@@ -123,9 +123,7 @@ function selectYarnDependencies(deps, packagedDependencies) {
123
123
  }
124
124
  })();
125
125
  const reached = new (class {
126
- constructor() {
127
- this.values = [];
128
- }
126
+ values = [];
129
127
  add(dep) {
130
128
  if (this.values.indexOf(dep) < 0) {
131
129
  this.values.push(dep);
package/out/oidc.js CHANGED
@@ -5,9 +5,7 @@ exports.getOIDCCredential = getOIDCCredential;
5
5
  const util_1 = require("./util");
6
6
  exports.OIDC_AUDIENCE = 'marketplace.visualstudio.com';
7
7
  class GitHubActionsOIDCTokenProvider {
8
- constructor() {
9
- this.name = 'GitHub Actions';
10
- }
8
+ name = 'GitHub Actions';
11
9
  isAvailable(environment) {
12
10
  return environment['GITHUB_ACTIONS']?.toLowerCase() === 'true';
13
11
  }
package/out/package.js CHANGED
@@ -94,12 +94,13 @@ function read(file) {
94
94
  }
95
95
  }
96
96
  class BaseProcessor {
97
+ manifest;
97
98
  constructor(manifest) {
98
99
  this.manifest = manifest;
99
- this.assets = [];
100
- this.tags = [];
101
- this.vsix = Object.create(null);
102
100
  }
101
+ assets = [];
102
+ tags = [];
103
+ vsix = Object.create(null);
103
104
  async onFile(file) {
104
105
  return file;
105
106
  }
@@ -299,6 +300,7 @@ exports.Targets = new Set([
299
300
  'web',
300
301
  ]);
301
302
  class ManifestProcessor extends BaseProcessor {
303
+ options;
302
304
  constructor(manifest, options = {}) {
303
305
  super(manifest);
304
306
  this.options = options;
@@ -430,6 +432,44 @@ class ManifestProcessor extends BaseProcessor {
430
432
  }
431
433
  exports.ManifestProcessor = ManifestProcessor;
432
434
  class TagsProcessor extends BaseProcessor {
435
+ static Keywords = {
436
+ git: ['git'],
437
+ npm: ['node'],
438
+ spell: ['markdown'],
439
+ bootstrap: ['bootstrap'],
440
+ lint: ['linters'],
441
+ linting: ['linters'],
442
+ react: ['javascript'],
443
+ js: ['javascript'],
444
+ node: ['javascript', 'node'],
445
+ 'c++': ['c++'],
446
+ Cplusplus: ['c++'],
447
+ xml: ['xml'],
448
+ angular: ['javascript'],
449
+ jquery: ['javascript'],
450
+ php: ['php'],
451
+ python: ['python'],
452
+ latex: ['latex'],
453
+ ruby: ['ruby'],
454
+ java: ['java'],
455
+ erlang: ['erlang'],
456
+ sql: ['sql'],
457
+ nodejs: ['node'],
458
+ 'c#': ['c#'],
459
+ css: ['css'],
460
+ javascript: ['javascript'],
461
+ ftp: ['ftp'],
462
+ haskell: ['haskell'],
463
+ unity: ['unity'],
464
+ terminal: ['terminal'],
465
+ powershell: ['powershell'],
466
+ laravel: ['laravel'],
467
+ meteor: ['meteor'],
468
+ emmet: ['emmet'],
469
+ eslint: ['linters'],
470
+ tfs: ['tfs'],
471
+ rust: ['rust'],
472
+ };
433
473
  async onEnd() {
434
474
  const keywords = this.manifest.keywords ?? [];
435
475
  const contributes = this.manifest.contributes;
@@ -493,51 +533,25 @@ class TagsProcessor extends BaseProcessor {
493
533
  }
494
534
  }
495
535
  exports.TagsProcessor = TagsProcessor;
496
- TagsProcessor.Keywords = {
497
- git: ['git'],
498
- npm: ['node'],
499
- spell: ['markdown'],
500
- bootstrap: ['bootstrap'],
501
- lint: ['linters'],
502
- linting: ['linters'],
503
- react: ['javascript'],
504
- js: ['javascript'],
505
- node: ['javascript', 'node'],
506
- 'c++': ['c++'],
507
- Cplusplus: ['c++'],
508
- xml: ['xml'],
509
- angular: ['javascript'],
510
- jquery: ['javascript'],
511
- php: ['php'],
512
- python: ['python'],
513
- latex: ['latex'],
514
- ruby: ['ruby'],
515
- java: ['java'],
516
- erlang: ['erlang'],
517
- sql: ['sql'],
518
- nodejs: ['node'],
519
- 'c#': ['c#'],
520
- css: ['css'],
521
- javascript: ['javascript'],
522
- ftp: ['ftp'],
523
- haskell: ['haskell'],
524
- unity: ['unity'],
525
- terminal: ['terminal'],
526
- powershell: ['powershell'],
527
- laravel: ['laravel'],
528
- meteor: ['meteor'],
529
- emmet: ['emmet'],
530
- eslint: ['linters'],
531
- tfs: ['tfs'],
532
- rust: ['rust'],
533
- };
534
536
  class MarkdownProcessor extends BaseProcessor {
537
+ name;
538
+ assetType;
539
+ options;
540
+ regexp;
541
+ baseContentUrl;
542
+ baseImagesUrl;
543
+ rewriteRelativeLinks;
544
+ isGitHub;
545
+ isGitLab;
546
+ repositoryUrl;
547
+ gitHubIssueLinking;
548
+ gitLabIssueLinking;
549
+ filesProcessed = 0;
535
550
  constructor(manifest, name, filePath, assetType, options = {}) {
536
551
  super(manifest);
537
552
  this.name = name;
538
553
  this.assetType = assetType;
539
554
  this.options = options;
540
- this.filesProcessed = 0;
541
555
  this.regexp = new RegExp(`^${util.filePathToVsixPath(filePath)}$`, 'i');
542
556
  const guess = this.guessBaseUrls(options.githubBranch || options.gitlabBranch);
543
557
  this.baseContentUrl = options.baseContentUrl || (guess && guess.content);
@@ -756,10 +770,13 @@ class ChangelogProcessor extends MarkdownProcessor {
756
770
  }
757
771
  exports.ChangelogProcessor = ChangelogProcessor;
758
772
  class LicenseProcessor extends BaseProcessor {
773
+ options;
774
+ didFindLicense = false;
775
+ expectedLicenseName;
776
+ filter;
759
777
  constructor(manifest, options = {}) {
760
778
  super(manifest);
761
779
  this.options = options;
762
- this.didFindLicense = false;
763
780
  const match = /^SEE LICENSE IN (.*)$/.exec(manifest.license || '');
764
781
  if (!match || !match[1]) {
765
782
  this.expectedLicenseName = 'LICENSE, LICENSE.md, or LICENSE.txt';
@@ -798,9 +815,9 @@ class LicenseProcessor extends BaseProcessor {
798
815
  }
799
816
  exports.LicenseProcessor = LicenseProcessor;
800
817
  class LaunchEntryPointProcessor extends BaseProcessor {
818
+ seenFiles = new Set();
801
819
  constructor(manifest) {
802
820
  super(manifest);
803
- this.seenFiles = new Set();
804
821
  }
805
822
  onFile(file) {
806
823
  this.seenFiles.add(util.normalize(file.path));
@@ -833,9 +850,10 @@ class LaunchEntryPointProcessor extends BaseProcessor {
833
850
  }
834
851
  }
835
852
  class IconProcessor extends BaseProcessor {
853
+ icon;
854
+ didFindIcon = false;
836
855
  constructor(manifest) {
837
856
  super(manifest);
838
- this.didFindIcon = false;
839
857
  this.icon = manifest.icon && path.posix.normalize(util.filePathToVsixPath(manifest.icon));
840
858
  delete this.vsix.icon;
841
859
  }
@@ -915,9 +933,9 @@ function deduceExtensionKinds(manifest) {
915
933
  return result;
916
934
  }
917
935
  class NLSProcessor extends BaseProcessor {
936
+ translations = Object.create(null);
918
937
  constructor(manifest) {
919
938
  super(manifest);
920
- this.translations = Object.create(null);
921
939
  if (!manifest.contributes ||
922
940
  !manifest.contributes.localizations ||
923
941
  manifest.contributes.localizations.length === 0) {
@@ -950,11 +968,8 @@ class NLSProcessor extends BaseProcessor {
950
968
  }
951
969
  exports.NLSProcessor = NLSProcessor;
952
970
  class ValidationProcessor extends BaseProcessor {
953
- constructor() {
954
- super(...arguments);
955
- this.files = new Map();
956
- this.duplicates = new Set();
957
- }
971
+ files = new Map();
972
+ duplicates = new Set();
958
973
  async onFile(file) {
959
974
  const lower = file.path.toLowerCase();
960
975
  const existing = this.files.get(lower);
@@ -5,10 +5,12 @@ const HttpClient_1 = require("typed-rest-client/HttpClient");
5
5
  const GalleryInterfaces_1 = require("azure-devops-node-api/interfaces/GalleryInterfaces");
6
6
  const Serialization_1 = require("azure-devops-node-api/Serialization");
7
7
  class PublicGalleryAPI {
8
+ baseUrl;
9
+ apiVersion;
10
+ client = new HttpClient_1.HttpClient('vsce');
8
11
  constructor(baseUrl, apiVersion = '3.0-preview.1') {
9
12
  this.baseUrl = baseUrl;
10
13
  this.apiVersion = apiVersion;
11
- this.client = new HttpClient_1.HttpClient('vsce');
12
14
  }
13
15
  post(url, data, additionalHeaders) {
14
16
  return this.client.post(`${this.baseUrl}/_apis/public${url}`, data, additionalHeaders);
package/out/publish.js CHANGED
@@ -230,7 +230,7 @@ async function _publishSignedPackage(api, packageName, packageStream, sigzipName
230
230
  });
231
231
  const publishWithRetry = (0, cockatiel_1.retry)((0, cockatiel_1.handleWhen)(err => err.message.includes('timeout')), {
232
232
  maxAttempts: 3,
233
- backoff: new cockatiel_1.IterableBackoff([5000, 10000, 20000])
233
+ backoff: new cockatiel_1.IterableBackoff([5_000, 10_000, 20_000])
234
234
  });
235
235
  return await publishWithRetry.execute(async () => {
236
236
  return await api.publishExtensionWithPublisherSignature(undefined, form, manifest.publisher, manifest.name, extensionType);
package/out/store.js CHANGED
@@ -49,6 +49,9 @@ const package_1 = require("./package");
49
49
  const publish_1 = require("./publish");
50
50
  ;
51
51
  class FileStore {
52
+ path;
53
+ publishers;
54
+ static DefaultPath = path.join((0, os_1.homedir)(), '.vsce');
52
55
  static async open(path = FileStore.DefaultPath) {
53
56
  try {
54
57
  const rawStore = await fs.promises.readFile(path, 'utf8');
@@ -98,8 +101,10 @@ class FileStore {
98
101
  }
99
102
  }
100
103
  exports.FileStore = FileStore;
101
- FileStore.DefaultPath = path.join((0, os_1.homedir)(), '.vsce');
102
104
  class KeytarStore {
105
+ keytar;
106
+ serviceName;
107
+ publishers;
103
108
  static async open(serviceName = 'vscode-vsce') {
104
109
  const keytar = require('@napi-rs/keyring/keytar.js');
105
110
  const creds = await keytar.findCredentials(serviceName);
package/out/util.js CHANGED
@@ -118,10 +118,8 @@ function isCancelledError(error) {
118
118
  return error === CancelledError;
119
119
  }
120
120
  class CancellationToken {
121
- constructor() {
122
- this.listeners = [];
123
- this._cancelled = false;
124
- }
121
+ listeners = [];
122
+ _cancelled = false;
125
123
  get isCancelled() {
126
124
  return this._cancelled;
127
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "3.9.3-6",
3
+ "version": "3.9.3-7",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "watch:test": "npm run test -- --watch"
37
37
  },
38
38
  "engines": {
39
- "node": ">= 20.19"
39
+ "node": ">= 22"
40
40
  },
41
41
  "dependencies": {
42
42
  "@azure/identity": "^4.1.0",
@@ -72,7 +72,7 @@
72
72
  "@types/hosted-git-info": "^3.0.2",
73
73
  "@types/mime": "^1",
74
74
  "@types/mocha": "^7.0.2",
75
- "@types/node": "^20.0.0",
75
+ "@types/node": "^22.0.0",
76
76
  "@types/read": "^0.0.28",
77
77
  "@types/semver": "^6.0.0",
78
78
  "@types/url-join": "^4.0.1",