node-modules-tools 1.3.1 → 1.3.2
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 +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.mjs +1 -1
- package/dist/shared/{node-modules-tools.Ct6sDSTQ.d.mts → node-modules-tools.DH68osY8.d.mts} +2 -2
- package/dist/shared/{node-modules-tools.Ct6sDSTQ.d.ts → node-modules-tools.DH68osY8.d.ts} +2 -2
- package/package.json +3 -3
package/dist/constants.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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.DH68osY8.mjs';
|
|
2
2
|
import 'pkg-types';
|
|
3
3
|
import 'publint';
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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.DH68osY8.js';
|
|
2
2
|
import 'pkg-types';
|
|
3
3
|
import 'publint';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +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 { C as CLUSTER_DEP_DEV,
|
|
4
|
-
|
|
2
|
+
import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode, c as PackageModuleType } from './shared/node-modules-tools.DH68osY8.mjs';
|
|
3
|
+
export { 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.DH68osY8.mjs';
|
|
4
|
+
import { PackageJson } from 'pkg-types';
|
|
5
5
|
export { PackageJson } from 'pkg-types';
|
|
6
|
+
export { NormalizedFunding, PackageNodeLike, ParsedFunding, ParsedLicense, constructPackageFilter, constructPackageFilters, normalizePkgAuthors, normalizePkgFundings, normalizePkgLicense, normalizePkgRepository, parseAuthor, parseFunding } from './utils.mjs';
|
|
6
7
|
export { Message as PublintMessage } from 'publint';
|
|
7
8
|
|
|
8
9
|
interface BaseOptions {
|
|
@@ -56,6 +57,8 @@ declare function getPackageManager(options: BaseOptions): Promise<AgentName>;
|
|
|
56
57
|
*/
|
|
57
58
|
declare function listPackageDependenciesRaw(manager: AgentName, options: ListPackageDependenciesOptions): Promise<ListPackageDependenciesBaseResult>;
|
|
58
59
|
|
|
60
|
+
declare function analyzePackageModuleType(pkgJson: PackageJson): PackageModuleType;
|
|
61
|
+
|
|
59
62
|
declare function listPackageDependencies(options: ListPackageDependenciesOptions): Promise<ListPackageDependenciesResult>;
|
|
60
63
|
|
|
61
64
|
/**
|
|
@@ -66,5 +69,5 @@ declare function listPackageDependencies(options: ListPackageDependenciesOptions
|
|
|
66
69
|
*/
|
|
67
70
|
declare function resolvePackage(_packageManager: AgentName, pkg: PackageNodeBase, _options: BaseOptions): Promise<PackageNode>;
|
|
68
71
|
|
|
69
|
-
export { PackageNode, PackageNodeBase, PackageNodeRaw, getPackageManager, listPackageDependencies, listPackageDependenciesRaw, resolvePackage };
|
|
72
|
+
export { PackageModuleType, PackageNode, PackageNodeBase, PackageNodeRaw, analyzePackageModuleType, getPackageManager, listPackageDependencies, listPackageDependenciesRaw, resolvePackage };
|
|
70
73
|
export type { BaseOptions, ListPackageDependenciesBaseResult, ListPackageDependenciesOptions, ListPackageDependenciesRawResult, ListPackageDependenciesResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +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 { C as CLUSTER_DEP_DEV,
|
|
4
|
-
|
|
2
|
+
import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode, c as PackageModuleType } from './shared/node-modules-tools.DH68osY8.js';
|
|
3
|
+
export { 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.DH68osY8.js';
|
|
4
|
+
import { PackageJson } from 'pkg-types';
|
|
5
5
|
export { PackageJson } from 'pkg-types';
|
|
6
|
+
export { NormalizedFunding, PackageNodeLike, ParsedFunding, ParsedLicense, constructPackageFilter, constructPackageFilters, normalizePkgAuthors, normalizePkgFundings, normalizePkgLicense, normalizePkgRepository, parseAuthor, parseFunding } from './utils.js';
|
|
6
7
|
export { Message as PublintMessage } from 'publint';
|
|
7
8
|
|
|
8
9
|
interface BaseOptions {
|
|
@@ -56,6 +57,8 @@ declare function getPackageManager(options: BaseOptions): Promise<AgentName>;
|
|
|
56
57
|
*/
|
|
57
58
|
declare function listPackageDependenciesRaw(manager: AgentName, options: ListPackageDependenciesOptions): Promise<ListPackageDependenciesBaseResult>;
|
|
58
59
|
|
|
60
|
+
declare function analyzePackageModuleType(pkgJson: PackageJson): PackageModuleType;
|
|
61
|
+
|
|
59
62
|
declare function listPackageDependencies(options: ListPackageDependenciesOptions): Promise<ListPackageDependenciesResult>;
|
|
60
63
|
|
|
61
64
|
/**
|
|
@@ -66,5 +69,5 @@ declare function listPackageDependencies(options: ListPackageDependenciesOptions
|
|
|
66
69
|
*/
|
|
67
70
|
declare function resolvePackage(_packageManager: AgentName, pkg: PackageNodeBase, _options: BaseOptions): Promise<PackageNode>;
|
|
68
71
|
|
|
69
|
-
export { PackageNode, PackageNodeBase, PackageNodeRaw, getPackageManager, listPackageDependencies, listPackageDependenciesRaw, resolvePackage };
|
|
72
|
+
export { PackageModuleType, PackageNode, PackageNodeBase, PackageNodeRaw, analyzePackageModuleType, getPackageManager, listPackageDependencies, listPackageDependenciesRaw, resolvePackage };
|
|
70
73
|
export type { BaseOptions, ListPackageDependenciesBaseResult, ListPackageDependenciesOptions, ListPackageDependenciesRawResult, ListPackageDependenciesResult };
|
package/dist/index.mjs
CHANGED
|
@@ -351,4 +351,4 @@ async function listPackageDependencies(options) {
|
|
|
351
351
|
return result;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
export { getPackageManager, listPackageDependencies, listPackageDependenciesRaw, resolvePackage };
|
|
354
|
+
export { analyzePackageModuleType, getPackageManager, listPackageDependencies, listPackageDependenciesRaw, resolvePackage };
|
|
@@ -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 { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as
|
|
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 d, CLUSTER_DEP_PROD as e, PackageModuleTypes as i };
|
|
95
|
+
export type { 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 };
|
|
@@ -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 { CLUSTER_DEP_DEV as C, CLUSTER_DEP_OPTIONAL as
|
|
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 d, CLUSTER_DEP_PROD as e, PackageModuleTypes as i };
|
|
95
|
+
export type { 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 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-modules-tools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"description": "Tools for inspecting node_modules",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"js-yaml": "^4.1.1",
|
|
31
|
-
"p-limit": "^7.
|
|
31
|
+
"p-limit": "^7.3.0",
|
|
32
32
|
"package-manager-detector": "^1.6.0",
|
|
33
33
|
"pathe": "^2.0.3",
|
|
34
34
|
"pkg-types": "^2.3.0",
|
|
35
35
|
"publint": "^0.3.17",
|
|
36
|
-
"semver": "^7.7.
|
|
36
|
+
"semver": "^7.7.4",
|
|
37
37
|
"tinyexec": "^1.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|