diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-04 22:31:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 02:31:38 +0000 |
commit | b40086fd7da3729d1d59b312c89ee57747fc66a9 (patch) | |
tree | 991583010635feab13fae77e7c8a35fef0a09095 /ext/node/polyfills/internal/crypto | |
parent | 01028fcdf4f379a7285cc15079306e3ac31edcc1 (diff) |
refactor(core): include_js_files! 'dir' option doesn't change specifiers (#18019)
This commit changes "include_js_files!" macro from "deno_core"
in a way that "dir" option doesn't cause specifiers to be rewritten
to include it.
Example:
```
include_js_files! {
dir "js",
"hello.js",
}
```
The above definition required embedders to use:
`import ... from "internal:<ext_name>/js/hello.js"`.
But with this change, the "js" directory in which the files are stored
is an implementation detail, which for embedders results in:
`import ... from "internal:<ext_name>/hello.js"`.
The directory the files are stored in, is an implementation detail and
in some cases might result in a significant size difference for the
snapshot. As an example, in "deno_node" extension, we store the
source code in "polyfills" directory; which resulted in each specifier
to look like "internal:deno_node/polyfills/<module_name>", but with
this change it's "internal:deno_node/<module_name>".
Given that "deno_node" has over 100 files, many of them having
several import specifiers to the same extension, this change removes
10 characters from each import specifier.
Diffstat (limited to 'ext/node/polyfills/internal/crypto')
-rw-r--r-- | ext/node/polyfills/internal/crypto/_keys.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/_randomBytes.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/_randomFill.ts | 4 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/certificate.ts | 6 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/cipher.ts | 18 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/diffiehellman.ts | 18 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/hash.ts | 16 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/hkdf.ts | 16 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/keygen.ts | 8 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/keys.ts | 16 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/pbkdf2.ts | 6 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/random.ts | 14 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/scrypt.ts | 6 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/sig.ts | 14 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/types.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/util.ts | 12 | ||||
-rw-r--r-- | ext/node/polyfills/internal/crypto/x509.ts | 12 |
17 files changed, 86 insertions, 86 deletions
diff --git a/ext/node/polyfills/internal/crypto/_keys.ts b/ext/node/polyfills/internal/crypto/_keys.ts index 794582bf1..853777976 100644 --- a/ext/node/polyfills/internal/crypto/_keys.ts +++ b/ext/node/polyfills/internal/crypto/_keys.ts @@ -1,5 +1,5 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -import { kKeyObject } from "internal:deno_node/polyfills/internal/crypto/constants.ts"; +import { kKeyObject } from "internal:deno_node/internal/crypto/constants.ts"; export const kKeyType = Symbol("kKeyType"); diff --git a/ext/node/polyfills/internal/crypto/_randomBytes.ts b/ext/node/polyfills/internal/crypto/_randomBytes.ts index 41678fcf1..16b779a02 100644 --- a/ext/node/polyfills/internal/crypto/_randomBytes.ts +++ b/ext/node/polyfills/internal/crypto/_randomBytes.ts @@ -1,5 +1,5 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; export const MAX_RANDOM_VALUES = 65536; export const MAX_SIZE = 4294967295; diff --git a/ext/node/polyfills/internal/crypto/_randomFill.ts b/ext/node/polyfills/internal/crypto/_randomFill.ts index 045072696..9acff9b9b 100644 --- a/ext/node/polyfills/internal/crypto/_randomFill.ts +++ b/ext/node/polyfills/internal/crypto/_randomFill.ts @@ -1,8 +1,8 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. import randomBytes, { MAX_SIZE as kMaxUint32, -} from "internal:deno_node/polyfills/internal/crypto/_randomBytes.ts"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +} from "internal:deno_node/internal/crypto/_randomBytes.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; const kBufferMaxLength = 0x7fffffff; diff --git a/ext/node/polyfills/internal/crypto/certificate.ts b/ext/node/polyfills/internal/crypto/certificate.ts index f6fb333a9..bfa171ad3 100644 --- a/ext/node/polyfills/internal/crypto/certificate.ts +++ b/ext/node/polyfills/internal/crypto/certificate.ts @@ -1,9 +1,9 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import { BinaryLike } from "internal:deno_node/polyfills/internal/crypto/types.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import { BinaryLike } from "internal:deno_node/internal/crypto/types.ts"; export class Certificate { static Certificate = Certificate; diff --git a/ext/node/polyfills/internal/crypto/cipher.ts b/ext/node/polyfills/internal/crypto/cipher.ts index ddef00076..943783cb3 100644 --- a/ext/node/polyfills/internal/crypto/cipher.ts +++ b/ext/node/polyfills/internal/crypto/cipher.ts @@ -1,21 +1,21 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/polyfills/internal/errors.ts"; +import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/internal/errors.ts"; import { validateInt32, validateObject, -} from "internal:deno_node/polyfills/internal/validators.mjs"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import type { TransformOptions } from "internal:deno_node/polyfills/_stream.d.ts"; -import { Transform } from "internal:deno_node/polyfills/_stream.mjs"; -import { KeyObject } from "internal:deno_node/polyfills/internal/crypto/keys.ts"; -import type { BufferEncoding } from "internal:deno_node/polyfills/_global.d.ts"; +} from "internal:deno_node/internal/validators.mjs"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import type { TransformOptions } from "internal:deno_node/_stream.d.ts"; +import { Transform } from "internal:deno_node/_stream.mjs"; +import { KeyObject } from "internal:deno_node/internal/crypto/keys.ts"; +import type { BufferEncoding } from "internal:deno_node/_global.d.ts"; import type { BinaryLike, Encoding, -} from "internal:deno_node/polyfills/internal/crypto/types.ts"; +} from "internal:deno_node/internal/crypto/types.ts"; const { ops } = globalThis.__bootstrap.core; diff --git a/ext/node/polyfills/internal/crypto/diffiehellman.ts b/ext/node/polyfills/internal/crypto/diffiehellman.ts index eb903ccb3..6e35ebaf4 100644 --- a/ext/node/polyfills/internal/crypto/diffiehellman.ts +++ b/ext/node/polyfills/internal/crypto/diffiehellman.ts @@ -1,28 +1,28 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; import { isAnyArrayBuffer, isArrayBufferView, -} from "internal:deno_node/polyfills/internal/util/types.ts"; -import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/polyfills/internal/errors.ts"; +} from "internal:deno_node/internal/util/types.ts"; +import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/internal/errors.ts"; import { validateInt32, validateString, -} from "internal:deno_node/polyfills/internal/validators.mjs"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +} from "internal:deno_node/internal/validators.mjs"; +import { Buffer } from "internal:deno_node/buffer.ts"; import { getDefaultEncoding, toBuf, -} from "internal:deno_node/polyfills/internal/crypto/util.ts"; +} from "internal:deno_node/internal/crypto/util.ts"; import type { BinaryLike, BinaryToTextEncoding, ECDHKeyFormat, -} from "internal:deno_node/polyfills/internal/crypto/types.ts"; -import { KeyObject } from "internal:deno_node/polyfills/internal/crypto/keys.ts"; -import type { BufferEncoding } from "internal:deno_node/polyfills/_global.d.ts"; +} from "internal:deno_node/internal/crypto/types.ts"; +import { KeyObject } from "internal:deno_node/internal/crypto/keys.ts"; +import type { BufferEncoding } from "internal:deno_node/_global.d.ts"; const DH_GENERATOR = 2; diff --git a/ext/node/polyfills/internal/crypto/hash.ts b/ext/node/polyfills/internal/crypto/hash.ts index e6e2409a2..7a7c0be8e 100644 --- a/ext/node/polyfills/internal/crypto/hash.ts +++ b/ext/node/polyfills/internal/crypto/hash.ts @@ -5,24 +5,24 @@ import { TextDecoder, TextEncoder, } from "internal:deno_web/08_text_encoding.js"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import { Transform } from "internal:deno_node/polyfills/stream.ts"; -import { encode as encodeToHex } from "internal:deno_node/polyfills/internal/crypto/_hex.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import { Transform } from "internal:deno_node/stream.ts"; +import { encode as encodeToHex } from "internal:deno_node/internal/crypto/_hex.ts"; import { forgivingBase64Encode as encodeToBase64, forgivingBase64UrlEncode as encodeToBase64Url, } from "internal:deno_web/00_infra.js"; -import type { TransformOptions } from "internal:deno_node/polyfills/_stream.d.ts"; -import { validateString } from "internal:deno_node/polyfills/internal/validators.mjs"; +import type { TransformOptions } from "internal:deno_node/_stream.d.ts"; +import { validateString } from "internal:deno_node/internal/validators.mjs"; import type { BinaryToTextEncoding, Encoding, -} from "internal:deno_node/polyfills/internal/crypto/types.ts"; +} from "internal:deno_node/internal/crypto/types.ts"; import { KeyObject, prepareSecretKey, -} from "internal:deno_node/polyfills/internal/crypto/keys.ts"; -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; +} from "internal:deno_node/internal/crypto/keys.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; const { ops } = globalThis.__bootstrap.core; diff --git a/ext/node/polyfills/internal/crypto/hkdf.ts b/ext/node/polyfills/internal/crypto/hkdf.ts index aebdd9152..1bd652862 100644 --- a/ext/node/polyfills/internal/crypto/hkdf.ts +++ b/ext/node/polyfills/internal/crypto/hkdf.ts @@ -5,28 +5,28 @@ import { validateFunction, validateInteger, validateString, -} from "internal:deno_node/polyfills/internal/validators.mjs"; +} from "internal:deno_node/internal/validators.mjs"; import { ERR_INVALID_ARG_TYPE, ERR_OUT_OF_RANGE, hideStackFrames, -} from "internal:deno_node/polyfills/internal/errors.ts"; +} from "internal:deno_node/internal/errors.ts"; import { toBuf, validateByteSource, -} from "internal:deno_node/polyfills/internal/crypto/util.ts"; +} from "internal:deno_node/internal/crypto/util.ts"; import { createSecretKey, isKeyObject, KeyObject, -} from "internal:deno_node/polyfills/internal/crypto/keys.ts"; -import type { BinaryLike } from "internal:deno_node/polyfills/internal/crypto/types.ts"; -import { kMaxLength } from "internal:deno_node/polyfills/internal/buffer.mjs"; +} from "internal:deno_node/internal/crypto/keys.ts"; +import type { BinaryLike } from "internal:deno_node/internal/crypto/types.ts"; +import { kMaxLength } from "internal:deno_node/internal/buffer.mjs"; import { isAnyArrayBuffer, isArrayBufferView, -} from "internal:deno_node/polyfills/internal/util/types.ts"; -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; +} from "internal:deno_node/internal/util/types.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; const validateParameters = hideStackFrames((hash, key, salt, info, length) => { key = prepareKey(key); diff --git a/ext/node/polyfills/internal/crypto/keygen.ts b/ext/node/polyfills/internal/crypto/keygen.ts index 1a947b95b..d8cd311a9 100644 --- a/ext/node/polyfills/internal/crypto/keygen.ts +++ b/ext/node/polyfills/internal/crypto/keygen.ts @@ -1,13 +1,13 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { KeyObject } from "internal:deno_node/polyfills/internal/crypto/keys.ts"; -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +import { KeyObject } from "internal:deno_node/internal/crypto/keys.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; import { KeyFormat, KeyType, -} from "internal:deno_node/polyfills/internal/crypto/types.ts"; +} from "internal:deno_node/internal/crypto/types.ts"; export function generateKey( _type: "hmac" | "aes", diff --git a/ext/node/polyfills/internal/crypto/keys.ts b/ext/node/polyfills/internal/crypto/keys.ts index 7c9e7bad9..9a2800e7f 100644 --- a/ext/node/polyfills/internal/crypto/keys.ts +++ b/ext/node/polyfills/internal/crypto/keys.ts @@ -4,30 +4,30 @@ import { kHandle, kKeyObject, -} from "internal:deno_node/polyfills/internal/crypto/constants.ts"; +} from "internal:deno_node/internal/crypto/constants.ts"; import { ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, -} from "internal:deno_node/polyfills/internal/errors.ts"; -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; +} from "internal:deno_node/internal/errors.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; import type { KeyFormat, KeyType, PrivateKeyInput, PublicKeyInput, -} from "internal:deno_node/polyfills/internal/crypto/types.ts"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +} from "internal:deno_node/internal/crypto/types.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; import { isAnyArrayBuffer, isArrayBufferView, -} from "internal:deno_node/polyfills/internal/util/types.ts"; -import { hideStackFrames } from "internal:deno_node/polyfills/internal/errors.ts"; +} from "internal:deno_node/internal/util/types.ts"; +import { hideStackFrames } from "internal:deno_node/internal/errors.ts"; import { isCryptoKey as isCryptoKey_, isKeyObject as isKeyObject_, kKeyType, -} from "internal:deno_node/polyfills/internal/crypto/_keys.ts"; +} from "internal:deno_node/internal/crypto/_keys.ts"; const getArrayBufferOrView = hideStackFrames( ( diff --git a/ext/node/polyfills/internal/crypto/pbkdf2.ts b/ext/node/polyfills/internal/crypto/pbkdf2.ts index a3d821ae7..efd520f76 100644 --- a/ext/node/polyfills/internal/crypto/pbkdf2.ts +++ b/ext/node/polyfills/internal/crypto/pbkdf2.ts @@ -1,7 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import { createHash } from "internal:deno_node/polyfills/internal/crypto/hash.ts"; -import { HASH_DATA } from "internal:deno_node/polyfills/internal/crypto/types.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import { createHash } from "internal:deno_node/internal/crypto/hash.ts"; +import { HASH_DATA } from "internal:deno_node/internal/crypto/types.ts"; export const MAX_ALLOC = Math.pow(2, 30) - 1; diff --git a/ext/node/polyfills/internal/crypto/random.ts b/ext/node/polyfills/internal/crypto/random.ts index 158ea40da..def9e639d 100644 --- a/ext/node/polyfills/internal/crypto/random.ts +++ b/ext/node/polyfills/internal/crypto/random.ts @@ -1,19 +1,19 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import randomBytes from "internal:deno_node/polyfills/internal/crypto/_randomBytes.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import randomBytes from "internal:deno_node/internal/crypto/_randomBytes.ts"; import randomFill, { randomFillSync, -} from "internal:deno_node/polyfills/internal/crypto/_randomFill.ts"; -import randomInt from "internal:deno_node/polyfills/internal/crypto/_randomInt.ts"; +} from "internal:deno_node/internal/crypto/_randomFill.ts"; +import randomInt from "internal:deno_node/internal/crypto/_randomInt.ts"; -export { default as randomBytes } from "internal:deno_node/polyfills/internal/crypto/_randomBytes.ts"; +export { default as randomBytes } from "internal:deno_node/internal/crypto/_randomBytes.ts"; export { default as randomFill, randomFillSync, -} from "internal:deno_node/polyfills/internal/crypto/_randomFill.ts"; -export { default as randomInt } from "internal:deno_node/polyfills/internal/crypto/_randomInt.ts"; +} from "internal:deno_node/internal/crypto/_randomFill.ts"; +export { default as randomInt } from "internal:deno_node/internal/crypto/_randomInt.ts"; export type LargeNumberLike = | ArrayBufferView diff --git a/ext/node/polyfills/internal/crypto/scrypt.ts b/ext/node/polyfills/internal/crypto/scrypt.ts index 1bdafb63d..46afd0f8a 100644 --- a/ext/node/polyfills/internal/crypto/scrypt.ts +++ b/ext/node/polyfills/internal/crypto/scrypt.ts @@ -23,9 +23,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import { pbkdf2Sync as pbkdf2 } from "internal:deno_node/polyfills/internal/crypto/pbkdf2.ts"; -import { HASH_DATA } from "internal:deno_node/polyfills/internal/crypto/types.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import { pbkdf2Sync as pbkdf2 } from "internal:deno_node/internal/crypto/pbkdf2.ts"; +import { HASH_DATA } from "internal:deno_node/internal/crypto/types.ts"; type Opts = Partial<{ N: number; diff --git a/ext/node/polyfills/internal/crypto/sig.ts b/ext/node/polyfills/internal/crypto/sig.ts index 6c163c8e5..8c9af3b98 100644 --- a/ext/node/polyfills/internal/crypto/sig.ts +++ b/ext/node/polyfills/internal/crypto/sig.ts @@ -1,19 +1,19 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import { validateString } from "internal:deno_node/polyfills/internal/validators.mjs"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import type { WritableOptions } from "internal:deno_node/polyfills/_stream.d.ts"; -import Writable from "internal:deno_node/polyfills/internal/streams/writable.mjs"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import { validateString } from "internal:deno_node/internal/validators.mjs"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import type { WritableOptions } from "internal:deno_node/_stream.d.ts"; +import Writable from "internal:deno_node/internal/streams/writable.mjs"; import type { BinaryLike, BinaryToTextEncoding, Encoding, PrivateKeyInput, PublicKeyInput, -} from "internal:deno_node/polyfills/internal/crypto/types.ts"; -import { KeyObject } from "internal:deno_node/polyfills/internal/crypto/keys.ts"; +} from "internal:deno_node/internal/crypto/types.ts"; +import { KeyObject } from "internal:deno_node/internal/crypto/keys.ts"; export type DSAEncoding = "der" | "ieee-p1363"; diff --git a/ext/node/polyfills/internal/crypto/types.ts b/ext/node/polyfills/internal/crypto/types.ts index 3bb9ec160..3231d378e 100644 --- a/ext/node/polyfills/internal/crypto/types.ts +++ b/ext/node/polyfills/internal/crypto/types.ts @@ -1,7 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; export type HASH_DATA = string | ArrayBufferView | Buffer; diff --git a/ext/node/polyfills/internal/crypto/util.ts b/ext/node/polyfills/internal/crypto/util.ts index 8a7f7a1b6..75e8e4ea7 100644 --- a/ext/node/polyfills/internal/crypto/util.ts +++ b/ext/node/polyfills/internal/crypto/util.ts @@ -1,21 +1,21 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; import { ERR_INVALID_ARG_TYPE, hideStackFrames, -} from "internal:deno_node/polyfills/internal/errors.ts"; +} from "internal:deno_node/internal/errors.ts"; import { isAnyArrayBuffer, isArrayBufferView, -} from "internal:deno_node/polyfills/internal/util/types.ts"; -import { crypto as constants } from "internal:deno_node/polyfills/internal_binding/constants.ts"; +} from "internal:deno_node/internal/util/types.ts"; +import { crypto as constants } from "internal:deno_node/internal_binding/constants.ts"; import { kHandle, kKeyObject, -} from "internal:deno_node/polyfills/internal/crypto/constants.ts"; +} from "internal:deno_node/internal/crypto/constants.ts"; // TODO(kt3k): Generate this list from `digestAlgorithms` // of std/crypto/_wasm/mod.ts diff --git a/ext/node/polyfills/internal/crypto/x509.ts b/ext/node/polyfills/internal/crypto/x509.ts index 0722d7865..4e47e1de6 100644 --- a/ext/node/polyfills/internal/crypto/x509.ts +++ b/ext/node/polyfills/internal/crypto/x509.ts @@ -1,12 +1,12 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { KeyObject } from "internal:deno_node/polyfills/internal/crypto/keys.ts"; -import { Buffer } from "internal:deno_node/polyfills/buffer.ts"; -import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/polyfills/internal/errors.ts"; -import { isArrayBufferView } from "internal:deno_node/polyfills/internal/util/types.ts"; -import { notImplemented } from "internal:deno_node/polyfills/_utils.ts"; -import { BinaryLike } from "internal:deno_node/polyfills/internal/crypto/types.ts"; +import { KeyObject } from "internal:deno_node/internal/crypto/keys.ts"; +import { Buffer } from "internal:deno_node/buffer.ts"; +import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/internal/errors.ts"; +import { isArrayBufferView } from "internal:deno_node/internal/util/types.ts"; +import { notImplemented } from "internal:deno_node/_utils.ts"; +import { BinaryLike } from "internal:deno_node/internal/crypto/types.ts"; // deno-lint-ignore no-explicit-any export type PeerCertificate = any; |