@appsemble/cli 0.19.11 → 0.19.15

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.
@@ -1,4 +1,3 @@
1
- import { login } from '../lib/authentication';
1
+ export { login as handler } from '../lib/authentication';
2
2
  export declare const command = "login";
3
3
  export declare const description = "Save OAuth2 client credentials in the key chain for future sessions on this machine.";
4
- export declare const handler: typeof login;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handler = exports.description = exports.command = void 0;
4
- const authentication_1 = require("../lib/authentication");
3
+ exports.description = exports.command = exports.handler = void 0;
4
+ var authentication_1 = require("../lib/authentication");
5
+ Object.defineProperty(exports, "handler", { enumerable: true, get: function () { return authentication_1.login; } });
5
6
  exports.command = 'login';
6
7
  exports.description = 'Save OAuth2 client credentials in the key chain for future sessions on this machine.';
7
- exports.handler = authentication_1.login;
8
8
  //# sourceMappingURL=login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":";;;AAAA,0DAA8C;AAEjC,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,WAAW,GACtB,sFAAsF,CAAC;AAE5E,QAAA,OAAO,GAAG,sBAAK,CAAC"}
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":";;;AAAA,wDAAyD;AAAhD,yGAAA,KAAK,OAAW;AAEZ,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,WAAW,GACtB,sFAAsF,CAAC"}
@@ -1,4 +1,3 @@
1
- import { remove } from '../lib/authentication';
1
+ export { remove as handler } from '../lib/authentication';
2
2
  export declare const command = "logout";
3
3
  export declare const description = "Remove OAuth2 client credentials from the key chain using an interactive prompt. Beware this will not revoke them.";
4
- export declare const handler: typeof remove;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handler = exports.description = exports.command = void 0;
4
- const authentication_1 = require("../lib/authentication");
3
+ exports.description = exports.command = exports.handler = void 0;
4
+ var authentication_1 = require("../lib/authentication");
5
+ Object.defineProperty(exports, "handler", { enumerable: true, get: function () { return authentication_1.remove; } });
5
6
  exports.command = 'logout';
6
7
  exports.description = 'Remove OAuth2 client credentials from the key chain using an interactive prompt. Beware this will not revoke them.';
7
- exports.handler = authentication_1.remove;
8
8
  //# sourceMappingURL=logout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logout.js","sourceRoot":"","sources":["../../src/commands/logout.ts"],"names":[],"mappings":";;;AAAA,0DAA+C;AAElC,QAAA,OAAO,GAAG,QAAQ,CAAC;AACnB,QAAA,WAAW,GACtB,oHAAoH,CAAC;AAE1G,QAAA,OAAO,GAAG,uBAAM,CAAC"}
1
+ {"version":3,"file":"logout.js","sourceRoot":"","sources":["../../src/commands/logout.ts"],"names":[],"mappings":";;;AAAA,wDAA0D;AAAjD,yGAAA,MAAM,OAAW;AAEb,QAAA,OAAO,GAAG,QAAQ,CAAC;AACnB,QAAA,WAAW,GACtB,oHAAoH,CAAC"}
@@ -1,21 +1,17 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.printAxiosError = void 0;
7
- const vfile_location_1 = __importDefault(require("vfile-location"));
8
4
  const yaml_1 = require("yaml");
9
5
  function printAxiosError(filename, yaml, errors) {
10
- const doc = yaml_1.parseDocument(yaml);
11
- const { toPoint } = vfile_location_1.default(yaml);
6
+ const lineCounter = new yaml_1.LineCounter();
7
+ const doc = yaml_1.parseDocument(yaml, { lineCounter });
12
8
  return errors
13
9
  .map((error) => {
14
10
  const node = doc.getIn(error.path, true);
15
11
  let result = filename;
16
12
  if (yaml_1.isNode(node)) {
17
- const { column, line } = toPoint(node.range[0]);
18
- result += `:${line}:${column}`;
13
+ const { col, line } = lineCounter.linePos(node.range[0]);
14
+ result += `:${line}:${col}`;
19
15
  }
20
16
  return `${result} ${error.message}`;
21
17
  })
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/lib/output.ts"],"names":[],"mappings":";;;;;;AACA,oEAAsC;AACtC,+BAA6C;AAE7C,SAAgB,eAAe,CAAC,QAAgB,EAAE,IAAY,EAAE,MAAyB;IACvF,MAAM,GAAG,GAAG,oBAAa,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,EAAE,OAAO,EAAE,GAAG,wBAAQ,CAAC,IAAI,CAAC,CAAC;IAEnC,OAAO,MAAM;SACV,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,IAAI,MAAM,GAAG,QAAQ,CAAC;QACtB,IAAI,aAAM,CAAC,IAAI,CAAC,EAAE;YAChB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAChD,MAAM,IAAI,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;SAChC;QACD,OAAO,GAAG,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAfD,0CAeC"}
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/lib/output.ts"],"names":[],"mappings":";;;AACA,+BAA0D;AAE1D,SAAgB,eAAe,CAAC,QAAgB,EAAE,IAAY,EAAE,MAAyB;IACvF,MAAM,WAAW,GAAG,IAAI,kBAAW,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,oBAAa,CAAC,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;IAEjD,OAAO,MAAM;SACV,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,IAAI,MAAM,GAAG,QAAQ,CAAC;QACtB,IAAI,aAAM,CAAC,IAAI,CAAC,EAAE;YAChB,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,MAAM,IAAI,IAAI,IAAI,IAAI,GAAG,EAAE,CAAC;SAC7B;QACD,OAAO,GAAG,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAfD,0CAeC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/cli",
3
- "version": "0.19.11",
3
+ "version": "0.19.15",
4
4
  "description": "The CLI for developing with Appsemble apps and blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -32,9 +32,9 @@
32
32
  "test": "jest"
33
33
  },
34
34
  "dependencies": {
35
- "@appsemble/node-utils": "0.19.11",
36
- "@appsemble/types": "0.19.11",
37
- "@appsemble/utils": "0.19.11",
35
+ "@appsemble/node-utils": "0.19.15",
36
+ "@appsemble/types": "0.19.15",
37
+ "@appsemble/utils": "0.19.15",
38
38
  "@fortawesome/fontawesome-common-types": "^0.2.0",
39
39
  "axios": "^0.23.0",
40
40
  "chalk": "^4.0.0",
@@ -53,13 +53,12 @@
53
53
  "ts-json-schema-generator": "^0.95.0",
54
54
  "type-fest": "^2.0.0",
55
55
  "typescript": "~4.3.0",
56
- "vfile-location": "^3.0.0",
57
56
  "webpack": "^5.0.0",
58
57
  "yaml": "^2.0.0-8",
59
58
  "yargs": "^17.0.0"
60
59
  },
61
60
  "devDependencies": {
62
- "@appsemble/types": "0.19.11",
61
+ "@appsemble/types": "0.19.15",
63
62
  "@types/concat-stream": "^1.0.0",
64
63
  "@types/fs-extra": "^9.0.0",
65
64
  "@types/inquirer": "^8.0.0",