Skip to content

Commit

Permalink
fix(typescript): remove file extensions from .d.ts files
Browse files Browse the repository at this point in the history
resolves #222
  • Loading branch information
panva committed Jul 2, 2021
1 parent 0727a42 commit e091f0f
Show file tree
Hide file tree
Showing 60 changed files with 71 additions and 70 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"build-fast:node-webcrypto-cjs": "npm run-script runtime-node-webcrypto && npm run-script -s esbuild-find | xargs -0 esbuild --log-level=warning --platform=node --target=esnext --outdir=dist/node/webcrypto/cjs --format=cjs",
"build-fast:node-webcrypto-esm": "npm run-script runtime-node-webcrypto && npm run-script -s esbuild-find | xargs -0 esbuild --log-level=warning --platform=node --target=esnext --outdir=dist/node/webcrypto/esm --format=esm && echo '{\"type\": \"module\"}'> dist/node/webcrypto/esm/package.json",
"build:browser": "run-s runtime-browser lint 'build -- -p ./tsconfig/browser.json' && echo '{\"type\": \"module\"}'> dist/browser/package.json",
"build:types": "npm run-script build -- -p ./tsconfig/types.json && cd src && find . -name '*.d.ts' -maxdepth 2 -type f -exec gcp --parents \"{}\" ../dist/types \\; && cd .. && node ./tools/strip-dts-comments",
"build:types": "npm run-script build -- -p ./tsconfig/types.json && cd src && find . -name '*.d.ts' -maxdepth 2 -type f -exec gcp --parents \"{}\" ../dist/types \\; && cd .. && node ./tools/strip-dts-comments && run-s -s types:find | xargs -0 sed -i '' -e \"s/.js//g\"",
"build:node-cjs": "run-s runtime-node lint 'build -- -p ./tsconfig/node-cjs.json'",
"build:node-esm": "run-s runtime-node lint 'build -- -p ./tsconfig/node-esm.json' && echo '{\"type\": \"module\"}'> dist/node/esm/package.json",
"build:node-webcrypto-cjs": "run-s runtime-node-webcrypto lint 'build -- -p ./tsconfig/node-webcrypto-cjs.json'",
Expand All @@ -340,6 +340,7 @@
"runtime:browser:copy": "cp ./src/runtime/browser/*.ts ./src/runtime",
"runtime:clear": "run-s -s runtime:find | xargs -0 rm -f",
"runtime:find": "find src/runtime -not -name '*.d.ts' -maxdepth 1 -type f -print0",
"types:find": "find dist/types -name '*.d.ts' -type f -print0",
"runtime:node:copy": "cp ./src/runtime/node/*.ts ./src/runtime",
"runtime:refs": "run-s -s runtime:find | xargs -0 sed -i '' -e \"s/'\\.\\.\\//'\\.\\//g\" -e \"s/'\\.\\/\\.\\./'../g\"",
"test": "npm run-script test-cjs && ava",
Expand Down
2 changes: 1 addition & 1 deletion src/jwe/compact/decrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
GetKeyFunction,
FlattenedJWE,
CompactDecryptResult,
} from '../../types.d'
} from '../../types'

