Socket
Socket
Sign inDemoInstall

@babel/preset-typescript

Package Overview
Dependencies
62
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.18.6 to 7.21.0

6

lib/index.js

@@ -33,13 +33,9 @@ 'use strict';

const isTSX = v.validateBooleanOption(TopLevelOptions.isTSX, options.isTSX, false);
if (isTSX) {
v.invariant(allExtensions, "isTSX:true requires allExtensions:true");
}
const disallowAmbiguousJSXLike = v.validateBooleanOption(TopLevelOptions.disallowAmbiguousJSXLike, options.disallowAmbiguousJSXLike, false);
if (disallowAmbiguousJSXLike) {
v.invariant(allExtensions, "disallowAmbiguousJSXLike:true requires allExtensions:true");
}
const optimizeConstEnums = v.validateBooleanOption(TopLevelOptions.optimizeConstEnums, options.optimizeConstEnums, false);

@@ -70,3 +66,2 @@ return {

} = normalizeOptions(opts);
const pluginOptions = (isTSX, disallowAmbiguousJSXLike) => ({

@@ -82,3 +77,2 @@ allowDeclareFields: opts.allowDeclareFields,

});
return {

@@ -85,0 +79,0 @@ overrides: allExtensions ? [{

10

package.json
{
"name": "@babel/preset-typescript",
"version": "7.18.6",
"version": "7.21.0",
"description": "Babel preset for TypeScript.",

@@ -20,5 +20,5 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.6",
"@babel/helper-validator-option": "^7.18.6",
"@babel/plugin-transform-typescript": "^7.18.6"
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/helper-validator-option": "^7.21.0",
"@babel/plugin-transform-typescript": "^7.21.0"
},

@@ -29,3 +29,3 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/core": "^7.21.0",
"@babel/helper-plugin-test-runner": "^7.18.6"

@@ -32,0 +32,0 @@ },

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