actionhero-socket-server
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -260,3 +260,3 @@ import * as uuid from "uuid"; | ||
newClient.on("close", () => { | ||
return resolve(); | ||
return resolve(null); | ||
}); | ||
@@ -305,3 +305,3 @@ newClient.write("quit\n"); | ||
resolve(); | ||
return resolve(null); | ||
} | ||
@@ -581,3 +581,3 @@ }; | ||
client.on("close", () => { | ||
return resolve(); | ||
return resolve(null); | ||
}); | ||
@@ -584,0 +584,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"description": "A TCP and JSON server for actionhero", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"homepage": "http://www.actionherojs.com", | ||
@@ -37,10 +37,10 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@types/node": "^14.6.4", | ||
"@types/jest": "^26.0.13", | ||
"actionhero": "^23.0.10", | ||
"jest": "^26.4.2", | ||
"prettier": "^2.1.1", | ||
"ts-jest": "^26.3.0", | ||
"ts-node-dev": "^1.0.0-pre.62", | ||
"typescript": "^4.0.2" | ||
"@types/node": "^14.14.10", | ||
"@types/jest": "^26.0.15", | ||
"actionhero": "^25.0.2", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.4.4", | ||
"ts-node-dev": "^1.0.0", | ||
"typescript": "^4.1.2" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
@@ -1,6 +0,11 @@ | ||
const path = require("path"); | ||
import * as path from "path"; | ||
import * as fs from "fs"; | ||
export const DEFAULT = { | ||
general: (config) => { | ||
const packageJSON = require("./../../package.json"); | ||
const packageJSON = JSON.parse( | ||
fs | ||
.readFileSync(path.join(__dirname, "..", "..", "package.json")) | ||
.toString() | ||
); | ||
@@ -24,4 +29,8 @@ return { | ||
disableParamScrubbing: false, | ||
// enable action response to logger | ||
enableResponseLogging: false, | ||
// params you would like hidden from any logs | ||
filteredParams: [], | ||
// responses you would like hidden from any logs | ||
filteredResponse: [], | ||
// values that signify missing params | ||
@@ -28,0 +37,0 @@ missingParamChecks: [null, "", undefined], |
@@ -41,2 +41,4 @@ export const DEFAULT = { | ||
}, | ||
// See ActionProcessor#applyDefaultErrorLogLineFormat to see an example of how to customize | ||
actionProcessor: null, | ||
}, | ||
@@ -43,0 +45,0 @@ |
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
69665
1607