koatty_exception
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.2.6](https://github.com/koatty/koatty_exception/compare/v1.2.5...v1.2.6) (2022-03-02) | ||
### [1.2.5](https://github.com/koatty/koatty_exception/compare/v1.2.4...v1.2.5) (2022-03-02) | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2022-03-02 18:32:38 | ||
* @Date: 2022-03-02 18:41:36 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2022-03-02 18:32:06 | ||
* @Date: 2022-03-02 18:41:23 | ||
* @License: BSD (3-Clause) | ||
@@ -530,3 +530,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @Date: 2022-02-10 17:39:54 | ||
* @LastEditTime: 2022-03-02 16:31:55 | ||
* @LastEditTime: 2022-03-02 18:38:18 | ||
*/ | ||
@@ -557,4 +557,3 @@ /** | ||
} | ||
ctx.rpc.callback(errObj, null); | ||
return; | ||
return ctx.rpc.callback(errObj, null); | ||
} | ||
@@ -610,3 +609,3 @@ catch (error) { | ||
* @Date: 2022-02-10 18:16:36 | ||
* @LastEditTime: 2022-03-02 16:29:48 | ||
* @LastEditTime: 2022-03-02 18:38:03 | ||
*/ | ||
@@ -629,4 +628,3 @@ /** | ||
const body = `{"code":${err.code || 1},"message":"${msg}","data":${ctx.body ? JSON.stringify(ctx.body) : (ctx.body || null)}}`; | ||
ctx.websocket.send(body); | ||
return null; | ||
return ctx.websocket.send(body); | ||
} | ||
@@ -633,0 +631,0 @@ catch (error) { |
{ | ||
"name": "koatty_exception", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Exception handler 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":1646217124018,"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_exception/node_modules/jest-html-reporters/index.js",{}]],"rootDir":"/Users/richen/Workspace/nodejs/koatty_exception","runTestsByPath":false,"skipFilter":false,"testFailureExitCode":1,"testPathPattern":"","testSequencer":"/Users/richen/Workspace/nodejs/koatty_exception/node_modules/@jest/test-sequencer/build/index.js","updateSnapshot":"new","useStderr":false,"watch":false,"watchAll":false,"watchman":true},"endTime":1646217124063,"_reporterOptions":{"publicPath":"/Users/richen/Workspace/nodejs/koatty_exception","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":1646217681719,"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_exception/node_modules/jest-html-reporters/index.js",{}]],"rootDir":"/Users/richen/Workspace/nodejs/koatty_exception","runTestsByPath":false,"skipFilter":false,"testFailureExitCode":1,"testPathPattern":"","testSequencer":"/Users/richen/Workspace/nodejs/koatty_exception/node_modules/@jest/test-sequencer/build/index.js","updateSnapshot":"new","useStderr":false,"watch":false,"watchAll":false,"watchman":true},"endTime":1646217681772,"_reporterOptions":{"publicPath":"/Users/richen/Workspace/nodejs/koatty_exception","filename":"jest_html_reporters.html","expand":false,"pageTitle":"","hideIcon":false,"testCommand":"npx jest","openReport":false,"failureMessageOnly":false,"enableMergeData":false,"dataMergeLevel":1},"attachInfos":{}}) |
{ | ||
"name": "koatty_exception", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Exception handler 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
1833757
6087