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.2.5 to 1.2.7

8

dist/Application.js

@@ -14,3 +14,3 @@ "use strict";

const koatty_logger_1 = require("koatty_logger");
const koatty_trace_1 = require("koatty_trace");
const koatty_exception_1 = require("koatty_exception");
const Context_1 = require("./Context");

@@ -177,3 +177,3 @@ /**

this.on('error', (err) => {
if (!koatty_trace_1.isPrevent(err)) {
if (!koatty_exception_1.isPrevent(err)) {
koatty_logger_1.DefaultLogger.Error(err);

@@ -192,3 +192,3 @@ }

process.on('unhandledRejection', (reason) => {
if (!koatty_trace_1.isPrevent(reason)) {
if (!koatty_exception_1.isPrevent(reason)) {
koatty_logger_1.DefaultLogger.Error(reason);

@@ -205,3 +205,3 @@ }

}
if (!koatty_trace_1.isPrevent(err)) {
if (!koatty_exception_1.isPrevent(err)) {
koatty_logger_1.DefaultLogger.Error(err);

@@ -208,0 +208,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateContext = void 0;
const koatty_trace_1 = require("koatty_trace");
const koatty_exception_1 = require("koatty_exception");
/**

@@ -15,5 +15,5 @@ * Create KoattyContext

if (typeof statusOrMessage !== "string") {
if (koatty_trace_1.HttpStatusCodeMap.has(statusOrMessage)) {
if (koatty_exception_1.HttpStatusCodeMap.has(statusOrMessage)) {
status = statusOrMessage;
statusOrMessage = koatty_trace_1.HttpStatusCodeMap.get(statusOrMessage);
statusOrMessage = koatty_exception_1.HttpStatusCodeMap.get(statusOrMessage);
}

@@ -25,3 +25,3 @@ }

}
throw new koatty_trace_1.Exception(statusOrMessage, codeOrMessage, status);
throw new koatty_exception_1.Exception(statusOrMessage, codeOrMessage, status);
};

@@ -28,0 +28,0 @@ Reflect.defineProperty(context, '_caches', {

@@ -5,3 +5,3 @@ /// <reference types="node" />

import { sendUnaryData, ServerDuplexStream, ServerReadableStream, ServerUnaryCall, ServerWritableStream } from "@grpc/grpc-js/build/src/server-call";
import { GrpcStatusCode } from "koatty_trace";
import { GrpcStatusCode } from "koatty_exception";
export declare type IRpcServerUnaryCall<RequestType, ResponseType> = ServerUnaryCall<RequestType, ResponseType>;

@@ -8,0 +8,0 @@ export declare type IRpcServerReadableStream<RequestType, ResponseType> = ServerReadableStream<RequestType, ResponseType>;

@@ -10,6 +10,6 @@ "use strict";

* @Date: 2021-11-16 14:46:22
* @LastEditTime: 2021-11-17 01:04:39
* @LastEditTime: 2021-11-17 01:28:36
*/
const events_1 = tslib_1.__importDefault(require("events"));
const koatty_trace_1 = require("koatty_trace");
const koatty_exception_1 = require("koatty_exception");
/**

@@ -26,5 +26,5 @@ * Koatty gRPC Context.

if (typeof message !== "string") {
if (koatty_trace_1.GrpcStatusCodeMap.has(status)) {
if (koatty_exception_1.GrpcStatusCodeMap.has(status)) {
status = message;
message = koatty_trace_1.GrpcStatusCodeMap.get(status);
message = koatty_exception_1.GrpcStatusCodeMap.get(status);
}

@@ -36,3 +36,3 @@ }

}
throw new koatty_trace_1.Exception(message, code, status);
throw new koatty_exception_1.Exception(message, code, status);
}

@@ -39,0 +39,0 @@ /**

{
"name": "koatty_core",
"version": "1.2.5",
"version": "1.2.7",
"description": "Koatty routing component, adapt to http1/2, websocket, gRPC.",

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

"koatty_container": "^1.x.x",
"koatty_exception": "^1.x.x",
"koatty_lib": "^1.x.x",
"koatty_logger": "^1.x.x",
"koatty_trace": "^1.x.x",
"tslib": "^2.3.1"

@@ -60,0 +60,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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