@vscode/vsce 2.26.1-0 → 2.26.1

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.
Files changed (2) hide show
  1. package/out/nls.js +5 -1
  2. package/package.json +1 -1
package/out/nls.js CHANGED
@@ -11,7 +11,11 @@ function createPatcher(translations) {
11
11
  if (!match) {
12
12
  return value;
13
13
  }
14
- return (translations[match[1]] ?? value);
14
+ const translation = translations[match[1]];
15
+ if (translation === undefined) {
16
+ throw new Error(`No translation found for ${value}`);
17
+ }
18
+ return translation;
15
19
  };
16
20
  }
17
21
  function patchNLS(manifest, translations) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "2.26.1-0",
3
+ "version": "2.26.1",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",