Skip to content

Commit

Permalink
Merge pull request #38 from cspotcode/trace-mapping
Browse files Browse the repository at this point in the history
Tests, improved ESM support, switch to @jridgewell/trace-mapping, etc
  • Loading branch information
cspotcode committed May 1, 2022
2 parents 817f84b + 990c03d commit d8f1231
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 d8f1231

Please sign in to comment.