@codingame/monaco-vscode-extension-gallery-service-override 20.2.1 → 20.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-extension-gallery-service-override",
3
- "version": "20.2.1",
3
+ "version": "20.3.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - extension-gallery service-override",
6
6
  "keywords": [],
@@ -15,16 +15,16 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "20.2.1",
19
- "@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "20.2.1",
20
- "@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common": "20.2.1",
21
- "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.2.1",
22
- "@codingame/monaco-vscode-571c8352-7953-5038-9f09-e03bb6219a0e-common": "20.2.1",
23
- "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.2.1",
24
- "@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "20.2.1",
25
- "@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "20.2.1",
26
- "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.2.1",
27
- "@codingame/monaco-vscode-api": "20.2.1"
18
+ "@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "20.3.0",
19
+ "@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "20.3.0",
20
+ "@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common": "20.3.0",
21
+ "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.3.0",
22
+ "@codingame/monaco-vscode-571c8352-7953-5038-9f09-e03bb6219a0e-common": "20.3.0",
23
+ "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.3.0",
24
+ "@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "20.3.0",
25
+ "@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "20.3.0",
26
+ "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.3.0",
27
+ "@codingame/monaco-vscode-api": "20.3.0"
28
28
  },
29
29
  "main": "index.js",
30
30
  "module": "index.js",
@@ -28,7 +28,7 @@ export interface IRawGalleryExtensionVersion {
28
28
  readonly lastUpdated: string;
29
29
  readonly assetUri: string;
30
30
  readonly fallbackAssetUri: string;
31
- readonly files: IRawGalleryExtensionFile[];
31
+ readonly files?: IRawGalleryExtensionFile[];
32
32
  readonly properties?: IRawGalleryExtensionProperty[];
33
33
  readonly targetPlatform?: string;
34
34
  }
@@ -122,7 +122,7 @@ function getStatistic(statistics, name) {
122
122
  }
123
123
  function getCoreTranslationAssets(version) {
124
124
  const coreTranslationAssetPrefix = 'Microsoft.VisualStudio.Code.Translation.';
125
- const result = version.files.filter(f => f.assetType.indexOf(coreTranslationAssetPrefix) === 0);
125
+ const result = (version.files ?? []).filter(f => f.assetType.indexOf(coreTranslationAssetPrefix) === 0);
126
126
  return result.reduce((result, file) => {
127
127
  const asset = getVersionAsset(version, file.assetType);
128
128
  if (asset) {
@@ -147,7 +147,7 @@ function getDownloadAsset(version) {
147
147
  };
148
148
  }
149
149
  function getVersionAsset(version, type) {
150
- const result = version.files.filter(f => f.assetType === type)[0];
150
+ const result = version.files?.filter(f => f.assetType === type)[0];
151
151
  return result ? {
152
152
  uri: `${version.assetUri}/${type}${version.targetPlatform ? `?targetPlatform=${version.targetPlatform}` : ''}`,
153
153
  fallbackUri: `${version.fallbackAssetUri}/${type}${version.targetPlatform ? `?targetPlatform=${version.targetPlatform}` : ''}`