node: convert remaining js packages to ts (#10289)

This commit is contained in:
Meghan Denny
2024-04-16 15:42:24 -07:00
committed by GitHub
parent 2ae48f3314
commit df190815df
21 changed files with 8 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
const util = require("node:util");
var isDeepEqual = Bun.deepEquals;
var __commonJS = (cb, mod) =>
var __commonJS = (cb, mod: typeof module | undefined = undefined) =>
function () {
return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};

View File

@@ -78,7 +78,7 @@ function getArrayBufferOrView(buffer, name, encoding) {
const crypto = globalThis.crypto;
const globalCrypto = crypto;
var __commonJS = (cb, mod) =>
var __commonJS = (cb, mod: typeof module | undefined = undefined) =>
function () {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};

View File

@@ -1,4 +1,6 @@
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
var __commonJS =
(cb, mod: typeof module | undefined = undefined) =>
() => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
var Buffer = require("node:buffer").Buffer;

View File

@@ -16,7 +16,7 @@ const {
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) =>
var __commonJS = (cb, mod: typeof module | undefined = undefined) =>
function __require2() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};

View File

@@ -10,7 +10,7 @@ const nodeFsConstants = $processBindingConstants.fs;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) =>
var __commonJS = (cb, mod: typeof module | undefined = undefined) =>
function __require2() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};

View File

@@ -10,7 +10,7 @@ const Util = require("node:util");
const { isAnyArrayBuffer, isArrayBufferView } = require("node:util/types");
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) =>
var __commonJS = (cb, mod: typeof module | undefined = undefined) =>
function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};