npm-pkgbuild 10.12.1 → 10.13.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.13.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@npmcli/arborist": "^5.3.0",
|
|
44
|
-
"@vercel/nft": "^0.
|
|
44
|
+
"@vercel/nft": "^0.21.0",
|
|
45
45
|
"aggregate-async-iterator": "^1.1.14",
|
|
46
46
|
"commander": "^9.4.0",
|
|
47
47
|
"content-entry": "^5.0.8",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"ava": "^4.3.1",
|
|
65
|
-
"c8": "^7.
|
|
65
|
+
"c8": "^7.12.0",
|
|
66
66
|
"documentation": "^13.2.5",
|
|
67
67
|
"semantic-release": "^19.0.3",
|
|
68
68
|
"stream-buffers": "^3.0.2"
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { dirname } from "node:path";
|
|
2
|
-
import { globby } from "globby";
|
|
3
1
|
import { nodeFileTrace } from "@vercel/nft";
|
|
4
2
|
import { FileSystemEntry } from "content-entry-filesystem";
|
|
5
3
|
import { asArray } from "../util.mjs";
|
|
@@ -20,6 +18,11 @@ export class NFTContentProvider extends ContentProvider {
|
|
|
20
18
|
return "nft";
|
|
21
19
|
}
|
|
22
20
|
|
|
21
|
+
static get description()
|
|
22
|
+
{
|
|
23
|
+
return "user vercels NFT as source"
|
|
24
|
+
}
|
|
25
|
+
|
|
23
26
|
constructor(definitions, entryProperties) {
|
|
24
27
|
super();
|
|
25
28
|
|
|
@@ -27,6 +30,7 @@ export class NFTContentProvider extends ContentProvider {
|
|
|
27
30
|
this.definitions = { start: [definitions] };
|
|
28
31
|
} else {
|
|
29
32
|
this.definitions = definitions;
|
|
33
|
+
this.definitions.start = asArray(this.definitions.start);
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
this.entryProperties = entryProperties;
|
|
@@ -15,7 +15,11 @@ import { RPM } from "./output/rpm.mjs";
|
|
|
15
15
|
/**
|
|
16
16
|
* All content providers
|
|
17
17
|
*/
|
|
18
|
-
export const allInputs = [
|
|
18
|
+
export const allInputs = [
|
|
19
|
+
NPMPackContentProvider,
|
|
20
|
+
NodeModulesContentProvider,
|
|
21
|
+
NFTContentProvider
|
|
22
|
+
];
|
|
19
23
|
|
|
20
24
|
/**
|
|
21
25
|
* All output formats
|
|
@@ -159,7 +163,11 @@ export async function* extractFromPackage(options = {}) {
|
|
|
159
163
|
const pkgbuild = json.pkgbuild;
|
|
160
164
|
|
|
161
165
|
if (pkgbuild) {
|
|
162
|
-
if (
|
|
166
|
+
if (modulePath) {
|
|
167
|
+
if (!pkgbuild.abstract) {
|
|
168
|
+
dependencies[pkgbuild.name || json.name] = ">=" + json.version;
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
163
171
|
if (json.cpu) {
|
|
164
172
|
for (const a of asArray(json.cpu)) {
|
|
165
173
|
arch.add(npmArchMapping[a]);
|
package/src/publish.mjs
CHANGED
|
@@ -76,14 +76,14 @@ export function preparePublish(publish = [], env = {}) {
|
|
|
76
76
|
values = values.map(v => vm(v));
|
|
77
77
|
return {
|
|
78
78
|
url: values[0],
|
|
79
|
-
user: values[1],
|
|
80
|
-
password: decodePassword(values[2])
|
|
79
|
+
user: vm(values[1]),
|
|
80
|
+
password: decodePassword(vm(values[2]))
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
try {
|
|
85
85
|
const url = new URL(value);
|
|
86
|
-
let password = vm(url.password);
|
|
86
|
+
let password = decodePassword(vm(url.password));
|
|
87
87
|
let username = vm(url.username);
|
|
88
88
|
url.username = "";
|
|
89
89
|
url.password = "";
|