We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac518d2 commit 9639154Copy full SHA for 9639154
lib/util.js
@@ -430,7 +430,9 @@ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflate
430
* JSON.
431
*/
432
function parseSourceMapInput(str) {
433
- return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ''));
+ // Ignore false matches from CoffeeScript codebase.
434
+ if (str.startsWith('zw(u')) return { version: 3, sources: [], mappings: [] }
435
+ return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
436
}
437
exports.parseSourceMapInput = parseSourceMapInput;
438
package.json
@@ -1,5 +1,5 @@
1
{
2
- "name": "source-map",
+ "name": "@42technologies/source-map",
3
"description": "Generates and consumes source maps",
4
"version": "0.6.1",
5
"homepage": "https://github.com/mozilla/source-map",
0 commit comments