Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 33ed6e8

Browse files
josephperrottdgp1130
authored andcommitted
refactor: move builtin module imports to use node: prefix imports
1 parent c0c1670 commit 33ed6e8

File tree

200 files changed

+311
-312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+311
-312
lines changed

‎goldens/public-api/angular_devkit/core/node/testing/index.api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
```ts
66

7-
import * as fs from 'fs';
7+
import * as fs from 'node:fs';
88
import { Observable } from 'rxjs';
99

1010
// @public

‎goldens/public-api/angular_devkit/schematics/index.api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { PathFragment } from '@angular-devkit/core';
1313
import { schema } from '@angular-devkit/core';
1414
import { strings } from '@angular-devkit/core';
1515
import { Subject } from 'rxjs';
16-
import { Url } from 'url';
16+
import { Url } from 'node:url';
1717
import { virtualFs } from '@angular-devkit/core';
1818

1919
// @public (undocumented)

‎goldens/public-api/angular_devkit/schematics/testing/index.api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { logging } from '@angular-devkit/core';
99
import { Observable } from 'rxjs';
1010
import { Path } from '@angular-devkit/core';
1111
import { PathFragment } from '@angular-devkit/core';
12-
import { Url } from 'url';
12+
import { Url } from 'node:url';
1313

1414
// @public (undocumented)
1515
export class SchematicTestRunner {

‎goldens/public-api/angular_devkit/schematics/tools/index.api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Path } from '@angular-devkit/core';
1313
import { PathFragment } from '@angular-devkit/core';
1414
import { schema } from '@angular-devkit/core';
1515
import { Subject } from 'rxjs';
16-
import { Url } from 'url';
16+
import { Url } from 'node:url';
1717
import { virtualFs } from '@angular-devkit/core';
1818

1919
// @public (undocumented)

‎modules/testing/builder/src/jasmine-helpers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { BuilderHandlerFn } from '@angular-devkit/architect';
1010
import { json } from '@angular-devkit/core';
11-
import { readFileSync } from 'fs';
11+
import { readFileSync } from 'node:fs';
1212
import { concatMap, count, firstValueFrom, take, timeout } from 'rxjs';
1313
import { BuilderHarness, BuilderHarnessExecutionResult } from './builder-harness';
1414
import { host } from './test-utils';

‎packages/angular/build/src/builders/dev-server/tests/behavior/build_translation_watch_spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/* eslint-disable max-len */
1010
import { concatMap, count, take, timeout } from 'rxjs';
11-
import { URL } from 'url';
11+
import { URL } from 'node:url';
1212
import { executeDevServer } from '../../index';
1313
import { describeServeBuilder } from '../jasmine-helpers';
1414
import { BASE_OPTIONS, BUILD_TIMEOUT, DEV_SERVER_BUILDER_INFO } from '../setup';

‎packages/angular/build/src/builders/dev-server/tests/behavior/serve-live-reload-proxies_spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
/* eslint-disable import/no-extraneous-dependencies */
1010
import { tags } from '@angular-devkit/core';
11-
import { createServer } from 'http';
11+
import { createServer } from 'node:http';
1212
import { createProxyServer } from 'http-proxy';
13-
import { AddressInfo } from 'net';
13+
import { AddressInfo } from 'node:net';
1414
import puppeteer, { Browser, Page } from 'puppeteer';
1515
import { count, debounceTime, finalize, switchMap, take, timeout } from 'rxjs';
1616
import { executeDevServer } from '../../index';

‎packages/angular/build/src/builders/dev-server/tests/options/port_spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import { URL } from 'url';
9+
import { URL } from 'node:url';
1010
import { executeDevServer } from '../../index';
1111
import { executeOnceAndFetch } from '../execute-fetch';
1212
import { describeServeBuilder } from '../jasmine-helpers';

‎packages/angular/build/src/builders/dev-server/tests/options/serve-path_spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import { URL } from 'url';
9+
import { URL } from 'node:url';
1010
import { executeDevServer } from '../../index';
1111
import { executeOnceAndFetch } from '../execute-fetch';
1212
import { describeServeBuilder } from '../jasmine-helpers';

‎packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export function createCompilerPlugin(
518518
const replacement = pluginOptions.fileReplacements?.[path.normalize(args.path)];
519519
if (replacement) {
520520
return {
521-
contents: await import('fs/promises').then(({ readFile }) =>
521+
contents: await import('node:fs/promises').then(({ readFile }) =>
522522
readFile(path.normalize(replacement)),
523523
),
524524
loader: 'json' as const,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /