fix 'SyntaxError: Unexpected token =' #6
2
index.js
2
index.js
|
@ -125,7 +125,7 @@ LE.create = function (le) {
|
||||||
ACME = require('le-acme-core').ACME;
|
ACME = require('le-acme-core').ACME;
|
||||||
console.warn("Let's Encrypt v1 is deprecated. Please update to Let's Encrypt v2 (ACME draft 11)");
|
console.warn("Let's Encrypt v1 is deprecated. Please update to Let's Encrypt v2 (ACME draft 11)");
|
||||||
}
|
}
|
||||||
else if (-1 !=== [ 'https://acme-v02.api.letsencrypt.org/directory'
|
else if (-1 !== [ 'https://acme-v02.api.letsencrypt.org/directory'
|
||||||
, 'https://acme-staging-v02.api.letsencrypt.org/directory' ].indexOf(le.server)) {
|
, 'https://acme-staging-v02.api.letsencrypt.org/directory' ].indexOf(le.server)) {
|
||||||
if ('v02' !== le.version && 'draft-11' !== le.version) {
|
if ('v02' !== le.version && 'draft-11' !== le.version) {
|
||||||
ACME = require('le-acme-core').ACME;
|
ACME = require('le-acme-core').ACME;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "greenlock",
|
"name": "greenlock",
|
||||||
"version": "2.2.0",
|
"version": "2.2.1",
|
||||||
"description": "Let's Encrypt for node.js on npm",
|
"description": "Let's Encrypt for node.js on npm",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue