Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node: prefix #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/data-stream.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions lib/sign-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/tostring.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
4 changes: 2 additions & 2 deletions lib/verify-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down