New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ibm-functions/shell-local-plugin

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ibm-functions/shell-local-plugin - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

2

package.json
{
"name": "@ibm-functions/shell-local-plugin",
"version": "0.0.21",
"version": "0.0.22",
"description": "An IBM Cloud Functions Shell plugin that lets users run and debug actions locally in a docker container",

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

@@ -25,3 +25,3 @@ /*

{ kindToExtension } = require('./kinds'),
docker = new Docker(),
docker = new Docker({ socketPath: '/var/run/docker.sock' }),
$ = require('jquery'),

@@ -33,2 +33,8 @@ rt = require('requestretry'),

const promisifyStream = stream => new Promise((resolve, reject) => {
stream.on('data', data => console.log(data.toString()))
stream.on('end', resolve)
stream.on('error', reject)
})
debug('modules loaded')

@@ -389,2 +395,4 @@

debug('using image', image)
// separate image name and tag. tag is always 'latest'.
if(image.indexOf(':') !== -1) image = image.substring(0, image.indexOf(':'));

@@ -399,3 +407,7 @@ debug('checking to see if the image already exists locally')

appendIncreContent(`Pulling image (one-time init)`, spinnerDiv);
return Promise.all([image, repl.qexec(`! docker pull ${image}`)]);
return Promise.all([image,
docker.image.create({}, {fromImage: image, tag:'latest'})
.then(stream => promisifyStream(stream))
.then(() => docker.image.get(image).status())
]);
}

@@ -406,7 +418,7 @@ }

if(!Array.isArray(d)){
debug('skipping docker create')
debug('skipping docker container create')
return Promise.resolve(d);
}
else{
debug('docker create')
debug('docker container create')
return docker.container.create(Object.assign({Image: d[0]}, dockerConfig))

@@ -413,0 +425,0 @@ }

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