babel-source 5.8.8 → 5.8.9

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 +15 -16
  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
- MzcxMzBkMWVkMWYxNTdiMmJiMzYzYWZlYTRjY2Q2YjFiNjliZWZiZg==
4
+ ZmQ0ZTg3MThmZjJkOTE4Yjk5ZjA5Y2RkZjhhYWQ1MWQ0YTViNjFmMg==
5
5
  data.tar.gz: !binary |-
6
- YzJlMDYzNWYzYzYwMjhjNWMzOThhZDAzMjM2ZjY0OGE3ZDU3ZmU3Mg==
6
+ YzY0YjhhMTMwYTg0MzdiNmQ0NjQyNjE5MDhhNDkyZjEwNWQwMjUzYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGY0ZDFkYTU5OWExOWEzZmNjNTgxOWQ5M2FiOGY3MjUxYjI1NzVmNTI3ZTc4
10
- NmE3NjQyMzMyNzc2NGY2NTZjN2YwMGM5MGJjZmQ4OTc2OGZiYjQyNjMzMGFm
11
- ZjRiMjVhMWI4YWRjYTcwZWFmMzZlYjYyNzk0OGQzM2Y3ZGQzYTA=
9
+ OTU5MjgzYWUzM2E4NjcxY2U1MTU0ZTA3ODlhY2Q5ZDQ0MWFjZmY1ZmIxNjJj
10
+ ODNhM2I4YjdmZjFmZTY4ZjFjZTQ4NjY1MzZlNjE1Y2JjZTdmNGYwYmZlMjc3
11
+ MmY1N2IxM2FjZjhkZDI0OTZhNTU5MDFjMzczMTQwYThhNjM1ZGM=
12
12
  data.tar.gz: !binary |-
13
- ZmVkZGUzMGNmMzZmNDAyNmFmNTg3NTE5Yzg2MGU1MGQyYzhjOGRkODg1Nzlh
14
- N2Q2NjZkMzRlODE5OGViNWQ3MTIyZDM3NDViMjllZTcxMDRkMmEzNmQxZmQ2
15
- OGI4OTA1ODI2MDgxMzA2MDY2NjZkMjg0ZmUyNGZlMDc0YmI0YWE=
13
+ NTBjNDJlNmYyZmI0MjgzZDIxY2I5NjdkZWFhNDJhYzIyZTY4YmQzZmVhZjRk
14
+ Y2U4YWI0MjNmZjk4NzcxOGY4MjYyMjUyOGM5YzZmNTJlZjM2MzllMzQzMjM2
15
+ OWQ4ODJkZTY2NzdhMDBkYzhjYzhmODBjMTM1MWRlNDJiNzY3ZDk=
data/lib/babel.js CHANGED
@@ -33908,11 +33908,11 @@ var _parser2 = _interopRequireDefault(_parser);
33908
33908
  var pp = _parser2["default"].prototype;
33909
33909
 
33910
33910
  pp.flowParseTypeInitialiser = function (tok) {
33911
- var oldInType = this.inType;
33912
- this.inType = true;
33911
+ var oldInType = this.state.inType;
33912
+ this.state.inType = true;
33913
33913
  this.expect(tok || _tokenizerTypes.types.colon);
33914
33914
  var type = this.flowParseType();
33915
- this.inType = oldInType;
33915
+ this.state.inType = oldInType;
33916
33916
  return type;
33917
33917
  };
33918
33918
 
