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.85 to 0.0.86

10

bin/travetto.js

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

// Delete old cached files
const LOADED = {};
for (const f of fs.readdirSync(CACHE_DIR)) {
const full = f.replace(CACHE_SEP_RE, '/');
if (fs.statSync(`${CACHE_DIR}/${f}`).ctimeMs < fs.statSync(full).ctimeMs) {
fs.unlinkSync(`${CACHE_DIR}/${f}`);
const rel = `${CACHE_DIR}/${f}`;
const stat = LOADED[rel] = fs.statSync(rel);
if (stat.ctimeMs < fs.statSync(full).ctimeMs) {
fs.unlinkSync(rel);
delete LOADED[rel];
}

@@ -27,3 +31,3 @@ }

let content;
if (!fs.existsSync(name)) {
if (!LOADED[name]) {
content = ts.transpile(fs.readFileSync(tsf, 'utf-8'), opts);

@@ -30,0 +34,0 @@ fs.writeFileSync(name, content);

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

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