@widget-js/core 0.11.10 → 0.11.15
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 +21 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -4
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2103,39 +2103,48 @@ var LogApi = new LogApiImpl();
|
|
|
2103
2103
|
|
|
2104
2104
|
// src/api/FileApi.ts
|
|
2105
2105
|
var FileApiImpl = class extends BaseApi {
|
|
2106
|
-
|
|
2106
|
+
async delete(filePath) {
|
|
2107
|
+
return this.invokeMethod("delete", filePath);
|
|
2108
|
+
}
|
|
2109
|
+
async getPictureMetadata(filePath) {
|
|
2107
2110
|
return this.invokeMethod("getPictureMetadata", filePath);
|
|
2108
2111
|
}
|
|
2109
|
-
move(form, to) {
|
|
2112
|
+
async move(form, to) {
|
|
2110
2113
|
return this.invokeMethod("move", form, to);
|
|
2111
2114
|
}
|
|
2112
|
-
|
|
2113
|
-
return this.invokeMethod("getFileType", filePath);
|
|
2114
|
-
}
|
|
2115
|
-
isDirectory(filePath) {
|
|
2115
|
+
async isDirectory(filePath) {
|
|
2116
2116
|
return this.invokeMethod("isDirectory", filePath);
|
|
2117
2117
|
}
|
|
2118
2118
|
getChannel() {
|
|
2119
2119
|
return "channel::cn.widgetjs.core.file" /* FILE */;
|
|
2120
2120
|
}
|
|
2121
|
-
readDirectory(path, options) {
|
|
2121
|
+
async readDirectory(path, options) {
|
|
2122
2122
|
return this.invokeMethod("readDirectory", path, options);
|
|
2123
2123
|
}
|
|
2124
|
-
|
|
2124
|
+
asyncdelete(filePath) {
|
|
2125
2125
|
return this.invokeMethod("delete", filePath);
|
|
2126
2126
|
}
|
|
2127
|
-
downloadUrl(options) {
|
|
2127
|
+
async downloadUrl(options) {
|
|
2128
2128
|
return this.invokeMethod("downloadUrl", options);
|
|
2129
2129
|
}
|
|
2130
|
-
exists(filePath) {
|
|
2130
|
+
async exists(filePath) {
|
|
2131
2131
|
return this.invokeMethod("exists", filePath);
|
|
2132
2132
|
}
|
|
2133
|
-
readFile(filePath) {
|
|
2133
|
+
async readFile(filePath) {
|
|
2134
2134
|
return this.invokeMethod("readFile", filePath);
|
|
2135
2135
|
}
|
|
2136
|
-
getDocumentFolder(filePath) {
|
|
2136
|
+
async getDocumentFolder(filePath) {
|
|
2137
2137
|
return this.invokeMethod("getDocumentFolder", filePath);
|
|
2138
2138
|
}
|
|
2139
|
+
async getMimeType(absoluteFilePath) {
|
|
2140
|
+
return this.invokeMethod("getMimeType", absoluteFilePath);
|
|
2141
|
+
}
|
|
2142
|
+
async getInfo(absoluteFilePath) {
|
|
2143
|
+
return this.invokeMethod("getInfo", absoluteFilePath);
|
|
2144
|
+
}
|
|
2145
|
+
async showSystemFolder(absoluteFolderPath) {
|
|
2146
|
+
return this.invokeMethod("showSystemFolder", absoluteFolderPath);
|
|
2147
|
+
}
|
|
2139
2148
|
};
|
|
2140
2149
|
var FileApi = new FileApiImpl();
|
|
2141
2150
|
// Annotate the CommonJS export names for ESM import in node:
|