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

@travetto/transformer

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/transformer - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "@travetto/transformer",
"version": "4.0.0",
"version": "4.0.1",
"description": "Functionality for AST transformations, with transformer registration, and general utils",

@@ -5,0 +5,0 @@ "keywords": [

@@ -15,2 +15,4 @@ /* eslint-disable no-bitwise */

const TYPINGS_RE = /[.]d[.][cm]?ts$/;
/**

@@ -64,3 +66,3 @@ * List of global types that can be parameterized

const sourceFile = source.fileName;
if (sourceFile?.endsWith('.d.ts') && !resolver.isKnownFile(sourceFile)) {
if (sourceFile && TYPINGS_RE.test(sourceFile) && !resolver.isKnownFile(sourceFile)) {
return { category: 'foreign', type };

@@ -84,3 +86,3 @@ }

return { category: 'literal', type };
} else if (sourceFile?.endsWith('.d.ts') && !resolver.isKnownFile(sourceFile)) {
} else if (sourceFile && TYPINGS_RE.test(sourceFile) && !resolver.isKnownFile(sourceFile)) {
return { category: 'foreign', type: resolvedType };

@@ -87,0 +89,0 @@ } else if (!resolvedType.isClass()) { // Not a real type

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