atomically 2.0.1 → 2.0.3
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.
- package/dist/index.d.ts +1 -0
- package/package.json +9 -9
- package/readme.md +1 -1
- package/src/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ declare function writeFile(filePath: Path, data: Data, callback?: Callback): Pro
|
|
|
12
12
|
declare function writeFile(filePath: Path, data: Data, options?: Encoding | WriteOptions, callback?: Callback): Promise<void>;
|
|
13
13
|
declare function writeFileSync(filePath: Path, data: Data, options?: Encoding | WriteOptions): void;
|
|
14
14
|
export { readFile, readFileSync, writeFile, writeFileSync };
|
|
15
|
+
export type { Encoding, ReadOptions, WriteOptions };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "atomically",
|
|
3
3
|
"repository": "github:fabiospampinato/atomically",
|
|
4
4
|
"description": "Read and write files atomically and reliably.",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"exports": "./dist/index.js",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"reliable"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"stubborn-fs": "^1.2.
|
|
30
|
-
"when-exit": "^2.
|
|
29
|
+
"stubborn-fs": "^1.2.5",
|
|
30
|
+
"when-exit": "^2.1.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^
|
|
34
|
-
"esbuild": "^0.17
|
|
33
|
+
"@types/node": "^20.4.6",
|
|
34
|
+
"esbuild": "^0.18.17",
|
|
35
35
|
"require-inject": "^1.4.4",
|
|
36
|
-
"tap": "^16.3.
|
|
37
|
-
"tsex": "^
|
|
38
|
-
"typescript": "^
|
|
39
|
-
"write-file-atomic": "^5.0.
|
|
36
|
+
"tap": "^16.3.8",
|
|
37
|
+
"tsex": "^3.0.0",
|
|
38
|
+
"typescript": "^5.1.6",
|
|
39
|
+
"write-file-atomic": "^5.0.1"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/readme.md
CHANGED
|
@@ -19,7 +19,7 @@ Read and write files atomically and reliably.
|
|
|
19
19
|
- Symlinks are resolved automatically.
|
|
20
20
|
- `ENOSYS` errors on `chmod`/`chown` operations are ignored.
|
|
21
21
|
- `EINVAL`/`EPERM` errors on `chmod`/`chown` operations, in POSIX systems where the user is not root, are ignored.
|
|
22
|
-
- `EMFILE`/`ENFILE`/`EAGAIN`/`EBUSY`/`EACCESS`/`EACCS`/`EPERM` errors happening during necessary operations are caught and the operations are retried until they succeed or the timeout is reached.
|
|
22
|
+
- `EMFILE`/`ENFILE`/`EAGAIN`/`EBUSY`/`EACCESS`/`EACCES`/`EACCS`/`EPERM` errors happening during necessary operations are caught and the operations are retried until they succeed or the timeout is reached.
|
|
23
23
|
- `ENAMETOOLONG` errors, both appening because of the final path or the temporary path, are attempted to be worked around by smartly truncating paths.
|
|
24
24
|
- Temporary files:
|
|
25
25
|
- By default they are purged automatically once the write operation is completed or if the process exits (cleanly or not).
|
package/src/index.ts
CHANGED