@storm-software/npm-tools 0.5.43 → 0.6.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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/chunk-6YRTJZQS.cjs +1 -0
- package/dist/chunk-O7SV5FVB.js +1 -0
- package/dist/chunk-TGETNJZY.js +1 -0
- package/dist/chunk-VIQH5G57.cjs +1 -0
- package/dist/helpers/get-registry.cjs +1 -1
- package/dist/helpers/get-registry.d.cts +2 -1
- package/dist/helpers/get-registry.d.ts +2 -1
- package/dist/helpers/get-registry.js +1 -1
- package/dist/helpers/get-version.cjs +1 -1
- package/dist/helpers/get-version.d.cts +6 -0
- package/dist/helpers/get-version.d.ts +6 -0
- package/dist/helpers/get-version.js +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-ARM2C4SR.cjs +0 -1
- package/dist/chunk-BUJO2IHD.js +0 -1
- package/dist/chunk-RUFQ2VOJ.cjs +0 -1
- package/dist/chunk-SHTY72AZ.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Npm Tools
|
|
4
4
|
|
|
5
|
+
## [0.5.43](https://github.com/storm-software/storm-ops/releases/tag/npm-tools%400.5.43) (11/19/2025)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **testing-tools** to **v1.119.43**
|
|
10
|
+
- Updated **config-tools** to **v1.188.43**
|
|
11
|
+
- Updated **config** to **v1.134.43**
|
|
12
|
+
|
|
5
13
|
## [0.5.42](https://github.com/storm-software/storm-ops/releases/tag/npm-tools%400.5.42) (11/19/2025)
|
|
6
14
|
|
|
7
15
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkVIQH5G57_cjs=require('./chunk-VIQH5G57.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs'),child_process=require('child_process');async function e(t,r=chunkQFGWM46Y_cjs.f,n={}){let i=n.executable||"npm",f=n.registry||await chunkVIQH5G57_cjs.a(i);return new Promise((x,s)=>{child_process.exec(`${i} view ${t} version --registry=${f} --tag=${r}`,(o,y,g)=>o?s(o):g?s(g):x(y.trim()));})}async function _(t,r={}){return e(t,chunkQFGWM46Y_cjs.c,r)}async function E(t,r={}){return e(t,chunkQFGWM46Y_cjs.d,r)}async function N(t,r={}){return e(t,chunkQFGWM46Y_cjs.e,r)}exports.a=e;exports.b=_;exports.c=E;exports.d=N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a,b}from'./chunk-B6PKMEQO.js';import {getConfig}from'@storm-software/config-tools/get-config';import {exec}from'node:child_process';async function _(r="npm"){return new Promise((g,t)=>{exec(`${r} config get registry`,(e,R,n)=>e?t(e):n?t(n):g(R.trim()));})}async function y(){if(process.env.STORM_REGISTRY_NPM)return process.env.STORM_REGISTRY_NPM;let r=await getConfig();return r?.registry?.npm?r?.registry?.npm:a}async function G(){if(process.env.STORM_REGISTRY_GITHUB)return process.env.STORM_REGISTRY_GITHUB;let r=await getConfig();return r?.registry?.github?r?.registry?.github:b}export{_ as a,y as b,G as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-O7SV5FVB.js';import {f,c,d,e as e$1}from'./chunk-B6PKMEQO.js';import {exec}from'node:child_process';async function e(t,r=f,n={}){let i=n.executable||"npm",f=n.registry||await a(i);return new Promise((x,s)=>{exec(`${i} view ${t} version --registry=${f} --tag=${r}`,(o,y,g)=>o?s(o):g?s(g):x(y.trim()));})}async function E(t,r={}){return e(t,c,r)}async function N(t,r={}){return e(t,d,r)}async function M(t,r={}){return e(t,e$1,r)}export{e as a,E as b,N as c,M as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs'),getConfig=require('@storm-software/config-tools/get-config'),child_process=require('child_process');async function m(r="npm"){return new Promise((g,t)=>{child_process.exec(`${r} config get registry`,(e,R,n)=>e?t(e):n?t(n):g(R.trim()));})}async function _(){if(process.env.STORM_REGISTRY_NPM)return process.env.STORM_REGISTRY_NPM;let r=await getConfig.getConfig();return r?.registry?.npm?r?.registry?.npm:chunkQFGWM46Y_cjs.a}async function y(){if(process.env.STORM_REGISTRY_GITHUB)return process.env.STORM_REGISTRY_GITHUB;let r=await getConfig.getConfig();return r?.registry?.github?r?.registry?.github:chunkQFGWM46Y_cjs.b}exports.a=m;exports.b=_;exports.c=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkVIQH5G57_cjs=require('../chunk-VIQH5G57.cjs');require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.a}});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get the registry URL.
|
|
3
3
|
*
|
|
4
|
+
* @param executable The package manager executable to use (e.g., "npm" or "pnpm").
|
|
4
5
|
* @returns The registry URL.
|
|
5
6
|
*/
|
|
6
|
-
declare function getRegistry(): Promise<string>;
|
|
7
|
+
declare function getRegistry(executable?: string): Promise<string>;
|
|
7
8
|
/**
|
|
8
9
|
* Get the npm registry URL.
|
|
9
10
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get the registry URL.
|
|
3
3
|
*
|
|
4
|
+
* @param executable The package manager executable to use (e.g., "npm" or "pnpm").
|
|
4
5
|
* @returns The registry URL.
|
|
5
6
|
*/
|
|
6
|
-
declare function getRegistry(): Promise<string>;
|
|
7
|
+
declare function getRegistry(executable?: string): Promise<string>;
|
|
7
8
|
/**
|
|
8
9
|
* Get the npm registry URL.
|
|
9
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'../chunk-
|
|
1
|
+
export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'../chunk-O7SV5FVB.js';import'../chunk-B6PKMEQO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6YRTJZQS_cjs=require('../chunk-6YRTJZQS.cjs');require('../chunk-VIQH5G57.cjs'),require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.a}});
|
|
@@ -5,6 +5,12 @@ interface GetVersionOptions {
|
|
|
5
5
|
* @defaultValue The value returned by `getRegistry()`
|
|
6
6
|
*/
|
|
7
7
|
registry?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The package manager executable to use.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue `"npm"`
|
|
12
|
+
*/
|
|
13
|
+
executable?: string;
|
|
8
14
|
}
|
|
9
15
|
/**
|
|
10
16
|
* Get the version of a package from the npm registry.
|
|
@@ -5,6 +5,12 @@ interface GetVersionOptions {
|
|
|
5
5
|
* @defaultValue The value returned by `getRegistry()`
|
|
6
6
|
*/
|
|
7
7
|
registry?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The package manager executable to use.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue `"npm"`
|
|
12
|
+
*/
|
|
13
|
+
executable?: string;
|
|
8
14
|
}
|
|
9
15
|
/**
|
|
10
16
|
* Get the version of a package from the npm registry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-
|
|
1
|
+
export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-TGETNJZY.js';import'../chunk-O7SV5FVB.js';import'../chunk-B6PKMEQO.js';
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../chunk-OBOKFFDE.cjs');var
|
|
1
|
+
'use strict';require('../chunk-OBOKFFDE.cjs');var chunk6YRTJZQS_cjs=require('../chunk-6YRTJZQS.cjs'),chunkVIQH5G57_cjs=require('../chunk-VIQH5G57.cjs');require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.a}});Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.a}});
|
package/dist/helpers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-
|
|
1
|
+
import'../chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-TGETNJZY.js';export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'../chunk-O7SV5FVB.js';import'../chunk-B6PKMEQO.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-OBOKFFDE.cjs');var
|
|
1
|
+
'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-OBOKFFDE.cjs');var chunk6YRTJZQS_cjs=require('./chunk-6YRTJZQS.cjs'),chunkVIQH5G57_cjs=require('./chunk-VIQH5G57.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunk6YRTJZQS_cjs.a}});Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkVIQH5G57_cjs.a}});Object.defineProperty(exports,"CANARY_NPM_TAG",{enumerable:true,get:function(){return chunkQFGWM46Y_cjs.d}});Object.defineProperty(exports,"DEFAULT_GITHUB_REGISTRY",{enumerable:true,get:function(){return chunkQFGWM46Y_cjs.b}});Object.defineProperty(exports,"DEFAULT_NPM_REGISTRY",{enumerable:true,get:function(){return chunkQFGWM46Y_cjs.a}});Object.defineProperty(exports,"DEFAULT_NPM_TAG",{enumerable:true,get:function(){return chunkQFGWM46Y_cjs.f}});Object.defineProperty(exports,"EXPERIMENTAL_NPM_TAG",{enumerable:true,get:function(){return chunkQFGWM46Y_cjs.e}});Object.defineProperty(exports,"LATEST_NPM_TAG",{enumerable:true,get:function(){return chunkQFGWM46Y_cjs.c}});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-GGNOJ77I.js';import'./chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'./chunk-
|
|
1
|
+
import'./chunk-GGNOJ77I.js';import'./chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'./chunk-TGETNJZY.js';export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'./chunk-O7SV5FVB.js';export{d as CANARY_NPM_TAG,b as DEFAULT_GITHUB_REGISTRY,a as DEFAULT_NPM_REGISTRY,f as DEFAULT_NPM_TAG,e as EXPERIMENTAL_NPM_TAG,c as LATEST_NPM_TAG}from'./chunk-B6PKMEQO.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/npm-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of tools and utilities for managing packages stored in the [npm](https://www.npmjs.com/) registry.",
|
|
6
6
|
"repository": {
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
},
|
|
83
83
|
"types": "./dist/index.d.ts",
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@storm-software/config": "^1.134.
|
|
86
|
-
"@storm-software/config-tools": "^1.188.
|
|
85
|
+
"@storm-software/config": "^1.134.44",
|
|
86
|
+
"@storm-software/config-tools": "^1.188.44"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": { "@types/node": "^24.10.1", "tsup": "8.4.0" },
|
|
89
89
|
"publishConfig": { "access": "public" },
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "090b21b6780b365703ae40f5bcf85305d1cd8001"
|
|
91
91
|
}
|
package/dist/chunk-ARM2C4SR.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs'),getConfig=require('@storm-software/config-tools/get-config'),child_process=require('child_process');async function T(){return new Promise((r,t)=>{child_process.exec("npm config get registry",(e,g,n)=>e?t(e):n?t(n):r(g.trim()));})}async function m(){if(process.env.STORM_REGISTRY_NPM)return process.env.STORM_REGISTRY_NPM;let r=await getConfig.getConfig();return r?.registry?.npm?r?.registry?.npm:chunkQFGWM46Y_cjs.a}async function _(){if(process.env.STORM_REGISTRY_GITHUB)return process.env.STORM_REGISTRY_GITHUB;let r=await getConfig.getConfig();return r?.registry?.github?r?.registry?.github:chunkQFGWM46Y_cjs.b}exports.a=T;exports.b=m;exports.c=_;
|
package/dist/chunk-BUJO2IHD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a,b}from'./chunk-B6PKMEQO.js';import {getConfig}from'@storm-software/config-tools/get-config';import {exec}from'node:child_process';async function m(){return new Promise((r,t)=>{exec("npm config get registry",(e,g,n)=>e?t(e):n?t(n):r(g.trim()));})}async function _(){if(process.env.STORM_REGISTRY_NPM)return process.env.STORM_REGISTRY_NPM;let r=await getConfig();return r?.registry?.npm?r?.registry?.npm:a}async function y(){if(process.env.STORM_REGISTRY_GITHUB)return process.env.STORM_REGISTRY_GITHUB;let r=await getConfig();return r?.registry?.github?r?.registry?.github:b}export{m as a,_ as b,y as c};
|
package/dist/chunk-RUFQ2VOJ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkARM2C4SR_cjs=require('./chunk-ARM2C4SR.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs'),child_process=require('child_process');async function n(r,t=chunkQFGWM46Y_cjs.f,u={}){let{registry:c=await chunkARM2C4SR_cjs.a()}=u;return new Promise((f,i)=>{child_process.exec(`npm view ${r} version --registry=${c} --tag=${t}`,(e,P,s)=>e?i(e):s?i(s):f(P.trim()));})}async function _(r,t={}){return n(r,chunkQFGWM46Y_cjs.c,t)}async function x(r,t={}){return n(r,chunkQFGWM46Y_cjs.d,t)}async function E(r,t={}){return n(r,chunkQFGWM46Y_cjs.e,t)}exports.a=n;exports.b=_;exports.c=x;exports.d=E;
|
package/dist/chunk-SHTY72AZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-BUJO2IHD.js';import {f,c,d,e}from'./chunk-B6PKMEQO.js';import {exec}from'node:child_process';async function n(r,t=f,u={}){let{registry:c=await a()}=u;return new Promise((f,i)=>{exec(`npm view ${r} version --registry=${c} --tag=${t}`,(e,P,s)=>e?i(e):s?i(s):f(P.trim()));})}async function x(r,t={}){return n(r,c,t)}async function E(r,t={}){return n(r,d,t)}async function N(r,t={}){return n(r,e,t)}export{n as a,x as b,E as c,N as d};
|