From 7ebcd93ceddb2a1b006df2d2fa5f6cde5125d111 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 26 Oct 2015 20:41:19 +0700 Subject: [PATCH] pify tweaks --- package.json | 2 +- test/https.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d59649a..ed2f6c4 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "into-stream": "^2.0.0", "nyc": "^3.2.2", "pem": "^1.4.4", - "pify": "^2.2.0", + "pify": "^2.3.0", "tempfile": "^1.1.1", "xo": "*" }, diff --git a/test/https.js b/test/https.js index ce03957..87772fa 100644 --- a/test/https.js +++ b/test/https.js @@ -10,15 +10,15 @@ let cert; let caRootKey; let caRootCert; -let pemify = pify.all(pem); +const pemP = pify(pem); test.before('setup', async t => { - const caKeys = await pemify.createCertificate({days: 1, selfSigned: true}); + const caKeys = await pemP.createCertificate({days: 1, selfSigned: true}); caRootKey = caKeys.serviceKey; caRootCert = caKeys.certificate; - const keys = await pemify.createCertificate({ + const keys = await pemP.createCertificate({ serviceCertificate: caRootCert, serviceKey: caRootKey, serial: Date.now(),