Skip to content

Commit

Permalink
Add node: prefix in require for built-in modules
Browse files Browse the repository at this point in the history
PR-URL: #215
  • Loading branch information
tshemsedinov committed Feb 21, 2023
1 parent 6e50451 commit fbd6917
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion metalog.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EventEmitter = require('events');
import EventEmitter = require('node:events');

interface LoggerOptions {
path: string;
Expand Down
10 changes: 5 additions & 5 deletions metalog.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

const fs = require('fs');
const fs = require('node:fs');
const fsp = fs.promises;
const path = require('path');
const util = require('util');
const events = require('events');
const readline = require('readline');
const path = require('node:path');
const util = require('node:util');
const events = require('node:events');
const readline = require('node:readline');
const metautil = require('metautil');
const concolor = require('concolor');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/.*rc\" \"**/*.ts\""
},
"engines": {
"node": "14 || 16 || 18 || 19"
"node": "^14.18 || 16 || 18 || 19"
},
"dependencies": {
"concolor": "^1.0.4",
Expand Down

0 comments on commit fbd6917

Please sign in to comment.