File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ const {stat} = fs;
8
8
* @param {string } path filepath on the disk
9
9
* @returns {Blob }
10
10
*/
11
- const blobFrom = path => from ( statSync ( path ) , path ) ;
11
+ const blobFromSync = path => from ( statSync ( path ) , path ) ;
12
12
13
13
/**
14
14
* @param {string } path filepath on the disk
15
15
* @returns {Promise<Blob> }
16
16
*/
17
- const blobFromAsync = path => stat ( path ) . then ( stat => from ( stat , path ) ) ;
17
+ const blobFrom = path => stat ( path ) . then ( stat => from ( stat , path ) ) ;
18
18
19
19
const from = ( stat , path ) => new Blob ( [ new BlobDataItem ( {
20
20
path,
@@ -47,10 +47,10 @@ class BlobDataItem {
47
47
*/
48
48
slice ( start , end ) {
49
49
return new BlobDataItem ( {
50
- path : this . path ,
51
- start ,
52
- mtime : this . mtime ,
53
- size : end - start
50
+ path : this . # path,
51
+ lastModified : this . lastModified ,
52
+ size : end - start ,
53
+ start
54
54
} ) ;
55
55
}
56
56
@@ -72,5 +72,5 @@ class BlobDataItem {
72
72
}
73
73
}
74
74
75
- export default blobFrom ;
76
- export { Blob , blobFrom , blobFromAsync } ;
75
+ export default blobFromSync ;
76
+ export { Blob , blobFrom , blobFromSync } ;
You can’t perform that action at this time.
0 commit comments