/**
* Interface for Compact JWE Decryption dynamic key resolution.
Expand Down
2 changes: 1 addition & 1 deletion src/jwe/compact/encrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
JWEKeyManagementHeaderParameters,
JWEHeaderParameters,
EncryptOptions,
} from '../../types.d'
} from '../../types'

/**
* The CompactEncrypt class is a utility for creating Compact JWE strings.
Expand Down
2 changes: 1 addition & 1 deletion src/jwe/flattened/decrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
JWEHeaderParameters,
DecryptOptions,
GetKeyFunction,
} from '../../types.d'
} from '../../types'
import { encoder, decoder, concat } from '../../lib/buffer_utils.js'
import cekFactory from '../../lib/cek.js'
import random from '../../runtime/random.js'
Expand Down
4 changes: 2 additions & 2 deletions src/jwe/flattened/encrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type {
JWEHeaderParameters,
JWEKeyManagementHeaderParameters,
EncryptOptions,
} from '../../types.d'
import type { JWEKeyManagementHeaderResults } from '../../types.i.d'
} from '../../types'
import type { JWEKeyManagementHeaderResults } from '../../types.i'
import ivFactory from '../../lib/iv.js'
import { encode as base64url } from '../../runtime/base64url.js'
import random from '../../runtime/random.js'
Expand Down
2 changes: 1 addition & 1 deletion src/jwe/general/decrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
FlattenedJWE,
GeneralJWE,
GeneralDecryptResult,
} from '../../types.d'
} from '../../types'
import isObject from '../../lib/is_object.js'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/jwk/embedded.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable jsdoc/require-param */
import type { KeyObject } from 'crypto'
import type { FlattenedJWSInput, JWSHeaderParameters } from '../types.d'
import type { FlattenedJWSInput, JWSHeaderParameters } from '../types'
import parseJwk from './parse.js'
import isObject from '../lib/is_object.js'
import { JWSInvalid } from '../util/errors.js'
Expand Down
2 changes: 1 addition & 1 deletion src/jwk/from_key_like.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JWK, KeyLike } from '../types.d'
import type { JWK, KeyLike } from '../types'
import asJWK from '../runtime/key_to_jwk.js'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/jwk/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { decode as base64url } from '../runtime/base64url.js'
import asKeyObject from '../runtime/jwk_to_key.js'
import { JOSENotSupported } from '../util/errors.js'
import isObject from '../lib/is_object.js'
import type { JWK, KeyLike } from '../types.d'
import type { JWK, KeyLike } from '../types'

/**
* Converts a JWK to a runtime-specific key representation (KeyLike). Either
Expand Down
2 changes: 1 addition & 1 deletion src/jwk/thumbprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { JOSENotSupported, JWKInvalid } from '../util/errors.js'
import digest from '../runtime/digest.js'
import { encode as base64url } from '../runtime/base64url.js'
import { encoder } from '../lib/buffer_utils.js'
import type { JWK } from '../types.d'
import type { JWK } from '../types'
import isObject from '../lib/is_object.js'

const check = (value: unknown, description: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/jwks/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { KeyObject } from 'crypto'
import type * as http from 'http'
import type * as https from 'https'

import type { JWSHeaderParameters, JWK, FlattenedJWSInput, GetKeyFunction } from '../types.d'
import type { JWSHeaderParameters, JWK, FlattenedJWSInput, GetKeyFunction } from '../types'
import parseJWK from '../jwk/parse.js'
import {
JWKSInvalid,
Expand Down
2 changes: 1 addition & 1 deletion src/jws/compact/sign.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-underscore-dangle */

import FlattenedSign from '../flattened/sign.js'
import type { JWSHeaderParameters, KeyLike, SignOptions } from '../../types.d'
import type { JWSHeaderParameters, KeyLike, SignOptions } from '../../types'

