@file-services/utils
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -110,2 +110,8 @@ "use strict"; | ||
}, | ||
async rename(path, newPath) { | ||
return fs.rename(joinPath(path), joinPath(newPath)); | ||
}, | ||
renameSync(path, newPath) { | ||
return fs.renameSync(joinPath(path), joinPath(newPath)); | ||
}, | ||
async rmdir(path) { | ||
@@ -112,0 +118,0 @@ return fs.rmdir(joinPath(path)); |
@@ -37,2 +37,5 @@ "use strict"; | ||
return syncFs.realpathSync(nodePath); | ||
}, | ||
async rename(path, newPath) { | ||
return syncFs.renameSync(path, newPath); | ||
} | ||
@@ -39,0 +42,0 @@ }; |
@@ -105,2 +105,8 @@ import pathMain from 'path'; | ||
}, | ||
async rename(path, newPath) { | ||
return fs.rename(joinPath(path), joinPath(newPath)); | ||
}, | ||
renameSync(path, newPath) { | ||
return fs.renameSync(joinPath(path), joinPath(newPath)); | ||
}, | ||
async rmdir(path) { | ||
@@ -107,0 +113,0 @@ return fs.rmdir(joinPath(path)); |
@@ -35,2 +35,5 @@ export function syncToAsyncFs(syncFs) { | ||
return syncFs.realpathSync(nodePath); | ||
}, | ||
async rename(path, newPath) { | ||
return syncFs.renameSync(path, newPath); | ||
} | ||
@@ -37,0 +40,0 @@ }; |
{ | ||
"name": "@file-services/utils", | ||
"description": "Common file system utility functions.", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"main": "cjs/index.js", | ||
@@ -13,10 +13,10 @@ "module": "esm/index.js", | ||
"lint:src": "tslint --project src", | ||
"test": "mocha -r @ts-tools/node \"test/**/*.spec.ts?(x)\" --watch-extensions ts,tsx --colors", | ||
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts?(x)\" --watch-extensions ts,tsx --colors", | ||
"prepack": "yarn build" | ||
}, | ||
"dependencies": { | ||
"@file-services/types": "^0.4.4" | ||
"@file-services/types": "^0.4.6" | ||
}, | ||
"devDependencies": { | ||
"@file-services/test-kit": "^0.4.4" | ||
"@file-services/test-kit": "^0.4.6" | ||
}, | ||
@@ -35,3 +35,3 @@ "files": [ | ||
"sideEffects": false, | ||
"gitHead": "43831b9330bf775fd3400206e7957612930bc63a" | ||
"gitHead": "e8d923d4e5bd5553276b195acd5a9d794eb733c0" | ||
} |
@@ -113,2 +113,8 @@ import { IBaseFileSystem, IFileSystem, WatchEventListener, IWatchService } from '@file-services/types' | ||
}, | ||
async rename(path, newPath) { | ||
return fs.rename(joinPath(path), joinPath(newPath)) | ||
}, | ||
renameSync(path, newPath) { | ||
return fs.renameSync(joinPath(path), joinPath(newPath)) | ||
}, | ||
async rmdir(path) { | ||
@@ -115,0 +121,0 @@ return fs.rmdir(joinPath(path)) |
@@ -47,4 +47,8 @@ import { IBaseFileSystemSync, IBaseFileSystemAsync } from '@file-services/types' | ||
return syncFs.realpathSync(nodePath) | ||
}, | ||
async rename(path, newPath) { | ||
return syncFs.renameSync(path, newPath) | ||
} | ||
} | ||
} |
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
73398
1200
Updated@file-services/types@^0.4.6