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

machinepack

Package Overview
Dependencies
Maintainers
5
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machinepack - npm Package Compare versions

Comparing version 2.2.7 to 2.2.9

41

bin/machinepack-add.js

@@ -17,3 +17,5 @@ #!/usr/bin/env node

Machinepacks.promptAboutNewMachine().exec({
Machinepacks.promptAboutNewMachine({
identity: program.args[0]
}).exec({
error: function (err) {

@@ -24,19 +26,40 @@ console.error('Unexpected error occurred:\n', err);

Machinepacks.addMachine({
var newMachineMetadata = {
machinepackRootPath: process.cwd(),
identity: answers.identity,
friendlyName: answers.friendlyName,
description: answers.description,
extendedDescription: answers.extendedDescription,
description: (function (){
if (!answers.description) return undefined;
return answers.description;
})(),
extendedDescription: (function (){
if (!answers.extendedDescription) return undefined;
return answers.extendedDescription;
})(),
inputs: {},
defaultExit: 'success',
exits: {
error: {
description: 'Unexpected error occurred.'
},
success: {
variableName: 'result',
description: 'Done.'
}
},
}).exec({
};
if (typeof answers.defaultExit !== 'undefined') {
newMachineMetadata.defaultExit = answers.defaultExit;
}
if (typeof answers.idempotent !== 'undefined') {
newMachineMetadata.idempotent = answers.idempotent;
}
if (typeof answers.sync !== 'undefined') {
newMachineMetadata.sync = answers.sync;
}
if (typeof answers.cacheable !== 'undefined') {
newMachineMetadata.cacheable = answers.cacheable;
}
if (typeof answers.moreInfoUrl !== 'undefined') {
newMachineMetadata.moreInfoUrl = answers.moreInfoUrl;
}
Machinepacks.addMachine(newMachineMetadata).exec({
error: function (err) {

@@ -43,0 +66,0 @@ console.error('Error generating new machine:\n', err);

{
"name": "machinepack",
"version": "2.2.7",
"version": "2.2.9",
"description": "CLI tool for working with machinepacks and their machines.",

@@ -48,3 +48,3 @@ "bin": {

"machinepack-fs": "^1.6.0",
"machine": "^3.0.0",
"machine": "^4.0.0",
"chalk": "^0.5.1",

@@ -51,0 +51,0 @@ "machinepack-machines": "^3.0.9",

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