Skip to content

Commit

Permalink
fix: node 22 package json loader
Browse files Browse the repository at this point in the history
- fix call to deserializePackageJSON()
  • Loading branch information
faulpeltz committed Oct 22, 2024
1 parent b08abb9 commit 4fbeb43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/node.v22.10.0.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ index b0210e4d96..fb1e265a1f 100644
// Only set cache when `internalModuleStat(internalFsBinding, filename)` succeeds.
statCache.set(filename, result);
diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
index 9a9dcebb79..9f00ec6a85 100644
index 9a9dcebb79..01fceafc31 100644
--- node/lib/internal/modules/package_json_reader.js
+++ node/lib/internal/modules/package_json_reader.js
@@ -80,14 +80,19 @@ function deserializePackageJSON(path, contents) {
Expand All @@ -371,8 +371,8 @@ index 9a9dcebb79..9f00ec6a85 100644
+ json['name'],
+ json['main'],
+ json['type'],
+ json['exports'],
+ json['imports'],
+ json['exports'],
+ ]);
+ } else {
+ return deserializePackageJSON(jsonPath, undefined);
Expand Down

0 comments on commit 4fbeb43

Please sign in to comment.