Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(ext/node): Add missing node:path exports #25567

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ext/node/polyfills/path/_posix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ export function parse(path: string): ParsedPath {

return ret;
}

export const _makeLong = toNamespacedPath;

export default {
basename,
delimiter,
Expand All @@ -492,4 +495,5 @@ export default {
resolve,
sep,
toNamespacedPath,
_makeLong,
};
3 changes: 3 additions & 0 deletions ext/node/polyfills/path/_win32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ export function parse(path: string): ParsedPath {
return ret;
}

export const _makeLong = toNamespacedPath;

export default {
basename,
delimiter,
Expand All @@ -967,4 +969,5 @@ export default {
resolve,
sep,
toNamespacedPath,
_makeLong,
};
1 change: 1 addition & 0 deletions ext/node/polyfills/path/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const {
resolve,
sep,
toNamespacedPath,
_makeLong,
} = path;
export default path;
export * from "ext:deno_node/path/common.ts";
Expand Down
3 changes: 3 additions & 0 deletions ext/node/polyfills/path/posix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const {
resolve,
sep,
toNamespacedPath,
_makeLong,
} = path.posix;

export const posix = path.posix;
export const win32 = path.win32;
export default path.posix;
3 changes: 3 additions & 0 deletions ext/node/polyfills/path/win32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const {
resolve,
sep,
toNamespacedPath,
_makeLong,
} = path.win32;

export const posix = path.posix;
export const win32 = path.win32;
export default path.win32;