Skip to content

Commit

Permalink
fix: Stop using prefixed core modules from nodejs (no-changelog) (#4813)
Browse files Browse the repository at this point in the history
fix: stop using prefixed core modules from nodejs (no-changelog)

Starting node 18, there are some core modules that only work with the `node:` prefix, like `node:test`. It's very likely that nodejs will switch to prefix-only core modules in the next versions as un-prefixed core modules are susceptible to supply-chain attacks.
  • Loading branch information
netroy authored Dec 5, 2022
1 parent 184b3a3 commit 46c75b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/DirectoryLoader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'node:path';
import { readFile } from 'node:fs/promises';
import * as path from 'path';
import { readFile } from 'fs/promises';
import glob from 'fast-glob';
import { jsonParse, KnownNodesAndCredentials, LoggerProxy as Logger } from 'n8n-workflow';
import type {
Expand Down

0 comments on commit 46c75b9

Please sign in to comment.