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:
Girish Ramakrishnan
2025-08-14 11:17:38 +05:30
parent d3b77c3be1
commit 12e073e8cf
202 changed files with 395 additions and 395 deletions
+3 -3
View File
@@ -24,14 +24,14 @@ exports = module.exports = {
removeDir,
};
const assert = require('assert'),
const assert = require('node:assert'),
BoxError = require('../boxerror.js'),
constants = require('../constants.js'),
debug = require('debug')('box:storage/filesystem'),
df = require('../df.js'),
fs = require('fs'),
fs = require('node:fs'),
mounts = require('../mounts.js'),
path = require('path'),
path = require('node:path'),
paths = require('../paths.js'),
safe = require('safetydance'),
shell = require('../shell.js')('filesystem'),
+2 -2
View File
@@ -23,13 +23,13 @@ exports = module.exports = {
injectPrivateFields,
};
const assert = require('assert'),
const assert = require('node:assert'),
async = require('async'),
BoxError = require('../boxerror.js'),
constants = require('../constants.js'),
debug = require('debug')('box:storage/gcs'),
GCS = require('@google-cloud/storage').Storage,
path = require('path'),
path = require('node:path'),
safe = require('safetydance'),
_ = require('../underscore.js');
+1 -1
View File
@@ -35,7 +35,7 @@ exports = module.exports = {
injectPrivateFields
};
const assert = require('assert'),
const assert = require('node:assert'),
BoxError = require('../boxerror.js');
function removePrivateFields(apiConfig) {
+2 -2
View File
@@ -23,10 +23,10 @@ exports = module.exports = {
injectPrivateFields
};
const assert = require('assert'),
const assert = require('node:assert'),
BoxError = require('../boxerror.js'),
debug = require('debug')('box:storage/noop'),
fs = require('fs');
fs = require('node:fs');
async function getAvailableSize(apiConfig) {
assert.strictEqual(typeof apiConfig, 'object');
+6 -6
View File
@@ -26,20 +26,20 @@ exports = module.exports = {
_chunk: chunk
};
const assert = require('assert'),
const assert = require('node:assert'),
async = require('async'),
BoxError = require('../boxerror.js'),
{ ConfiguredRetryStrategy } = require('@smithy/util-retry'),
constants = require('../constants.js'),
consumers = require('node:stream/consumers'),
crypto = require('crypto'),
crypto = require('node:crypto'),
debug = require('debug')('box:storage/s3'),
http = require('http'),
https = require('https'),
http = require('node:http'),
https = require('node:https'),
{ NodeHttpHandler } = require('@smithy/node-http-handler'),
{ PassThrough } = require('node:stream'),
path = require('path'),
{ Readable } = require('stream'),
path = require('node:path'),
{ Readable } = require('node:stream'),
{ S3, NoSuchKey, NoSuchBucket } = require('@aws-sdk/client-s3'),
safe = require('safetydance'),
{ Upload } = require('@aws-sdk/lib-storage'),