Comparing version 1.0.3 to 1.0.4
@@ -168,3 +168,3 @@ /*! | ||
if (me.debug) console.debug(resp.toJSON()); | ||
/* | ||
@@ -605,3 +605,3 @@ { | ||
}; | ||
me.promisify = me.promisify || require('util').promisify; | ||
me.promisify = me.promisify || require('util').promisify /*node v8+*/ || require('bluebird').promisify /*node v6*/; | ||
@@ -608,0 +608,0 @@ |
{ | ||
"name": "acme-v2", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Free SSL. A framework for building Let's Encrypt v2 clients, and other ACME v2 (draft 11) clients. Successor to le-acme-core.js", | ||
@@ -44,3 +44,6 @@ "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js", | ||
"rsa-compat": "^1.3.0" | ||
}, | ||
"optionalDependencies": { | ||
"bluebird": "^3.5.1" | ||
} | ||
} |
@@ -97,2 +97,4 @@ | Sponsored by [ppl](https://ppl.family) | ||
See Full Documentation at <https://git.coolaj86.com/coolaj86/le-acme-core.js> | ||
``` | ||
@@ -107,8 +109,6 @@ var RSA = require('rsa-compat').RSA; | ||
See documentation at <https://git.coolaj86.com/coolaj86/le-acme-core.js> | ||
## Promise API (dev) | ||
## draft API (dev) | ||
Status: Almost stable, but **not semver locked** | ||
Status: Almost stable, not locked | ||
This API is a simple evolution of le-acme-core, | ||
@@ -118,2 +118,3 @@ but tries to provide a better mapping to the new draft 11 APIs. | ||
``` | ||
// Create Instance (Dependency Injection) | ||
var ACME = require('acme-v2').ACME.create({ | ||
@@ -137,5 +138,8 @@ RSA: require('rsa-compat').RSA | ||
}); | ||
``` | ||
```javascript | ||
// Discover Directory URLs | ||
ACME.init(acmeDirectoryUrl) // returns Promise<acmeUrls={keyChange,meta,newAccount,newNonce,newOrder,revokeCert}> | ||
// Accounts | ||
@@ -169,6 +173,2 @@ ACME.accounts.create(options) // returns Promise<regr> registration data | ||
} | ||
// Discovery URLs | ||
ACME.init(acmeDirectoryUrl) // returns Promise<acmeUrls={keyChange,meta,newAccount,newNonce,newOrder,revokeCert}> | ||
``` | ||
@@ -194,2 +194,4 @@ | ||
* v1.0.3 | ||
* documentation cleanup | ||
* v1.0.2 | ||
@@ -196,0 +198,0 @@ * use `options.contact` to provide raw contact array |
42765
219
3