mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
node: convert remaining js packages to ts (#10289)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
@@ -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;
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
@@ -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;
|
||||
};
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user