From 7ee525018c8104885b6327b62717dddc1b04a1de Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 5 Nov 2018 11:18:06 -0700 Subject: [PATCH] package reserved, use pkg --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index f8a7ef8..7c160a1 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var DAY = 24 * 60 * 60 * 1000; //var MIN = 60 * 1000; var ACME = require('acme-v2/compat').ACME; -var package = require('./package.json'); +var pkg = require('./package.json'); var PromiseA; try { PromiseA = require('bluebird'); @@ -125,9 +125,9 @@ Greenlock.create = function (gl) { gl._ipc = ipc; gl._communityPackage = gl._communityPackage || 'greenlock.js'; if ('greenlock.js' === gl._communityPackage) { - gl._communityPackageVersion = package.version; + gl._communityPackageVersion = pkg.version; } else { - gl._communityPackageVersion = gl._communityPackageVersion || ('greenlock.js-' + package.version); + gl._communityPackageVersion = gl._communityPackageVersion || ('greenlock.js-' + pkg.version); } gl.agreeToTerms = gl.agreeToTerms || function (args, agreeCb) { agreeCb(new Error("'agreeToTerms' was not supplied to Greenlock and 'agreeTos' was not supplied to Greenlock.register"));