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

koatty_core

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koatty_core - npm Package Compare versions

Comparing version 1.7.10 to 1.8.0

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

## [1.8.0](https://github.com/koatty/koatty_core/compare/v1.7.10...v1.8.0) (2023-11-08)
### Features
* add app event ([fd26da9](https://github.com/koatty/koatty_core/commit/fd26da9ea1e8fa355b9f515f8b9622ae9f5f306b))
* add AppEvent defined ([79c26c3](https://github.com/koatty/koatty_core/commit/79c26c3b2bad05a90fe48ef547b195a001745c1d))
### [1.7.10](https://github.com/koatty/koatty_core/compare/v1.7.9...v1.7.10) (2023-09-12)

@@ -7,0 +15,0 @@

21

dist/index.d.ts
/*!
* @Author: richen
* @Date: 2023-09-12 11:14:38
* @Date: 2023-11-08 13:34:53
* @License: BSD (3-Clause)

@@ -28,2 +28,15 @@ * @Copyright (c) - <richenlin(at)gmail.com>

/**
* app event
*
* @export
* @enum AppEvent
*/
export declare const enum AppEvent {
appBoot = "appBoot",
appReady = "appReady",
appStart = "appStart",
appStop = "appStop"
}
/**
* Create KoattyContext

@@ -39,2 +52,4 @@ *

export declare type EventHookFunc = (app: Koatty) => Promise<any>;
/**

@@ -51,3 +66,3 @@ * InitOptions

rootPath?: string;
thinkPath?: string;
koattyPath?: string;
}

@@ -89,3 +104,3 @@

rootPath: string;
thinkPath: string;
koattyPath: string;
logsPath: string;

@@ -92,0 +107,0 @@ appDebug: boolean;

8

dist/index.js
/*!
* @Author: richen
* @Date: 2023-09-12 11:14:16
* @Date: 2023-11-08 13:34:41
* @License: BSD (3-Clause)

@@ -298,3 +298,3 @@ * @Copyright (c) - <richenlin(at)gmail.com>

rootPath: '',
thinkPath: '',
koattyPath: '',
}) {

@@ -306,7 +306,7 @@ super();

this.env = process.env.KOATTY_ENV || process.env.NODE_ENV;
const { appDebug, appPath, rootPath, thinkPath } = this.options;
const { appDebug, appPath, rootPath, koattyPath } = this.options;
this.appDebug = appDebug;
this.appPath = appPath;
this.rootPath = rootPath;
this.thinkPath = thinkPath;
this.koattyPath = koattyPath;
this.metadata = new KoattyMetadata();

@@ -313,0 +313,0 @@ // constructor

{
"name": "koatty_core",
"version": "1.7.10",
"version": "1.8.0",
"description": "Koatty framework core",

@@ -5,0 +5,0 @@ "scripts": {

{
"name": "koatty_core",
"version": "1.7.10",
"version": "1.8.0",
"description": "Koatty framework core",

@@ -5,0 +5,0 @@ "scripts": {

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