@widget-js/core 0.11.4 → 0.11.5

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.d.ts CHANGED
@@ -1537,6 +1537,12 @@ interface IFileApi {
1537
1537
  downloadUrl(url: string): Promise<string>;
1538
1538
  exists(filePath: string): Promise<boolean>;
1539
1539
  delete(filePath: string): Promise<boolean>;
1540
+ /**
1541
+ * read file contents
1542
+ * @param filePath
1543
+ * @return base64 encoded string
1544
+ */
1545
+ readFile(filePath: string): Promise<string>;
1540
1546
  }
1541
1547
  type FileApiMethods = keyof IFileApi;
1542
1548
  declare const FileApi: IFileApi;
package/dist/index.js CHANGED
@@ -2040,6 +2040,9 @@ var FileApiImpl = class extends BaseApi {
2040
2040
  exists(filePath) {
2041
2041
  return this.invokeMethod("exists", filePath);
2042
2042
  }
2043
+ readFile(filePath) {
2044
+ return this.invokeMethod("readFile", filePath);
2045
+ }
2043
2046
  };
2044
2047
  var FileApi = new FileApiImpl();
2045
2048
  export {