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.4.0 to 1.4.2

2

CHANGELOG.md

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

### [1.4.2](https://github.com/koatty/koatty_core/compare/v1.4.0...v1.4.2) (2021-12-19)
## [1.4.0](https://github.com/koatty/koatty_core/compare/v1.3.38...v1.4.0) (2021-12-18)

@@ -7,0 +9,0 @@

2

dist/index.d.ts
/*!
* @Author: richen
* @Date: 2021-12-18 23:21:23
* @Date: 2021-12-19 21:31:31
* @License: BSD (3-Clause)

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

/*!
* @Author: richen
* @Date: 2021-12-18 23:21:10
* @Date: 2021-12-19 21:31:19
* @License: BSD (3-Clause)

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

app.context = null;
context.app = request.app = response.app = app;
// context.app = request.app = response.app = app;
// throw

@@ -231,7 +231,7 @@ context.throw = function (statusOrMessage, codeOrMessage = 1, status) {

context = initBaseContext(app, ctx, req, resp);
return createWsContext(context, res, res);
return createWsContext(context, req.data, res);
case "grpc":
resp = new http.ServerResponse(req);
context = initBaseContext(app, ctx, req, resp);
return createGrpcContext(context, res, res);
resp = new http.ServerResponse(req.request);
context = initBaseContext(app, ctx, req.request, resp);
return createGrpcContext(context, req, res);
default:

@@ -282,7 +282,7 @@ return initBaseContext(app, ctx, req, res);

* @param {KoattyContext} ctx
* @param {(Buffer | ArrayBuffer | Buffer[])} data
* @param {WebSocket} socket
* @param {(Buffer | ArrayBuffer | Buffer[])} data
* @returns {*} {KoattyContext}
*/
function createWsContext(ctx, socket, data) {
function createWsContext(ctx, data, socket) {
koatty_lib.Helper.define(ctx, "websocket", socket);

@@ -289,0 +289,0 @@ ctx.setMetaData("_body", data.toString());

{
"name": "koatty_core",
"version": "1.4.0",
"version": "1.4.2",
"description": "Koatty framework core",

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

{
"name": "koatty_core",
"version": "1.4.0",
"version": "1.4.2",
"description": "Koatty framework core",

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

Sorry, the diff of this file is not supported yet

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