Skip to content

Commit

Permalink
update version checks for v16
Browse files Browse the repository at this point in the history
  • Loading branch information
shrujalshah28 committed Oct 19, 2021
1 parent 3b40365 commit bc5cdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esm.ts
Expand Up @@ -54,10 +54,10 @@ export function createEsmHooks(tsNodeService: Service) {
});

// The hooks API changed in node version X so we need to check for backwards compatibility.
// TODO: When the new API is backported to v12, v14, v16, update these version checks accordingly.
// TODO: When the new API is backported to v12, v14, update these version checks accordingly.
const newHooksAPI =
versionGteLt(process.versions.node, '17.0.0') ||
versionGteLt(process.versions.node, '16.999.999', '17.0.0') ||
versionGteLt(process.versions.node, '16.20.0', '17.0.0') ||
versionGteLt(process.versions.node, '14.999.999', '15.0.0') ||
versionGteLt(process.versions.node, '12.999.999', '13.0.0');

Expand Down

0 comments on commit bc5cdab

Please sign in to comment.