Comparing version 3.9.3 to 3.9.4
@@ -0,1 +1,5 @@ | ||
# 3.9.4 (2019-01-07) | ||
* Avoid false positive when detecting if a class has a superclass. ([#399]) | ||
# 3.9.3 (2019-01-06) | ||
@@ -191,1 +195,2 @@ | ||
[#393]: https://github.com/alangpierce/sucrase/pull/393 | ||
[#399]: https://github.com/alangpierce/sucrase/pull/399 |
@@ -175,3 +175,7 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }Object.defineProperty(exports, "__esModule", {value: true}); | ||
while (!tokens.matchesContextIdAndLabel(_types.TokenType.braceL, contextId)) { | ||
if (tokens.matches1(_types.TokenType._extends)) { | ||
// If this has a superclass, there will always be an `extends` token. If it doesn't have a | ||
// superclass, only type parameters and `implements` clauses can show up here, all of which | ||
// consist only of type tokens. A declaration like `class A<B extends C> {` should *not* count | ||
// as having a superclass. | ||
if (tokens.matches1(_types.TokenType._extends) && !tokens.currentToken().isType) { | ||
hasSuperclass = true; | ||
@@ -178,0 +182,0 @@ } |
{ | ||
"name": "sucrase", | ||
"version": "3.9.3", | ||
"version": "3.9.4", | ||
"description": "Super-fast alternative to Babel for when you can target modern JS runtimes", | ||
@@ -70,3 +70,3 @@ "author": "Alan Pierce <alangpierce@gmail.com>", | ||
"prettier": "^1.15.2", | ||
"sucrase": "^3.9.2", | ||
"sucrase": "^3.9.3", | ||
"tslint": "^5.9.1", | ||
@@ -73,0 +73,0 @@ "typescript": "^3.2.2", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
833252
21250