node-modules-tools 0.6.5 → 0.6.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -205,7 +205,7 @@ function analyzePackageModuleType(pkgJson) {
205
205
  }
206
206
 
207
207
  async function getPackageInstallSize(pkg) {
208
- if (pkg.workspace)
208
+ if (pkg.workspace || !pkg.name || !pkg.version)
209
209
  return;
210
210
  if (pkg.name.startsWith("#"))
211
211
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-modules-tools",
3
3
  "type": "module",
4
- "version": "0.6.5",
4
+ "version": "0.6.7",
5
5
  "description": "Tools for inspecting node_modules",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,16 +29,16 @@
29
29
  "dependencies": {
30
30
  "js-yaml": "^4.1.0",
31
31
  "p-limit": "^6.2.0",
32
- "package-manager-detector": "^1.1.0",
32
+ "package-manager-detector": "^1.2.0",
33
33
  "pathe": "^2.0.3",
34
34
  "pkg-types": "^2.1.0",
35
- "publint": "^0.3.11",
35
+ "publint": "^0.3.12",
36
36
  "semver": "^7.7.1",
37
37
  "tinyexec": "^1.0.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@pnpm/list": "^1000.0.14",
41
- "@pnpm/types": "^1000.4.0",
40
+ "@pnpm/list": "^1000.0.16",
41
+ "@pnpm/types": "^1000.5.0",
42
42
  "@types/js-yaml": "^4.0.9",
43
43
  "@types/stream-json": "^1.7.8",
44
44
  "stream-json": "^1.9.1",