Skip to content

Commit

Permalink
Squash-merge #38 (branch name: trace-mapping)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cspotcode committed May 1, 2022
1 parent 817f84b commit 24fe420
Show file tree
Hide file tree
Showing 12 changed files with 949 additions and 396 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
matrix:
os: [ubuntu, windows]
node:
- 18
- 17
- 16
- 14
- 12
Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,15 @@
{
"configurations": [
{
"name": "Debug Mocha tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/_mocha",
"runtimeArgs": ["--timeout", "999999999"],
"outputCapture": "std",
"skipFiles": [
"<node_internals>/**/*.js"
],
}
],
}
208 changes: 104 additions & 104 deletions browser-source-map-support.js

Large diffs are not rendered by default.

134 changes: 124 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -15,16 +15,20 @@
"/register-hook-require.d.ts",
"/register-hook-require.js",
"/source-map-support.d.ts",
"/source-map-support.js"
"/source-map-support.js",
"/browser-source-map-support.js"
],
"dependencies": {
"@cspotcode/source-map-consumer": "0.8.0"
"@jridgewell/trace-mapping": "0.3.9"
},
"devDependencies": {
"@types/lodash": "^4.14.182",
"browserify": "^4.2.3",
"coffeescript": "^1.12.7",
"http-server": "^0.11.1",
"lodash": "^4.17.21",
"mocha": "^3.5.3",
"semver": "^7.3.7",
"source-map": "0.6.1",
"webpack": "^1.15.0"
},
Expand Down
10 changes: 9 additions & 1 deletion source-map-support.d.ts
Expand Up @@ -6,7 +6,15 @@
// Griffin Yourick <https://github.com/tough-griff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { RawSourceMap } from '@cspotcode/source-map-consumer';
export interface RawSourceMap {
version: 3;
sources: string[];
names: string[];
sourceRoot?: string;
sourcesContent?: string[];
mappings: string;
file: string;
}

/**
* Output of retrieveSourceMap().
Expand Down

0 comments on commit 24fe420

Please sign in to comment.