Skip to content

Commit 05dd3c4

Browse files
authored
Fix request, crypto, and bs58 imports (matrix-org#2414)
1 parent 8c72c5d commit 05dd3c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/crypto/recoverykey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import * as bs58 from 'bs58';
17+
import bs58 from 'bs58';
1818

1919
// picked arbitrarily but to try & avoid clashing with any bitcoin ones
2020
// (which are also base58 encoded, but bitcoin's involve a lot more hashing)

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import * as request from "request";
17+
import request from "request";
1818

1919
import * as matrixcs from "./matrix";
2020
import * as utils from "./utils";

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ limitations under the License.
2323
import unhomoglyph from "unhomoglyph";
2424
import promiseRetry from "p-retry";
2525

26-
import type * as NodeCrypto from "crypto";
26+
import type NodeCrypto from "crypto";
2727
import { MatrixEvent } from ".";
2828
import { M_TIMESTAMP } from "./@types/location";
2929

0 commit comments

Comments
 (0)