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

machinepack-machines

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machinepack-machines - npm Package Compare versions

Comparing version 1.0.4 to 1.1.1

machines/initialize-machinepack.js

10

machines/parse-machinepack-metadata.js

@@ -160,7 +160,11 @@ module.exports = {

// Default variableName to friendlyName
// (but strip any weird characters first and capitalize the first letter)
// Default variableName to friendlyName, then mutate it a bit:
machinepack.variableName = machinepack.friendlyName;
// strip stuff wrapped in parentheses
machinepack.variableName = machinepack.variableName.replace(/\([^\(\)]*\)/g, '');
// strip any weird characters
machinepack.variableName = require('machinepack-javascript').convertToEcmascriptCompatibleVarname({
string: machinepack.friendlyName
string: machinepack.variableName
}).execSync();
// capitalize the first letter
machinepack.variableName = machinepack.variableName[0].toUpperCase() + machinepack.variableName.slice(1);

@@ -167,0 +171,0 @@

module.exports = {
friendlyName: 'Read machine file',
description: 'Read and parse machine file located at the specified path.',
description: 'Read machine file located at the specified path into a JavaScript string.',
extendedDescription: '',

@@ -5,0 +5,0 @@ inputs: {

{
"name": "machinepack-machines",
"version": "1.0.4",
"version": "1.1.1",
"description": "Work with machines and machinepacks.",

@@ -35,3 +35,2 @@ "scripts": {

"list-machines",
"initialize",
"run-machine",

@@ -45,5 +44,6 @@ "read-machine-file",

"parse-machinepack-metadata",
"parse-machine-from-js"
"parse-machine-from-js",
"initialize-machinepack"
]
}
}
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