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.14.0 to 3.14.1

5

CHANGELOG.md

@@ -0,1 +1,5 @@

# 3.14.1 (2020-05-17)
* Add support for `export type {T} from './T';` type-only export syntax. ([#533])
# 3.14.0 (2020-05-10)

@@ -286,1 +290,2 @@

[#532]: https://github.com/alangpierce/sucrase/pull/532
[#533]: https://github.com/alangpierce/sucrase/pull/533

@@ -313,2 +313,11 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

this.tokens.removeToken();
// Remove type re-export `... } from './T'`
if (
this.tokens.matchesContextual(_keywords.ContextualKeyword._from) &&
this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, _types.TokenType.string)
) {
this.tokens.removeToken();
this.tokens.removeToken();
}
return true;

@@ -315,0 +324,0 @@ } else {

@@ -68,2 +68,11 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

this.tokens.removeToken();
// Remove type re-export `... } from './T'`
if (
this.tokens.matchesContextual(_keywords.ContextualKeyword._from) &&
this.tokens.matches1AtIndex(this.tokens.currentIndex() + 1, _types.TokenType.string)
) {
this.tokens.removeToken();
this.tokens.removeToken();
}
return true;

@@ -70,0 +79,0 @@ }

4

package.json
{
"name": "sucrase",
"version": "3.14.0",
"version": "3.14.1",
"description": "Super-fast alternative to Babel for when you can target modern JS runtimes",

@@ -74,3 +74,3 @@ "author": "Alan Pierce <alangpierce@gmail.com>",

"prettier": "^1.19.1",
"sucrase": "^3.13.0",
"sucrase": "^3.14.0",
"test262-harness": "^6.5.0",

@@ -77,0 +77,0 @@ "ts-interface-builder": "^0.2.1",

Sorry, the diff of this file is not supported yet

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