From a638c54a7efeaea028083df4d47869f32db8df92 Mon Sep 17 00:00:00 2001 From: sandwich <299465+dskvr@users.noreply.github.com> Date: Mon, 22 Jan 2024 12:33:38 +0000 Subject: [PATCH] update dependencies --- .../adapters/default/DnsAdapterDefault/index.js | 6 +++--- .../adapters/default/DnsAdapterDefault/package.json | 2 -- .../default/EveryAdapterDefault/package.json | 2 +- .../adapters/default/SslAdapterDefault/index.js | 1 - packages/nocap/src/classes/Base.js | 4 ++-- packages/nocap/src/index.js | 13 ------------- 6 files changed, 6 insertions(+), 22 deletions(-) diff --git a/packages/nocap/adapters/default/DnsAdapterDefault/index.js b/packages/nocap/adapters/default/DnsAdapterDefault/index.js index 27261fb3..1f9aea10 100644 --- a/packages/nocap/adapters/default/DnsAdapterDefault/index.js +++ b/packages/nocap/adapters/default/DnsAdapterDefault/index.js @@ -1,6 +1,6 @@ -// import fetch from 'cross-fetch' -import { fetch } from 'fetch-h2' -import doh from 'dohjs' +import fetch from 'cross-fetch' +// import { fetch } from 'fetch-h2' +// import doh from 'dohjs' class DnsAdapterDefault { constructor(parent){ diff --git a/packages/nocap/adapters/default/DnsAdapterDefault/package.json b/packages/nocap/adapters/default/DnsAdapterDefault/package.json index e6cb3baa..ad92b66f 100644 --- a/packages/nocap/adapters/default/DnsAdapterDefault/package.json +++ b/packages/nocap/adapters/default/DnsAdapterDefault/package.json @@ -5,8 +5,6 @@ "main": "index.js", "license": "MIT", "dependencies": { - "cross-fetch": "4.0.0", - "dohjs": "0.3.3", "fetch-h2": "3.0.2" } } diff --git a/packages/nocap/adapters/default/EveryAdapterDefault/package.json b/packages/nocap/adapters/default/EveryAdapterDefault/package.json index 4925cf5e..c10525c7 100644 --- a/packages/nocap/adapters/default/EveryAdapterDefault/package.json +++ b/packages/nocap/adapters/default/EveryAdapterDefault/package.json @@ -1,6 +1,6 @@ { "name": "@nostrwatch/nocap-all-adapters-default", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "main": "index.js", "license": "MIT", diff --git a/packages/nocap/adapters/default/SslAdapterDefault/index.js b/packages/nocap/adapters/default/SslAdapterDefault/index.js index 718870d9..22eb89ee 100644 --- a/packages/nocap/adapters/default/SslAdapterDefault/index.js +++ b/packages/nocap/adapters/default/SslAdapterDefault/index.js @@ -1,4 +1,3 @@ -import sslValidator from 'ssl-validator' import sslChecker from "ssl-checker"; import sslCertificate from 'get-ssl-cert' diff --git a/packages/nocap/src/classes/Base.js b/packages/nocap/src/classes/Base.js index 1e6ec835..a3b3a927 100644 --- a/packages/nocap/src/classes/Base.js +++ b/packages/nocap/src/classes/Base.js @@ -438,8 +438,8 @@ export default class { unsubscribe(subid){ if(!this.isConnected()) return - if(this.adapters.websocket?.unsubscribe) - return this.adapters.websocket.unsubscribe() + // if(this.adapters.websocket?.unsubscribe) + // return this.adapters.websocket.unsubscribe() this.maybeExecuteAdapterMethod( 'websocket', 'unsubscribe', diff --git a/packages/nocap/src/index.js b/packages/nocap/src/index.js index b28c419e..10bb12b2 100644 --- a/packages/nocap/src/index.js +++ b/packages/nocap/src/index.js @@ -8,26 +8,13 @@ import { LatencyHelper } from "./classes/LatencyHelper.js"; import { SessionHelper } from "./classes/SessionHelper.js"; import { TimeoutHelper } from "./classes/TimeoutHelper.js"; -import DnsAdapterDefault from '@nostrwatch/nocap-dns-adapter-default' -import GeoAdapterDefault from '@nostrwatch/nocap-geo-adapter-default' -import InfoAdapterDefault from '@nostrwatch/nocap-info-adapter-default' -import RelayAdapterDefault from '../adapters/default/WebsocketAdapterDefault/index.js' -import SslAdapterDefault from '@nostrwatch/nocap-ssl-adapter-default' - export { Nocap, ConfigInterface, ResultInterface, - RelayAdapterDefault, - InfoAdapterDefault, - GeoAdapterDefault, - DnsAdapterDefault, - SslAdapterDefault, - DeferredWrapper, LatencyHelper, SessionHelper, TimeoutHelper - } \ No newline at end of file