Skip to content

Commit

Permalink
major bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Oct 11, 2023
1 parent 428f22a commit 1848635
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
1 change: 1 addition & 0 deletions lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Docker.prototype.createContainer = function(opts, callback) {
statusCodes: {
200: true, // unofficial, but proxies may return it
201: true,
400: 'bad parameter',
404: 'no such container',
406: 'impossible to attach',
500: 'server error'
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "3.3.5",
"version": "4.0.0",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand All @@ -16,7 +16,7 @@
],
"dependencies": {
"@balena/dockerignore": "^1.0.2",
"docker-modem": "^3.0.0",
"docker-modem": "^5.0.0",
"tar-fs": "~2.0.1"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions test/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ describe("#container", function() {
it("should put an archive inside the container", function(done) {
var container = docker.getContainer(testContainer);

function handler(err, data) {
function handler(err) {
expect(err).to.be.null;
expect(data).to.be.ok;
done();
}

Expand Down
1 change: 0 additions & 1 deletion test/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ describe("#docker", function() {
expect(container).to.be.ok;

container.remove(function(err, data) {
console.log(data)
expect(err).to.be.null;
done();
});
Expand Down
3 changes: 1 addition & 2 deletions test/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ describe("#plugin", function() {
this.timeout(15000);
var plugin = docker.getPlugin('sshfs');

function handler(err, data) {
function handler(err) {
expect(err).to.be.null;
expect(data).to.be.ok;
done();
}

Expand Down
6 changes: 2 additions & 4 deletions test/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ describe("#swarm", function() {
it("should update secret", function(done) {
this.timeout(15000);

function handler(err, data) {
function handler(err) {
expect(err).to.be.null;
expect(data).to.be.ok;
done();
}
var opts = {
Expand Down Expand Up @@ -180,9 +179,8 @@ describe("#swarm", function() {
it("should update config", function(done) {
this.timeout(15000);

function handler(err, data) {
function handler(err) {
expect(err).to.be.null;
expect(data).to.be.ok;
done();
}
var opts = {
Expand Down

0 comments on commit 1848635

Please sign in to comment.