@codingame/monaco-vscode-image-resize-service-override 37.1.0 → 37.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-image-resize-service-override",
3
- "version": "37.1.0",
3
+ "version": "37.3.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - image-resize service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.1.0"
18
+ "@codingame/monaco-vscode-api": "37.3.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -112,7 +112,7 @@ class ImageResizeService {
112
112
  if (!files.children) {
113
113
  return;
114
114
  }
115
- await Promise.all(( files.children.map(async file => {
115
+ await Promise.all(files.children.map(async file => {
116
116
  try {
117
117
  const timestamp = this.getTimestampFromFilename(file.name);
118
118
  if (timestamp && (Date.now() - timestamp > duration)) {
@@ -121,7 +121,7 @@ class ImageResizeService {
121
121
  } catch (err) {
122
122
  logService.error("Failed to clean up old images", err);
123
123
  }
124
- })));
124
+ }));
125
125
  }
126
126
  getTimestampFromFilename(filename) {
127
127
  const match = filename.match(/image-(\d+)\./);