machinepack-machines
Advanced tools
Comparing version 1.0.4 to 1.1.1
@@ -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" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62492
1686