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

@travetto/compiler

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/compiler - npm Package Compare versions

Comparing version 0.0.31 to 0.0.33

2

package.json

@@ -22,3 +22,3 @@ {

"scripts": {},
"version": "0.0.31"
"version": "0.0.33"
}

@@ -32,6 +32,5 @@ import * as ts from 'typescript';

if (ident && ident.escapedText in patterns) {
const res = state.imports.get(ident.escapedText! as string)!;
const path = res && res.path;
const { path } = state.imports.get(ident.escapedText! as string)!;
const packages = patterns[ident.escapedText as string];
if (path && (path.includes('@travetto') || (!path.includes('node_modules') && AppInfo.PACKAGE === '@travetto'))) {
if (path.includes('@travetto') || (!path.includes('node_modules') && AppInfo.PACKAGE === '@travetto')) {
let pkg = '';

@@ -213,10 +212,13 @@ if (!path.includes('node_modules')) {

static buildImportAliasMap(pathToType: { [key: string]: string } = {}) {
static buildImportAliasMap(pathToType: { [key: string]: string | string[] } = {}) {
const out: { [key: string]: Set<string> } = {};
for (const [k, v] of Object.entries(pathToType)) {
if (!(v in out)) {
out[v] = new Set();
const ls = Array.isArray(v) ? v : [v];
for (const lsi of ls) {
if (!(lsi in out)) {
out[lsi] = new Set();
}
out[lsi].add(k);
}
out[v].add(k);
}

@@ -223,0 +225,0 @@

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