fix: Stop using prefixed core modules from nodejs (no-changelog) (#4813)

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.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-12-05 11:41:30 +01:00 committed by GitHub
parent 184b3a3ea7
commit 46c75b9fd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {