Skip to content

Commit 22eb704

Browse files
authored
Merge pull request #12 from vicky-gonsalves/fix-imports-not-use-as-values
(Fix) Deno 1.4.0 support added
2 parents 4b41e18 + db42f86 commit 22eb704

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

src/aes/aes_js.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
BlockCiper,
88
BlockCiperOperation,
99
} from "./block_ciper_operator.ts";
10-
import { BlockCiperConfig } from "./common.ts";
11-
import { AESBase } from "./aes_base.ts";
10+
import type { BlockCiperConfig } from "./common.ts";
11+
import type { AESBase } from "./aes_base.ts";
1212

1313
// deno-fmt-ignore
1414
const SBOX: number[] = [

src/aes/aes_wc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AESBase } from "./aes_base.ts";
2-
import { BlockCiperConfig } from "./common.ts";
1+
import type { AESBase } from "./aes_base.ts";
2+
import type { BlockCiperConfig } from "./common.ts";
33

44
function base64(m: Uint8Array) {
55
return btoa(String.fromCharCode.apply(null, [...m])).replace(/=/g, "");

src/aes/block_ciper_operator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { xor } from "./../helper.ts";
2-
import { BlockCiperConfig } from "./common.ts";
2+
import type { BlockCiperConfig } from "./common.ts";
33

44
export abstract class BlockCiper {
55
abstract encrypt(m: Uint8Array): Uint8Array;

src/aes/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { RawBinary } from "../binary.ts";
2-
import { AESBase } from "./aes_base.ts";
2+
import type { AESBase } from "./aes_base.ts";
33
import { WebCryptoAES } from "./aes_wc.ts";
44
import { PureAES } from "./aes_js.ts";
5-
import { AESOption } from "./common.ts";
5+
import type { AESOption } from "./common.ts";
66

77
function computeMessage(m: Uint8Array | string) {
88
return typeof m === "string" ? new TextEncoder().encode(m) : m;

src/rsa/export_key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RSAKeyParams } from "./common.ts";
1+
import type { RSAKeyParams } from "./common.ts";
22
import { bignum_to_byte } from "../helper.ts";
33
import { encode } from "./../../src/utility/encode.ts";
44

src/rsa/import_key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { encode } from "./../../src/utility/encode.ts";
2-
import { JSONWebKey, RSAKeyParams } from "./common.ts";
2+
import type { JSONWebKey, RSAKeyParams } from "./common.ts";
33
import { get_key_size, base64_to_binary } from "../helper.ts";
44
import { ber_decode, ber_simple } from "./basic_encoding_rule.ts";
55
import { os2ip } from "./primitives.ts";

src/rsa/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RSAOption, RSASignOption, JSONWebKey } from "./common.ts";
1+
import type { RSAOption, RSASignOption, JSONWebKey } from "./common.ts";
22
import { WebCryptoRSA } from "./rsa_wc.ts";
33
import { PureRSA } from "./rsa_js.ts";
44
import { RawBinary } from "../binary.ts";

src/rsa/rsa_js.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
rsa_pkcs1_sign,
88
} from "./rsa_internal.ts";
99
import { RawBinary } from "./../binary.ts";
10-
import { RSAOption, RSASignOption } from "./common.ts";
10+
import type { RSAOption, RSASignOption } from "./common.ts";
1111
import { createHash } from "../hash.ts";
12-
import { RSAKey } from "./rsa_key.ts";
12+
import type { RSAKey } from "./rsa_key.ts";
1313

1414
export class PureRSA {
1515
static async encrypt(key: RSAKey, message: Uint8Array, options: RSAOption) {

src/rsa/rsa_key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RSAKeyParams, JSONWebKey } from "./common.ts";
1+
import type { RSAKeyParams, JSONWebKey } from "./common.ts";
22
import { encode } from "./../../src/utility/encode.ts";
33
import {
44
rsa_export_pkcs8_private,

src/rsa/rsa_wc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { RSAOption } from "./common.ts";
2-
import { RSAKey } from "./rsa_key.ts";
1+
import type { RSAOption } from "./common.ts";
2+
import type { RSAKey } from "./rsa_key.ts";
33

44
function big_base64(m?: bigint) {
55
if (m === undefined) return undefined;

0 commit comments

Comments
 (0)