@augment-vir/node 32.3.1 → 32.4.0

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.
@@ -19,12 +19,10 @@ export async function walkFiles({ handleFileContents, shouldRead, startDirPath,
19
19
  await awaitedForEach(children, async (file) => {
20
20
  const childPath = join(startDirPath, file.name);
21
21
  const isDir = file.isDirectory();
22
- const willRead = shouldRead
23
- ? await shouldRead({
24
- path: childPath,
25
- isDir,
26
- })
27
- : true;
22
+ const willRead = (await shouldRead?.({
23
+ path: childPath,
24
+ isDir,
25
+ })) ?? true;
28
26
  if (!willRead) {
29
27
  return;
30
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "32.3.1",
3
+ "version": "32.4.0",
4
4
  "description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.",
5
5
  "keywords": [
6
6
  "augment",
@@ -38,18 +38,18 @@
38
38
  "test:update": "npm test"
39
39
  },
40
40
  "dependencies": {
41
- "@augment-vir/assert": "^32.3.1",
42
- "@augment-vir/common": "^32.3.1",
43
- "@date-vir/duration": "^9.1.1",
41
+ "@augment-vir/assert": "^32.4.0",
42
+ "@augment-vir/common": "^32.4.0",
43
+ "@date-vir/duration": "^9.2.0",
44
44
  "ansi-styles": "^7.0.0",
45
45
  "sanitize-filename": "^1.6.4",
46
46
  "terminate": "^2.8.0",
47
47
  "tsx": "^4.23.13",
48
- "typed-event-target": "^4.3.3"
48
+ "typed-event-target": "^4.3.4"
49
49
  },
50
50
  "devDependencies": {
51
- "@augment-vir/test": "^32.3.1",
52
- "@types/node": "^26.5.0",
51
+ "@augment-vir/test": "^32.4.0",
52
+ "@types/node": "^26.6.2",
53
53
  "@web/dev-server-esbuild": "^2.0.0",
54
54
  "@web/test-runner": "^1.0.0",
55
55
  "@web/test-runner-playwright": "^1.0.0",
@@ -66,12 +66,11 @@ export async function walkFiles({
66
66
  const childPath = join(startDirPath, file.name);
67
67
  const isDir = file.isDirectory();
68
68
 
69
- const willRead = shouldRead
70
- ? await shouldRead({
71
- path: childPath,
72
- isDir,
73
- })
74
- : true;
69
+ const willRead =
70
+ (await shouldRead?.({
71
+ path: childPath,
72
+ isDir,
73
+ })) ?? true;
75
74
 
76
75
  if (!willRead) {
77
76
  return;