@seneca/repl
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -24,3 +24,3 @@ const { Duplex } = require('stream') | ||
this.processing = true | ||
const cmd = chunk.toString() | ||
let cmd = chunk.toString() | ||
@@ -62,5 +62,6 @@ if (!cmd.endsWith('\n')) { | ||
out = | ||
'# ERROR: ' + body.error$ | ||
'# ERROR: ' + | ||
(body.error$ | ||
? body.error$.code + ' ' + (body.error$?.message || '') | ||
: 'unknown' | ||
: 'unknown') | ||
} else { | ||
@@ -67,0 +68,0 @@ out = body.out |
@@ -129,6 +129,9 @@ "use strict"; | ||
if (null == replInst) { | ||
seneca.fail('unknown-repl', { id: replID }); | ||
return seneca.fail('unknown-repl', { id: replID }); | ||
} | ||
else if ('open' !== replInst.status) { | ||
seneca.fail('invalid-status', { id: replID, status: replInst.status }); | ||
return seneca.fail('invalid-status', { | ||
id: replID, | ||
status: replInst.status, | ||
}); | ||
} | ||
@@ -135,0 +138,0 @@ let cmd = msg.cmd; |
{ | ||
"name": "@seneca/repl", | ||
"description": "Provides a client and server REPL for Seneca microservice systems.", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"main": "dist/repl.js", | ||
@@ -47,3 +47,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@aws-sdk/client-lambda": "^3.379.1", | ||
"@aws-sdk/client-lambda": "^3.382.0", | ||
"@seneca/entity-util": "^1.4.0", | ||
@@ -50,0 +50,0 @@ "@seneca/maintain": "^0.1.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
80063
1227
456