Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-typescript

Package Overview
Dependencies
55
Maintainers
5
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.0 to 7.3.2

14

lib/index.js

@@ -61,2 +61,3 @@ "use strict";

api.assertVersion(7);
const JSX_ANNOTATION_REGEX = /\*?\s*@jsx\s+([^\s]+)/;
return {

@@ -72,3 +73,16 @@ name: "transform-typescript",

state.programPath = path;
const {
file
} = state;
if (file.ast.comments) {
for (const comment of file.ast.comments) {
const jsxMatches = JSX_ANNOTATION_REGEX.exec(comment.value);
if (jsxMatches) {
jsxPragma = jsxMatches[1];
}
}
}
for (const stmt of path.get("body")) {

@@ -75,0 +89,0 @@ if (_core().types.isImportDeclaration(stmt)) {

5

package.json
{
"name": "@babel/plugin-transform-typescript",
"version": "7.2.0",
"version": "7.3.2",
"description": "Transform TypeScript into ES.next",

@@ -25,3 +25,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typescript",

"@babel/helper-plugin-test-runner": "^7.0.0"
}
},
"gitHead": "d896ce2b53f64742feeea27dd33ee45934cd041a"
}
LICENSE

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc