fix(ci): Update CI workflows, dependency paths, and project configuration
This commit is contained in:
@@ -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.'
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user