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

awix

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awix - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

36

awix.js
/**
* awix 1.3.5
* awix 1.3.6
* Copyright (c) [2019.08] BraveWang

@@ -772,3 +772,23 @@ * This software is licensed under the MPL-2.0.

//stream事件的回调函数
/**
* stream事件的回调函数,目前请求处理的流程:
*
* ----不支持----> 返回405错误
* /
* /
* 检查请求类型
* \
* \ / 设置事件处理函数 \
* ----支持----> | 解析路径 |--路由不存在
* \ 检查路由是否存在 / *-->返回404错误
* |
* 初始化请求上下文<----存在----*
* |
* *----根据不同请求类型设置相关事件回调函数---->调用请求执行函数
*
* 在处理上传数据的过程中,如果检测到超出最大限制,则会立即返回413错误。
*
* 在execRequest中会有解析Body数据和上传文件数据的过程。
*
*/
this.reqHandler = function (stream, headers) {

@@ -886,3 +906,3 @@ var remote_ip = stream.session.socket.remoteAddress;

stream.on('end',() => {
if (stream.closed) {
if (stream.closed || stream.aborted || stream.destroyed) {
return ;

@@ -978,7 +998,3 @@ }

}
if (k === 'session') {
serv.on(evt, (sess) => {
onSession(sess);
the.eventTable[evt]
});
if (k === 'tlsClientError' || k === 'session') {
continue;

@@ -1073,5 +1089,5 @@ }

if(message.type === 'success') {
console.log(message);
console.log(JSON.stringify(message));
} else {
console.error(message);
console.error(JSON.stringify(message));
}

@@ -1078,0 +1094,0 @@ });

{
"name": "awix",
"version": "1.3.5",
"version": "1.3.6",
"description": "a powerful web framework, build on module http2 and async/await.",

@@ -5,0 +5,0 @@ "main": "awix.js",

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