Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests, improved ESM support, switch to @jridgewell/trace-mapping, etc #38

Merged
merged 24 commits into from May 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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