Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sucrase

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sucrase - npm Package Compare versions

Comparing version 3.9.3 to 3.9.4

5

CHANGELOG.md

@@ -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

6

dist/util/getClassInfo.js

@@ -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 @@ }

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc