koatty_trace
Advanced tools
Comparing version 1.6.4 to 1.6.5
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.6.5](https://github.com/koatty/koatty_trace/compare/v1.6.4...v1.6.5) (2022-03-02) | ||
### [1.6.4](https://github.com/koatty/koatty_trace/compare/v1.6.2...v1.6.4) (2022-03-02) | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2022-03-02 10:39:41 | ||
* @Date: 2022-03-02 18:46:38 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2022-03-02 10:39:26 | ||
* @Date: 2022-03-02 18:46:13 | ||
* @License: BSD (3-Clause) | ||
@@ -14,3 +14,2 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
var async_hooks = require('async_hooks'); | ||
var util = require('util'); | ||
var Helper = require('koatty_lib'); | ||
@@ -20,2 +19,3 @@ var koatty_container = require('koatty_container'); | ||
var koatty_exception = require('koatty_exception'); | ||
var util = require('util'); | ||
var stream = require('stream'); | ||
@@ -149,3 +149,3 @@ | ||
* @Date: 2021-11-19 00:14:59 | ||
* @LastEditTime: 2022-03-02 10:37:00 | ||
* @LastEditTime: 2022-03-02 18:44:41 | ||
*/ | ||
@@ -192,6 +192,3 @@ /** | ||
if (ctx.status >= 400) { | ||
if (ctx.body) { | ||
ctx.body = util.inspect(ctx.body); | ||
} | ||
throw new koatty_exception.Exception(ctx.body || "", 1, ctx.status); | ||
throw new koatty_exception.Exception("", 1, ctx.status); | ||
} | ||
@@ -217,3 +214,3 @@ return null; | ||
* @Date: 2021-11-19 00:23:06 | ||
* @LastEditTime: 2022-03-02 10:37:04 | ||
* @LastEditTime: 2022-03-02 18:44:37 | ||
*/ | ||
@@ -262,3 +259,3 @@ /** | ||
if (ctx.status >= 400) { | ||
throw new koatty_exception.Exception(util.inspect(ctx.body), 0, ctx.status); | ||
throw new koatty_exception.Exception("", 0, ctx.status); | ||
} | ||
@@ -287,3 +284,3 @@ ctx.rpc.callback(null, ctx.body); | ||
* @Date: 2021-11-19 00:24:43 | ||
* @LastEditTime: 2022-03-02 10:37:11 | ||
* @LastEditTime: 2022-03-02 18:43:55 | ||
*/ | ||
@@ -341,3 +338,3 @@ /** | ||
if (ctx.status >= 400) { | ||
throw new koatty_exception.Exception(util.inspect(ctx.body), 1, ctx.status); | ||
throw new koatty_exception.Exception("", 1, ctx.status); | ||
} | ||
@@ -344,0 +341,0 @@ ctx.websocket.send(ctx.body, null); |
{ | ||
"name": "koatty_trace", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "Full link tracking and error interception for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,1 +0,1 @@ | ||
window.jest_html_reporters_callback__({"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":0,"numTotalTests":0,"startTime":1646188763531,"success":false,"testResults":[],"wasInterrupted":false,"config":{"bail":0,"changedFilesWithAncestor":false,"collectCoverage":true,"collectCoverageFrom":[],"coverageDirectory":"coverage","coverageProvider":"babel","coverageReporters":["html","lcov","json","text","clover","text-summary"],"detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"expand":false,"findRelatedTests":false,"forceExit":false,"json":false,"lastCommit":false,"listTests":false,"logHeapUsage":false,"maxConcurrency":5,"maxWorkers":7,"noStackTrace":false,"nonFlagArgs":[],"notify":false,"notifyMode":"failure-change","onlyChanged":false,"onlyFailures":false,"passWithNoTests":true,"projects":[],"reporters":[["default",{}],["/Users/richen/Workspace/nodejs/koatty_trace/node_modules/jest-html-reporters/index.js",{}]],"rootDir":"/Users/richen/Workspace/nodejs/koatty_trace","runTestsByPath":false,"skipFilter":false,"testFailureExitCode":1,"testPathPattern":"","testSequencer":"/Users/richen/Workspace/nodejs/koatty_trace/node_modules/@jest/test-sequencer/build/index.js","updateSnapshot":"new","useStderr":false,"watch":false,"watchAll":false,"watchman":true},"endTime":1646188763572,"_reporterOptions":{"publicPath":"/Users/richen/Workspace/nodejs/koatty_trace","filename":"jest_html_reporters.html","expand":false,"pageTitle":"","hideIcon":false,"testCommand":"npx jest","openReport":false,"failureMessageOnly":false,"enableMergeData":false,"dataMergeLevel":1},"attachInfos":{}}) | ||
window.jest_html_reporters_callback__({"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":0,"numTotalTests":0,"startTime":1646217971899,"success":false,"testResults":[],"wasInterrupted":false,"config":{"bail":0,"changedFilesWithAncestor":false,"collectCoverage":true,"collectCoverageFrom":[],"coverageDirectory":"coverage","coverageProvider":"babel","coverageReporters":["html","lcov","json","text","clover","text-summary"],"detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"expand":false,"findRelatedTests":false,"forceExit":false,"json":false,"lastCommit":false,"listTests":false,"logHeapUsage":false,"maxConcurrency":5,"maxWorkers":7,"noStackTrace":false,"nonFlagArgs":[],"notify":false,"notifyMode":"failure-change","onlyChanged":false,"onlyFailures":false,"passWithNoTests":true,"projects":[],"reporters":[["default",{}],["/Users/richen/Workspace/nodejs/koatty_trace/node_modules/jest-html-reporters/index.js",{}]],"rootDir":"/Users/richen/Workspace/nodejs/koatty_trace","runTestsByPath":false,"skipFilter":false,"testFailureExitCode":1,"testPathPattern":"","testSequencer":"/Users/richen/Workspace/nodejs/koatty_trace/node_modules/@jest/test-sequencer/build/index.js","updateSnapshot":"new","useStderr":false,"watch":false,"watchAll":false,"watchman":true},"endTime":1646217971948,"_reporterOptions":{"publicPath":"/Users/richen/Workspace/nodejs/koatty_trace","filename":"jest_html_reporters.html","expand":false,"pageTitle":"","hideIcon":false,"testCommand":"npx jest","openReport":false,"failureMessageOnly":false,"enableMergeData":false,"dataMergeLevel":1},"attachInfos":{}}) |
{ | ||
"name": "koatty_trace", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "Full link tracking and error interception for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2042252
5143