rads-db 3.0.18 → 3.0.19

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.
@@ -77,6 +77,11 @@ var _default = {
77
77
  async unlink(filepath) {
78
78
  sanitizeFilepath(filepath);
79
79
  return await _promises.default.unlink(filepath);
80
+ },
81
+ async rename(oldFilepath, newFilepath) {
82
+ sanitizeFilepath(oldFilepath);
83
+ sanitizeFilepath(newFilepath);
84
+ return await _promises.default.rename(oldFilepath, newFilepath);
80
85
  }
81
86
  };
82
87
  module.exports = _default;
@@ -19,5 +19,6 @@ declare const _default: {
19
19
  lstat(filepath: string, options?: any): Promise<any>;
20
20
  /** Delete a file */
21
21
  unlink(filepath: string): Promise<any>;
22
+ rename(oldFilepath: string, newFilepath: string): Promise<any>;
22
23
  };
23
24
  export default _default;
@@ -69,6 +69,11 @@ export default {
69
69
  async unlink(filepath) {
70
70
  sanitizeFilepath(filepath);
71
71
  return await fs.unlink(filepath);
72
+ },
73
+ async rename(oldFilepath, newFilepath) {
74
+ sanitizeFilepath(oldFilepath);
75
+ sanitizeFilepath(newFilepath);
76
+ return await fs.rename(oldFilepath, newFilepath);
72
77
  }
73
78
  };
74
79
  async function dirExists(path2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "files": [
5
5
  "dist",
6
6
  "drivers",