Skip to content

Commit 29208d9

Browse files
chore(deps): update dependency @types/node to v20.17.16 (#3494)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
1 parent 709dc31 commit 29208d9

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.changeset/new-forks-cough.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/metro-service/src/asset/write.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
// https://github.com/react-native-community/cli/blob/716555851b442a83a1bf5e0db27b6226318c9a69/packages/cli-plugin-metro/src/commands/bundle/saveAssets.ts
22

33
import { info, warn } from "@rnx-kit/console";
4-
import * as fs from "fs";
5-
import * as path from "path";
4+
import * as fs from "node:fs";
5+
import * as path from "node:path";
66
import { filterPlatformAssetScales } from "./filter";
77
import type { AssetData, SaveAssetsPlugin } from "./types";
88

9-
function copy(
10-
src: string,
11-
dest: string,
12-
callback: (error: NodeJS.ErrnoException) => void
13-
): void {
9+
type CopyCallback = (error?: NodeJS.ErrnoException) => void;
10+
11+
function copy(src: string, dest: string, callback: CopyCallback): void {
1412
const destDir = path.dirname(dest);
15-
fs.mkdir(destDir, { recursive: true }, (err?) => {
13+
fs.mkdir(destDir, { recursive: true }, (err) => {
1614
if (err) {
1715
callback(err);
1816
return;
@@ -31,7 +29,7 @@ function copyAll(filesToCopy: Record<string, string>) {
3129

3230
info(`Copying ${queue.length} asset files`);
3331
return new Promise<void>((resolve, reject) => {
34-
const copyNext = (error?: NodeJS.ErrnoException) => {
32+
const copyNext: CopyCallback = (error) => {
3533
if (error) {
3634
reject(error);
3735
return;

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4976,11 +4976,11 @@ __metadata:
49764976
linkType: hard
49774977

49784978
"@types/node@npm:*":
4979-
version: 22.10.5
4980-
resolution: "@types/node@npm:22.10.5"
4979+
version: 22.10.10
4980+
resolution: "@types/node@npm:22.10.10"
49814981
dependencies:
49824982
undici-types: "npm:~6.20.0"
4983-
checksum: 10c0/6a0e7d1fe6a86ef6ee19c3c6af4c15542e61aea2f4cee655b6252efb356795f1f228bc8299921e82924e80ff8eca29b74d9dd0dd5cc1a90983f892f740b480df
4983+
checksum: 10c0/3425772d4513cd5dbdd87c00acda088113c03a97445f84f6a89744c60a66990b56c9d3a7213d09d57b6b944ae8ff45f985565e0c1846726112588e33a22dd12b
49844984
languageName: node
49854985
linkType: hard
49864986

@@ -4992,11 +4992,11 @@ __metadata:
49924992
linkType: hard
49934993

49944994
"@types/node@npm:^20.0.0":
4995-
version: 20.17.12
4996-
resolution: "@types/node@npm:20.17.12"
4995+
version: 20.17.16
4996+
resolution: "@types/node@npm:20.17.16"
49974997
dependencies:
49984998
undici-types: "npm:~6.19.2"
4999-
checksum: 10c0/340b65a11e4486e597163991532a08e525beee40f082cf73dc830c060426fa9ea8690a4e3931d91375e946816a884d6140d96e99ac048b51f280f21cc70d22ed
4999+
checksum: 10c0/50c589dd6a377238bc51b6fb5b8fc60ff6d688df0bde621d4a9fc59f480eb956cdf6d46052e1cb9536f150bc62e9194ddc733aa78b65e812155b4d3a32717de2
50005000
languageName: node
50015001
linkType: hard
50025002

0 commit comments

Comments
 (0)