koatty_core
Advanced tools
Comparing version 1.6.1 to 1.6.2-0
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.6.2-0](https://github.com/koatty/koatty_core/compare/v1.6.1...v1.6.2-0) (2022-03-11) | ||
### [1.6.1](https://github.com/koatty/koatty_core/compare/v1.6.0...v1.6.1) (2022-02-23) | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2022-02-23 14:46:28 | ||
* @Date: 2022-03-11 11:02:45 | ||
* @License: BSD (3-Clause) | ||
@@ -8,2 +8,4 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
*/ | ||
/// <reference types="node" /> | ||
import { Application } from 'koatty_container'; | ||
@@ -14,2 +16,3 @@ import { Context } from 'koatty_container'; | ||
import { sendUnaryData } from '@grpc/grpc-js/build/src/server-call'; | ||
import { Server } from 'net'; | ||
import { ServerDuplexStream } from '@grpc/grpc-js'; | ||
@@ -79,2 +82,3 @@ import { ServerReadableStream } from '@grpc/grpc-js'; | ||
router: KoattyRouter; | ||
readonly listenCallback: () => void; | ||
appPath: string; | ||
@@ -146,7 +150,7 @@ rootPath: string; | ||
* @param {Function} server KoattyServer | ||
* @param {Function} [listeningListener] () => void | ||
* @returns {void} void | ||
* @param {Function} [listenCallback] () => void | ||
* @returns {*} any | ||
* @memberof Koatty | ||
*/ | ||
listen(server: any, listeningListener?: any): any; | ||
listen(server?: any, listenCallback?: any): any; | ||
/** | ||
@@ -352,6 +356,6 @@ * return a request handler callback | ||
options: any; | ||
server: any; | ||
server: Server; | ||
status: number; | ||
Start: (listenCallback: () => void) => void; | ||
Stop: () => void; | ||
Start: (listenCallback: () => void) => Server; | ||
Stop: (callback?: () => void) => void; | ||
/** | ||
@@ -358,0 +362,0 @@ * gRPC service register |
/*! | ||
* @Author: richen | ||
* @Date: 2022-02-23 14:46:15 | ||
* @Date: 2022-03-11 11:02:29 | ||
* @License: BSD (3-Clause) | ||
@@ -437,8 +437,13 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @param {Function} server KoattyServer | ||
* @param {Function} [listeningListener] () => void | ||
* @returns {void} void | ||
* @param {Function} [listenCallback] () => void | ||
* @returns {*} any | ||
* @memberof Koatty | ||
*/ | ||
listen(server, listeningListener) { | ||
return server.Start(listeningListener); | ||
listen(server, listenCallback) { | ||
this.server = server !== null && server !== void 0 ? server : this.server; | ||
listenCallback = listenCallback ? () => { | ||
listenCallback(); | ||
this.listenCallback(); | ||
} : this.listenCallback; | ||
return this.server.Start(listenCallback); | ||
} | ||
@@ -445,0 +450,0 @@ /** |
{ | ||
"name": "koatty_core", | ||
"version": "1.6.1", | ||
"version": "1.6.2-0", | ||
"description": "Koatty framework core", | ||
@@ -81,2 +81,2 @@ "scripts": { | ||
} | ||
} | ||
} |
{ | ||
"name": "koatty_core", | ||
"version": "1.6.1", | ||
"version": "1.6.2-0", | ||
"description": "Koatty framework core", | ||
@@ -81,2 +81,2 @@ "scripts": { | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54624
1474
2