node-modules-tools 2.1.3 → 2.3.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.
@@ -1,4 +1,4 @@
1
- export { C as CLUSTER_DEP_DEV, a as CLUSTER_DEP_OPTIONAL, b as CLUSTER_DEP_PROD, f as PackageModuleTypes } from './shared/node-modules-tools.w8TD_NJZ.mjs';
1
+ export { C as CLUSTER_DEP_DEV, d as CLUSTER_DEP_OPTIONAL, e as CLUSTER_DEP_PROD, i as PackageModuleTypes } from './shared/node-modules-tools.6PktBjdw.mjs';
2
2
  import 'pkg-types';
3
3
  import 'publint';
4
- import './shared/node-modules-tools.BUfYtQgm.mjs';
4
+ import './shared/node-modules-tools.hoWqUakN.mjs';
@@ -1,4 +1,4 @@
1
- export { C as CLUSTER_DEP_DEV, a as CLUSTER_DEP_OPTIONAL, b as CLUSTER_DEP_PROD, f as PackageModuleTypes } from './shared/node-modules-tools.B4jDG218.js';
1
+ export { C as CLUSTER_DEP_DEV, d as CLUSTER_DEP_OPTIONAL, e as CLUSTER_DEP_PROD, i as PackageModuleTypes } from './shared/node-modules-tools.CRCdEV1U.js';
2
2
  import 'pkg-types';
3
3
  import 'publint';
4
- import './shared/node-modules-tools.BUfYtQgm.js';
4
+ import './shared/node-modules-tools.hoWqUakN.js';
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AgentName } from 'package-manager-detector';
2
- import { i as PackageNodeRaw, h as PackageNodeBase, g as PackageNode, d as PackageModuleType } from './shared/node-modules-tools.w8TD_NJZ.mjs';
3
- export { A as AuditLevelString, C as CLUSTER_DEP_DEV, a as CLUSTER_DEP_OPTIONAL, b as CLUSTER_DEP_PROD, F as FileCategory, N as NpmMeta, c as NpmMetaLatest, P as PackageInstallSizeInfo, e as PackageModuleTypeSimple, f as PackageModuleTypes } from './shared/node-modules-tools.w8TD_NJZ.mjs';
2
+ import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode, c as PackageModuleType } from './shared/node-modules-tools.6PktBjdw.mjs';
3
+ export { A as AuditLevelString, C as CLUSTER_DEP_DEV, d as CLUSTER_DEP_OPTIONAL, e as CLUSTER_DEP_PROD, F as FileCategory, N as NpmMeta, f as NpmMetaLatest, g as PackageInstallSizeInfo, h as PackageModuleTypeSimple, i as PackageModuleTypes } from './shared/node-modules-tools.6PktBjdw.mjs';
4
4
  import { PackageJson } from 'pkg-types';
5
5
  export { PackageJson } from 'pkg-types';
6
- export { N as NormalizedFunding, P as ParsedAuthor, a as ParsedFunding, b as ParsedLicense, c as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.BUfYtQgm.mjs';
6
+ export { N as NormalizedFunding, P as ParsedAuthor, c as ParsedFunding, b as ParsedLicense, a as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.hoWqUakN.mjs';
7
7
  export { PackageNodeLike, constructPackageFilter, constructPackageFilters } from './utils.mjs';
8
8
  export { Message as PublintMessage } from 'publint';
9
9
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AgentName } from 'package-manager-detector';
2
- import { i as PackageNodeRaw, h as PackageNodeBase, g as PackageNode, d as PackageModuleType } from './shared/node-modules-tools.B4jDG218.js';
3
- export { A as AuditLevelString, C as CLUSTER_DEP_DEV, a as CLUSTER_DEP_OPTIONAL, b as CLUSTER_DEP_PROD, F as FileCategory, N as NpmMeta, c as NpmMetaLatest, P as PackageInstallSizeInfo, e as PackageModuleTypeSimple, f as PackageModuleTypes } from './shared/node-modules-tools.B4jDG218.js';
2
+ import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode, c as PackageModuleType } from './shared/node-modules-tools.CRCdEV1U.js';
3
+ export { A as AuditLevelString, C as CLUSTER_DEP_DEV, d as CLUSTER_DEP_OPTIONAL, e as CLUSTER_DEP_PROD, F as FileCategory, N as NpmMeta, f as NpmMetaLatest, g as PackageInstallSizeInfo, h as PackageModuleTypeSimple, i as PackageModuleTypes } from './shared/node-modules-tools.CRCdEV1U.js';
4
4
  import { PackageJson } from 'pkg-types';
5
5
  export { PackageJson } from 'pkg-types';
