node-opcua-pki 6.18.0 → 6.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/pki.mjs +1 -1
- package/dist/bin/pki.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -8
- package/readme.md +34 -13
package/dist/bin/pki.mjs
CHANGED
|
@@ -2022,7 +2022,7 @@ async function execute(cmd, cwd) {
|
|
|
2022
2022
|
cmd,
|
|
2023
2023
|
options,
|
|
2024
2024
|
(err) => {
|
|
2025
|
-
const exitCode = err === null ? 0 : err.code
|
|
2025
|
+
const exitCode = err === null ? 0 : typeof err.code === "number" ? err.code : 1;
|
|
2026
2026
|
if (err) reject(err);
|
|
2027
2027
|
else {
|
|
2028
2028
|
resolve({ exitCode, output });
|