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

@chijs/cli

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chijs/cli - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

16

lib/server.js
import { fork } from 'node:child_process';
import { fileURLToPath } from 'node:url';
import { ChiApp } from '@chijs/server';
import { ChiApp, loadConfig } from '@chijs/server';
import { existsSync } from 'node:fs';

@@ -20,10 +20,10 @@ import { resolve } from 'node:path';

try {
let config = process.env.CHI_CONFIG_PATH;
if (!config)
let path = process.env.CHI_CONFIG_PATH;
if (!path)
throw new Error(`CHI_CONFIG_PATH not set`);
config = resolve(config);
if (!existsSync(config))
throw new Error(`Config file not found: ${config}`);
const app = new ChiApp();
await app.configManager.loadConfig(config);
path = resolve(path);
if (!existsSync(path))
throw new Error(`Config file not found: ${path}`);
const config = await loadConfig(path);
const app = new ChiApp(config);
await app.start();

@@ -30,0 +30,0 @@ }

{
"name": "@chijs/cli",
"version": "0.0.7",
"version": "0.0.8",
"main": "lib/index.js",

@@ -19,4 +19,4 @@ "license": "AGPL-3.0",

"dependencies": {
"@chijs/client": "^0.0.7",
"@chijs/server": "^0.0.7",
"@chijs/client": "^0.0.8",
"@chijs/server": "^0.0.8",
"yargs": "^17.5.1"

@@ -23,0 +23,0 @@ },

Sorry, the diff of this file is not supported yet

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