From 84857e97b6733aa1b2ca3a134cbf3e05d39bf8ed Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2020 22:56:57 +0000 Subject: [PATCH 1/5] Bump lodash from 4.17.15 to 4.17.19 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19) Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 62502ff..c212cd8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "forge-cli-utils", - "version": "1.2.1", + "version": "1.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -752,9 +752,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "version": "4.17.19", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", + "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" }, "log-symbols": { "version": "3.0.0", From 947f9ae0a29f473ca98fa9985eb9bdc7093ded1a Mon Sep 17 00:00:00 2001 From: Simon Moreau Date: Wed, 30 Dec 2020 15:46:26 +0100 Subject: [PATCH 2/5] Add quote to variables that expand to paths --- src/forge-da.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/forge-da.js b/src/forge-da.js index fdbcc9e..a619c12 100755 --- a/src/forge-da.js +++ b/src/forge-da.js @@ -503,7 +503,7 @@ async function activityExists(activityId) { function _inventorActivityConfig(activityId, description, ownerId, bundleName, bundleAlias, engine, inputs, outputs) { const config = { - commandLine: [`$(engine.path)\\InventorCoreConsole.exe /al $(appbundles[${bundleName}].path)`], + commandLine: [`$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[${bundleName}].path)\"`], parameters: {}, description: description, engine: engine, @@ -537,7 +537,7 @@ function _inventorActivityConfig(activityId, description, ownerId, bundleName, b function _revitActivityConfig(activityId, description, ownerId, bundleName, bundleAlias, engine, inputs, outputs) { const config = { - commandLine: [`$(engine.path)\\revitcoreconsole.exe /al $(appbundles[${bundleName}].path)`], + commandLine: [`$(engine.path)\\revitcoreconsole.exe /al \"$(appbundles[${bundleName}].path)\"`], parameters: {}, description: description, engine: engine, @@ -549,7 +549,7 @@ function _revitActivityConfig(activityId, description, ownerId, bundleName, bund if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` $(args[${input.name}].path)`; + config.commandLine[0] += ` \"$(args[${input.name}].path\")`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -571,7 +571,7 @@ function _revitActivityConfig(activityId, description, ownerId, bundleName, bund function _autocadActivityConfig(activityId, description, ownerId, bundleName, bundleAlias, engine, inputs, outputs, script) { const config = { - commandLine: [`$(engine.path)\\accoreconsole.exe /al $(appbundles[${bundleName}].path)`], + commandLine: [`$(engine.path)\\accoreconsole.exe /al \"$(appbundles[${bundleName}].path)\"`], parameters: {}, description: description, engine: engine, @@ -583,7 +583,7 @@ function _autocadActivityConfig(activityId, description, ownerId, bundleName, bu if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` $(args[${input.name}].path)`; + config.commandLine[0] += ` \"$(args[${input.name}].path\")`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -604,7 +604,7 @@ function _autocadActivityConfig(activityId, description, ownerId, bundleName, bu config.settings = { script: script }; - config.commandLine[0] += ' /s $(settings[script].path)'; + config.commandLine[0] += ' /s \"$(settings[script].path)\"'; } return config; } From ac14b78085a76ac57887d4d5a4ee84cdbcaab1a2 Mon Sep 17 00:00:00 2001 From: Simon Moreau Date: Wed, 30 Dec 2020 17:15:19 +0100 Subject: [PATCH 3/5] fix quote issue in parameters --- src/forge-da.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/forge-da.js b/src/forge-da.js index a619c12..edb3e54 100755 --- a/src/forge-da.js +++ b/src/forge-da.js @@ -515,7 +515,7 @@ function _inventorActivityConfig(activityId, description, ownerId, bundleName, b if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` $(args[${input.name}].path)`; + config.commandLine[0] += ` \"$(args[${input.name}].path)\"`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -549,7 +549,7 @@ function _revitActivityConfig(activityId, description, ownerId, bundleName, bund if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` \"$(args[${input.name}].path\")`; + config.commandLine[0] += ` \"$(args[${input.name}].path)\"`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { @@ -583,7 +583,7 @@ function _autocadActivityConfig(activityId, description, ownerId, bundleName, bu if (inputs.length > 0 && Array.isArray(config.commandLine)) { config.commandLine[0] += ' /i'; for (const input of inputs) { - config.commandLine[0] += ` \"$(args[${input.name}].path\")`; + config.commandLine[0] += ` \"$(args[${input.name}].path)\"`; const param = config.parameters[input.name] = { verb: input.verb || 'get' }; for (const prop of Object.keys(input)) { if (input.hasOwnProperty(prop) && prop !== 'name') { From 305594d41650daddd50257eff50aadce7afdbd29 Mon Sep 17 00:00:00 2001 From: Petr Broz Date: Mon, 4 Jan 2021 13:08:03 +0100 Subject: [PATCH 4/5] Updated CI/CD badge in readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e242cbe..0e3cddb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # forge-cli-utils -[![build status](https://travis-ci.org/petrbroz/forge-cli-utils.svg?branch=master)](https://travis-ci.org/petrbroz/forge-cli-utils) +[![build status](https://travis-ci.com/petrbroz/forge-cli-utils.svg?branch=master)](https://travis-ci.com/petrbroz/forge-cli-utils) [![npm version](https://badge.fury.io/js/forge-cli-utils.svg)](https://badge.fury.io/js/forge-cli-utils) ![node](https://img.shields.io/node/v/forge-cli-utils.svg) ![npm downloads](https://img.shields.io/npm/dw/forge-cli-utils.svg) From 1f5a2dc2d3d678195e5317eba3f56b1b3fe6f656 Mon Sep 17 00:00:00 2001 From: Petr Broz Date: Mon, 4 Jan 2021 13:09:15 +0100 Subject: [PATCH 5/5] Bumped version to 1.3.1. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bc82072..d9f9661 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "forge-cli-utils", - "version": "1.3.0", + "version": "1.3.1", "description": "Command line tools for Autodesk Forge services.", "author": "Petr Broz ", "license": "MIT",