Skip to content

Commit

Permalink
changed: version maintenance (dev dependencies)
Browse files Browse the repository at this point in the history
  • Loading branch information
diva-exchange committed Feb 13, 2023
1 parent d5512f6 commit ee3b1ed
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 186 deletions.
12 changes: 6 additions & 6 deletions dist/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
declare type tSession = {
type tSession = {
id?: string;
options?: string;
};
declare type tStream = {
type tStream = {
destination: string;
};
declare type tForward = {
type tForward = {
host: string;
port: number;
silent?: boolean;
};
declare type tListen = {
type tListen = {
address: string;
port: number;
hostForward?: string;
portForward?: number;
};
declare type tSam = {
type tSam = {
host: string;
portTCP: number;
portUDP?: number;
Expand All @@ -25,7 +25,7 @@ declare type tSam = {
publicKey?: string;
privateKey?: string;
};
export declare type Configuration = {
export type Configuration = {
session?: tSession;
stream?: tStream;
forward?: tForward;
Expand Down
16 changes: 8 additions & 8 deletions dist/i2p-sam.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ const KEY_DESTINATION = 'DESTINATION';
const KEY_VALUE = 'VALUE';
const VALUE_OK = 'OK';
class I2pSam extends events_1.EventEmitter {
constructor(c) {
super();
this.socketControl = {};
this.config = new config_1.Config(c);
this.publicKey = this.config.sam.publicKey || '';
this.privateKey = this.config.sam.privateKey || '';
this.internalEventEmitter = new events_1.EventEmitter();
}
static async createStream(c) {
return await i2p_sam_1.I2pSamStream.make(c);
}
Expand All @@ -56,6 +48,14 @@ class I2pSam extends events_1.EventEmitter {
static async createRaw(c) {
return await i2p_sam_1.I2pSamRaw.make(c);
}
constructor(c) {
super();
this.socketControl = {};
this.config = new config_1.Config(c);
this.publicKey = this.config.sam.publicKey || '';
this.privateKey = this.config.sam.privateKey || '';
this.internalEventEmitter = new events_1.EventEmitter();
}
async open() {
this.socketControl = new net_1.Socket();
this.socketControl.on('data', (data) => {
Expand Down
Loading

0 comments on commit ee3b1ed

Please sign in to comment.