node-modules-tools 1.2.0 → 1.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.
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +5 -5
- package/dist/shared/{node-modules-tools.CC43M-MZ.mjs → node-modules-tools.Cc0OH9G4.mjs} +1 -1
- package/dist/shared/{node-modules-tools.D94dzcLg.d.mts → node-modules-tools.Ct6sDSTQ.d.mts} +2 -2
- package/dist/shared/{node-modules-tools.D94dzcLg.d.ts → node-modules-tools.Ct6sDSTQ.d.ts} +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +8 -8
package/dist/constants.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as CLUSTER_DEP_DEV, c as CLUSTER_DEP_OPTIONAL, d as CLUSTER_DEP_PROD, i as PackageModuleTypes } from './shared/node-modules-tools.Ct6sDSTQ.mjs';
|
|
2
2
|
import 'pkg-types';
|
|
3
3
|
import 'publint';
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as CLUSTER_DEP_DEV, c as CLUSTER_DEP_OPTIONAL, d as CLUSTER_DEP_PROD, i as PackageModuleTypes } from './shared/node-modules-tools.Ct6sDSTQ.js';
|
|
2
2
|
import 'pkg-types';
|
|
3
3
|
import 'publint';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AgentName } from 'package-manager-detector';
|
|
2
|
-
import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.
|
|
3
|
-
export {
|
|
2
|
+
import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.Ct6sDSTQ.mjs';
|
|
3
|
+
export { C as CLUSTER_DEP_DEV, c as CLUSTER_DEP_OPTIONAL, d as CLUSTER_DEP_PROD, F as FileCategory, N as NpmMeta, e as NpmMetaLatest, f as PackageInstallSizeInfo, g as PackageModuleType, h as PackageModuleTypeSimple, i as PackageModuleTypes } from './shared/node-modules-tools.Ct6sDSTQ.mjs';
|
|
4
|
+
export { NormalizedFunding, PackageNodeLike, ParsedFunding, ParsedLicense, constructPackageFilter, constructPackageFilters, normalizePkgAuthors, normalizePkgFundings, normalizePkgLicense, normalizePkgRepository, parseAuthor, parseFunding } from './utils.mjs';
|
|
4
5
|
export { PackageJson } from 'pkg-types';
|
|
5
6
|
export { Message as PublintMessage } from 'publint';
|
|
6
|
-
export { NormalizedFunding, PackageNodeLike, ParsedFunding, ParsedLicense, constructPackageFilter, constructPackageFilters, normalizePkgAuthors, normalizePkgFundings, normalizePkgLicense, normalizePkgRepository, parseAuthor, parseFunding } from './utils.mjs';
|
|
7
7
|
|
|
8
8
|
interface BaseOptions {
|
|
9
9
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AgentName } from 'package-manager-detector';
|
|
2
|
-
import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.
|
|
3
|
-
export {
|
|
2
|
+
import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.Ct6sDSTQ.js';
|
|
3
|
+
export { C as CLUSTER_DEP_DEV, c as CLUSTER_DEP_OPTIONAL, d as CLUSTER_DEP_PROD, F as FileCategory, N as NpmMeta, e as NpmMetaLatest, f as PackageInstallSizeInfo, g as PackageModuleType, h as PackageModuleTypeSimple, i as PackageModuleTypes } from './shared/node-modules-tools.Ct6sDSTQ.js';
|
|
4
|
+
export { NormalizedFunding, PackageNodeLike, ParsedFunding, ParsedLicense, constructPackageFilter, constructPackageFilters, normalizePkgAuthors, normalizePkgFundings, normalizePkgLicense, normalizePkgRepository, parseAuthor, parseFunding } from './utils.js';
|
|
4
5
|
export { PackageJson } from 'pkg-types';
|
|
5
6
|
export { Message as PublintMessage } from 'publint';
|
|
6
|
-
export { NormalizedFunding, PackageNodeLike, ParsedFunding, ParsedLicense, constructPackageFilter, constructPackageFilters, normalizePkgAuthors, normalizePkgFundings, normalizePkgLicense, normalizePkgRepository, parseAuthor, parseFunding } from './utils.js';
|
|
7
7
|
|
|
8
8
|
interface BaseOptions {
|
|
9
9
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@ 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 { o as objectPick } from './shared/node-modules-tools.
|
|
7
|
-
export { c as constructPackageFilter, a as constructPackageFilters,
|
|
6
|
+
import { o as objectPick } from './shared/node-modules-tools.Cc0OH9G4.mjs';
|
|
7
|
+
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.Cc0OH9G4.mjs';
|
|
8
8
|
import { join as join$1 } from 'pathe';
|
|
9
9
|
import { relative, join } from 'node:path';
|
|
10
10
|
import 'semver';
|
|
@@ -109,15 +109,15 @@ function populateRawResult(input) {
|
|
|
109
109
|
function analyzePackageModuleType(pkgJson) {
|
|
110
110
|
if (pkgJson.name?.startsWith("@types/"))
|
|
111
111
|
return "dts";
|
|
112
|
-
const { exports, main, type } = pkgJson;
|
|
112
|
+
const { exports: exports$1, main, type } = pkgJson;
|
|
113
113
|
let cjs;
|
|
114
114
|
let esm;
|
|
115
115
|
let fauxEsm;
|
|
116
116
|
if (pkgJson.module) {
|
|
117
117
|
fauxEsm = true;
|
|
118
118
|
}
|
|
119
|
-
if (exports) {
|
|
120
|
-
analyzeThing(exports, `${pkgJson.name}#exports`);
|
|
119
|
+
if (exports$1) {
|
|
120
|
+
analyzeThing(exports$1, `${pkgJson.name}#exports`);
|
|
121
121
|
}
|
|
122
122
|
if (esm && type === "commonjs") {
|
|
123
123
|
cjs = true;
|
|
@@ -161,4 +161,4 @@ function normalizePkgRepository(json) {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export { constructPackageFilters as a, normalizePkgFundings as b, constructPackageFilter as c,
|
|
164
|
+
export { constructPackageFilters as a, normalizePkgFundings as b, constructPackageFilter as c, normalizePkgLicense as d, normalizePkgRepository as e, parseFunding as f, normalizePkgAuthors as n, objectPick as o, parseAuthor as p };
|
|
@@ -91,5 +91,5 @@ declare const CLUSTER_DEP_PROD = "dep:prod";
|
|
|
91
91
|
declare const CLUSTER_DEP_DEV = "dep:dev";
|
|
92
92
|
declare const CLUSTER_DEP_OPTIONAL = "dep:optional";
|
|
93
93
|
|
|
94
|
-
export {
|
|
95
|
-
export type { FileCategory as F, NpmMeta as N, PackageNodeRaw as P, PackageNodeBase as a, PackageNode as b,
|
|
94
|
+
export { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as c, CLUSTER_DEP_PROD as d, PackageModuleTypes as i };
|
|
95
|
+
export type { FileCategory as F, NpmMeta as N, PackageNodeRaw as P, PackageNodeBase as a, PackageNode as b, NpmMetaLatest as e, PackageInstallSizeInfo as f, PackageModuleType as g, PackageModuleTypeSimple as h };
|
|
@@ -91,5 +91,5 @@ declare const CLUSTER_DEP_PROD = "dep:prod";
|
|
|
91
91
|
declare const CLUSTER_DEP_DEV = "dep:dev";
|
|
92
92
|
declare const CLUSTER_DEP_OPTIONAL = "dep:optional";
|
|
93
93
|
|
|
94
|
-
export {
|
|
95
|
-
export type { FileCategory as F, NpmMeta as N, PackageNodeRaw as P, PackageNodeBase as a, PackageNode as b,
|
|
94
|
+
export { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as c, CLUSTER_DEP_PROD as d, PackageModuleTypes as i };
|
|
95
|
+
export type { FileCategory as F, NpmMeta as N, PackageNodeRaw as P, PackageNodeBase as a, PackageNode as b, NpmMetaLatest as e, PackageInstallSizeInfo as f, PackageModuleType as g, PackageModuleTypeSimple as h };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { c as constructPackageFilter, a as constructPackageFilters,
|
|
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.Cc0OH9G4.mjs';
|
|
2
2
|
import 'semver';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-modules-tools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "Tools for inspecting node_modules",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"js-yaml": "^4.1.
|
|
31
|
-
"p-limit": "^
|
|
32
|
-
"package-manager-detector": "^1.
|
|
30
|
+
"js-yaml": "^4.1.1",
|
|
31
|
+
"p-limit": "^7.2.0",
|
|
32
|
+
"package-manager-detector": "^1.6.0",
|
|
33
33
|
"pathe": "^2.0.3",
|
|
34
34
|
"pkg-types": "^2.3.0",
|
|
35
|
-
"publint": "^0.3.
|
|
35
|
+
"publint": "^0.3.17",
|
|
36
36
|
"semver": "^7.7.3",
|
|
37
|
-
"tinyexec": "^1.0.
|
|
37
|
+
"tinyexec": "^1.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@pnpm/list": "^1000.
|
|
41
|
-
"@pnpm/types": "^
|
|
40
|
+
"@pnpm/list": "^1000.2.5",
|
|
41
|
+
"@pnpm/types": "^1001.3.0",
|
|
42
42
|
"@types/js-yaml": "^4.0.9",
|
|
43
43
|
"@types/stream-json": "^1.7.8",
|
|
44
44
|
"stream-json": "^1.9.1",
|