/**
* The CompactSign class is a utility for creating Compact JWS strings.
Expand Down
2 changes: 1 addition & 1 deletion src/jws/compact/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
JWSHeaderParameters,
KeyLike,
VerifyOptions,
} from '../../types.d'
} from '../../types'

/**
* Interface for Compact JWS Verification dynamic key resolution.
Expand Down
2 changes: 1 addition & 1 deletion src/jws/flattened/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { encoder, decoder, concat } from '../../lib/buffer_utils.js'

import { encode as base64url } from '../../runtime/base64url.js'
import sign from '../../runtime/sign.js'
import type { KeyLike, FlattenedJWS, JWSHeaderParameters, SignOptions } from '../../types.d'
import type { KeyLike, FlattenedJWS, JWSHeaderParameters, SignOptions } from '../../types'
import checkKeyType from '../../lib/check_key_type.js'
import validateCrit from '../../lib/validate_crit.js'

Expand Down
2 changes: 1 addition & 1 deletion src/jws/flattened/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {
JWSHeaderParameters,
VerifyOptions,
GetKeyFunction,
} from '../../types.d'
} from '../../types'

const checkExtensions = validateCrit.bind(undefined, JWSInvalid, new Map([['b64', true]]))
const checkAlgOption = validateAlgorithms.bind(undefined, 'algorithms')
Expand Down
2 changes: 1 addition & 1 deletion src/jws/general/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import FlattenedSign from '../flattened/sign.js'
import { JWSInvalid } from '../../util/errors.js'

import type { KeyLike, GeneralJWS, JWSHeaderParameters, SignOptions } from '../../types.d'
import type { KeyLike, GeneralJWS, JWSHeaderParameters, SignOptions } from '../../types'

export interface Signature {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/jws/general/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
JWSHeaderParameters,
KeyLike,
VerifyOptions,
} from '../../types.d'
} from '../../types'
import { JWSInvalid, JWSSignatureVerificationFailed } from '../../util/errors.js'
import isObject from '../../lib/is_object.js'

Expand Down
2 changes: 1 addition & 1 deletion src/jwt/decrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
JWEHeaderParameters,
FlattenedJWE,
JWTDecryptResult,
} from '../types.d'
} from '../types'
import jwtPayload from '../lib/jwt_claims_set.js'
import { JWTClaimValidationFailed } from '../util/errors.js'

Expand Down
2 changes: 1 addition & 1 deletion src/jwt/encrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
JWEKeyManagementHeaderParameters,
JWTPayload,
KeyLike,
} from '../types.d'
} from '../types'
import { encoder } from '../lib/buffer_utils.js'
import ProduceJWT from '../lib/jwt_producer.js'

Expand Down
2 changes: 1 addition & 1 deletion src/jwt/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import CompactSign from '../jws/compact/sign.js'
import { JWTInvalid } from '../util/errors.js'
import type { JWSHeaderParameters, JWTPayload, KeyLike, SignOptions } from '../types.d'
import type { JWSHeaderParameters, JWTPayload, KeyLike, SignOptions } from '../types'
import { encoder } from '../lib/buffer_utils.js'
import ProduceJWT from '../lib/jwt_producer.js'

Expand Down
2 changes: 1 addition & 1 deletion src/jwt/unsecured.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-underscore-dangle */

import type { JWSHeaderParameters, JWTClaimVerificationOptions, JWTPayload } from '../types.d'
import type { JWSHeaderParameters, JWTClaimVerificationOptions, JWTPayload } from '../types'
import { decoder } from '../lib/buffer_utils.js'
import * as base64url from '../runtime/base64url.js'
import { JWTInvalid } from '../util/errors.js'
Expand Down
2 changes: 1 addition & 1 deletion src/jwt/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
GetKeyFunction,
FlattenedJWSInput,
JWTVerifyResult,
} from '../types.d'
} from '../types'
import jwtPayload from '../lib/jwt_claims_set.js'
import { JWTInvalid } from '../util/errors.js'

Expand Down
2 changes: 1 addition & 1 deletion src/lib/buffer_utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-await-in-loop */

import type { DigestFunction } from '../runtime/interfaces.d'
import type { DigestFunction } from '../runtime/interfaces'

export const encoder = new TextEncoder()
export const decoder = new TextDecoder()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/check_key_type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { KeyLike } from '../types.d'
import type { KeyLike } from '../types'
import invalidKeyInput from '../runtime/invalid_key_input.js'

