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.6.1 to 1.6.2-0

2

CHANGELOG.md

@@ -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 @@

18

dist/index.d.ts
/*!
* @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

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