Revert "*Update dist"

This reverts commit 2773b1f38b.
This commit is contained in:
Derrick Hammer 2022-08-31 20:38:27 -04:00
parent 2773b1f38b
commit 3ebfe51a83
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 3 additions and 3 deletions

2
dist/index.d.ts vendored
View File

@ -25,7 +25,7 @@ export declare class Socket extends EventEmitter {
on(eventName: string, listener: (...args: any[]) => void): this; on(eventName: string, listener: (...args: any[]) => void): this;
off(type: string, listener: any): this; off(type: string, listener: any): this;
write(message: string | Buffer): void; write(message: string | Buffer): void;
close(): void; end(): void;
private ensureEvent; private ensureEvent;
private trackEvent; private trackEvent;
} }

2
dist/index.d.ts.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAU,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAqBhC,qBAAa,GAAG;IACd,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,EAAE,CAAa;gBAEX,aAAa,UAAO;IAInB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAa/C,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC;IAMnB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASvC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAY1C,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,SAAS,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAS9B,eAAe,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YAUnC,MAAM;IAaP,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;YAcxB,KAAK;CAIpB;AAED,qBAAa,MAAO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AQ,YAAY;IACtC,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,YAAY,CAAqC;gBAE7C,EAAE,EAAE,MAAM;IAKtB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GAAG,IAAI;IAkB/D,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,IAAI;IAStC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAIrC,GAAG,IAAI,IAAI;IAUX,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,UAAU;CAInB"}

2
dist/index.js vendored
View File

@ -134,7 +134,7 @@ export class Socket extends EventEmitter {
write(message) { write(message) {
callModule(DHT_MODULE, "write", { id: this.id, message }); callModule(DHT_MODULE, "write", { id: this.id, message });
} }
close() { end() {
callModule(DHT_MODULE, "socketExists", { id: this.id }).then(([exists]) => { callModule(DHT_MODULE, "socketExists", { id: this.id }).then(([exists]) => {
if (exists) { if (exists) {
callModule(DHT_MODULE, "close", { id: this.id }); callModule(DHT_MODULE, "close", { id: this.id });