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.24 to 0.0.25

2

package.json

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

"scripts": {},
"version": "0.0.24"
"version": "0.0.25"
}

@@ -9,2 +9,5 @@ import * as fs from 'fs';

const CACHE_DIR = process.env.TS_CACHE_DIR!;
const CACHE_SEP = process.env.TS_CACHE_SEP!;
export class SourceManager {

@@ -16,3 +19,3 @@ private sourceMaps = new Map<string, { url: string, map: string, content: string }>();

constructor(private config: { cache?: boolean, cacheDir?: string } = {}) {
Object.assign(config, { ... { cache: true, cacheDir: `${process.cwd()}/build` }, config });
Object.assign(config, { ... { cache: true }, config });

@@ -25,3 +28,3 @@ try {

private resolveCacheName(fileName: string) {
return `${this.config.cacheDir}/${fileName.replace(/[\/\\]/g, '_').replace('.ts', '.js')}`;
return `${CACHE_DIR}/${fileName.replace(/[\/\\]/g, CACHE_SEP)}`;
}

@@ -28,0 +31,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