babel-source 4.7.0 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/babel.js +6 -4
- data/lib/babel/source.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGZmNjg1NjczZTlkMGRkYjM5NDUzOTA3ZDBhZmE0MzY0NTNkYmRlZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTBjYTkwOWU0OWM5NjAwMTM1ODg0ZGE5MGZiZjExNzliNTI0N2RjMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWJlYzkxNWQ3NjdjYjBhNWJmM2M3YWI2ZmFhNGJmOTE2OTk5Yjc1YjE3MmIz
|
10
|
+
M2IyZjZiZWUxYWVmOTZhZjFhNzYwZmJmY2JiZDQxYTVlZWE3YWY4NjNmMDZm
|
11
|
+
NmU3NDdiNzY3NzBkZDVlMGE5ZWQ1Yjc2YjYyN2Q2YWM1NDU0ZTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjUxYTkwODM5Y2YwMzY5YWM5ZmIwYTBhNzFjNGJiNGFkMWE2MzgwMGM3YmZl
|
14
|
+
NjAzNzdmYmQxNDYzMWNmYWUxYWYzNjZhOGZlZTM4MjJiYzZlZThlNGI0YjJi
|
15
|
+
YWQyYzYzYjcxMGE3OGM3NDU2MjUyNTIwNGUxMDZlOTM5MzI2MzA=
|
data/lib/babel.js
CHANGED
@@ -3205,7 +3205,7 @@ var File = (function () {
|
|
3205
3205
|
|
3206
3206
|
var inputMap = convertSourceMap.fromSource(code);
|
3207
3207
|
if (inputMap) {
|
3208
|
-
opts.inputSourceMap = inputMap;
|
3208
|
+
opts.inputSourceMap = inputMap.toObject();
|
3209
3209
|
code = convertSourceMap.removeComments(code);
|
3210
3210
|
}
|
3211
3211
|
|
@@ -3424,14 +3424,16 @@ var File = (function () {
|
|
3424
3424
|
var inputMap = opts.inputSourceMap;
|
3425
3425
|
|
3426
3426
|
if (inputMap) {
|
3427
|
+
map.sources[0] = inputMap.file;
|
3428
|
+
|
3427
3429
|
var inputMapConsumer = new sourceMap.SourceMapConsumer(inputMap);
|
3428
3430
|
var outputMapConsumer = new sourceMap.SourceMapConsumer(map);
|
3429
3431
|
var outputMapGenerator = sourceMap.SourceMapGenerator.fromSourceMap(outputMapConsumer);
|
3430
3432
|
outputMapGenerator.applySourceMap(inputMapConsumer);
|
3431
3433
|
|
3432
3434
|
var mergedMap = outputMapGenerator.toJSON();
|
3433
|
-
mergedMap.sources =
|
3434
|
-
mergedMap.file =
|
3435
|
+
mergedMap.sources = inputMap.sources;
|
3436
|
+
mergedMap.file = inputMap.file;
|
3435
3437
|
return mergedMap;
|
3436
3438
|
}
|
3437
3439
|
|
@@ -46049,7 +46051,7 @@ module.exports = function (str) {
|
|
46049
46051
|
module.exports={
|
46050
46052
|
"name": "babel",
|
46051
46053
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
46052
|
-
"version": "4.7.
|
46054
|
+
"version": "4.7.1",
|
46053
46055
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
46054
46056
|
"homepage": "https://babeljs.io/",
|
46055
46057
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED