@lvce-editor/rpc-registry 2.58.0 → 2.59.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.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ declare const rename$1: (oldUri: string, newUri: string) => Promise<void>;
|
|
|
158
158
|
declare const copy$1: (oldUri: string, newUri: string) => Promise<void>;
|
|
159
159
|
declare const exists$1: (uri: string) => Promise<boolean>;
|
|
160
160
|
declare const getFolderSize$1: (uri: string) => Promise<number>;
|
|
161
|
+
declare const readFileAsBlob: (uri: string) => Promise<Blob>;
|
|
161
162
|
declare const NodeWorker = 1;
|
|
162
163
|
declare const NodeForkedProcess = 2;
|
|
163
164
|
declare const ElectronUtilityProcess = 3;
|
|
@@ -648,7 +649,7 @@ declare namespace FileSystemProcess$1 {
|
|
|
648
649
|
export { copy, dispose$7 as dispose, exists, getFolderSize, getPathSeparator, getRealPath, invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, mkdir, readDirWithFileTypes, readFile, readJson, remove, rename, set$7 as set, stat, writeFile };
|
|
649
650
|
}
|
|
650
651
|
declare namespace FileSystemWorker$1 {
|
|
651
|
-
export { copy$1 as copy, createFile, dispose$8 as dispose, exists$1 as exists, getFolderSize$1 as getFolderSize, getPathSeparator$1 as getPathSeparator, getRealPath$1 as getRealPath, invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, mkdir$1 as mkdir, readDirWithFileTypes$1 as readDirWithFileTypes, readFile$1 as readFile, remove$1 as remove, rename$1 as rename, set$8 as set, stat$1 as stat, writeFile$1 as writeFile };
|
|
652
|
+
export { copy$1 as copy, createFile, dispose$8 as dispose, exists$1 as exists, getFolderSize$1 as getFolderSize, getPathSeparator$1 as getPathSeparator, getRealPath$1 as getRealPath, invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, mkdir$1 as mkdir, readDirWithFileTypes$1 as readDirWithFileTypes, readFile$1 as readFile, readFileAsBlob, remove$1 as remove, rename$1 as rename, set$8 as set, stat$1 as stat, writeFile$1 as writeFile };
|
|
652
653
|
}
|
|
653
654
|
declare namespace IpcType {
|
|
654
655
|
export { ElectronMessagePort, ElectronUtilityProcess, NodeForkedProcess, NodeWorker, WebSocket$1 as WebSocket };
|
package/dist/index.js
CHANGED
|
@@ -426,6 +426,10 @@ const getFolderSize$1 = async uri => {
|
|
|
426
426
|
// @ts-ignore
|
|
427
427
|
return invoke$7('FileSystem.getFolderSize', uri);
|
|
428
428
|
};
|
|
429
|
+
const readFileAsBlob = async uri => {
|
|
430
|
+
// @ts-ignore
|
|
431
|
+
return invoke$7('FileSystem.readFileAsBlob', uri);
|
|
432
|
+
};
|
|
429
433
|
|
|
430
434
|
const FileSystemWorker = {
|
|
431
435
|
__proto__: null,
|
|
@@ -441,6 +445,7 @@ const FileSystemWorker = {
|
|
|
441
445
|
mkdir,
|
|
442
446
|
readDirWithFileTypes,
|
|
443
447
|
readFile: readFile$1,
|
|
448
|
+
readFileAsBlob,
|
|
444
449
|
remove,
|
|
445
450
|
rename,
|
|
446
451
|
set: set$7,
|