@lvce-editor/file-system-worker 5.8.1 → 5.10.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.
|
@@ -1646,6 +1646,9 @@ const assertUri = uri => {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
1648
|
|
|
1649
|
+
const getFileHash$1 = async uri => {
|
|
1650
|
+
return invoke$3('FileSystem.getFileHash', uri);
|
|
1651
|
+
};
|
|
1649
1652
|
const {
|
|
1650
1653
|
appendFile: appendFile$1,
|
|
1651
1654
|
copy: copy$2,
|
|
@@ -1875,6 +1878,9 @@ const readFile = async uri => {
|
|
|
1875
1878
|
}
|
|
1876
1879
|
return readFile$2(uri);
|
|
1877
1880
|
};
|
|
1881
|
+
const getFileHash = async uri => {
|
|
1882
|
+
return getFileHash$1(uri);
|
|
1883
|
+
};
|
|
1878
1884
|
const appendFile = async (uri, text) => {
|
|
1879
1885
|
return appendFile$1(uri, text);
|
|
1880
1886
|
};
|
|
@@ -1988,6 +1994,7 @@ const FileSystemDisk = {
|
|
|
1988
1994
|
copy,
|
|
1989
1995
|
createFile,
|
|
1990
1996
|
exists,
|
|
1997
|
+
getFileHash,
|
|
1991
1998
|
getFolderSize,
|
|
1992
1999
|
getPathSeparator,
|
|
1993
2000
|
getRealPath,
|
|
@@ -2170,6 +2177,7 @@ const commandMap = {
|
|
|
2170
2177
|
'FileSystem.createFile': createFile,
|
|
2171
2178
|
'FileSystem.executeWatchCallback': executeWatchCallback,
|
|
2172
2179
|
'FileSystem.exists': exists,
|
|
2180
|
+
'FileSystem.getFileHash': getFileHash,
|
|
2173
2181
|
'FileSystem.getFolderSize': getFolderSize,
|
|
2174
2182
|
'FileSystem.getPathSeparator': getPathSeparator,
|
|
2175
2183
|
'FileSystem.getRealPath': getRealPath,
|