Skip to content

Commit 0f105c6

Browse files
chore: replace isolatedModules with verbatimModuleSyntax (#1555)
1 parent 2b27531 commit 0f105c6

74 files changed

Lines changed: 93 additions & 93 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/always-encrypted/aead-aes-256-cbc-hmac-algorithm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This code is based on the `mssql-jdbc` library published under the conditions of MIT license.
22
// Copyright (c) 2019 Microsoft Corporation
33

4-
import { EncryptionAlgorithm, SQLServerEncryptionType } from './types';
4+
import { type EncryptionAlgorithm, SQLServerEncryptionType } from './types';
55
import { createHmac, randomBytes, createCipheriv, createDecipheriv } from 'crypto';
66
import { AeadAes256CbcHmac256EncryptionKey, keySize } from './aead-aes-256-cbc-hmac-encryption-key';
77

src/always-encrypted/cek-entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This code is based on the `mssql-jdbc` library published under the conditions of MIT license.
22
// Copyright (c) 2019 Microsoft Corporation
33

4-
import { EncryptionKeyInfo } from './types';
4+
import { type EncryptionKeyInfo } from './types';
55

66
export class CEKEntry {
77
columnEncryptionKeyValues: EncryptionKeyInfo[];

src/always-encrypted/get-parameter-encryption-metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// This code is based on the `mssql-jdbc` library published under the conditions of MIT license.
22
// Copyright (c) 2019 Microsoft Corporation
33

4-
import { SQLServerEncryptionType, CryptoMetadata, DescribeParameterEncryptionResultSet1, DescribeParameterEncryptionResultSet2 } from './types';
4+
import { SQLServerEncryptionType, type CryptoMetadata, DescribeParameterEncryptionResultSet1, DescribeParameterEncryptionResultSet2 } from './types';
55
import { CEKEntry } from './cek-entry';
66
import { decryptSymmetricKey } from './key-crypto';
7-
import { typeByName as TYPES, Parameter } from '../data-type';
7+
import { typeByName as TYPES, type Parameter } from '../data-type';
88
import Request from '../request';
99
import Connection from '../connection';
1010
import RpcRequestPayload from '../rpcrequest-payload';

src/always-encrypted/key-crypto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This code is based on the `mssql-jdbc` library published under the conditions of MIT license.
22
// Copyright (c) 2019 Microsoft Corporation
33

4-
import { CryptoMetadata, EncryptionKeyInfo } from './types';
5-
import { InternalConnectionOptions as ConnectionOptions } from '../connection';
4+
import { type CryptoMetadata, type EncryptionKeyInfo } from './types';
5+
import { type InternalConnectionOptions as ConnectionOptions } from '../connection';
66
import SymmetricKey from './symmetric-key';
77
import { getKey } from './symmetric-key-cache';
88
import { AeadAes256CbcHmac256Algorithm, algorithmName } from './aead-aes-256-cbc-hmac-algorithm';

src/always-encrypted/keystore-provider-azure-key-vault.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) 2019 Microsoft Corporation
33

44
import { ClientSecretCredential } from '@azure/identity';
5-
import { CryptographyClient, KeyWrapAlgorithm, KeyClient, KeyVaultKey } from '@azure/keyvault-keys';
5+
import { CryptographyClient, type KeyWrapAlgorithm, KeyClient, type KeyVaultKey } from '@azure/keyvault-keys';
66
import { createHash } from 'crypto';
77
import { parse } from 'url';
88

src/always-encrypted/symmetric-key-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This code is based on the `mssql-jdbc` library published under the conditions of MIT license.
22
// Copyright (c) 2019 Microsoft Corporation
33

4-
import { EncryptionKeyInfo } from './types';
4+
import { type EncryptionKeyInfo } from './types';
55
import SymmetricKey from './symmetric-key';
6-
import { InternalConnectionOptions as ConnectionOptions } from '../connection';
6+
import { type InternalConnectionOptions as ConnectionOptions } from '../connection';
77
import LRU from 'lru-cache';
88

99
const cache = new LRU<string, SymmetricKey>(0);

src/always-encrypted/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) 2019 Microsoft Corporation
33

44
import { CEKEntry } from './cek-entry';
5-
import { BaseMetadata } from '../metadata-parser';
5+
import { type BaseMetadata } from '../metadata-parser';
66

77
export interface EncryptionKeyInfo {
88
encryptedKey: Buffer;

src/bulk-load.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { EventEmitter } from 'events';
22
import WritableTrackingBuffer from './tracking-buffer/writable-tracking-buffer';
3-
import Connection, { InternalConnectionOptions } from './connection';
3+
import Connection, { type InternalConnectionOptions } from './connection';
44

55
import { Transform } from 'stream';
66
import { TYPE as TOKEN_TYPE } from './token/token';
77

8-
import { DataType, Parameter } from './data-type';
8+
import { type DataType, type Parameter } from './data-type';
99
import { Collation } from './collation';
1010

1111
/**

src/connection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as net from 'net';
55
import dns from 'dns';
66

77
import constants from 'constants';
8-
import { SecureContextOptions } from 'tls';
8+
import { type SecureContextOptions } from 'tls';
99

1010
import { Readable } from 'stream';
1111

@@ -16,7 +16,7 @@ import {
1616
UsernamePasswordCredential,
1717
} from '@azure/identity';
1818

19-
import BulkLoad, { Options as BulkLoadOptions, Callback as BulkLoadCallback } from './bulk-load';
19+
import BulkLoad, { type Options as BulkLoadOptions, type Callback as BulkLoadCallback } from './bulk-load';
2020
import Debug from './debug';
2121
import { EventEmitter, once } from 'events';
2222
import { instanceLookup } from './instance-lookup';
@@ -36,12 +36,12 @@ import { connectInParallel, connectInSequence } from './connector';
3636
import { name as libraryName } from './library';
3737
import { versions } from './tds-versions';
3838
import Message from './message';
39-
import { Metadata } from './metadata-parser';
39+
import { type Metadata } from './metadata-parser';
4040
import { createNTLMRequest } from './ntlm';
4141
import { ColumnEncryptionAzureKeyVaultProvider } from './always-encrypted/keystore-provider-azure-key-vault';
4242

4343
import { AbortController, AbortSignal } from 'node-abort-controller';
44-
import { Parameter, TYPES } from './data-type';
44+
import { type Parameter, TYPES } from './data-type';
4545
import { BulkLoadPayload } from './bulk-load-payload';
4646
import { Collation } from './collation';
4747
import Procedures from './special-stored-procedure';

src/connector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import net from 'net';
2-
import dns, { LookupAddress } from 'dns';
2+
import dns, { type LookupAddress } from 'dns';
33

44
import * as punycode from 'punycode';
55
import { AbortSignal } from 'node-abort-controller';

0 commit comments

Comments
 (0)