From 74773f12cd874775feaa9547036e65f409e85535 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 23 Nov 2022 21:23:47 -0500 Subject: [PATCH] *Update dist --- dist/index.d.ts | 4 ++-- dist/index.d.ts.map | 2 +- dist/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index cba6951..c1c5897 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -14,8 +14,8 @@ export default class DHTCache extends EventEmitter { [key: string]: any; }); private _cache; - get cache(): {}; - get all_cache(): string[]; + get cache(): string[]; + get allCache(): string[]; addItem(item: string | Buffer): void; private _compileMessage; private _broadcastMessage; diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 4c5262f..b811f06 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAYlC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAa1C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,YAAY;IAChD,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;IACrB,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,WAAW,CAAW;IAE9B,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC;gBAGxB,KAAK,EAAE,GAAG,EACV,EACE,EAA4B,EAC5B,GAAG,IAAI,EACR,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAO;IAkC7C,OAAO,CAAC,MAAM,CAAc;IAE5B,IAAW,KAAK,IAAI,EAAE,CAErB;IAED,IAAW,SAAS,IAAI,MAAM,EAAE,CAU/B;IAEM,OAAO,CAAC,I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BAAiB;IAiBzB,OAAO,CAAC,YAAY;IA+BpB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,WAAW;CAyBpB"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index ec451fb..0379ab4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -53,7 +53,7 @@ class DHTCache extends events_1.default { get cache() { return [...this._cache].sort(); } - get all_cache() { + get allCache() { const items = []; for (const id of this.graph.nodesIter()) { const item = this.graph.node.get(id);