@opensumi/ide-components 3.1.2-next-1718694575.0 → 3.1.2-next-1718700994.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -6962,7 +6962,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
6962
6962
  /***/ ((__unused_webpack_module, exports) => {
6963
6963
 
6964
6964
  "use strict";
6965
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.pSeries = exports.Deferred = void 0;\n/**\n * Simple implementation of the deferred pattern.\n * An object that exposes a promise and functions to resolve and reject it.\n */\nclass Deferred {\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n}\nexports.Deferred = Deferred;\nasync function pSeries(tasks) {\n const results = [];\n for (const task of tasks) {\n results.push(await task());\n }\n return results;\n}\nexports.pSeries = pSeries;\n//# sourceMappingURL=promises.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/promises.js?");
6965
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.PromiseTasks = exports.pSeries = exports.Deferred = void 0;\n/**\n * Simple implementation of the deferred pattern.\n * An object that exposes a promise and functions to resolve and reject it.\n */\nclass Deferred {\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n}\nexports.Deferred = Deferred;\nasync function pSeries(tasks) {\n const results = [];\n for (const task of tasks) {\n results.push(await task());\n }\n return results;\n}\nexports.pSeries = pSeries;\nclass PromiseTasks {\n constructor() {\n this.tasks = [];\n }\n add(task) {\n this.tasks.push(task);\n }\n addPromise(task) {\n this.tasks.push(() => task);\n }\n promisify() {\n return this.tasks.map((task) => task());\n }\n async allSettled() {\n return Promise.allSettled(this.promisify());\n }\n async all() {\n return Promise.all(this.promisify());\n }\n async race() {\n return Promise.race(this.promisify());\n }\n /**\n * This returned promise fulfills when any of the input's promises fulfills, with this first fulfillment value.\n * It return `undefined` when all of the input's promises reject (including when an empty iterable is passed).\n */\n async any() {\n try {\n return await Promise.any(this.promisify());\n }\n catch (error) {\n return undefined;\n }\n }\n}\nexports.PromiseTasks = PromiseTasks;\n//# sourceMappingURL=promises.js.map\n\n//# sourceURL=webpack://@opensumi/ide-components/../utils/lib/promises.js?");
6966
6966
 
6967
6967
  /***/ }),
6968
6968
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "3.1.2-next-1718694575.0",
3
+ "version": "3.1.2-next-1718700994.0",
4
4
  "description": "@opensumi/ide-components",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@ant-design/icons": "^4.6.4",
19
- "@opensumi/ide-utils": "3.1.2-next-1718694575.0",
19
+ "@opensumi/ide-utils": "3.1.2-next-1718700994.0",
20
20
  "fuzzy": "^0.1.3",
21
21
  "lodash": "^4.17.21",
22
22
  "marked": "4.0.10",
@@ -36,10 +36,10 @@
36
36
  "react-window": "^1.8.5"
37
37
  },
38
38
  "devDependencies": {
39
- "@opensumi/ide-dev-tool": "3.1.2-next-1718694575.0",
39
+ "@opensumi/ide-dev-tool": "3.1.2-next-1718700994.0",
40
40
  "@types/marked": "^4.0.7",
41
41
  "@types/react-window": "^1.8.5",
42
42
  "prop-types": "^15.8.1"
43
43
  },
44
- "gitHead": "d784885a47f6c1621b4110573ae4c2de74139cbd"
44
+ "gitHead": "14fdc10852a2d0bbebbe9b42acc1194d38d51abb"
45
45
  }