Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docker-mock

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-mock - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

lib/middleware.js

@@ -243,3 +243,3 @@ var _ = require('lodash');

return function (req, res, next) {
var name = [req.params.namespace, req.params.repository].filter(exists).join('/');
var name = [req.params.registry, req.params.namespace, req.params.repository].filter(exists).join('/');
var imageId = tags[name];

@@ -246,0 +246,0 @@ if (!imageId) {

{
"name": "docker-mock",
"version": "0.0.6",
"version": "0.0.7",
"description": "Mock for Docker",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -293,7 +293,7 @@ var dockerMock = require('../lib/index');

it('should push a private image', function (done) {
docker.getImage('testImage')
docker.getImage(this.repo)
.push({}, handlePushStream(done));
});
it('should not push a private image if it doesnt exist', function (done) {
docker.getImage('nonexistantImage')
docker.getImage('private.com/hey/nonexistantImage')
.push({}, handlePushStream(function (err) {

@@ -300,0 +300,0 @@ err.statusCode.should.equal(404);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc