From f8f3086f1b45ba9e9c8f377a1694d1713c02a5c8 Mon Sep 17 00:00:00 2001 From: Stanislav Panasik Date: Mon, 16 Apr 2018 10:29:12 +0500 Subject: [PATCH] fix 'SyntaxError: Unexpected token =' --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 401d4fc..31d85ac 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ LE.create = function (le) { ACME = require('le-acme-core').ACME; 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)) { if ('v02' !== le.version && 'draft-11' !== le.version) { ACME = require('le-acme-core').ACME; diff --git a/package.json b/package.json index 7b219ce..c4a5e66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.2.0", + "version": "2.2.1", "description": "Let's Encrypt for node.js on npm", "main": "index.js", "scripts": {