@@ -34077,10 +34077,10 @@ pp.flowParseTypeParameterDeclaration = function () {
34077
34077
 
34078
34078
  pp.flowParseTypeParameterInstantiation = function () {
34079
34079
  var node = this.startNode(),
34080
- oldInType = this.inType;
34080
+ oldInType = this.state.inType;
34081
34081
  node.params = [];
34082
34082
 
34083
- this.inType = true;
34083
+ this.state.inType = true;
34084
34084
 
34085
34085
  this.expectRelational("<");
34086
34086
  while (!this.isRelational(">")) {
@@ -34091,7 +34091,7 @@ pp.flowParseTypeParameterInstantiation = function () {
34091
34091
  }
34092
34092
  this.expectRelational(">");
34093
34093
 
34094
- this.inType = oldInType;
34094
+ this.state.inType = oldInType;
34095
34095
 
34096
34096
  return this.finishNode(node, "TypeParameterInstantiation");
34097
34097
  };
@@ -34450,10 +34450,10 @@ pp.flowParseUnionType = function () {
34450
34450
  };
34451
34451
 
34452
34452
  pp.flowParseType = function () {
34453
- var oldInType = this.inType;
34454
- this.inType = true;
34453
+ var oldInType = this.state.inType;
34454
+ this.state.inType = true;
34455
34455
  var type = this.flowParseUnionType();
34456
- this.inType = oldInType;
34456
+ this.state.inType = oldInType;
34457
34457
  return type;
34458
34458
  };
34459
34459
 
@@ -34576,7 +34576,7 @@ exports["default"] = function (instance) {
34576
34576
  // and set startExpr
34577
34577
  instance.extend("isKeyword", function (inner) {
34578
34578
  return function (name) {
34579
- if (this.inType && name === "void") {
34579
+ if (this.state.inType && name === "void") {
34580
34580
  return false;
34581
34581
  } else {
34582
34582
  return inner.call(this, name);
@@ -34586,7 +34586,7 @@ exports["default"] = function (instance) {
34586
34586
 
34587
34587
  instance.extend("readToken", function (inner) {
34588
34588
  return function (code) {
34589
- if (this.inType && (code === 62 || code === 60)) {
34589
+ if (this.state.inType && (code === 62 || code === 60)) {
34590
34590
  return this.finishOp(_tokenizerTypes.types.relational, 1);
34591
34591
  } else {
34592
34592
  return inner.call(this, code);
@@ -34596,7 +34596,7 @@ exports["default"] = function (instance) {
34596
34596
 
34597
34597
  instance.extend("jsx_readToken", function (inner) {
34598
34598
  return function () {
34599
- if (!this.inType) return inner.call(this);
34599
+ if (!this.state.inType) return inner.call(this);
34600
34600
  };
34601
34601
  });
34602
34602
 
@@ -34787,9 +34787,8 @@ exports["default"] = function (instance) {
34787
34787
  // var foo = (foo): number => {};
34788
34788
  var node = inner.call(this, startPos, startLoc, canBeArrow, isAsync);
34789
34789
 
34790
- var state = this.state.clone();
34791
-
34792
34790
  if (this.match(_tokenizerTypes.types.colon)) {
34791
+ var state = this.state.clone();
34793
34792
  try {
34794
34793
  return this.parseParenItem(node, startPos, startLoc, true);
34795
34794
  } catch (err) {
@@ -68384,7 +68383,7 @@ resolve.relative = function (loc) {
68384
68383
  },{"_process":12,"module":1}],552:[function(require,module,exports){
68385
68384
  module.exports={
68386
68385
  "name": "babel-core",
68387
- "version": "5.8.8",
68386
+ "version": "5.8.9",
68388
68387
  "description": "A compiler for writing next generation JavaScript",
68389
68388
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
68390
68389
  "homepage": "https://babeljs.io/",
@@ -68426,7 +68425,7 @@ module.exports={
68426
68425
  "babel-plugin-runtime": "^1.0.7",
68427
68426
  "babel-plugin-undeclared-variables-check": "^1.0.2",
68428
68427
  "babel-plugin-undefined-to-void": "^1.1.6",
68429
- "babylon": "^5.8.8",
68428
+ "babylon": "^5.8.9",
68430
68429
  "bluebird": "^2.9.33",
68431
68430
  "chalk": "^1.0.0",
68432
68431
  "convert-source-map": "^1.1.0",
data/lib/babel/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.8.8"
4
- DATE = Time.at(1437944852)
3
+ VERSION = "5.8.9"
4
+ DATE = Time.at(1437952469)
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.8.8
4
+ version: 5.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie