node-modules-tools 0.0.10 → 0.0.11

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.
@@ -22,7 +22,7 @@ async function getPnpmVersion(options) {
22
22
  } catch (err) {
23
23
  console.error("Failed to get pnpm version");
24
24
  console.error(err);
25
- return undefined;
25
+ return void 0;
26
26
  }
27
27
  }
28
28
  async function getDependenciesTree(options) {
package/dist/index.d.mts CHANGED
@@ -56,6 +56,7 @@ interface PackageNode extends PackageNodeBase {
56
56
  license?: string;
57
57
  author?: string;
58
58
  repository?: string;
59
+ funding?: string;
59
60
  homepage?: string;
60
61
  engines?: Record<string, string>;
61
62
  installSize?: PackageInstallSizeInfo;
package/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ interface PackageNode extends PackageNodeBase {
56
56
  license?: string;
57
57
  author?: string;
58
58
  repository?: string;
59
+ funding?: string;
59
60
  homepage?: string;
60
61
  engines?: Record<string, string>;
61
62
  installSize?: PackageInstallSizeInfo;
package/dist/index.mjs CHANGED
@@ -117,7 +117,7 @@ function analyzePackageModuleType(pkgJson) {
117
117
  if (cjs && type === "module") {
118
118
  esm = true;
119
119
  }
120
- if (cjs === undefined && esm === undefined) {
120
+ if (cjs === void 0 && esm === void 0) {
121
121
  if (type === "module" || main && /\.mjs$/.test(main)) {
122
122
  esm = true;
123
123
  } else if (main) {
@@ -313,6 +313,7 @@ async function resolvePackage(_packageManager, pkg, _options) {
313
313
  engines: json.engines,
314
314
  license: json.license,
315
315
  author: typeof json.author === "string" ? json.author : json.author?.url,
316
+ funding: json.funding,
316
317
  repository,
317
318
  homepage: json.homepage,
318
319
  installSize: await getPackageInstallSize(_pkg)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-modules-tools",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "description": "Tools for inspecting node_modules",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",