Skip to content

Commit

Permalink
Update source-map to 0.6.1 and upgrade code and test
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouer committed Dec 29, 2017
1 parent 882effc commit de5f94c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ Concat.prototype.add = function(filePath, content, sourceMap) {
line: _this.lineOffset + mapping.generatedLine,
column: (mapping.generatedLine === 1 ? _this.columnOffset : 0) + mapping.generatedColumn
},
original: {
original: mapping.originalLine == null ? null : {
line: mapping.originalLine,
column: mapping.originalColumn
},
source: mapping.source,
source: mapping.originalLine != null ? mapping.source : null,
name: mapping.name
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"author": "Florian Reiterer <me@florianreiterer.com>",
"license": "ISC",
"dependencies": {
"source-map": "^0.5.1"
"source-map": "^0.6.1"
},
"devDependencies": {
"jshint": "^2.8.0",
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ testCase('should ignore invalid mappings', {
],
output: {
content: 'AAA\nBBB\nCCC\nEEE\nFFF',
sourceMap: '{"version":3,"file":"out.js","sources":["test12","test13","test2","test3"],"names":[],"mappings":";AAAA;ACAA;ACAA;ACAA","sourcesContent":["BBB","CCC",null,null]}'
sourceMap: '{"version":3,"file":"out.js","sources":["test12","test13","test2","test3"],"names":[],"mappings":"A;AAAA;ACAA;ACAA;ACAA","sourcesContent":["BBB","CCC",null,null]}'
}
});

Expand Down

0 comments on commit de5f94c

Please sign in to comment.