jsxbin
Advanced tools
Comparing version 1.7.0 to 2.0.0
16
index.js
@@ -9,4 +9,3 @@ #!/usr/bin/env node | ||
const createDir = require( './src/createDir' ) | ||
const generateScriptFile = require( './src/generateScriptFile' ) | ||
const doScriptFile = require( './src/doScriptFile' ) | ||
const convertScripts = require( './src/convertScripts' ) | ||
@@ -28,7 +27,6 @@ log.level = '1' | ||
* in the same location as the input file(s) | ||
* @param {string|string[]} [customESTKPaths] List of paths to ESTK executable. | ||
* @return {Promise} A Promise that returns an array of file paths to the | ||
* converted files | ||
*/ | ||
function jsxbin( inputPaths, outputPath, customESTKPaths ) { | ||
function jsxbin( inputPaths, outputPath ) { | ||
if ( !Array.isArray( inputPaths ) && typeof inputPaths === 'object' ) { | ||
@@ -38,3 +36,2 @@ const options = inputPaths | ||
outputPath = options.output | ||
customESTKPaths = options.estk | ||
} | ||
@@ -44,3 +41,3 @@ | ||
log.debug( 'Current dir', process.cwd() ) | ||
log.debug( 'arguments', { inputPaths, outputPath, customESTKPaths }) | ||
log.debug( 'arguments', { inputPaths, outputPath }) | ||
@@ -68,7 +65,4 @@ // Store input and output globaly, because they need to be accesible later | ||
// Generate a script file that will convert input into output | ||
.then( () => generateScriptFile( input, output ) ) | ||
// Execute the script file in Extendscript Toolkit | ||
.then( scriptFile => doScriptFile( scriptFile, customESTKPaths ) ) | ||
// Convert the script using the resources from the VSCode extension. | ||
.then( () => convertScripts( input, output ) ) | ||
.then( () => { | ||
@@ -75,0 +69,0 @@ log.info( 'Finished!' ) |
{ | ||
"name": "jsxbin", | ||
"version": "1.7.0", | ||
"version": "2.0.0", | ||
"description": "Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit", | ||
@@ -19,3 +19,4 @@ "keywords": [ | ||
"command.js", | ||
"src/*" | ||
"src/*", | ||
"esdebugger-core/*" | ||
], | ||
@@ -39,5 +40,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^3.19.0", | ||
"eslint": "^6.5.1", | ||
"eslint-config-runegan": "^1.0.1", | ||
"mocha": "^3.4.1", | ||
"mocha": "^6.2.1", | ||
"mz": "^2.6.0", | ||
@@ -44,0 +45,0 @@ "rimraf": "^2.6.1" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
13275050
94
24903
1
1