@thi.ng/file-io 1.3.2 → 1.3.4
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/CHANGELOG.md +7 -1
- package/file-chunks.d.ts +2 -0
- package/file-chunks.js +2 -7
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-02-
|
|
3
|
+
- **Last updated**: 2024-02-25T14:07:53Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.3.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.3.3) (2024-02-22)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
17
|
+
|
|
12
18
|
### [1.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.3.2) (2024-02-22)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/file-chunks.d.ts
CHANGED
package/file-chunks.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { U32 } from "@thi.ng/hex";
|
|
2
2
|
import { open } from "node:fs/promises";
|
|
3
|
-
async function* fileChunks(path, opts) {
|
|
4
|
-
let {
|
|
5
|
-
size: 1024,
|
|
6
|
-
start: 0,
|
|
7
|
-
end: Infinity,
|
|
8
|
-
...opts
|
|
9
|
-
};
|
|
3
|
+
async function* fileChunks(path, opts = {}) {
|
|
4
|
+
let { size = 1024, start = 0, end = Infinity, logger } = opts;
|
|
10
5
|
logger && logger.debug(`start reading file chunks (size: 0x${size}): ${path}`);
|
|
11
6
|
let fd = void 0;
|
|
12
7
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/file-io",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Assorted file I/O utils (with logging support) for NodeJS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
38
|
+
"@thi.ng/api": "^8.9.26",
|
|
39
39
|
"@thi.ng/checks": "^3.5.0",
|
|
40
40
|
"@thi.ng/hex": "^2.3.37",
|
|
41
|
-
"@thi.ng/logger": "^3.0.
|
|
42
|
-
"@thi.ng/random": "^3.6.
|
|
41
|
+
"@thi.ng/logger": "^3.0.3",
|
|
42
|
+
"@thi.ng/random": "^3.6.33"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"status": "stable",
|
|
121
121
|
"year": 2022
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
|
|
124
124
|
}
|