Socket
Socket
Sign inDemoInstall

urgot

Package Overview
Dependencies
40
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.4 to 1.3.5

6

dist/bin/main.js

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

if (!projectPackage.main)
throw 'packaghe mian path does not exist';
throw '[Erroneous] packaghe mian path does not exist';
try {
childProcess.execSync('tsc', { cwd: resolve(), windowsHide: true, stdio: 'inherit' });
childProcess.exec('tsc -w', { cwd: resolve(), windowsHide: true }); //.stdout?.pipe(process.stdout)
childProcess.exec('tsc -w', { cwd: resolve(), windowsHide: true });
const run = () => {

@@ -44,3 +44,3 @@ return childProcess.fork(resolve(projectPackage.main), { cwd: resolve(), env: { development: 'development' } });

if (!projectPackage.main)
throw 'packaghe mian path does not exist';
throw '[Erroneous]packaghe mian path does not exist';
const run = () => {

@@ -47,0 +47,0 @@ const child = childProcess.fork(resolve(projectPackage.main), { cwd: resolve() });

@@ -8,7 +8,7 @@ import Context from './context.js';

**/
onCreate(): Promise<void>;
onCreate: () => unknown;
/**
* 销毁时触发
**/
onDestroy(): Promise<void>;
onDestroy: () => unknown;
constructor(context: Context);

@@ -34,3 +34,3 @@ }

}
declare const _default: (apps: (typeof App)[], options?: CreateApp) => (context: Context, next: Function) => Promise<void>;
declare const _default: (apps: (typeof App)[], options?: CreateApp) => (context: Context, next: () => Promise<unknown>) => Promise<void>;
export default _default;
export class App {
context;
/**
* 实例化后触发
**/
async onCreate() { }
/**
* 销毁时触发
**/
async onDestroy() { }
constructor(context) {

@@ -12,0 +4,0 @@ this.context = context;

{
"name": "urgot",
"version": "1.3.4",
"version": "1.3.5",
"description": "a Node.js web framework",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc