node-modules-tools 2.1.3 → 2.2.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.
- package/dist/chunks/index.mjs +3 -4
- package/dist/chunks/json-parse-stream.mjs +2251 -1603
- package/dist/constants.d.mts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/shared/{node-modules-tools.w8TD_NJZ.d.mts → node-modules-tools.6PktBjdw.d.mts} +3 -3
- package/dist/shared/{node-modules-tools.VxxuULZa.mjs → node-modules-tools.CFlGcN5v.mjs} +1 -1
- package/dist/shared/{node-modules-tools.B4jDG218.d.ts → node-modules-tools.CRCdEV1U.d.ts} +3 -3
- package/dist/shared/{node-modules-tools.BUfYtQgm.d.mts → node-modules-tools.hoWqUakN.d.mts} +1 -1
- package/dist/shared/{node-modules-tools.BUfYtQgm.d.ts → node-modules-tools.hoWqUakN.d.ts} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.mjs +2 -2
- package/package.json +7 -7
package/dist/constants.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CLUSTER_DEP_DEV,
|
|
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.
|
|
4
|
+
import './shared/node-modules-tools.hoWqUakN.mjs';
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CLUSTER_DEP_DEV,
|
|
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.
|
|
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 {
|
|
3
|
-
export { A as AuditLevelString, C as CLUSTER_DEP_DEV,
|
|
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,
|
|
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 {
|
|
3
|
-
export { A as AuditLevelString, C as CLUSTER_DEP_DEV,
|
|
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,
|
|
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.
|
|
7
|
-
export { c as constructPackageFilter, a as constructPackageFilters, p as parseAuthor, f as parseFunding } from './shared/node-modules-tools.
|
|
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 '
|
|
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,
|
|
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
|
|
110
|
-
export type { AuditLevelString as A, FileCategory as F, NpmMeta as N,
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { PackageJson } from 'pkg-types';
|
|
2
2
|
import { Message } from 'publint';
|
|
3
|
-
import { P as ParsedAuthor,
|
|
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
|
|
110
|
-
export type { AuditLevelString as A, FileCategory as F, NpmMeta as N,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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.
|
|
2
|
-
import '
|
|
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.
|
|
4
|
+
"version": "2.2.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": "^
|
|
30
|
+
"js-yaml": "^5.2.1",
|
|
31
31
|
"p-limit": "^7.3.0",
|
|
32
|
-
"package-manager-detector": "^1.
|
|
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
|
-
"
|
|
37
|
-
"
|
|
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": "^
|
|
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": "^
|
|
44
|
+
"stream-json": "^3.5.0",
|
|
45
45
|
"unbuild": "^3.6.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|