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

@travetto/compiler

Package Overview
Dependencies
Maintainers
0
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 5.0.0-rc.1 to 5.0.0-rc.2

4

package.json
{
"name": "@travetto/compiler",
"version": "5.0.0-rc.1",
"version": "5.0.0-rc.2",
"description": "The compiler infrastructure for the Travetto framework",

@@ -35,3 +35,3 @@ "keywords": [

"@travetto/manifest": "^5.0.0-rc.1",
"@travetto/transformer": "^5.0.0-rc.0",
"@travetto/transformer": "^5.0.0-rc.1",
"@types/node": "^20.14.10"

@@ -38,0 +38,0 @@ },

@@ -19,8 +19,2 @@ import fs from 'node:fs/promises';

async writePid(pid: number): Promise<void> {
const current = await this.getPid();
if (!process.env.TRV_BUILD_REENTRANT && current && pid !== current && current > 0) {
try {
process.kill(current);
} catch { }
}
await fs.mkdir(path.dirname(this.#file), { recursive: true });

@@ -27,0 +21,0 @@ return fs.writeFile(this.#file, JSON.stringify(pid), 'utf8');

@@ -194,2 +194,6 @@ import http from 'node:http';

if (ev.payload.state === 'init' && ev.payload.extra && 'pid' in ev.payload.extra && typeof ev.payload.extra.pid === 'number') {
if (this.info.mode === 'watch' && !this.info.compilerPid) {
// Ensure we are killing in watch mode on first set
await this.#handle.compiler.kill();
}
this.info.compilerPid = ev.payload.extra.pid;

@@ -196,0 +200,0 @@ await this.#handle.compiler.writePid(this.info.compilerPid);

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