@storm-software/npm-tools 0.6.195 → 0.6.197

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 CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  # Changelog for Storm Ops - Npm Tools
4
4
 
5
+ ## [0.6.197](https://github.com/storm-software/storm-ops/releases/tag/npm-tools%400.6.197) (06/28/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **config** to **v1.138.16**
10
+ - Updated **config-tools** to **v1.190.79**
11
+ - Updated **testing-tools** to **v1.119.232**
12
+
13
+ ## [0.6.196](https://github.com/storm-software/storm-ops/releases/tag/npm-tools%400.6.196) (06/26/2026)
14
+
15
+ ### Miscellaneous
16
+
17
+ - **monorepo:** Update workspace packages' dependencies ([5b4faf445](https://github.com/storm-software/storm-ops/commit/5b4faf445))
18
+
19
+ ### Features
20
+
21
+ - **npm-tools:** Updated `getVersion` function to allow `retries` and `timeout` options ([c1ebc0184](https://github.com/storm-software/storm-ops/commit/c1ebc0184))
22
+
23
+ ### Updated Dependencies
24
+
25
+ - Updated **config** to **v1.138.15**
26
+ - Updated **config-tools** to **v1.190.78**
27
+ - Updated **testing-tools** to **v1.119.231**
28
+
5
29
  ## [0.6.195](https://github.com/storm-software/storm-ops/releases/tag/npm-tools%400.6.195) (06/24/2026)
6
30
 
7
31
  ### Bug Fixes
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.6.193-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.6.195-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-7YDCWNQR.js';import {f,c,d,e}from'./chunk-B6PKMEQO.js';import {exec}from'node:child_process';import {valid}from'semver';import b from'strip-ansi';async function u(t,r=f,i={}){let c=i.executable||"npm",g=i.retries??3,P=i.timeout??1e4,T=i.registry||await a(c),f;for(let n=0;n<=g;n++)try{let o=new AbortController,s=setTimeout(()=>{o.abort();},P),e=await Promise.resolve(new Promise((x,l)=>{exec(`${c} view ${t} version --registry=${T}`,{signal:o.signal,maxBuffer:1024*1024*10},(a,E,m)=>a&&!a.message.toLowerCase().trim().startsWith("npm warn")?l(a):m&&!m.toLowerCase().trim().startsWith("npm warn")?l(m):x(E.trim()));}));if(!valid(e,!0))throw clearTimeout(s),new Error(b(e).startsWith("[WARN] Request took")?`A timeout occurred while fetching the version for package "${t}" with tag "${r}".`:`Invalid version "${e}" fetched for package "${t}" with tag "${r}"`);return clearTimeout(s),e}catch(o){if(f=o,n<g){let s=Math.pow(2,n)*100;await new Promise(e=>setTimeout(e,s));}}throw f}async function N(t,r={}){return u(t,c,r)}async function O(t,r={}){return u(t,d,r)}async function R(t,r={}){return u(t,e,r)}export{u as a,N as b,O as c,R as d};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkYLO7DD6B_cjs=require('./chunk-YLO7DD6B.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs'),child_process=require('child_process'),semver=require('semver'),b=require('strip-ansi');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var b__default=/*#__PURE__*/_interopDefault(b);async function u(t,r=chunkQFGWM46Y_cjs.f,i={}){let c=i.executable||"npm",g=i.retries??3,P=i.timeout??1e4,T=i.registry||await chunkYLO7DD6B_cjs.a(c),f;for(let n=0;n<=g;n++)try{let o=new AbortController,s=setTimeout(()=>{o.abort();},P),e=await Promise.resolve(new Promise((x,l)=>{child_process.exec(`${c} view ${t} version --registry=${T}`,{signal:o.signal,maxBuffer:1024*1024*10},(a,E,m)=>a&&!a.message.toLowerCase().trim().startsWith("npm warn")?l(a):m&&!m.toLowerCase().trim().startsWith("npm warn")?l(m):x(E.trim()));}));if(!semver.valid(e,!0))throw clearTimeout(s),new Error(b__default.default(e).startsWith("[WARN] Request took")?`A timeout occurred while fetching the version for package "${t}" with tag "${r}".`:`Invalid version "${e}" fetched for package "${t}" with tag "${r}"`);return clearTimeout(s),e}catch(o){if(f=o,n<g){let s=Math.pow(2,n)*100;await new Promise(e=>setTimeout(e,s));}}throw f}async function L(t,r={}){return u(t,chunkQFGWM46Y_cjs.c,r)}async function N(t,r={}){return u(t,chunkQFGWM46Y_cjs.d,r)}async function O(t,r={}){return u(t,chunkQFGWM46Y_cjs.e,r)}exports.a=u;exports.b=L;exports.c=N;exports.d=O;
@@ -1 +1 @@
1
- 'use strict';var chunkZAXVUFVL_cjs=require('../chunk-ZAXVUFVL.cjs');require('../chunk-YLO7DD6B.cjs'),require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.a}});
1
+ 'use strict';var chunkOXRBB73B_cjs=require('../chunk-OXRBB73B.cjs');require('../chunk-YLO7DD6B.cjs'),require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.a}});
@@ -11,6 +11,18 @@ interface GetVersionOptions {
11
11
  * @defaultValue `"npm"`
12
12
  */
13
13
  executable?: string;
14
+ /**
15
+ * The number of times to retry fetching the version in case of failure.
16
+ *
17
+ * @defaultValue `3`
18
+ */
19
+ retries?: number;
20
+ /**
21
+ * The timeout in milliseconds for the command execution.
22
+ *
23
+ * @defaultValue `10000` (10 seconds)
24
+ */
25
+ timeout?: number;
14
26
  }
