fix 'SyntaxError: Unexpected token ='

This commit is contained in:
Stanislav Panasik 2018-04-16 10:29:12 +05:00
parent 4cd1a03d8a
commit f8f3086f1b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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": {