Comparing version 1.0.0-beta.12 to 1.0.0-beta.13
@@ -32,3 +32,3 @@ "use strict"; | ||
utils_1.openssl(`req -config ${constants_1.opensslConfPath} -key ${rootKeyPath} -out ${rootCertPath} -new -subj "/CN=devcert" -x509 -days 7000 -extensions v3_ca`); | ||
debug('Saving certificate authority credentials to system keychain'); | ||
debug('Saving certificate authority credentials'); | ||
yield saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath); | ||
@@ -91,10 +91,9 @@ debug(`Adding the root certificate authority to trust stores`); | ||
function getPasswordFromUser() { | ||
return new Promise((resolve) => { | ||
inquirer.prompt([{ | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
let { password } = yield inquirer.prompt([{ | ||
type: 'password', | ||
name: 'password', | ||
message: 'password:' | ||
}], ({ password }) => { | ||
resolve(password); | ||
}); | ||
}]); | ||
return password; | ||
}); | ||
@@ -110,2 +109,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydGlmaWNhdGUtYXV0aG9yaXR5LmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9kYXcvb3NzL2RldmNlcnQvIiwic291cmNlcyI6WyJjZXJ0aWZpY2F0ZS1hdXRob3JpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQWlDO0FBQ2pDLDJCQUEwRTtBQUMxRSxxQ0FBcUM7QUFDckMsMkJBQTJCO0FBQzNCLDZCQUFzQztBQUN0QyxxQ0FBcUM7QUFFckMsMkNBUXFCO0FBQ3JCLDZDQUFvRDtBQUNwRCw2Q0FBc0Q7QUFDdEQsaURBQTBEO0FBQzFELG1DQUFrQztBQUNsQyxpREFBNkM7QUFHN0MsTUFBTSxLQUFLLEdBQUcsV0FBVyxDQUFDLCtCQUErQixDQUFDLENBQUM7QUFFM0Q7OztHQUdHO0FBQ0gscUNBQTBELFVBQW1CLEVBQUU7O1FBQzdFLEtBQUssQ0F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WlyZXIucHJvbXB0KFt7XG4gICAgdHlwZTogJ3Bhc3N3b3JkJyxcbiAgICBuYW1lOiAncGFzc3dvcmQnLFxuICAgIG1lc3NhZ2U6ICdwYXNzd29yZDonXG4gIH1dKTtcbiAgcmV0dXJuIHBhc3N3b3JkO1xufVxuXG5mdW5jdGlvbiBlbmNyeXB0KHRleHQ6IHN0cmluZywga2V5OiBzdHJpbmcpIHtcbiAgbGV0IGNpcGhlciA9IGNyeXB0by5jcmVhdGVDaXBoZXIoJ2FlczI1NicsIGtleSk7XG4gIHJldHVybiBjaXBoZXIudXBkYXRlKHRleHQsICd1dGY4JywgJ2hleCcpICsgY2lwaGVyLmZpbmFsKCdoZXgnKTtcbn1cblxuZnVuY3Rpb24gZGVjcnlwdChlbmNyeXB0ZWQ6IHN0cmluZywga2V5OiBzdHJpbmcpIHtcbiAgbGV0IGRlY2lwaGVyID0gY3J5cHRvLmNyZWF0ZURlY2lwaGVyKCdhZXMyNTYnLCBrZXkpO1xuICByZXR1cm4gZGVjaXBoZXIudXBkYXRlKGVuY3J5cHRlZCwgJ2hleCcsICd1dGY4JykgKyBkZWNpcGhlci5maW5hbCgndXRmOCcpO1xufSJdfQ== |
{ | ||
"name": "devcert", | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.13", | ||
"description": "Generate trusted local SSL/TLS certificates for local SSL development", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -44,3 +44,3 @@ import * as crypto from 'crypto'; | ||
debug('Saving certificate authority credentials to system keychain'); | ||
debug('Saving certificate authority credentials'); | ||
await saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath); | ||
@@ -99,12 +99,9 @@ | ||
function getPasswordFromUser(): Promise<string> { | ||
return new Promise((resolve) => { | ||
inquirer.prompt([{ | ||
type: 'password', | ||
name: 'password', | ||
message: 'password:' | ||
}], ({ password }: { password: string }) => { | ||
resolve(password); | ||
}); | ||
}); | ||
async function getPasswordFromUser(): Promise<string> { | ||
let { password } = await inquirer.prompt([{ | ||
type: 'password', | ||
name: 'password', | ||
message: 'password:' | ||
}]); | ||
return password; | ||
} | ||
@@ -111,0 +108,0 @@ |
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
215501
1431