@solongate/proxy 0.81.68 → 0.81.69
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.js +8 -2
- package/dist/tui/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6600,10 +6600,16 @@ function newerThan(b, a) {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
async function fetchLatest() {
|
|
6602
6602
|
try {
|
|
6603
|
-
const res = await fetch(`https://registry.npmjs.org/${PKG}
|
|
6603
|
+
const res = await fetch(`https://registry.npmjs.org/${PKG}`, {
|
|
6604
|
+
headers: { accept: "application/vnd.npm.install-v1+json" },
|
|
6605
|
+
signal: AbortSignal.timeout(3e3)
|
|
6606
|
+
});
|
|
6604
6607
|
if (!res.ok) return null;
|
|
6605
6608
|
const j = await res.json();
|
|
6606
|
-
|
|
6609
|
+
const latest = j["dist-tags"]?.latest;
|
|
6610
|
+
if (typeof latest !== "string") return null;
|
|
6611
|
+
if (!j.versions || !(latest in j.versions)) return null;
|
|
6612
|
+
return latest;
|
|
6607
6613
|
} catch {
|
|
6608
6614
|
return null;
|
|
6609
6615
|
}
|
package/dist/tui/index.js
CHANGED
|
@@ -3777,10 +3777,16 @@ function newerThan(b, a) {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
async function fetchLatest() {
|
|
3779
3779
|
try {
|
|
3780
|
-
const res = await fetch(`https://registry.npmjs.org/${PKG}
|
|
3780
|
+
const res = await fetch(`https://registry.npmjs.org/${PKG}`, {
|
|
3781
|
+
headers: { accept: "application/vnd.npm.install-v1+json" },
|
|
3782
|
+
signal: AbortSignal.timeout(3e3)
|
|
3783
|
+
});
|
|
3781
3784
|
if (!res.ok) return null;
|
|
3782
3785
|
const j = await res.json();
|
|
3783
|
-
|
|
3786
|
+
const latest = j["dist-tags"]?.latest;
|
|
3787
|
+
if (typeof latest !== "string") return null;
|
|
3788
|
+
if (!j.versions || !(latest in j.versions)) return null;
|
|
3789
|
+
return latest;
|
|
3784
3790
|
} catch {
|
|
3785
3791
|
return null;
|
|
3786
3792
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.69",
|
|
4
4
|
"description": "AI tool security proxy: protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. No code changes required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|