6
- export { N as NormalizedFunding, P as ParsedAuthor, a as ParsedFunding, b as ParsedLicense, c as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.BUfYtQgm.js';
6
+ export { N as NormalizedFunding, P as ParsedAuthor, c as ParsedFunding, b as ParsedLicense, a as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.hoWqUakN.js';
7
7
  export { PackageNodeLike, constructPackageFilter, constructPackageFilters } from './utils.js';
8
8
  export { Message as PublintMessage } from 'publint';
9
9
 
package/dist/index.mjs CHANGED
@@ -3,11 +3,11 @@ import pLimit from 'p-limit';
3
3
  import { detect } from 'package-manager-detector';
4
4
  import { existsSync } from 'node:fs';
5
5
  import fs, { readFile } from 'node:fs/promises';
6
- import { b as normalizePkgFundings, d as normalizePkgLicense, e as normalizePkgRepository, n as normalizePkgAuthors, o as objectPick } from './shared/node-modules-tools.VxxuULZa.mjs';
7
- export { c as constructPackageFilter, a as constructPackageFilters, p as parseAuthor, f as parseFunding } from './shared/node-modules-tools.VxxuULZa.mjs';
6
+ import { b as normalizePkgFundings, d as normalizePkgLicense, e as normalizePkgRepository, n as normalizePkgAuthors, o as objectPick } from './shared/node-modules-tools.CFlGcN5v.mjs';
7
+ export { c as constructPackageFilter, a as constructPackageFilters, p as parseAuthor, f as parseFunding } from './shared/node-modules-tools.CFlGcN5v.mjs';
8
8
  import { join as join$1 } from 'pathe';
9
9
  import { relative, join } from 'node:path';
10
- import 'semver';
10
+ import 'verkit';
11
11
 
12
12
  async function getPackageManager(options) {
13
13
  const manager = await detect({
@@ -1,6 +1,6 @@
1
1
  import { PackageJson } from 'pkg-types';
2
2
  import { Message } from 'publint';
3
- import { P as ParsedAuthor, c as ParsedRepository, b as ParsedLicense, a as ParsedFunding } from './node-modules-tools.BUfYtQgm.mjs';
3
+ import { P as ParsedAuthor, a as ParsedRepository, b as ParsedLicense, c as ParsedFunding } from './node-modules-tools.hoWqUakN.mjs';
4
4
 
5
5
  interface PackageInstallSizeInfo {
6
6
  bytes: number;
@@ -106,5 +106,5 @@ declare const CLUSTER_DEP_PROD = "dep:prod";
106
106
  declare const CLUSTER_DEP_DEV = "dep:dev";
107
107
  declare const CLUSTER_DEP_OPTIONAL = "dep:optional";
108
108
 
109
- export { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as a, CLUSTER_DEP_PROD as b, PackageModuleTypes as f };
110
- export type { AuditLevelString as A, FileCategory as F, NpmMeta as N, PackageInstallSizeInfo as P, NpmMetaLatest as c, PackageModuleType as d, PackageModuleTypeSimple as e, PackageNode as g, PackageNodeBase as h, PackageNodeRaw as i };
109
+ export { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as d, CLUSTER_DEP_PROD as e, PackageModuleTypes as i };
110
+ export type { AuditLevelString as A, FileCategory as F, NpmMeta as N, PackageNodeRaw as P, PackageNodeBase as a, PackageNode as b, PackageModuleType as c, NpmMetaLatest as f, PackageInstallSizeInfo as g, PackageModuleTypeSimple as h };
@@ -1,4 +1,4 @@
1
- import { satisfies } from 'semver';
1
+ import { satisfies } from 'verkit';
2
2
 
3
3
  function toArray(array) {
4
4
  array = array ?? [];
@@ -1,6 +1,6 @@
1
1
  import { PackageJson } from 'pkg-types';
2
2
  import { Message } from 'publint';
3
- import { P as ParsedAuthor, c as ParsedRepository, b as ParsedLicense, a as ParsedFunding } from './node-modules-tools.BUfYtQgm.js';
3
+ import { P as ParsedAuthor, a as ParsedRepository, b as ParsedLicense, c as ParsedFunding } from './node-modules-tools.hoWqUakN.js';
4
4
 
5
5
  interface PackageInstallSizeInfo {
6
6
  bytes: number;
@@ -106,5 +106,5 @@ declare const CLUSTER_DEP_PROD = "dep:prod";
106
106
  declare const CLUSTER_DEP_DEV = "dep:dev";
107
107
  declare const CLUSTER_DEP_OPTIONAL = "dep:optional";
108
108
 
109
- export { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as a, CLUSTER_DEP_PROD as b, PackageModuleTypes as f };
110
- export type { AuditLevelString as A, FileCategory as F, NpmMeta as N, PackageInstallSizeInfo as P, NpmMetaLatest as c, PackageModuleType as d, PackageModuleTypeSimple as e, PackageNode as g, PackageNodeBase as h, PackageNodeRaw as i };
109
+ export { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as d, CLUSTER_DEP_PROD as e, PackageModuleTypes as i };
110
+ export type { AuditLevelString as A, FileCategory as F, NpmMeta as N, PackageNodeRaw as P, PackageNodeBase as a, PackageNode as b, PackageModuleType as c, NpmMetaLatest as f, PackageInstallSizeInfo as g, PackageModuleTypeSimple as h };
@@ -42,4 +42,4 @@ interface ParsedRepository {
42
42
  declare function normalizePkgRepository(json: PackageJson): ParsedRepository | undefined;
43
43
 
44
44
  export { normalizePkgFundings as d, normalizePkgLicense as e, normalizePkgRepository as f, parseFunding as g, normalizePkgAuthors as n, parseAuthor as p };
45
- export type { NormalizedFunding as N, ParsedAuthor as P, RawAuthor as R, ParsedFunding as a, ParsedLicense as b, ParsedRepository as c };
45
+ export type { NormalizedFunding as N, ParsedAuthor as P, RawAuthor as R, ParsedRepository as a, ParsedLicense as b, ParsedFunding as c };
@@ -42,4 +42,4 @@ interface ParsedRepository {
42
42
  declare function normalizePkgRepository(json: PackageJson): ParsedRepository | undefined;
43
43
 
44
44
  export { normalizePkgFundings as d, normalizePkgLicense as e, normalizePkgRepository as f, parseFunding as g, normalizePkgAuthors as n, parseAuthor as p };
45
- export type { NormalizedFunding as N, ParsedAuthor as P, RawAuthor as R, ParsedFunding as a, ParsedLicense as b, ParsedRepository as c };
45
+ export type { NormalizedFunding as N, ParsedAuthor as P, RawAuthor as R, ParsedRepository as a, ParsedLicense as b, ParsedFunding as c };
package/dist/utils.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { N as NormalizedFunding, P as ParsedAuthor, a as ParsedFunding, b as ParsedLicense, c as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.BUfYtQgm.mjs';
1
+ export { N as NormalizedFunding, P as ParsedAuthor, c as ParsedFunding, b as ParsedLicense, a as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.hoWqUakN.mjs';
2
2
  import 'pkg-types';
3
3
 
4
4
  interface PackageNodeLike {
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { N as NormalizedFunding, P as ParsedAuthor, a as ParsedFunding, b as ParsedLicense, c as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.BUfYtQgm.js';
1
+ export { N as NormalizedFunding, P as ParsedAuthor, c as ParsedFunding, b as ParsedLicense, a as ParsedRepository, R as RawAuthor, n as normalizePkgAuthors, d as normalizePkgFundings, e as normalizePkgLicense, f as normalizePkgRepository, p as parseAuthor, g as parseFunding } from './shared/node-modules-tools.hoWqUakN.js';
2
2
  import 'pkg-types';
3
3
 
4
4
  interface PackageNodeLike {
package/dist/utils.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { c as constructPackageFilter, a as constructPackageFilters, n as normalizePkgAuthors, b as normalizePkgFundings, d as normalizePkgLicense, e as normalizePkgRepository, p as parseAuthor, f as parseFunding } from './shared/node-modules-tools.VxxuULZa.mjs';
2
- import 'semver';
1
+ export { c as constructPackageFilter, a as constructPackageFilters, n as normalizePkgAuthors, b as normalizePkgFundings, d as normalizePkgLicense, e as normalizePkgRepository, p as parseAuthor, f as parseFunding } from './shared/node-modules-tools.CFlGcN5v.mjs';
2
+ import 'verkit';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-modules-tools",
3
3
  "type": "module",
4
- "version": "2.1.3",
4
+ "version": "2.3.0",
5
5
  "description": "Tools for inspecting node_modules",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -27,21 +27,21 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "js-yaml": "^4.1.1",
30
+ "js-yaml": "^5.2.1",
31
31
  "p-limit": "^7.3.0",
32
- "package-manager-detector": "^1.6.0",
32
+ "package-manager-detector": "^1.7.0",
33
33
  "pathe": "^2.0.3",
34
34
  "pkg-types": "^2.3.1",
35
35
  "publint": "^0.3.21",
36
- "semver": "^7.8.0",
37
- "tinyexec": "^1.1.2"
36
+ "tinyexec": "^1.2.4",
37
+ "verkit": "^0.1.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@pnpm/list": "^1000.3.4",
41
- "@pnpm/types": "^1001.3.0",
41
+ "@pnpm/types": "^1101.4.0",
42
42
  "@types/js-yaml": "^4.0.9",
43
43
  "@types/stream-json": "^1.7.8",
44
- "stream-json": "^2.1.0",
44
+ "stream-json": "^3.5.0",
45
45
  "unbuild": "^3.6.1"
46
46
  },
47
47
  "scripts": {