@appsemble/cli 0.19.11 → 0.19.12
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/dist/lib/output.js +4 -8
- package/dist/lib/output.js.map +1 -1
- package/package.json +5 -6
package/dist/lib/output.js
CHANGED
|
@@ -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
|
|
11
|
-
const
|
|
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 {
|
|
18
|
-
result += `:${line}:${
|
|
13
|
+
const { col, line } = lineCounter.linePos(node.range[0]);
|
|
14
|
+
result += `:${line}:${col}`;
|
|
19
15
|
}
|
|
20
16
|
return `${result} ${error.message}`;
|
|
21
17
|
})
|
package/dist/lib/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/lib/output.ts"],"names":[],"mappings":"
|
|
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.
|
|
3
|
+
"version": "0.19.12",
|
|
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.
|
|
36
|
-
"@appsemble/types": "0.19.
|
|
37
|
-
"@appsemble/utils": "0.19.
|
|
35
|
+
"@appsemble/node-utils": "0.19.12",
|
|
36
|
+
"@appsemble/types": "0.19.12",
|
|
37
|
+
"@appsemble/utils": "0.19.12",
|
|
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.
|
|
61
|
+
"@appsemble/types": "0.19.12",
|
|
63
62
|
"@types/concat-stream": "^1.0.0",
|
|
64
63
|
"@types/fs-extra": "^9.0.0",
|
|
65
64
|
"@types/inquirer": "^8.0.0",
|