tring-chat 0.1.0 → 0.1.1
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/tring.js +1 -2
- package/package.json +1 -1
package/dist/tring.js
CHANGED
|
@@ -1372,8 +1372,7 @@ async function checkForUpdate(cachePath) {
|
|
|
1372
1372
|
let latest;
|
|
1373
1373
|
try {
|
|
1374
1374
|
const res = await fetch("https://registry.npmjs.org/tring-chat/latest", {
|
|
1375
|
-
signal: AbortSignal.timeout(3e3)
|
|
1376
|
-
headers: { accept: "application/vnd.npm.install-v1+json" }
|
|
1375
|
+
signal: AbortSignal.timeout(3e3)
|
|
1377
1376
|
});
|
|
1378
1377
|
if (!res.ok) return null;
|
|
1379
1378
|
latest = (await res.json()).version ?? "";
|