@babel/plugin-transform-typescript
Advanced tools
+9
-7
@@ -609,3 +609,3 @@ import { declare } from '@babel/helper-plugin-utils'; | ||
| } = api; | ||
| api.assertVersion("8.0.0-beta.2"); | ||
| api.assertVersion("8.0.0-beta.3"); | ||
| const JSX_PRAGMA_REGEX = /\*?\s*@jsx((?:Frag)?)\s+(\S+)/; | ||
@@ -1044,8 +1044,10 @@ const { | ||
| let sourceFileHasJsx = false; | ||
| programPath.traverse({ | ||
| "JSXElement|JSXFragment"(path) { | ||
| sourceFileHasJsx = true; | ||
| path.stop(); | ||
| } | ||
| }); | ||
| { | ||
| t.traverseFast(programPath.node, node => { | ||
| if (t.isJSXElement(node) || t.isJSXFragment(node)) { | ||
| sourceFileHasJsx = true; | ||
| return t.traverseFast.stop; | ||
| } | ||
| }); | ||
| } | ||
| return !sourceFileHasJsx; | ||
@@ -1052,0 +1054,0 @@ } |
+11
-11
| { | ||
| "name": "@babel/plugin-transform-typescript", | ||
| "version": "8.0.0-beta.2", | ||
| "version": "8.0.0-beta.3", | ||
| "description": "Transform TypeScript into ES.next", | ||
@@ -20,16 +20,16 @@ "repository": { | ||
| "dependencies": { | ||
| "@babel/helper-annotate-as-pure": "^8.0.0-beta.2", | ||
| "@babel/helper-create-class-features-plugin": "^8.0.0-beta.2", | ||
| "@babel/helper-plugin-utils": "^8.0.0-beta.2", | ||
| "@babel/helper-skip-transparent-expression-wrappers": "^8.0.0-beta.2", | ||
| "@babel/plugin-syntax-typescript": "^8.0.0-beta.2" | ||
| "@babel/helper-annotate-as-pure": "^8.0.0-beta.3", | ||
| "@babel/helper-create-class-features-plugin": "^8.0.0-beta.3", | ||
| "@babel/helper-plugin-utils": "^8.0.0-beta.3", | ||
| "@babel/helper-skip-transparent-expression-wrappers": "^8.0.0-beta.3", | ||
| "@babel/plugin-syntax-typescript": "^8.0.0-beta.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "@babel/core": "^8.0.0-beta.2" | ||
| "@babel/core": "^8.0.0-beta.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/core": "^8.0.0-beta.2", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-beta.2", | ||
| "@babel/traverse": "^8.0.0-beta.2", | ||
| "@babel/types": "^8.0.0-beta.2" | ||
| "@babel/core": "^8.0.0-beta.3", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-beta.3", | ||
| "@babel/traverse": "^8.0.0-beta.3", | ||
| "@babel/types": "^8.0.0-beta.3" | ||
| }, | ||
@@ -36,0 +36,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typescript", |
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
144518
0.36%1067
0.19%