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

barque

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

barque - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "barque",
"version": "0.0.5",
"version": "0.0.6",
"description": "barque CLI",

@@ -5,0 +5,0 @@ "bin": {

@@ -16,5 +16,20 @@ function buildImageName(settings, version) {

}
function buildCMD(image, npmToken, envMode) {
function buildPlatform(env) {
let platform = "linux/amd64"
try {
if (env.platform) {
platform = env.platform
}
} catch(e) {
console.log('error accessing platform key from env')
console.log(env);
}
return `--platform=${platform}`
}
function buildCMD(image, env, npmToken, envMode) {
let args = buildArgs(npmToken, envMode)
let cmd = `docker build -t ${image}`
let platform = buildPlatform(env)
let cmd = `docker build ${platform} -t ${image}`
if (args) {

@@ -26,4 +41,4 @@ cmd += " " + args

}
async function build(tb, image, npmToken, envMode) {
let cmd = buildCMD(image, npmToken, envMode)
async function build(tb, image, settings, npmToken, envMode) {
let cmd = buildCMD(image, settings, npmToken, envMode)
tb.print.info(cmd)

@@ -41,5 +56,5 @@ let output = await tb.system.run(cmd)

async function dockerPackage(tb, version, settings, npmToken, envMode) {
async function dockerPackage(tb, version, settings, env, npmToken, envMode) {
let image = buildImageName(settings, version)
await build(tb, image, npmToken, envMode)
await build(tb, image, env, npmToken, envMode)
return image

@@ -46,0 +61,0 @@ }

@@ -46,3 +46,3 @@ const verifyAcceptedBranch = require('./branch')

await verifyAcceptedBranch(tb, mode, env)
let image = await dockerBuild(tb, version, settings, npmToken, mode)
let image = await dockerBuild(tb, version, settings, env, npmToken, mode)
if (!skipDockerPush) {

@@ -49,0 +49,0 @@ await dockerPush(tb, image)

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