@appland/appmap 3.17.0 → 3.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@appland/appmap-v3.17.1](https://github.com/applandinc/appmap-js/compare/@appland/appmap-v3.17.0...@appland/appmap-v3.17.1) (2022-01-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Handle spaces in CommandStruct.args ([30c65cc](https://github.com/applandinc/appmap-js/commit/30c65cc710f8d363c94f24ad697617452d4c5192))
7
+
1
8
  # [@appland/appmap-v3.17.0](https://github.com/applandinc/appmap-js/compare/@appland/appmap-v3.16.1...@appland/appmap-v3.17.0) (2022-01-27)
2
9
 
3
10
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/appmap",
3
- "version": "3.17.0",
3
+ "version": "3.17.1",
4
4
  "description": "",
5
5
  "bin": "built/src/cli.js",
6
6
  "publishConfig": {
@@ -4,9 +4,18 @@ const process_1 = require("process");
4
4
  class CommandStruct {
5
5
  constructor(program, args, path, environment = {}) {
6
6
  this.program = program;
7
- this.args = args;
8
7
  this.path = path;
9
8
  this.environment = Object.assign(Object.assign({}, process_1.env), environment);
9
+ this.args = args.map((a) => {
10
+ if (!a.includes(' ')) {
11
+ return a;
12
+ }
13
+ // There shouldn't be a need to embed quotes, so raise an error if the caller tries.
14
+ if (a.includes('"')) {
15
+ throw new Error("Don't embed quotes in args");
16
+ }
17
+ return `"${a}"`;
18
+ });
10
19
  }
11
20
  toString() {
12
21
  return [this.program].concat(this.args).join(' ');
@@ -1 +1 @@
1
- {"version":3,"file":"commandStruct.js","sourceRoot":"","sources":["../../../../src/cmds/agentInstaller/commandStruct.ts"],"names":[],"mappings":";;AACA,qCAA8B;AAE9B,MAAqB,aAAa;IAGhC,YACW,OAAe,EACf,IAAuB,EACvB,IAAc,EACvB,cAAiC,EAAE;QAH1B,YAAO,GAAP,OAAO,CAAQ;QACf,SAAI,GAAJ,IAAI,CAAmB;QACvB,SAAI,GAAJ,IAAI,CAAU;QAGvB,IAAI,CAAC,WAAW,mCAAQ,aAAG,GAAK,WAAW,CAAE,CAAC;IAChD,CAAC;IAED,QAAQ;QACN,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;CACF;AAfD,gCAeC"}
1
+ {"version":3,"file":"commandStruct.js","sourceRoot":"","sources":["../../../../src/cmds/agentInstaller/commandStruct.ts"],"names":[],"mappings":";;AACA,qCAA8B;AAE9B,MAAqB,aAAa;IAIhC,YACW,OAAe,EACxB,IAAuB,EACd,IAAc,EACvB,cAAiC,EAAE;QAH1B,YAAO,GAAP,OAAO,CAAQ;QAEf,SAAI,GAAJ,IAAI,CAAU;QAGvB,IAAI,CAAC,WAAW,mCAAQ,aAAG,GAAK,WAAW,CAAE,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACpB,OAAO,CAAC,CAAC;aACV;YAED,oFAAoF;YACpF,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBACnB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;aAC/C;YACD,OAAO,IAAI,CAAC,GAAG,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;CACF;AA3BD,gCA2BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/appmap",
3
- "version": "3.17.0",
3
+ "version": "3.17.1",
4
4
  "description": "",
5
5
  "bin": "built/src/cli.js",
6
6
  "publishConfig": {