use node: prefix for requires
mostly because code is being autogenerated by all the AI stuff using this prefix. it's also used in the stack trace.
This commit is contained in:
+3
-3
@@ -22,13 +22,13 @@ exports = module.exports = {
|
||||
detectIP
|
||||
};
|
||||
|
||||
const assert = require('assert'),
|
||||
const assert = require('node:assert'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
constants = require('./constants.js'),
|
||||
cron = require('./cron.js'),
|
||||
fs = require('fs'),
|
||||
fs = require('node:fs'),
|
||||
ipaddr = require('./ipaddr.js'),
|
||||
path = require('path'),
|
||||
path = require('node:path'),
|
||||
paths = require('./paths.js'),
|
||||
safe = require('safetydance'),
|
||||
settings = require('./settings.js'),
|
||||
|
||||
Reference in New Issue
Block a user