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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/babel.js +6 -4
  3. data/lib/babel/source.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2EwNjNkN2Y5ZWJkMTg2ZThjMjljNzAyN2Y5ZGMxYTQwYmVjZWM0ZA==
4
+ NGZmNjg1NjczZTlkMGRkYjM5NDUzOTA3ZDBhZmE0MzY0NTNkYmRlZQ==
5
5
  data.tar.gz: !binary |-
6
- MWQ2MGVkYWExYjg5NDQyZDg0OWQ0MGVkZjE3Zjc4NGJjYmE1ODNiOQ==
6
+ ZTBjYTkwOWU0OWM5NjAwMTM1ODg0ZGE5MGZiZjExNzliNTI0N2RjMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGE3MzdkNWNiYTMyZWJmOTQwNGNjZTE5YTg5ZWMzZmNlNjUyNTgyMDg4NGNm
10
- MjJhOGI1YWM2YzdlN2JjNzE3NWVjNWQ1NjAxMDUzMTQyY2YzMWY5ZGM4MDEy
11
- MGQxNDhjNWYwODRiZDM3MzY5ZjBiMWQ0YmVhM2E3ZThiNjdmNGI=
9
+ MWJlYzkxNWQ3NjdjYjBhNWJmM2M3YWI2ZmFhNGJmOTE2OTk5Yjc1YjE3MmIz
10
+ M2IyZjZiZWUxYWVmOTZhZjFhNzYwZmJmY2JiZDQxYTVlZWE3YWY4NjNmMDZm
11
+ NmU3NDdiNzY3NzBkZDVlMGE5ZWQ1Yjc2YjYyN2Q2YWM1NDU0ZTA=
12
12
  data.tar.gz: !binary |-
13
- MGU4MWJhMGVlMGFmZjZhMWYwYTY4ZmRlNzg5YWRmYjExMzJhODFjMzI2ZmU2
14
- MTBlODA2ZjU0MmMzOGEyNGQyYjM4OTcxMzgxMjExZmY1OThmN2U5MzE4MTU1
15
- MGFkNTc1NGRmMmE1Yjg3M2M1MDc1YmY4MmI4OGI3ZjNlMjU2ZTI=
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 = map.sources;
3434
- mergedMap.file = map.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.0",
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
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "4.7.0"
4
- DATE = Time.at(1425653942)
3
+ VERSION = "4.7.1"
4
+ DATE = Time.at(1425657137)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babel-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie