File: use-source-map-js.patch

package info (click to toggle)
node-inline-source-map 0.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 196 kB
  • sloc: javascript: 532; makefile: 12; sh: 3
file content (13 lines) | stat: -rw-r--r-- 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Use source-map-js instead of source-map
 source-map >= 0.7 has an async API which is incompatible.
 source-map-js is a synchronous fork of source-map 0.6.
Forwarded: not-needed
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
 'use strict';
-var SourceMapGenerator = require('source-map').SourceMapGenerator;
+var SourceMapGenerator = require('source-map-js').SourceMapGenerator;
 
 function offsetMapping(mapping, offset) {
   return { line: offset.line + mapping.line, column: offset.column + mapping.column };