fix(ci): Update CI workflows, dependency paths, and project configuration

This commit is contained in:
2025-05-26 08:53:25 +00:00
parent f807271aa1
commit 9c2dc18041
17 changed files with 9290 additions and 11333 deletions

View File

@@ -1,8 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@uptime.link/detector',
version: '2.0.1',
version: '2.0.2',
description: 'a detector for answering network questions locally. It does not rely on any online services.'
}

View File

@@ -8,7 +8,7 @@ export class Detector {
if (parsedUrl.hostname === 'localhost') {
console.log(`detector target is localhost on port ${parsedUrl.port}`);
const portUnused = await this.smartnetworkInstance.isLocalPortUnused(
parseInt(parsedUrl.port, 10)
parseInt(parsedUrl.port, 10),
);
const portAvailable = !portUnused;
return portAvailable;
@@ -16,7 +16,7 @@ export class Detector {
console.log(`detector target is remote domain ${parsedUrl.host} on port ${parsedUrl.port}`);
const postAvailable = await this.smartnetworkInstance.isRemotePortAvailable(
parsedUrl.host,
parseInt(parsedUrl.port, 10)
parseInt(parsedUrl.port, 10),
);
return postAvailable;
}

View File

@@ -1,5 +1,5 @@
// pushrocks scope
import * as smartnetwork from '@pushrocks/smartnetwork';
import * as smarturl from '@pushrocks/smarturl';
import * as smartnetwork from '@push.rocks/smartnetwork';
import * as smarturl from '@push.rocks/smarturl';
export { smartnetwork, smarturl };