New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koatty_core

Package Overview
Dependencies
Maintainers
1
Versions
120
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.10.1 to 1.11.0

15

CHANGELOG.md

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

## [1.11.0](https://github.com/koatty/koatty_core/compare/v1.10.1...v1.11.0) (2024-12-03)
### Features
* add default name property to application options ([f1f6a6b](https://github.com/koatty/koatty_core/commit/f1f6a6bc3a82a55ba152c88d1b47a5beb91483c6))
* enhance router options handling ([3426508](https://github.com/koatty/koatty_core/commit/3426508b109917ca73f93a39e9527f42cd76dc2d))
### Bug Fixes
* add `setMetaData` method to gRPC context ([0116ca7](https://github.com/koatty/koatty_core/commit/0116ca7e13cf5d171baf9dcc6a228fece082cd8b))
* grpc metadata sending ([be9a3b9](https://github.com/koatty/koatty_core/commit/be9a3b9a4bf8bfdd45ad9041eb2459ca72c2fbb8))
* NativeServer types ([1a7dd5a](https://github.com/koatty/koatty_core/commit/1a7dd5a05e293e3ae99c3e81a91e970f2215ae3a))
### [1.10.1](https://github.com/koatty/koatty_core/compare/v1.10.0...v1.10.1) (2024-11-20)

@@ -7,0 +22,0 @@

21

dist/index.d.ts
/*!
* @Author: richen
* @Date: 2024-11-20 16:31:29
* @Date: 2024-12-03 17:22:14
* @License: BSD (3-Clause)

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

import { Http2SecureServer } from 'http2';
import { Http2ServerRequest } from 'http2';

@@ -19,3 +20,4 @@ import { Http2ServerResponse } from 'http2';

import { Server } from 'http';
import { Server as Server_2 } from '@grpc/grpc-js';
import { Server as Server_2 } from 'https';
import { Server as Server_3 } from '@grpc/grpc-js';
import { ServerReadableStream } from '@grpc/grpc-js';

@@ -30,2 +32,3 @@ import { ServerReadableStreamImpl } from '@grpc/grpc-js/build/src/server-call';

import { WebSocket as WebSocket_2 } from 'ws';
import { WebSocketServer } from 'ws';

@@ -61,6 +64,8 @@ /**

* @param {string} [path] controller router path
* @param {object} [options] controller router options, the feature is not implemented yet (lll¬ω¬)
* @param {object} [options] controller router options
* @returns {ClassDecorator}
*/
export declare function Controller(path?: string, options?: object): ClassDecorator;
export declare function Controller(path?: string, options?: {
[key: string]: any;
}): ClassDecorator;

@@ -266,4 +271,4 @@ export declare const CONTROLLER_ROUTER = "CONTROLLER_ROUTER";

* Since Koa.listen returns an http.Server type, the return value must be defined as 'any' type here.
* When calling, note that Koatty.listen returns a NativeServer, such as http/https Server or grpcServer or
* Websocket
* When calling, note that Koatty.listen returns a NativeServer: http/https Server or
* grpcServer or Websocket
* @param {Function} [listenCallback] (app: Koatty) => void

@@ -438,3 +443,3 @@ * @returns {NativeServer} NativeServer

*/
readonly sendMetadata?: (data: KoattyMetadata) => void;
readonly sendMetadata: (data?: KoattyMetadata) => void;
/**

@@ -611,3 +616,3 @@ * Replace ctx.throw

export declare type NativeServer = Server | Server_2 | WebSocket;
export declare type NativeServer = Server | Server_2 | Http2SecureServer | Server_3 | WebSocketServer;

@@ -614,0 +619,0 @@ /**

{
"name": "koatty_core",
"version": "1.10.1",
"version": "1.11.0",
"description": "Koatty framework core",

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

{
"name": "koatty_core",
"version": "1.10.1",
"version": "1.11.0",
"description": "Koatty framework core",

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

Sorry, the diff of this file is too big to display

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