Comparing version 1.0.0-beta.8 to 1.0.0-beta.9
@@ -33,3 +33,3 @@ "use strict"; | ||
debug('Saving certificate authority credentials to system keychain'); | ||
saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath); | ||
yield saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath); | ||
debug(`Adding the root certificate authority to trust stores`); | ||
@@ -113,2 +113,2 @@ if (constants_1.isMac) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydGlmaWNhdGUtYXV0aG9yaXR5LmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9kYXcvb3NzL2RldmNlcnQvIiwic291cmNlcyI6WyJjZXJ0aWZpY2F0ZS1hdXRob3JpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQWlDO0FBQ2pDLDJCQUEwRTtBQUMxRSxxQ0FBcUM7QUFDckMsMkJBQTJCO0FBQzNCLDZCQUFzQztBQUN0QyxpQ0FBaUM7QUFFakMsMkNBUXFCO0FBQ3JCLDZDQUFvRDtBQUNwRCw2Q0FBc0Q7QUFDdEQsaURBQTBEO0FBQzFELG1DQUFrQztBQUNsQyxpREFBNkM7QUFHN0MsTUFBTSxLQUFLLEdBQUcsV0FBVyxDQUFDLCtCQUErQixDQUFDLENBQUM7QUFFM0Q7OztHQUdHO0FBQ0gscUNBQTBELFVBQW1CLEVBQUU7O1FBQzdFLEtBQUssQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO1FBQ2pELElBQUksV0FBVyxHQUFHLGNBQUcsRUFBRSxDQUFDLElBQUksQ0FBQztRQUM3QixJQUFJLFlBQVksR0FBRyxjQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUM7UUFFOUIsS0FBSyxDQUFDLGdGQUFnRixDQUFDLENBQUM7UUFDeEYsd0JBQXdCLEVBQUUsQ0FBQztRQUUzQixLQUFLLENBQUMsMEJBQTBCLENBQUMsQ0FBQztRQ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JywgJ3V0ZjgnKSArIGRlY2lwaGVyLmZpbmFsKCd1dGY4Jyk7XG59Il19 |
{ | ||
"name": "devcert", | ||
"version": "1.0.0-beta.8", | ||
"version": "1.0.0-beta.9", | ||
"description": "Generate trusted local SSL/TLS certificates for local SSL development", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -45,3 +45,3 @@ import * as crypto from 'crypto'; | ||
debug('Saving certificate authority credentials to system keychain'); | ||
saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath); | ||
await saveCertificateAuthorityCredentials(rootKeyPath, rootCertPath); | ||
@@ -48,0 +48,0 @@ debug(`Adding the root certificate authority to trust stores`); |
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
211493