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

dogerode

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dogerode - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

43

index.js

@@ -18,3 +18,3 @@ var Dogstatsy = require('dogstatsy');

reportTiming({
path: options.path,
path: filterPath(options.path),
method: options.method,

@@ -31,2 +31,41 @@ socketPath: modem.socketPath,

}
}
}
var dockerNouns = [
'images',
'insert',
'json',
'history',
'push',
'tag',
'containers',
'top',
'changes',
'export',
'start',
'commit',
'stop',
'restart',
'kill',
'resize',
'attach',
'copy',
'create',
'auth',
'build',
'search',
'info',
'events',
];
var isDockerNoun = new RegExp(dockerNouns.join('|'));
function filterPath (path) {
return '/' + path
.split('?')[0] //ignore query string
.split('/')
.filter(function (fragment) {
return isDockerNoun.test(fragment);
})
.join('/');
}

2

package.json
{
"name": "dogerode",
"version": "0.0.1",
"version": "0.0.2",
"description": "DogStatsD shim for dockerode",

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

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