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

@travetto/base

Package Overview
Dependencies
Maintainers
1
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/base - npm Package Compare versions

Comparing version 0.0.84 to 0.0.85

9

bin/travetto.js

@@ -10,9 +10,10 @@ #!/usr/bin/env node

const CACHE_DIR = `${process.cwd()}/build`;
const CACHE_DIR = (process.env.TS_CACHE_DIR = process.env.TS_CACHE_DIR || `${process.cwd()}/build`);
const CACHE_SEP = (process.env.TS_CACHE_SEP = process.env.TS_CACHE_SEP || `~`);
const CACHE_SEP_RE = new RegExp(CACHE_SEP, 'g');
// Delete old cached files
for (const f of fs.readdirSync(CACHE_DIR)) {
const full = f.replace(/~/g, '/');
const full = f.replace(CACHE_SEP_RE, '/');
if (fs.statSync(`${CACHE_DIR}/${f}`).ctimeMs < fs.statSync(full).ctimeMs) {
console.debug('Removing stale cached file', full);
fs.unlinkSync(`${CACHE_DIR}/${f}`);

@@ -24,3 +25,3 @@ }

require.extensions['.ts'] = function load(m, tsf) {
const name = `${CACHE_DIR}/${tsf.replace(/[\/\\]/g, '~')}`;
const name = `${CACHE_DIR}/${tsf.replace(/[\/\\]/g, CACHE_SEP)}`;
let content;

@@ -27,0 +28,0 @@ if (!fs.existsSync(name)) {

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

"scripts": {},
"version": "0.0.84"
"version": "0.0.85"
}
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