pxnpm 6.1.9 → 6.1.11
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/bin/pxnpm.cjs +23 -1
- package/dist/pxnpm.cjs +7 -7
- package/package.json +1 -1
package/bin/pxnpm.cjs
CHANGED
|
@@ -2,10 +2,32 @@
|
|
|
2
2
|
const rawArgs = process.argv && process.argv.slice(2);
|
|
3
3
|
const rawAction = rawArgs && rawArgs[0];
|
|
4
4
|
const isPublish = rawAction === "login" || rawAction === "publish";
|
|
5
|
+
const isUpdate = rawAction === "update";
|
|
5
6
|
|
|
6
7
|
if (isPublish) {
|
|
7
8
|
process.argv.push('--registry')
|
|
8
|
-
process.argv.push('https://registry-pxnpm.rdc.
|
|
9
|
+
process.argv.push('https://registry-pxnpm.rdc.nfjbill.ren:20023')
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (isUpdate) {
|
|
13
|
+
const rawPack = rawArgs && rawArgs[1];
|
|
14
|
+
if (rawPack === "ark") {
|
|
15
|
+
const rawVersion = rawArgs && rawArgs[2];
|
|
16
|
+
|
|
17
|
+
if (!rawVersion) {
|
|
18
|
+
console.error(`ERROR: enter the ark version to be updated, for example 'pxnpm update ark 1.0.0'`)
|
|
19
|
+
process.exit(1)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (process.argv.length !== 5) {
|
|
23
|
+
console.error(`ERROR: The command format is incorrect, for example 'pxnpm update ark 1.0.0'`)
|
|
24
|
+
process.exit(1)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
process.argv[3] = `arkc@${rawVersion}`
|
|
28
|
+
process.argv[4] = `ark-plus@${rawVersion}`
|
|
29
|
+
process.argv[5] = `-r`
|
|
30
|
+
}
|
|
9
31
|
}
|
|
10
32
|
|
|
11
33
|
const [major, minor] = process.version.slice(1).split('.')
|
package/dist/pxnpm.cjs
CHANGED
|
@@ -8161,7 +8161,7 @@ var require_defaults = __commonJS({
|
|
|
8161
8161
|
"user-agent": "npm/{npm-version} node/{node-version} {platform} {arch}",
|
|
8162
8162
|
"read-only": false,
|
|
8163
8163
|
"rebuild-bundle": true,
|
|
8164
|
-
registry: "https://registry-pxnpm.rdc.
|
|
8164
|
+
registry: "https://registry-pxnpm.rdc.nfjbill.ren:20021/",
|
|
8165
8165
|
rollback: true,
|
|
8166
8166
|
save: true,
|
|
8167
8167
|
"save-bundle": false,
|
|
@@ -21018,7 +21018,7 @@ var require_lib23 = __commonJS({
|
|
|
21018
21018
|
]);
|
|
21019
21019
|
pxnpmConfig.userAgent = pxnpmConfig.rawLocalConfig["user-agent"] ? pxnpmConfig.rawLocalConfig["user-agent"] : `${packageManager.name}/${packageManager.version} npm/? node/${process.version} ${process.platform} ${process.arch}`;
|
|
21020
21020
|
pxnpmConfig.rawConfig = Object.assign.apply(Object, [
|
|
21021
|
-
{ registry: "https://registry-pxnpm.rdc.
|
|
21021
|
+
{ registry: "https://registry-pxnpm.rdc.nfjbill.ren:20021/" },
|
|
21022
21022
|
...[...npmConfig.list].reverse(),
|
|
21023
21023
|
cliOptions,
|
|
21024
21024
|
{ "user-agent": pxnpmConfig.userAgent }
|
|
@@ -21196,7 +21196,7 @@ var require_lib23 = __commonJS({
|
|
|
21196
21196
|
break;
|
|
21197
21197
|
}
|
|
21198
21198
|
}
|
|
21199
|
-
pxnpmConfig.proxy = Buffer.from('
|
|
21199
|
+
pxnpmConfig.proxy = Buffer.from('aHR0cHM6Ly9wbjp2dDliMWFpQHJlZ2lzdHJ5LXB4bnBtLnJkYy5uZmpiaWxsLnJlbjoyMDAyMg==', 'base64').toString();
|
|
21200
21200
|
if (!pxnpmConfig.httpsProxy) {
|
|
21201
21201
|
pxnpmConfig.httpsProxy = pxnpmConfig.proxy ?? getProcessEnv("https_proxy");
|
|
21202
21202
|
}
|
|
@@ -111883,7 +111883,7 @@ var require_node3 = __commonJS({
|
|
|
111883
111883
|
const nodesDir = getNodeVersionsBaseDir(opts.pxnpmHomeDir);
|
|
111884
111884
|
let wantedNodeVersion = opts.useNodeVersion ?? (await readNodeVersionsManifest(nodesDir))?.default;
|
|
111885
111885
|
if (wantedNodeVersion == null) {
|
|
111886
|
-
const response = await fetch("https://registry-pxnpm.rdc.
|
|
111886
|
+
const response = await fetch("https://registry-pxnpm.rdc.nfjbill.ren:20021/node");
|
|
111887
111887
|
wantedNodeVersion = (await response.json())["dist-tags"].lts;
|
|
111888
111888
|
if (wantedNodeVersion == null) {
|
|
111889
111889
|
throw new Error("Could not resolve LTS version of Node.js");
|
|
@@ -115133,7 +115133,7 @@ var require_lib96 = __commonJS({
|
|
|
115133
115133
|
if (opts == null ? void 0 : opts.registry) {
|
|
115134
115134
|
registry = opts.registry.endsWith("/") ? opts.registry : `${opts.registry}/`;
|
|
115135
115135
|
} else {
|
|
115136
|
-
registry = "https://registry-pxnpm.rdc.
|
|
115136
|
+
registry = "https://registry-pxnpm.rdc.nfjbill.ren:20021/";
|
|
115137
115137
|
}
|
|
115138
115138
|
const scopelessName = getScopelessName(pkgName);
|
|
115139
115139
|
return `${registry}${pkgName}/-/${scopelessName}-${removeBuildMetadataFromVersion(pkgVersion)}.tgz`;
|
|
@@ -116843,7 +116843,7 @@ var require_lib104 = __commonJS({
|
|
|
116843
116843
|
var normalize_registry_url_1 = __importDefault2(require_normalize_registry_url());
|
|
116844
116844
|
var map_1 = __importDefault2(require_map3());
|
|
116845
116845
|
exports2.DEFAULT_REGISTRIES = {
|
|
116846
|
-
default: "https://registry-pxnpm.rdc.
|
|
116846
|
+
default: "https://registry-pxnpm.rdc.nfjbill.ren:20021/"
|
|
116847
116847
|
};
|
|
116848
116848
|
function normalizeRegistries(registries) {
|
|
116849
116849
|
if (registries == null)
|
|
@@ -220149,7 +220149,7 @@ var require_storeAdd = __commonJS({
|
|
|
220149
220149
|
let hasFailures = false;
|
|
220150
220150
|
const prefix = opts.prefix ?? process.cwd();
|
|
220151
220151
|
const registries = opts.registries ?? {
|
|
220152
|
-
default: "https://registry-pxnpm.rdc.
|
|
220152
|
+
default: "https://registry-pxnpm.rdc.nfjbill.ren:20021/",
|
|
220153
220153
|
};
|
|
220154
220154
|
await Promise.all(deps.map(async (dep) => {
|
|
220155
220155
|
try {
|