Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jan 22, 2024
1 parent 2ff79fc commit a638c54
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
6 changes: 3 additions & 3 deletions packages/nocap/adapters/default/DnsAdapterDefault/index.js
Original file line number Diff line number Diff line change
@@ -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){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"cross-fetch": "4.0.0",
"dohjs": "0.3.3",
"fetch-h2": "3.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/nocap/adapters/default/SslAdapterDefault/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sslValidator from 'ssl-validator'
import sslChecker from "ssl-checker";
import sslCertificate from 'get-ssl-cert'

Expand Down
4 changes: 2 additions & 2 deletions packages/nocap/src/classes/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
13 changes: 0 additions & 13 deletions packages/nocap/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

0 comments on commit a638c54

Please sign in to comment.