Skip to content

Commit 24fe420

Browse files
committed
Squash-merge #38 (branch name: trace-mapping)
commit 990c03d Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 14:53:52 2022 -0400 clean up TODOs commit 50c71dd Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 14:30:37 2022 -0400 re-add browser-source-map-support so that legacy stuff that tries to get it from us will work commit 944a35d Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 13:53:13 2022 -0400 fix commit e150661 Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 13:22:55 2022 -0400 fix commit 69893db Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 01:14:27 2022 -0400 fix? commit 3a68f09 Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 00:43:42 2022 -0400 fix tests on node 12 and 14 commit da3e63f Author: Andrew Bradley <cspotcode@gmail.com> Date: Sun May 1 00:31:29 2022 -0400 add tests and support for wasm stack frames commit 727cbe6 Author: Andrew Bradley <cspotcode@gmail.com> Date: Sat Apr 30 18:30:13 2022 -0400 fix test commit e9adffc Author: Andrew Bradley <cspotcode@gmail.com> Date: Sat Apr 30 18:18:22 2022 -0400 add tests for async stack frames: async, Promise.all, Promise.any commit 6d3de7e Author: Andrew Bradley <cspotcode@gmail.com> Date: Fri Apr 29 18:13:29 2022 -0400 WIP commit fc3f549 Author: Andrew Bradley <cspotcode@gmail.com> Date: Fri Apr 29 18:08:39 2022 -0400 WIP commit 0582d53 Author: Andrew Bradley <cspotcode@gmail.com> Date: Fri Apr 29 16:41:34 2022 -0400 fix commit 69012b9 Author: Andrew Bradley <abradley@brightcove.com> Date: Fri Apr 29 18:04:15 2022 +0000 Ensure source snippets also output URLs/paths in the correct format, matching stack frame commit 2b315b8 Author: Andrew Bradley <abradley@brightcove.com> Date: Fri Apr 29 14:55:27 2022 +0000 Test that paths in mapped stack frames match expected format: either file:/ or native path commit 5b79f38 Author: Andrew Bradley <cspotcode@gmail.com> Date: Fri Apr 29 02:30:26 2022 -0400 fix commit 0677a3c Author: Andrew Bradley <abradley@brightcove.com> Date: Fri Apr 29 03:14:56 2022 +0000 fix CI commit 9784717 Author: Andrew Bradley <abradley@brightcove.com> Date: Thu Apr 28 22:11:49 2022 +0000 fix commit c0f5b1e Author: Andrew Bradley <abradley@brightcove.com> Date: Thu Apr 28 16:35:48 2022 +0000 fix esm/file URI support commit d9cc113 Author: Andrew Bradley <abradley@brightcove.com> Date: Wed Apr 27 11:12:16 2022 +0000 WIP commit 84fb85a Author: Andrew Bradley <abradley@brightcove.com> Date: Tue Apr 26 10:08:02 2022 +0000 WIP commit ce5e122 Author: Andrew Bradley <abradley@brightcove.com> Date: Sat Apr 23 20:14:21 2022 +0000 use resolve-uri for handling relative paths commit 62cb778 Author: Andrew Bradley <cspotcode@gmail.com> Date: Sat Apr 23 13:23:48 2022 -0400 refactor tests to include ESM and other variants of sourcemap commit 12a2b6f Author: Andrew Bradley <abradley@brightcove.com> Date: Sat Apr 23 00:26:02 2022 +0000 Fix? commit c6aa032 Author: Andrew Bradley <cspotcode@gmail.com> Date: Thu Apr 21 14:07:26 2022 -0400 switch to @jridgewell/trace-mapping
1 parent 817f84b commit 24fe420

12 files changed

+949
-396
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
matrix:
1919
os: [ubuntu, windows]
2020
node:
21+
- 18
22+
- 17
2123
- 16
2224
- 14
2325
- 12

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Debug Mocha tests",
5+
"type": "node",
6+
"request": "launch",
7+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/_mocha",
8+
"runtimeArgs": ["--timeout", "999999999"],
9+
"outputCapture": "std",
10+
"skipFiles": [
11+
"<node_internals>/**/*.js"
12+
],
13+
}
14+
],
15+
}

browser-source-map-support.js

Lines changed: 104 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 124 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@
1515
"/register-hook-require.d.ts",
1616
"/register-hook-require.js",
1717
"/source-map-support.d.ts",
18-
"/source-map-support.js"
18+
"/source-map-support.js",
19+
"/browser-source-map-support.js"
1920
],
2021
"dependencies": {
21-
"@cspotcode/source-map-consumer": "0.8.0"
22+
"@jridgewell/trace-mapping": "0.3.9"
2223
},
2324
"devDependencies": {
25+
"@types/lodash": "^4.14.182",
2426
"browserify": "^4.2.3",
2527
"coffeescript": "^1.12.7",
2628
"http-server": "^0.11.1",
29+
"lodash": "^4.17.21",
2730
"mocha": "^3.5.3",
31+
"semver": "^7.3.7",
2832
"source-map": "0.6.1",
2933
"webpack": "^1.15.0"
3034
},

source-map-support.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
// Griffin Yourick <https://github.com/tough-griff>
77
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
88

9-
import { RawSourceMap } from '@cspotcode/source-map-consumer';
9+
export interface RawSourceMap {
10+
version: 3;
11+
sources: string[];
12+
names: string[];
13+
sourceRoot?: string;
14+
sourcesContent?: string[];
15+
mappings: string;
16+
file: string;
17+
}
1018

1119
/**
1220
* Output of retrieveSourceMap().

0 commit comments

Comments
 (0)