From cb4d3b9ca243fafb854f09e3bccb3ffc9a9add20 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 27 Jun 2022 15:56:56 -0400 Subject: [PATCH] *Update dist --- dist/index.d.ts | 5 +++-- dist/index.d.ts.map | 2 +- dist/index.js | 5 +++-- dist/rpcQuery.d.ts.map | 2 +- dist/rpcQuery.js | 3 ++- dist/types.d.ts.map | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 9d36df6..33bcfc0 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,4 +1,5 @@ -export * from "./rpcNetwork.js"; -export * from "./rpcQuery.js"; +import RpcNetwork from "./rpcNetwork.js"; +import RpcQuery from "./rpcNetwork.js"; export * from "./types"; +export { RpcNetwork, RpcQuery }; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index a62e5e0..9d99fbf 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,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 66e765c..6067186 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,4 @@ -export * from "./rpcNetwork.js"; -export * from "./rpcQuery.js"; +import RpcNetwork from "./rpcNetwork.js"; +import RpcQuery from "./rpcNetwork.js"; export * from "./types"; +export { RpcNetwork, RpcQuery }; diff --git a/dist/rpcQuery.d.ts.map b/dist/rpcQuery.d.ts.map index 64dffc1..f238a8f 100644 --- a/dist/rpcQuery.d.ts.map +++ b/dist/rpcQuery.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"rpcQuery.d.ts","sourceRoot":"","sources":["../src/rpcQuery.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAC,UAAU,EAAc,MAAM,SAAS,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,aAAa,CAAC,CAAM;IAC5B,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,UAAU,CAAwC;IAC1D,OAAO,CAAC,eAAe,CAAC,CAAsB;gBAElC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;IAMlD,IAAI,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAE1B;IAED,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,OAAO;YAQD,IAAI;YA2BJ,UAAU;IAiBxB,OAAO,CAAC,cAAc;IA6BtB,OAAO,CAAC,KAAK;CASd"} \ No newline at end of file +{"version":3,"file":"rpcQuery.d.ts","sourceRoot":"","sources":["../src/rpcQuery.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAe,MAAM,SAAS,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,aAAa,CAAC,CAAM;IAC5B,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,UAAU,CAAwC;IAC1D,OAAO,CAAC,eAAe,CAAC,CAAsB;gBAElC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;IAMlD,IAAI,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAE1B;IAED,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,OAAO;YAQD,IAAI;YA2BJ,UAAU;IAiBxB,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,KAAK;CASd"} \ No newline at end of file diff --git a/dist/rpcQuery.js b/dist/rpcQuery.js index cbb1252..a55761a 100644 --- a/dist/rpcQuery.js +++ b/dist/rpcQuery.js @@ -67,7 +67,8 @@ export default class RpcQuery { responses[responseIndex]++; } for (const responseIndex in responses) { - if (responses[responseIndex] / responseStoreKeys.length >= this._network.majorityThreshold) { + if (responses[responseIndex] / responseStoreKeys.length >= + this._network.majorityThreshold) { const response = responseStore[responseStoreKeys[parseInt(responseIndex, 10)]]; // @ts-ignore if (null === response || null === response?.data) { diff --git a/dist/types.d.ts.map b/dist/types.d.ts.map index 9376341..55dbfb1 100644 --- a/dist/types.d.ts.map +++ b/dist/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EACE,GAAG,GACH;QACF,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;KAC3B,CAAC;CACL"} \ No newline at end of file +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EACA,GAAG,GACH;QACE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;KACzB,CAAC;CACP"} \ No newline at end of file