From 05dd3c496740e37a499a00d6d5879e1f87fcf7b7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 30 May 2022 14:49:25 +0100 Subject: [PATCH] Fix request, crypto, and bs58 imports (#2414) --- src/crypto/recoverykey.ts | 2 +- src/index.ts | 2 +- src/utils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/recoverykey.ts b/src/crypto/recoverykey.ts index 0ffef80b7..b64c2107c 100644 --- a/src/crypto/recoverykey.ts +++ b/src/crypto/recoverykey.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import * as bs58 from 'bs58'; +import bs58 from 'bs58'; // picked arbitrarily but to try & avoid clashing with any bitcoin ones // (which are also base58 encoded, but bitcoin's involve a lot more hashing) diff --git a/src/index.ts b/src/index.ts index c651438fb..faab0fed0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import * as request from "request"; +import request from "request"; import * as matrixcs from "./matrix"; import * as utils from "./utils"; diff --git a/src/utils.ts b/src/utils.ts index 4885fb948..777531286 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -23,7 +23,7 @@ limitations under the License. import unhomoglyph from "unhomoglyph"; import promiseRetry from "p-retry"; -import type * as NodeCrypto from "crypto"; +import type NodeCrypto from "crypto"; import { MatrixEvent } from "."; import { M_TIMESTAMP } from "./@types/location";