Skip to content

Commit 5517005

Browse files
committed
fix: node modules
1 parent 0dd5494 commit 5517005

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ type Modules =
7272
| "node:process"
7373
| "node:querystring"
7474
| "node:readline"
75-
| "node:readline/promises"
7675
| "node:repl"
7776
| "node:stream/promises"
78-
| "node:stream/consumers"
7977
| "node:stream/web"
8078
| "node:string_decoder"
81-
| "node:test"
8279
| "node:timers"
8380
| "node:timers/promises"
8481
| "node:tls"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-node",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"engines": {
55
"node": ">=18.14.0"
66
},

src/use-node.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ type Modules =
2222
| "node:process"
2323
| "node:querystring"
2424
| "node:readline"
25-
| "node:readline/promises"
2625
| "node:repl"
2726
| "node:stream/promises"
28-
| "node:stream/consumers"
2927
| "node:stream/web"
3028
| "node:string_decoder"
31-
| "node:test"
3229
| "node:timers"
3330
| "node:timers/promises"
3431
| "node:tls"
@@ -88,20 +85,14 @@ type ModuleToType<T extends Modules> = T extends "node:async_hooks"
8885
? typeof import("node:querystring")
8986
: T extends "node:readline"
9087
? typeof import("node:readline")
91-
: T extends "node:readline/promises"
92-
? typeof import("node:readline/promises")
9388
: T extends "node:repl"
9489
? typeof import("node:repl")
9590
: T extends "node:stream/promises"
9691
? typeof import("node:stream/promises")
97-
: T extends "node:stream/consumers"
98-
? typeof import("node:stream/consumers")
9992
: T extends "node:stream/web"
10093
? typeof import("node:stream/web")
10194
: T extends "node:string_decoder"
10295
? typeof import("node:string_decoder")
103-
: T extends "node:test"
104-
? typeof import("node:test")
10596
: T extends "node:timers"
10697
? typeof import("node:timers")
10798
: T extends "node:timers/promises"
@@ -152,13 +143,10 @@ const moduleMap: Record<Modules, () => Promise<ModuleToType<Modules>>> = {
152143
"node:process": () => import("node:process"),
153144
"node:querystring": () => import("node:querystring"),
154145
"node:readline": () => import("node:readline"),
155-
"node:readline/promises": () => import("node:readline/promises"),
156146
"node:repl": () => import("node:repl"),
157147
"node:stream/promises": () => import("node:stream/promises"),
158-
"node:stream/consumers": () => import("node:stream/consumers"),
159148
"node:stream/web": () => import("node:stream/web"),
160149
"node:string_decoder": () => import("node:string_decoder"),
161-
"node:test": () => import("node:test"),
162150
"node:timers": () => import("node:timers"),
163151
"node:timers/promises": () => import("node:timers/promises"),
164152
"node:tls": () => import("node:tls"),

0 commit comments

Comments
 (0)