@appland/appmap 3.81.0 → 3.82.0
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 +12 -0
- package/built/cmds/open/openers.js +3 -22
- package/built/cmds/open/openers.js.map +1 -1
- package/built/cmds/open/showAppMap.js +10 -6
- package/built/cmds/open/showAppMap.js.map +1 -1
- package/built/html/appmap.js +50 -50
- package/built/html/appmap.js.map +3 -3
- package/built/html/sequenceDiagram.js +1 -1
- package/built/html/sequenceDiagram.js.map +2 -2
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [@appland/appmap-v3.82.0](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.81.0...@appland/appmap-v3.82.0) (2023-07-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fall back to browser when opening AppMap on Darwin in VSCode ([23147af](https://github.com/getappmap/appmap-js/commit/23147af419aaadd4f3123a065d9085757ee8db71)), closes [#1250](https://github.com/getappmap/appmap-js/issues/1250)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* upgrade @appland/models to 2.6.3 ([6e31f9c](https://github.com/getappmap/appmap-js/commit/6e31f9cc179ac0edfcde2861b937cd104ed4c687))
|
|
12
|
+
|
|
1
13
|
# [@appland/appmap-v3.81.0](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.80.2...@appland/appmap-v3.81.0) (2023-07-13)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -3,22 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.vscodeURL = exports.openInBrowser = exports.abspath = void 0;
|
|
7
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
7
8
|
const serveAndOpen_1 = require("../../lib/serveAndOpen");
|
|
8
|
-
const supports_hyperlinks_1 = __importDefault(require("supports-hyperlinks"));
|
|
9
9
|
const path_1 = require("path");
|
|
10
|
-
// See also: https://github.com/getappmap/scanner/pull/9/files#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1R1
|
|
11
|
-
function hyperlink(filePath, link) {
|
|
12
|
-
const OSC = '\u001B]';
|
|
13
|
-
const BEL = '\u0007';
|
|
14
|
-
const SEP = ';';
|
|
15
|
-
if (!supports_hyperlinks_1.default.stdout) {
|
|
16
|
-
return filePath;
|
|
17
|
-
}
|
|
18
|
-
return [OSC, '8', SEP, SEP, link, BEL, filePath, OSC, '8', SEP, SEP, BEL].join('');
|
|
19
|
-
}
|
|
20
10
|
function abspath(file) {
|
|
21
|
-
return (0, path_1.resolve)(
|
|
11
|
+
return (0, path_1.resolve)(node_process_1.default.cwd(), file);
|
|
22
12
|
}
|
|
23
13
|
exports.abspath = abspath;
|
|
24
14
|
async function openInBrowser(appMapFile, verifyInSubdir) {
|
|
@@ -29,13 +19,4 @@ function vscodeURL(appMapFile) {
|
|
|
29
19
|
return (0, path_1.join)('vscode://file/', abspath(appMapFile));
|
|
30
20
|
}
|
|
31
21
|
exports.vscodeURL = vscodeURL;
|
|
32
|
-
async function openInVSCode(appMapFile) {
|
|
33
|
-
console.log(hyperlink(appMapFile, vscodeURL(appMapFile)));
|
|
34
|
-
}
|
|
35
|
-
exports.openInVSCode = openInVSCode;
|
|
36
|
-
async function openInTool(appMapFile, toolId) {
|
|
37
|
-
const link = `${toolId}://open?file=${abspath(appMapFile)}`;
|
|
38
|
-
console.log(hyperlink(appMapFile, link));
|
|
39
|
-
}
|
|
40
|
-
exports.openInTool = openInTool;
|
|
41
22
|
//# sourceMappingURL=openers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openers.js","sourceRoot":"","sources":["../../../src/cmds/open/openers.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA4D;AAC5D
|
|
1
|
+
{"version":3,"file":"openers.js","sourceRoot":"","sources":["../../../src/cmds/open/openers.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAmC;AACnC,yDAA4D;AAC5D,+BAAqC;AAErC,SAAgB,OAAO,CAAC,IAAY;IAClC,OAAO,IAAA,cAAO,EAAC,sBAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAFD,0BAEC;AAEM,KAAK,UAAU,aAAa,CAAC,UAAkB,EAAE,cAAuB;IAC7E,MAAM,IAAA,iCAAkB,EAAC,UAAU,EAAE,cAAc,CAAC,CAAC;AACvD,CAAC;AAFD,sCAEC;AAED,SAAgB,SAAS,CAAC,UAAkB;IAC1C,OAAO,IAAA,WAAI,EAAC,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,8BAEC"}
|
|
@@ -3,17 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
6
7
|
const child_process_1 = require("child_process");
|
|
7
8
|
const userInteraction_1 = __importDefault(require("../userInteraction"));
|
|
8
9
|
const openers_1 = require("./openers");
|
|
9
10
|
async function showAppMap(appMapFile) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
function open() {
|
|
12
|
+
if (node_process_1.default.platform === 'darwin' && node_process_1.default.env.TERM_PROGRAM === 'vscode')
|
|
13
|
+
try {
|
|
14
|
+
(0, child_process_1.spawn)('code', [(0, openers_1.abspath)(appMapFile)]);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
catch (_a) { } // fallthrough
|
|
18
|
+
return (0, openers_1.openInBrowser)(appMapFile, false);
|
|
16
19
|
}
|
|
20
|
+
await open();
|
|
17
21
|
const { action } = await userInteraction_1.default.prompt({
|
|
18
22
|
type: 'list',
|
|
19
23
|
name: 'action',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showAppMap.js","sourceRoot":"","sources":["../../../src/cmds/open/showAppMap.ts"],"names":[],"mappings":";;;;;AAAA,iDAAsC;AACtC,yEAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"showAppMap.js","sourceRoot":"","sources":["../../../src/cmds/open/showAppMap.ts"],"names":[],"mappings":";;;;;AAAA,gEAAmC;AACnC,iDAAsC;AACtC,yEAAoC;AACpC,uCAAmD;AAEpC,KAAK,UAAU,UAAU,CAAC,UAAkB;IACzD,SAAS,IAAI;QACX,IAAI,sBAAO,CAAC,QAAQ,KAAK,QAAQ,IAAI,sBAAO,CAAC,GAAG,CAAC,YAAY,KAAK,QAAQ;YACxE,IAAI;gBACF,IAAA,qBAAK,EAAC,MAAM,EAAE,CAAC,IAAA,iBAAO,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACrC,OAAO;aACR;YAAC,WAAM,GAAE,CAAC,cAAc;QAC3B,OAAO,IAAA,uBAAa,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,IAAI,EAAE,CAAC;IAEb,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,yBAAE,CAAC,MAAM,CAAC;QACjC,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,iCAAiC;QAC1C,OAAO,EAAE,CAAC,UAAU,UAAU,EAAE,EAAE,MAAM,CAAC;KAC1C,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC/B,MAAM,UAAU,CAAC,UAAU,CAAC,CAAC;KAC9B;AACH,CAAC;AArBD,6BAqBC"}
|