Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 704abf6f4f
*Update dist 2023-02-03 15:50:29 -05:00
Derrick Hammer 4862013f03
*add node getter 2023-02-03 15:50:15 -05:00
3 changed files with 11 additions and 2 deletions

3
dist/index.d.ts vendored
View File

@ -1,9 +1,10 @@
import { Proxy } from "@lumeweb/libhyperproxy"; import { Proxy } from "@lumeweb/libhyperproxy";
export default class HandshakeProxy extends Proxy { export default class HandshakeProxy extends Proxy {
private _node?;
constructor({ swarm, listen }: { constructor({ swarm, listen }: {
swarm: any; swarm: any;
listen?: boolean; listen?: boolean;
}); });
private _node?;
get node(): any;
protected _init(): Promise<void>; protected _init(): Promise<void>;
} }

3
dist/index.js vendored
View File

@ -40,6 +40,9 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
}); });
const self = this; const self = this;
} }
get node() {
return this._node;
}
async _init() { async _init() {
this._node = new node_1.SPVNode({ this._node = new node_1.SPVNode({
config: false, config: false,

View File

@ -19,7 +19,6 @@ import {
} from "@lumeweb/libhyperproxy"; } from "@lumeweb/libhyperproxy";
export default class HandshakeProxy extends Proxy { export default class HandshakeProxy extends Proxy {
private _node?: any;
constructor({ swarm, listen = false }: { swarm: any; listen?: boolean }) { constructor({ swarm, listen = false }: { swarm: any; listen?: boolean }) {
super({ super({
swarm, swarm,
@ -52,6 +51,12 @@ export default class HandshakeProxy extends Proxy {
const self = this; const self = this;
} }
private _node?: any;
get node(): any {
return this._node;
}
protected async _init() { protected async _init() {
this._node = new SPVNode({ this._node = new SPVNode({
config: false, config: false,