const checkKeyType = (
Expand Down
4 changes: 2 additions & 2 deletions src/lib/decrypt_key_management.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { JWEHeaderParameters, KeyLike } from '../types.d'
import type { JWEKeyManagementHeaderResults } from '../types.i.d'
import type { JWEHeaderParameters, KeyLike } from '../types'
import type { JWEKeyManagementHeaderResults } from '../types.i'
import { JOSENotSupported, JWEInvalid } from '../util/errors.js'
import { unwrap as aesKw } from '../runtime/aeskw.js'
import * as ECDH from '../runtime/ecdhes.js'
Expand Down
4 changes: 2 additions & 2 deletions src/lib/encrypt_key_management.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { KeyLike, JWEKeyManagementHeaderParameters } from '../types.d'
import type { JWEKeyManagementHeaderResults } from '../types.i.d'
import type { KeyLike, JWEKeyManagementHeaderParameters } from '../types'
import type { JWEKeyManagementHeaderResults } from '../types.i'
import cekFactory, { bitLengths as cekLengths } from '../lib/cek.js'
import { JOSENotSupported } from '../util/errors.js'
import random from '../runtime/random.js'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/jwt_claims_set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
JWTClaimVerificationOptions,
JWEHeaderParameters,
JWSHeaderParameters,
} from '../types.d'
} from '../types'
import { JWTClaimValidationFailed, JWTExpired, JWTInvalid } from '../util/errors.js'
import { decoder } from './buffer_utils.js'
import epoch from './epoch.js'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/jwt_producer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JWTPayload } from '../types.d'
import type { JWTPayload } from '../types'
import epoch from './epoch.js'
import isObject from './is_object.js'
import secs from './secs.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/aesgcmkw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AesGcmKwUnwrapFunction, AesGcmKwWrapFunction } from '../interfaces.d'
import type { AesGcmKwUnwrapFunction, AesGcmKwWrapFunction } from '../interfaces'
import encrypt from './encrypt.js'
import decrypt from './decrypt.js'
import ivFactory from '../../lib/iv.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/aeskw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AesKwUnwrapFunction, AesKwWrapFunction } from '../interfaces.d'
import type { AesKwUnwrapFunction, AesKwWrapFunction } from '../interfaces'
import bogusWebCrypto from './bogus.js'
import crypto, { isCryptoKey } from './webcrypto.js'
import invalidKeyInput from './invalid_key_input.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { concat, uint64be } from '../../lib/buffer_utils.js'

import type { DecryptFunction } from '../interfaces.d'
import type { DecryptFunction } from '../interfaces'
import checkIvLength from '../../lib/check_iv_length.js'
import checkCekLength from './check_cek_length.js'
import timingSafeEqual from './timing_safe_equal.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/digest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import crypto from './webcrypto.js'
import type { DigestFunction } from '../interfaces.d'
import type { DigestFunction } from '../interfaces'

