node-modules-tools 0.2.1 → 0.2.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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -57,7 +57,10 @@ interface PackageNode extends PackageNodeBase {
|
|
|
57
57
|
license?: string;
|
|
58
58
|
author?: string;
|
|
59
59
|
repository?: string;
|
|
60
|
-
funding?:
|
|
60
|
+
funding?: {
|
|
61
|
+
url?: string;
|
|
62
|
+
type?: string;
|
|
63
|
+
};
|
|
61
64
|
homepage?: string;
|
|
62
65
|
engines?: Record<string, string>;
|
|
63
66
|
installSize?: PackageInstallSizeInfo;
|
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,10 @@ interface PackageNode extends PackageNodeBase {
|
|
|
57
57
|
license?: string;
|
|
58
58
|
author?: string;
|
|
59
59
|
repository?: string;
|
|
60
|
-
funding?:
|
|
60
|
+
funding?: {
|
|
61
|
+
url?: string;
|
|
62
|
+
type?: string;
|
|
63
|
+
};
|
|
61
64
|
homepage?: string;
|
|
62
65
|
engines?: Record<string, string>;
|
|
63
66
|
installSize?: PackageInstallSizeInfo;
|
package/dist/index.mjs
CHANGED
|
@@ -298,12 +298,15 @@ async function resolvePackage(_packageManager, pkg, _options) {
|
|
|
298
298
|
repository = `https://${repository.slice(6)}`;
|
|
299
299
|
if (json.repository && typeof json.repository !== "string" && json.repository.directory)
|
|
300
300
|
repository += `/tree/HEAD/${json.repository.directory}`;
|
|
301
|
+
let funding = json.funding;
|
|
302
|
+
if (typeof funding === "string")
|
|
303
|
+
funding = { url: funding };
|
|
301
304
|
_pkg.resolved = {
|
|
302
305
|
module: analyzePackageModuleType(json),
|
|
303
306
|
engines: json.engines,
|
|
304
307
|
license: json.license,
|
|
305
308
|
author: typeof json.author === "string" ? json.author : json.author?.url,
|
|
306
|
-
funding
|
|
309
|
+
funding,
|
|
307
310
|
repository,
|
|
308
311
|
homepage: json.homepage,
|
|
309
312
|
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.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"p-limit": "^6.2.0",
|
|
30
|
-
"package-manager-detector": "^0.2.
|
|
30
|
+
"package-manager-detector": "^0.2.10",
|
|
31
31
|
"pathe": "^2.0.3",
|
|
32
32
|
"semver": "^7.7.1",
|
|
33
33
|
"tinyexec": "^0.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@pnpm/list": "^1000.0.
|
|
37
|
-
"@pnpm/types": "^1000.
|
|
36
|
+
"@pnpm/list": "^1000.0.9",
|
|
37
|
+
"@pnpm/types": "^1000.2.0",
|
|
38
38
|
"@types/stream-json": "^1.7.8",
|
|
39
|
-
"pkg-types": "^
|
|
39
|
+
"pkg-types": "^2.0.0",
|
|
40
40
|
"stream-json": "^1.9.1",
|
|
41
|
-
"unbuild": "^3.
|
|
41
|
+
"unbuild": "^3.5.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "unbuild",
|