From 26cee4eb0d041786f1d70cb2d9f3a6b6d82bd93d Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:06:04 -0800 Subject: fix(ext/node): Implement `isBuiltin` in `node:module` (#22817) Fixes #22502 Implements the [`isBuiltin`](https://nodejs.org/api/module.html#moduleisbuiltinmodulename) function in `node:module`. I had to update the version of `@types/node` in the test registry in order to get the test I added to typecheck. --- tests/testdata/publish/bare_node_builtins.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testdata/publish/bare_node_builtins.out') diff --git a/tests/testdata/publish/bare_node_builtins.out b/tests/testdata/publish/bare_node_builtins.out index 99d7e4cf9..c2cf2e2af 100644 --- a/tests/testdata/publish/bare_node_builtins.out +++ b/tests/testdata/publish/bare_node_builtins.out @@ -1,7 +1,7 @@ Warning: Resolving "url" as "node:url" at file:///[WILDCARD]/publish/bare_node_builtins/mod.ts:1:22. If you want to use a built-in Node module, add a "node:" prefix. Warning: Resolving "url" as "node:url" at file:///[WILDCARD]/publish/bare_node_builtins/mod.ts:1:22. If you want to use a built-in Node module, add a "node:" prefix. Download http://localhost:4545/npm/registry/@types/node -Download http://localhost:4545/npm/registry/@types/node/node-18.8.2.tgz +Download http://localhost:4545/npm/registry/@types/node/node-18.16.19.tgz Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts Checking for slow types in the public API... Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts -- cgit v1.2.3