15
27
  /**
16
28
  * Get the version of a package from the npm registry.
@@ -11,6 +11,18 @@ interface GetVersionOptions {
11
11
  * @defaultValue `"npm"`
12
12
  */
13
13
  executable?: string;
14
+ /**
15
+ * The number of times to retry fetching the version in case of failure.
16
+ *
17
+ * @defaultValue `3`
18
+ */
19
+ retries?: number;
20
+ /**
21
+ * The timeout in milliseconds for the command execution.
22
+ *
23
+ * @defaultValue `10000` (10 seconds)
24
+ */
25
+ timeout?: number;
14
26
  }
15
27
  /**
16
28
  * 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-MKSPYJSR.js';import'../chunk-7YDCWNQR.js';import'../chunk-B6PKMEQO.js';
1
+ export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-3YOLXKIO.js';import'../chunk-7YDCWNQR.js';import'../chunk-B6PKMEQO.js';
@@ -1 +1 @@
1
- 'use strict';require('../chunk-OBOKFFDE.cjs');var chunkZAXVUFVL_cjs=require('../chunk-ZAXVUFVL.cjs'),chunkYLO7DD6B_cjs=require('../chunk-YLO7DD6B.cjs');require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.a}});Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.a}});
1
+ 'use strict';require('../chunk-OBOKFFDE.cjs');var chunkOXRBB73B_cjs=require('../chunk-OXRBB73B.cjs'),chunkYLO7DD6B_cjs=require('../chunk-YLO7DD6B.cjs');require('../chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.a}});Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.a}});
@@ -1 +1 @@
1
- import'../chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-MKSPYJSR.js';export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'../chunk-7YDCWNQR.js';import'../chunk-B6PKMEQO.js';
1
+ import'../chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'../chunk-3YOLXKIO.js';export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'../chunk-7YDCWNQR.js';import'../chunk-B6PKMEQO.js';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-OBOKFFDE.cjs');var chunkZAXVUFVL_cjs=require('./chunk-ZAXVUFVL.cjs'),chunkYLO7DD6B_cjs=require('./chunk-YLO7DD6B.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunkZAXVUFVL_cjs.a}});Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_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}});
1
+ 'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-OBOKFFDE.cjs');var chunkOXRBB73B_cjs=require('./chunk-OXRBB73B.cjs'),chunkYLO7DD6B_cjs=require('./chunk-YLO7DD6B.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs');Object.defineProperty(exports,"getCanaryVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.c}});Object.defineProperty(exports,"getExperimentalVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.d}});Object.defineProperty(exports,"getLatestVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.b}});Object.defineProperty(exports,"getVersion",{enumerable:true,get:function(){return chunkOXRBB73B_cjs.a}});Object.defineProperty(exports,"getGitHubRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.c}});Object.defineProperty(exports,"getNpmRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_cjs.b}});Object.defineProperty(exports,"getRegistry",{enumerable:true,get:function(){return chunkYLO7DD6B_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-MKSPYJSR.js';export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'./chunk-7YDCWNQR.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';
1
+ import'./chunk-GGNOJ77I.js';import'./chunk-ZS7ZL333.js';export{c as getCanaryVersion,d as getExperimentalVersion,b as getLatestVersion,a as getVersion}from'./chunk-3YOLXKIO.js';export{c as getGitHubRegistry,b as getNpmRegistry,a as getRegistry}from'./chunk-7YDCWNQR.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.6.195",
3
+ "version": "0.6.197",
4
4
  "private": false,
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,12 @@
82
82
  "module": "./dist/index.js",
83
83
  "types": "./dist/index.d.ts",
84
84
  "dependencies": {
85
- "@storm-software/config": "1.138.14",
86
- "@storm-software/config-tools": "1.190.77"
85
+ "@storm-software/config": "1.138.16",
86
+ "@storm-software/config-tools": "1.190.79",
87
+ "semver": "^7.8.5",
88
+ "strip-ansi": "^7.2.0"
87
89
  },
88
90
  "devDependencies": { "@types/node": "^25.9.4", "tsup": "8.4.0" },
89
91
  "publishConfig": { "access": "public" },
90
- "gitHead": "365027d64f43f04f519c6e53011e3f93bf6b78b4"
92
+ "gitHead": "6d256c906406ea96b6c3cf9d0e923cc92afe87f9"
91
93
  }
@@ -1 +0,0 @@
1
- import {a}from'./chunk-7YDCWNQR.js';import {f,c,d,e}from'./chunk-B6PKMEQO.js';import {exec}from'node:child_process';async function i(t,r=f,s={}){let o=s.executable||"npm",f=s.registry||await a(o);return new Promise((x,g)=>{exec(`${o} view ${t} version --registry=${f}`,(e,y,n)=>e&&!e.message.toLowerCase().trim().startsWith("npm warn")?g(e):n&&!n.toLowerCase().trim().startsWith("npm warn")?g(n):x(y.trim()));})}async function w(t,r={}){return i(t,c,r)}async function E(t,r={}){return i(t,d,r)}async function L(t,r={}){return i(t,e,r)}export{i as a,w as b,E as c,L as d};
@@ -1 +0,0 @@
1
- 'use strict';var chunkYLO7DD6B_cjs=require('./chunk-YLO7DD6B.cjs'),chunkQFGWM46Y_cjs=require('./chunk-QFGWM46Y.cjs'),child_process=require('child_process');async function i(t,r=chunkQFGWM46Y_cjs.f,s={}){let o=s.executable||"npm",f=s.registry||await chunkYLO7DD6B_cjs.a(o);return new Promise((x,g)=>{child_process.exec(`${o} view ${t} version --registry=${f}`,(e,y,n)=>e&&!e.message.toLowerCase().trim().startsWith("npm warn")?g(e):n&&!n.toLowerCase().trim().startsWith("npm warn")?g(n):x(y.trim()));})}async function _(t,r={}){return i(t,chunkQFGWM46Y_cjs.c,r)}async function w(t,r={}){return i(t,chunkQFGWM46Y_cjs.d,r)}async function E(t,r={}){return i(t,chunkQFGWM46Y_cjs.e,r)}exports.a=i;exports.b=_;exports.c=w;exports.d=E;