@widget-js/core 0.10.13 → 0.10.14
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/dist/index.cjs +31 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -66,6 +66,7 @@ __export(src_exports, {
|
|
|
66
66
|
NotificationApiEvent: () => NotificationApiEvent,
|
|
67
67
|
NotificationSize: () => NotificationSize,
|
|
68
68
|
Page: () => Page,
|
|
69
|
+
ProcessApi: () => ProcessApi,
|
|
69
70
|
ShortcutApi: () => ShortcutApi,
|
|
70
71
|
ShortcutApiEvent: () => ShortcutApiEvent,
|
|
71
72
|
StoreApi: () => StoreApi,
|
|
@@ -1882,6 +1883,35 @@ var ShortcutApiImpl = class extends BaseApi {
|
|
|
1882
1883
|
};
|
|
1883
1884
|
var ShortcutApi = new ShortcutApiImpl();
|
|
1884
1885
|
|
|
1886
|
+
// src/api/ProcessApi.ts
|
|
1887
|
+
var ProcessApiImpl = class extends BaseApi {
|
|
1888
|
+
getChannel() {
|
|
1889
|
+
return "channel::cn.widgetjs.core.process" /* PROCESS */;
|
|
1890
|
+
}
|
|
1891
|
+
getBlinkMemoryInfo() {
|
|
1892
|
+
return this.invokeMethod("getBlinkMemoryInfo");
|
|
1893
|
+
}
|
|
1894
|
+
getCPUUsage() {
|
|
1895
|
+
return this.invokeMethod("getCPUUsage");
|
|
1896
|
+
}
|
|
1897
|
+
getHeapStatistics() {
|
|
1898
|
+
return this.invokeMethod("getHeapStatistics");
|
|
1899
|
+
}
|
|
1900
|
+
getIOCounters() {
|
|
1901
|
+
return this.invokeMethod("getIOCounters");
|
|
1902
|
+
}
|
|
1903
|
+
getProcessMemoryInfo() {
|
|
1904
|
+
return this.invokeMethod("getProcessMemoryInfo");
|
|
1905
|
+
}
|
|
1906
|
+
getSystemMemoryInfo() {
|
|
1907
|
+
return this.invokeMethod("getSystemMemoryInfo");
|
|
1908
|
+
}
|
|
1909
|
+
getSystemVersion() {
|
|
1910
|
+
return this.invokeMethod("getSystemVersion");
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
var ProcessApi = new ProcessApiImpl();
|
|
1914
|
+
|
|
1885
1915
|
// src/api/AppApi.ts
|
|
1886
1916
|
var AppApiEvent = /* @__PURE__ */ ((AppApiEvent2) => {
|
|
1887
1917
|
AppApiEvent2["CONFIG_CHANGED"] = "event::cn.widgetjs.core.app.config.changed";
|
|
@@ -2066,6 +2096,7 @@ var FileApi = new FileApiImpl();
|
|
|
2066
2096
|
NotificationApiEvent,
|
|
2067
2097
|
NotificationSize,
|
|
2068
2098
|
Page,
|
|
2099
|
+
ProcessApi,
|
|
2069
2100
|
ShortcutApi,
|
|
2070
2101
|
ShortcutApiEvent,
|
|
2071
2102
|
StoreApi,
|