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

@travetto/registry

Package Overview
Dependencies
Maintainers
1
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/registry - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

2

package.json

@@ -18,3 +18,3 @@ {

"scripts": {},
"version": "0.0.22"
"version": "0.0.23"
}

@@ -71,10 +71,14 @@ import * as ts from 'typescript';

transformer: TransformUtil.importingVisitor<IState>((file: ts.SourceFile) => {
let fileRoot = file.fileName.split(process.cwd() + SEP)[1];
let ns = '@app';
if (fileRoot.startsWith(`node_modules${SEP}`)) {
fileRoot = fileRoot.split(`node_modules${SEP}`).pop()!;
if (fileRoot.startsWith('@')) {
const [ns1, ns2, ...rest] = fileRoot.split(SEP);
ns = `${ns1}.${ns2}`;
fileRoot = rest.join(SEP);
let fileRoot = file.fileName;
if (fileRoot.includes(process.cwd())) {
fileRoot = file.fileName.split(process.cwd() + SEP)[1];
let ns = '@app';
if (fileRoot.startsWith(`node_modules${SEP}`)) {
fileRoot = fileRoot.split(`node_modules${SEP}`).pop()!;
if (fileRoot.startsWith('@')) {
const [ns1, ns2, ...rest] = fileRoot.split(SEP);
ns = `${ns1}.${ns2}`;
fileRoot = rest.join(SEP);
}
}

@@ -81,0 +85,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