Skip to content

Commit

Permalink
Declare 'extend' variable in docker.js
Browse files Browse the repository at this point in the history
This 'extend' variable is not being defined which is causing errors in node v20.
  • Loading branch information
gaberudy authored Jan 6, 2025
1 parent 8f6bfb8 commit 80babc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ var EventEmitter = require('events').EventEmitter,
Exec = require('./exec'),
util = require('./util'),
withSession = require('./session');
extend = util.extend;

var extend = util.extend;

var Docker = function(opts) {
if (!(this instanceof Docker)) return new Docker(opts);
Expand Down Expand Up @@ -1872,4 +1873,4 @@ Docker.Task = Task;
Docker.Node = Node;
Docker.Exec = Exec;

module.exports = Docker;
module.exports = Docker;

0 comments on commit 80babc6

Please sign in to comment.