@widget-js/core 0.11.5 → 0.11.6
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2118,8 +2118,8 @@ var FileApiImpl = class extends BaseApi {
|
|
|
2118
2118
|
delete(filePath) {
|
|
2119
2119
|
return this.invokeMethod("delete", filePath);
|
|
2120
2120
|
}
|
|
2121
|
-
downloadUrl(url) {
|
|
2122
|
-
return this.invokeMethod("downloadUrl", url);
|
|
2121
|
+
downloadUrl(url, savePath) {
|
|
2122
|
+
return this.invokeMethod("downloadUrl", url, savePath);
|
|
2123
2123
|
}
|
|
2124
2124
|
exists(filePath) {
|
|
2125
2125
|
return this.invokeMethod("exists", filePath);
|
|
@@ -2127,6 +2127,9 @@ var FileApiImpl = class extends BaseApi {
|
|
|
2127
2127
|
readFile(filePath) {
|
|
2128
2128
|
return this.invokeMethod("readFile", filePath);
|
|
2129
2129
|
}
|
|
2130
|
+
getDocumentFolder(filePath) {
|
|
2131
|
+
return this.invokeMethod("getDocumentFolder", filePath);
|
|
2132
|
+
}
|
|
2130
2133
|
};
|
|
2131
2134
|
var FileApi = new FileApiImpl();
|
|
2132
2135
|
// Annotate the CommonJS export names for ESM import in node:
|