@file-services/utils
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -74,2 +74,8 @@ "use strict"; | ||
watchService: scopedWatchService, | ||
async copyFile(src, dest, flags) { | ||
return fs.copyFile(joinPath(src), joinPath(dest), flags); | ||
}, | ||
copyFileSync(src, dest, flags) { | ||
return fs.copyFileSync(joinPath(src), joinPath(dest), flags); | ||
}, | ||
async lstat(path) { | ||
@@ -76,0 +82,0 @@ return fs.lstat(joinPath(path)); |
@@ -40,2 +40,5 @@ "use strict"; | ||
return syncFs.renameSync(path, newPath); | ||
}, | ||
async copyFile(src, dest, flags) { | ||
return syncFs.copyFileSync(src, dest, flags); | ||
} | ||
@@ -42,0 +45,0 @@ }; |
@@ -69,2 +69,8 @@ import pathMain from 'path'; | ||
watchService: scopedWatchService, | ||
async copyFile(src, dest, flags) { | ||
return fs.copyFile(joinPath(src), joinPath(dest), flags); | ||
}, | ||
copyFileSync(src, dest, flags) { | ||
return fs.copyFileSync(joinPath(src), joinPath(dest), flags); | ||
}, | ||
async lstat(path) { | ||
@@ -71,0 +77,0 @@ return fs.lstat(joinPath(path)); |
@@ -38,2 +38,5 @@ export function syncToAsyncFs(syncFs) { | ||
return syncFs.renameSync(path, newPath); | ||
}, | ||
async copyFile(src, dest, flags) { | ||
return syncFs.copyFileSync(src, dest, flags); | ||
} | ||
@@ -40,0 +43,0 @@ }; |
{ | ||
"name": "@file-services/utils", | ||
"description": "Common file system utility functions.", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"main": "cjs/index.js", | ||
@@ -17,6 +17,6 @@ "module": "esm/index.js", | ||
"dependencies": { | ||
"@file-services/types": "^0.4.6" | ||
"@file-services/types": "^0.4.7" | ||
}, | ||
"devDependencies": { | ||
"@file-services/test-kit": "^0.4.6" | ||
"@file-services/test-kit": "^0.4.7" | ||
}, | ||
@@ -35,3 +35,3 @@ "files": [ | ||
"sideEffects": false, | ||
"gitHead": "e8d923d4e5bd5553276b195acd5a9d794eb733c0" | ||
"gitHead": "801ee42213735758dfacaedcf14537635f89e3d0" | ||
} |
@@ -77,2 +77,8 @@ import { IBaseFileSystem, IFileSystem, WatchEventListener, IWatchService } from '@file-services/types' | ||
watchService: scopedWatchService, | ||
async copyFile(src, dest, flags) { | ||
return fs.copyFile(joinPath(src), joinPath(dest), flags) | ||
}, | ||
copyFileSync(src, dest, flags) { | ||
return fs.copyFileSync(joinPath(src), joinPath(dest), flags) | ||
}, | ||
async lstat(path) { | ||
@@ -79,0 +85,0 @@ return fs.lstat(joinPath(path)) |
@@ -51,4 +51,8 @@ import { IBaseFileSystemSync, IBaseFileSystemAsync } from '@file-services/types' | ||
return syncFs.renameSync(path, newPath) | ||
}, | ||
async copyFile(src, dest, flags) { | ||
return syncFs.copyFileSync(src, dest, flags) | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75344
1227
Updated@file-services/types@^0.4.7