Skip to content

Commit

Permalink
node: convert remaining js packages to ts (#10289)
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Apr 16, 2024
1 parent 2ae48f3 commit df19081
Show file tree
Hide file tree
Showing 21 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/js/node/assert.js → src/js/node/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/js/node/crypto.js → src/js/node/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion src/js/node/querystring.js → src/js/node/querystring.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/js/node/stream.js → src/js/node/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/js/node/wasi.js → src/js/node/wasi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
2 changes: 1 addition & 1 deletion src/js/node/zlib.js → src/js/node/zlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit df19081

Please sign in to comment.