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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user