@rushstack/debug-certificate-manager
Advanced tools
Comparing version 1.3.46 to 1.3.47
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.43.6" | ||
"packageVersion": "7.43.7" | ||
} | ||
] | ||
} |
@@ -168,3 +168,3 @@ "use strict"; | ||
]); | ||
if (winUntrustResult.code !== 0) { | ||
if (winUntrustResult.exitCode !== 0) { | ||
terminal.writeErrorLine(`Error: ${winUntrustResult.stderr.join(' ')}`); | ||
@@ -187,3 +187,3 @@ return false; | ||
]); | ||
if (macFindCertificateResult.code !== 0) { | ||
if (macFindCertificateResult.exitCode !== 0) { | ||
terminal.writeErrorLine(`Error finding the development certificate: ${macFindCertificateResult.stderr.join(' ')}`); | ||
@@ -206,3 +206,3 @@ return false; | ||
]); | ||
if (macUntrustResult.code === 0) { | ||
if (macUntrustResult.exitCode === 0) { | ||
terminal.writeVerboseLine('Successfully untrusted development certificate.'); | ||
@@ -383,3 +383,3 @@ return true; | ||
]); | ||
if (winTrustResult.code !== 0) { | ||
if (winTrustResult.exitCode !== 0) { | ||
terminal.writeErrorLine(`Error: ${winTrustResult.stdout.toString()}`); | ||
@@ -391,3 +391,3 @@ const errorLines = winTrustResult.stdout | ||
// Not sure if this is always the status code for "cancelled" - should confirm. | ||
if (winTrustResult.code === 2147943623 || | ||
if (winTrustResult.exitCode === 2147943623 || | ||
errorLines[errorLines.length - 1].indexOf('The operation was canceled by the user.') > 0) { | ||
@@ -419,3 +419,3 @@ terminal.writeLine('Certificate trust cancelled.'); | ||
]); | ||
if (result.code === 0) { | ||
if (result.exitCode === 0) { | ||
terminal.writeVerboseLine('Successfully trusted development certificate.'); | ||
@@ -430,3 +430,3 @@ return true; | ||
else { | ||
terminal.writeErrorLine(`Certificate trust failed with an unknown error. Exit code: ${result.code}. ` + | ||
terminal.writeErrorLine(`Certificate trust failed with an unknown error. Exit code: ${result.exitCode}. ` + | ||
`Error: ${result.stderr.join(' ')}`); | ||
@@ -453,3 +453,3 @@ return false; | ||
]); | ||
if (winVerifyStoreResult.code !== 0) { | ||
if (winVerifyStoreResult.exitCode !== 0) { | ||
terminal.writeVerboseLine('The development certificate was not found in the store. CertUtil error: ', winVerifyStoreResult.stderr.join(' ')); | ||
@@ -472,3 +472,3 @@ return false; | ||
]); | ||
if (macFindCertificateResult.code !== 0) { | ||
if (macFindCertificateResult.exitCode !== 0) { | ||
terminal.writeVerboseLine('The development certificate was not found in keychain. Find certificate error: ', macFindCertificateResult.stderr.join(' ')); | ||
@@ -514,3 +514,3 @@ return false; | ||
]); | ||
if (repairStoreResult.code !== 0) { | ||
if (repairStoreResult.exitCode !== 0) { | ||
terminal.writeVerboseLine(`CertUtil Error: ${repairStoreResult.stderr.join('')}`); | ||
@@ -517,0 +517,0 @@ terminal.writeVerboseLine(`CertUtil: ${repairStoreResult.stdout.join('')}`); |
export interface IRunResult { | ||
stdout: string[]; | ||
stderr: string[]; | ||
code: number; | ||
/** | ||
* The exit code, or -1 if the child process was terminated by a signal | ||
*/ | ||
exitCode: number; | ||
} | ||
@@ -6,0 +9,0 @@ export interface ISudoOptions { |
@@ -32,4 +32,5 @@ "use strict"; | ||
}); | ||
childProcess.on('close', (code) => { | ||
resolve({ code, stdout, stderr }); | ||
childProcess.on('close', (exitCode, signal) => { | ||
const normalizedExitCode = typeof exitCode === 'number' ? exitCode : signal ? -1 : 0; | ||
resolve({ exitCode: normalizedExitCode, stdout, stderr }); | ||
}); | ||
@@ -36,0 +37,0 @@ }); |
{ | ||
"name": "@rushstack/debug-certificate-manager", | ||
"version": "1.3.46", | ||
"version": "1.3.47", | ||
"description": "Cross-platform functionality to create debug ssl certificates.", | ||
@@ -16,9 +16,9 @@ "main": "lib/index.js", | ||
"sudo": "~1.0.3", | ||
"@rushstack/node-core-library": "4.3.0", | ||
"@rushstack/terminal": "0.11.0" | ||
"@rushstack/terminal": "0.11.1", | ||
"@rushstack/node-core-library": "5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node-forge": "1.0.4", | ||
"@rushstack/heft": "0.66.9", | ||
"local-node-rig": "1.0.0" | ||
"local-node-rig": "1.0.0", | ||
"@rushstack/heft": "0.66.10" | ||
}, | ||
@@ -25,0 +25,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
107581
1075
+ Added@rushstack/node-core-library@5.0.0(transitive)
+ Added@rushstack/terminal@0.11.1(transitive)
+ Addedajv@8.13.0(transitive)
+ Addedajv-draft-04@1.0.0(transitive)
+ Addedajv-formats@3.0.1(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removed@rushstack/node-core-library@4.3.0(transitive)
- Removed@rushstack/terminal@0.11.0(transitive)
- Removedcommander@10.0.1(transitive)
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedvalidator@13.12.0(transitive)
- Removedz-schema@5.0.6(transitive)
Updated@rushstack/terminal@0.11.1