diff --git a/lib/data-stream.js b/lib/data-stream.js index 3535d31..0b4f165 100644 --- a/lib/data-stream.js +++ b/lib/data-stream.js @@ -1,7 +1,7 @@ /*global module, process*/ var Buffer = require('safe-buffer').Buffer; -var Stream = require('stream'); -var util = require('util'); +var Stream = require('node:stream'); +var util = require('node:util'); function DataStream(data) { this.buffer = null; diff --git a/lib/sign-stream.js b/lib/sign-stream.js index 6a7ee42..cd63756 100644 --- a/lib/sign-stream.js +++ b/lib/sign-stream.js @@ -2,9 +2,9 @@ var Buffer = require('safe-buffer').Buffer; var DataStream = require('./data-stream'); var jwa = require('jwa'); -var Stream = require('stream'); +var Stream = require('node:stream'); var toString = require('./tostring'); -var util = require('util'); +var util = require('node:util'); function base64url(string, encoding) { return Buffer diff --git a/lib/tostring.js b/lib/tostring.js index f5a49a3..04a2b7a 100644 --- a/lib/tostring.js +++ b/lib/tostring.js @@ -1,5 +1,5 @@ /*global module*/ -var Buffer = require('buffer').Buffer; +var Buffer = require('node:buffer').Buffer; module.exports = function toString(obj) { if (typeof obj === 'string') diff --git a/lib/verify-stream.js b/lib/verify-stream.js index 39f7c73..93f8f6c 100644 --- a/lib/verify-stream.js +++ b/lib/verify-stream.js @@ -2,9 +2,9 @@ var Buffer = require('safe-buffer').Buffer; var DataStream = require('./data-stream'); var jwa = require('jwa'); -var Stream = require('stream'); +var Stream = require('node:stream'); var toString = require('./tostring'); -var util = require('util'); +var util = require('node:util'); var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; function isObject(thing) {