From 5e219c6a367a99036784c444c842d59fd32eb3c4 Mon Sep 17 00:00:00 2001 From: microshine Date: Fri, 6 Mar 2020 13:33:15 +0300 Subject: [PATCH] Fix #15 --- src/asn/ec_private_key.ts | 3 --- src/asn/ec_signature.ts | 4 ++-- src/converters/integer_converter.ts | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/asn/ec_private_key.ts b/src/asn/ec_private_key.ts index 18ba608..a13f222 100644 --- a/src/asn/ec_private_key.ts +++ b/src/asn/ec_private_key.ts @@ -3,9 +3,6 @@ import { IJsonConvertible } from "@peculiar/json-schema"; import { Convert } from "pvtsutils"; import { EcPublicKey } from "./ec_public_key"; -// tslint:disable-next-line: no-var-requires -const asn1 = require("asn1js"); - // RFC 5915 // https://tools.ietf.org/html/rfc5915#section-3 // diff --git a/src/asn/ec_signature.ts b/src/asn/ec_signature.ts index 27cb412..5d2c301 100644 --- a/src/asn/ec_signature.ts +++ b/src/asn/ec_signature.ts @@ -1,6 +1,6 @@ import { AsnIntegerArrayBufferConverter, AsnProp, AsnPropTypes, IAsnConverter } from "@peculiar/asn1-schema"; -// tslint:disable-next-line: no-var-requires -const asn1 = require("asn1js"); +//@ts-ignore +import * as asn1 from "asn1js"; // RFC 3279 // https://tools.ietf.org/html/rfc3279#section-2.2.3 diff --git a/src/converters/integer_converter.ts b/src/converters/integer_converter.ts index 146bf51..458f0cf 100644 --- a/src/converters/integer_converter.ts +++ b/src/converters/integer_converter.ts @@ -1,6 +1,6 @@ import { IAsnConverter } from "@peculiar/asn1-schema"; -// tslint:disable-next-line: no-var-requires -const asn1 = require("asn1js"); +//@ts-ignore +import * as asn1 from "asn1js"; export const AsnIntegerArrayBufferConverter: IAsnConverter = { fromASN: (value: any) => {