const digest: DigestFunction = async (
algorithm: 'sha256' | 'sha384' | 'sha512',
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { concat, uint64be } from '../../lib/buffer_utils.js'
import type { EncryptFunction } from '../interfaces.d'
import type { EncryptFunction } from '../interfaces'
import checkIvLength from '../../lib/check_iv_length.js'
import checkCekLength from './check_cek_length.js'
import crypto, { isCryptoKey } from './webcrypto.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/fetch_jwks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchFunction } from '../interfaces.d'
import type { FetchFunction } from '../interfaces'
import { JOSEError } from '../../util/errors.js'
import globalThis from './global.js'

Expand Down
4 changes: 2 additions & 2 deletions src/runtime/browser/jwk_to_key.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import crypto from './webcrypto.js'
import type { JWKParseFunction } from '../interfaces.d'
import type { JWKParseFunction } from '../interfaces'
import { JOSENotSupported } from '../../util/errors.js'
import type { JWK } from '../../types.d'
import type { JWK } from '../../types'
import { decode as base64url } from './base64url.js'

function subtleMapping(jwk: JWK): {
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/browser/key_to_jwk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import crypto, { isCryptoKey } from './webcrypto.js'
import type { JWKConvertFunction } from '../interfaces.d'
import type { JWK } from '../../types.d'
import type { JWKConvertFunction } from '../interfaces'
import type { JWK } from '../../types'
import invalidKeyInput from './invalid_key_input.js'
import { encode as base64url } from './base64url.js'

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/pbes2kw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Pbes2KWDecryptFunction, Pbes2KWEncryptFunction } from '../interfaces.d'
import type { Pbes2KWDecryptFunction, Pbes2KWEncryptFunction } from '../interfaces'
import random from './random.js'
import { p2s as concatSalt } from '../../lib/buffer_utils.js'
import { encode as base64url } from './base64url.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/rsaes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RsaEsDecryptFunction, RsaEsEncryptFunction } from '../interfaces.d'
import type { RsaEsDecryptFunction, RsaEsEncryptFunction } from '../interfaces'
import subtleAlgorithm from './subtle_rsaes.js'
import bogusWebCrypto from './bogus.js'
import crypto, { isCryptoKey } from './webcrypto.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/sign.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SignFunction } from '../interfaces.d'
import type { SignFunction } from '../interfaces'
import subtleAlgorithm from './subtle_dsa.js'
import crypto from './webcrypto.js'
import checkKeyLength from './check_key_length.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/timing_safe_equal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TimingSafeEqual } from '../interfaces.d'
import type { TimingSafeEqual } from '../interfaces'

const timingSafeEqual: TimingSafeEqual = (a, b) => {
if (!(a instanceof Uint8Array)) {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/verify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { VerifyFunction } from '../interfaces.d'
import type { VerifyFunction } from '../interfaces'
import subtleAlgorithm from './subtle_dsa.js'
import crypto from './webcrypto.js'
import checkKeyLength from './check_key_length.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/browser/zlib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { JOSENotSupported } from '../../util/errors.js'
import type { InflateFunction, DeflateFunction } from '../../types.d'
import type { InflateFunction, DeflateFunction } from '../../types'

export const inflate: InflateFunction = async () => {
throw new JOSENotSupported(
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/interfaces.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { JWK, KeyLike } from '../types.d'
import type { AsyncOrSync } from '../types.i.d'
import type { JWK, KeyLike } from '../types'
import type { AsyncOrSync } from '../types.i'

export interface TimingSafeEqual {
(a: Uint8Array, b: Uint8Array): boolean
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/node/aesgcmkw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AesGcmKwWrapFunction, AesGcmKwUnwrapFunction } from '../interfaces.d'
import type { AesGcmKwWrapFunction, AesGcmKwUnwrapFunction } from '../interfaces'
import encrypt from './encrypt.js'
import decrypt from './decrypt.js'
import ivFactory from '../../lib/iv.js'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/node/aeskw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { KeyObject, createDecipheriv, createCipheriv, getCiphers } from 'crypto'
import { JOSENotSupported } from '../../util/errors.js'
import type { AesKwUnwrapFunction, AesKwWrapFunction } from '../interfaces.d'
import type { AesKwUnwrapFunction, AesKwWrapFunction } from '../interfaces'
import { concat } from '../../lib/buffer_utils.js'
import getSecretKey from './secret_key.js'
import { isCryptoKey, getKeyObject } from './webcrypto.js'
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/node/decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { getCiphers, KeyObject, createDecipheriv } from 'crypto'
import type { CipherGCMTypes } from 'crypto'

import type { DecryptFunction } from '../interfaces.d'
import type { DecryptFunction } from '../interfaces'
import checkIvLength from '../../lib/check_iv_length.js'
import checkCekLength from './check_cek_length.js'
import { concat } from '../../lib/buffer_utils.js'
import { JOSENotSupported, JWEDecryptionFailed } from '../../util/errors.js'
import timingSafeEqual from './timing_safe_equal.js'
import cbcTag from './cbc_tag.js'
import { isCryptoKey, getKeyObject } from './webcrypto.js'
import type { KeyLike } from '../../types.d'
import type { KeyLike } from '../../types'
import isKeyObject from './is_key_object.js'
import invalidKeyInput from './invalid_key_input.js'

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/node/digest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createHash } from 'crypto'
import type { DigestFunction } from '../interfaces.d'
import type { DigestFunction } from '../interfaces'

const digest: DigestFunction = (
algorithm: 'sha256' | 'sha384' | 'sha512',
Expand Down
Loading

0 comments on commit e091f0f

Please sign in to comment.