🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

greenlock-express

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greenlock-express - npm Package Compare versions

Comparing version

to
3.0.11

45

greenlock-express.js

@@ -1,44 +0,3 @@

"use strict";
'use strict';
require("./lib/compat");
var cluster = require("cluster");
// Greenlock Express
var GLE = module.exports;
// Node's cluster is awesome, because it encourages writing scalable services.
//
// The point of this provide an API that is consistent between single-process
// and multi-process services so that beginners can more easily take advantage
// of what cluster has to offer.
//
// This API provides just enough abstraction to make it easy, but leaves just
// enough hoopla so that there's not a large gap in understanding what happens
// under the hood. That's the hope, anyway.
GLE.init = function(fn) {
if (cluster.isWorker) {
// ignore the init function and launch the worker
return require("./worker.js").create();
}
var opts = fn();
if (!opts || "object" !== typeof opts) {
throw new Error(
"the `Greenlock.init(fn)` function should return an object `{ maintainerEmail, packageAgent, notify }`"
);
}
// just for ironic humor
["cloudnative", "cloudscale", "webscale", "distributed", "blockchain"].forEach(function(k) {
if (opts[k]) {
opts.cluster = true;
}
});
if (opts.cluster) {
return require("./master.js").create(opts);
}
return require("./single.js").create(opts);
};
module.exports = require('@root/greenlock-express');

3

package.json
{
"name": "greenlock-express",
"version": "3.0.10",
"version": "3.0.11",
"description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.",

@@ -21,2 +21,3 @@ "main": "greenlock-express.js",

"@root/greenlock": "^3.0.17",
"@root/greenlock-express": "^3.0.11",
"redirect-https": "^1.1.5"

@@ -23,0 +24,0 @@ },

@@ -118,3 +118,3 @@ # New Documentation & [v2/v3 Migration Guide](https://git.rootprojects.org/root/greenlock.js/src/branch/v3/MIGRATION_GUIDE_V2_V3.md)

This example is shown with Express, but any node app will doGreenlock
This example is shown with Express, but any node app will do. Greenlock
works with everything.

@@ -121,0 +121,0 @@ (or any node-style http app)