babel-source 5.6.3 → 5.6.4

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 +14 -5
  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
- OTYzNWM4MDE1YzQ4ZjE3NDZmNTZlOWJiNTExYjIzZTc5Nzg1NTc5Yw==
4
+ MzFjODEzNzE4NmYxNGVmODU3NDJhNGI5OTMyOWMwYTUxYzM3ZGE2ZQ==
5
5
  data.tar.gz: !binary |-
6
- NDVmYWY5MDBlZWQyMzJiZmU2Y2QzYTAxZTkwMTFkZTdlODk1MWRhOQ==
6
+ ZjVmZmRhNWJiNmUzNGE0NTc3OWFkNjViMjlhYzNmN2ZhY2ZhOTE4OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzFiOGY2ZTk5MGFmMzJjZTk3Zjk2MzRhMmQ2OTA2YzBjYWNkYjZlOWYxYjhm
10
- NzFhNzBmOTg3Yzg5MGYzYzY0ZTM4YTc3ODc5YzBhNWYwYmIyZGRlNzczM2Y1
11
- YzMxZmVjMzQ4ODNkMDI4MmFiNmJhMDZmZWQ3Y2ZiYWM4NWNjZTU=
9
+ MGE3MGVhZTg5YzkwMTEyYjk4ZmMyMjcxYzc4M2RkNzYyOTRkZjM4YTlmZWEy
10
+ Y2EzZTk4OGE2YjhjZTFmMTgxNzQwZWIyM2NlZmMwMTFkM2NmYzE4NmRhODE2
11
+ MTY1ZTk4OTI0ZGJhMDMzNjkxMGIzZTQyNThmZTg5MGNkYmYwMWE=
12
12
  data.tar.gz: !binary |-
13
- ODZlMzM5NWRiMGZkZTQ2NGM2OTc4ZTc4NmU2NzRkN2UzMGQwZWQ5M2UxNjAx
14
- ZjkwZjE3YTFmMTA4OThkNDdkNjgzZWU4MDY2YTUzYTEwZGMzNmE4NTM4Yzhk
15
- Yzk4NzdhMjI1MDZkMGEyOTA1YTllZWNmN2Y3N2FjMzc0Mzk5ZjU=
13
+ NGE1NjNmY2IzMGZkY2Y3YjdiZjNiNjdmNWVhZGIxMDIzY2MxMmRkMGU2ODQ3
14
+ YjU3MTQ0MmQyNWM0OTY5ZTRjMmQ2NjY1NjQ1YzFjYWNjNjJlN2Y3OTU3NGFi
15
+ OTBlYWRlNWQxNDBkZTViMmI3YTQwNGQ4ZjIyYzAwNDI0YzQzMzE=
@@ -5040,6 +5040,7 @@ function ComprehensionExpression(node, print) {
5040
5040
  exports.__esModule = true;
5041
5041
  exports.UnaryExpression = UnaryExpression;
5042
5042
  exports.DoExpression = DoExpression;
5043
+ exports.ParenthesizedExpression = ParenthesizedExpression;
5043
5044
  exports.UpdateExpression = UpdateExpression;
5044
5045
  exports.ConditionalExpression = ConditionalExpression;
5045
5046
  exports.NewExpression = NewExpression;
@@ -5091,6 +5092,12 @@ function DoExpression(node, print) {
5091
5092
  print.plain(node.body);
5092
5093
  }
5093
5094
 
5095
+ function ParenthesizedExpression(node, print) {
5096
+ this.push("(");
5097
+ print.plain(node.expression);
5098
+ this.push(")");
5099
+ }
5100
+
5094
5101
  function UpdateExpression(node, print) {
5095
5102
  if (node.prefix) {
5096
5103
  this.push(node.operator);
@@ -20898,14 +20905,14 @@ function replaceWith(replacement, whateverAllowed) {
20898
20905
  return;
20899
20906
  }
20900
20907
 
20908
+ if (this.isProgram() && !t.isProgram(replacement)) {
20909
+ throw new Error("You can only replace a Program root node with another Program node");
20910
+ }
20911
+
20901
20912
  // normalise inserting an entire AST
20902
20913
  if (t.isProgram(replacement) && !this.isProgram()) {
20903
20914
  replacement = replacement.body;
20904
20915
  whateverAllowed = true;
20905
- } else {
20906
- if (this.isProgram()) {
20907
- throw new Error("You can only replace a Program root node with another Program node");
20908
- }
20909
20916
  }
20910
20917
 
20911
20918
  if (Array.isArray(replacement)) {
@@ -22433,6 +22440,7 @@ module.exports={
22433
22440
  "MetaProperty": ["Expression"],
22434
22441
  "NewExpression": ["Expression"],
22435
22442
  "ObjectExpression": ["Expression"],
22443
+ "ParenthesizedExpression": ["Expression"],
22436
22444
  "SequenceExpression": ["Expression"],
22437
22445
  "TaggedTemplateExpression": ["Expression"],
22438
22446
  "ThisExpression": ["Expression"],
@@ -23887,6 +23895,7 @@ module.exports={
23887
23895
  "Noop": [],
23888
23896
  "ObjectExpression": ["properties"],
23889
23897
  "ObjectPattern": ["properties", "typeAnnotation"],
23898
+ "ParenthesizedExpression": ["expression"],
23890
23899
  "Program": ["body"],
23891
23900
  "Property": ["key", "value", "decorators"],
23892
23901
  "RestElement": ["argument", "typeAnnotation"],
@@ -62887,7 +62896,7 @@ module.exports = function (str) {
62887
62896
  module.exports={
62888
62897
  "name": "babel-core",
62889
62898
  "description": "A compiler for writing next generation JavaScript",
62890
- "version": "5.6.3",
62899
+ "version": "5.6.4",
62891
62900
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
62892
62901
  "homepage": "https://babeljs.io/",
62893
62902
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.6.3"
4
- DATE = Time.at(1434970606)
3
+ VERSION = "5.6.4"
4
+ DATE = Time.at(1435001892)
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: 5.6.3
4
+ version: 5.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie