@augment-vir/node 31.54.2 → 31.54.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.
@@ -35,12 +35,14 @@ export async function listAllDirectNpmDeps(startDirPath) {
35
35
  packageJsonFiles.forEach(({ packageJson, packageJsonFilePath }) => {
36
36
  getEnumValues(PackageJsonDependencyKey).forEach((dependencyKey) => {
37
37
  getObjectTypedEntries(packageJson[dependencyKey] || {}).forEach(([dependencyName, versionValue,]) => {
38
- getOrSet(deps, dependencyName, () => []).push({
39
- dependencyKey,
40
- requiredBy: packageJsonFilePath,
41
- versionValue,
42
- isWorkspace: allWorkspacePackageNames.includes(dependencyName),
43
- });
38
+ if (typeof versionValue === 'string') {
39
+ getOrSet(deps, dependencyName, () => []).push({
40
+ dependencyKey,
41
+ requiredBy: packageJsonFilePath,
42
+ versionValue,
43
+ isWorkspace: allWorkspacePackageNames.includes(dependencyName),
44
+ });
45
+ }
44
46
  });
45
47
  });
46
48
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "31.54.2",
3
+ "version": "31.54.4",
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,19 +38,19 @@
38
38
  "test:update": "npm test"
39
39
  },
40
40
  "dependencies": {
41
- "@augment-vir/assert": "^31.54.2",
42
- "@augment-vir/common": "^31.54.2",
43
- "@date-vir/duration": "^8.0.0",
41
+ "@augment-vir/assert": "^31.54.4",
42
+ "@augment-vir/common": "^31.54.4",
43
+ "@date-vir/duration": "^8.1.0",
44
44
  "ansi-styles": "^6.2.3",
45
45
  "sanitize-filename": "^1.6.3",
46
46
  "terminate": "^2.8.0",
47
- "tsx": "^4.20.6",
48
- "type-fest": "^5.2.0",
47
+ "tsx": "^4.21.0",
48
+ "type-fest": "^5.3.1",
49
49
  "typed-event-target": "^4.1.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@augment-vir/test": "^31.54.2",
53
- "@types/node": "^24.10.1",
52
+ "@augment-vir/test": "^31.54.4",
53
+ "@types/node": "^25.0.2",
54
54
  "@web/dev-server-esbuild": "^1.0.4",
55
55
  "@web/test-runner": "^0.20.2",
56
56
  "@web/test-runner-commands": "^0.9.0",
@@ -361,7 +361,7 @@ export async function grep<const CountOnly extends boolean = false>(
361
361
  {
362
362
  useRequired: true,
363
363
  },
364
- ) satisfies Record<string, string[]> as GrepMatches<CountOnly>;
364
+ ) satisfies Record<string, string[]> as GrepMatches as GrepMatches<CountOnly>;
365
365
  } else {
366
366
  const outputLines = trimmedOutput.split(/[\0\n]/);
367
367
 
@@ -374,6 +374,6 @@ export async function grep<const CountOnly extends boolean = false>(
374
374
  }
375
375
  });
376
376
 
377
- return fileMatches;
377
+ return fileMatches as GrepMatches<CountOnly>;
378
378
  }
379
379
  }
@@ -81,12 +81,14 @@ export async function listAllDirectNpmDeps(startDirPath: string): Promise<NpmDep
81
81
  dependencyName,
82
82
  versionValue,
83
83
  ]) => {
84
- getOrSet(deps, dependencyName, () => []).push({
85
- dependencyKey,
86
- requiredBy: packageJsonFilePath,
87
- versionValue,
88
- isWorkspace: allWorkspacePackageNames.includes(dependencyName),
89
- });
84
+ if (typeof versionValue === 'string') {
85
+ getOrSet(deps, dependencyName, () => []).push({
86
+ dependencyKey,
87
+ requiredBy: packageJsonFilePath,
88
+ versionValue,
89
+ isWorkspace: allWorkspacePackageNames.includes(dependencyName),
90
+ });
91
+ }
90
92
  },
91
93
  );
92
94
  });