Comparing version 2.3.0 to 2.3.1
#!/usr/bin/env node | ||
const /** @type {ClusterProcess} */ | ||
luster = require('../lib/luster'), | ||
fs = require('fs'), | ||
path = require('path'); | ||
// config path is right after this script in process.argv | ||
const scriptArgvIndex = process.argv.findIndex(arg => arg === __filename || path.resolve(arg) === __filename); | ||
// path in the argument may be relative or symlink | ||
const scriptArgvIndex = process.argv.findIndex(arg => arg === __filename || fs.realpathSync(path.resolve(arg)) === __filename); | ||
const configFilePath = path.resolve(process.cwd(), process.argv[scriptArgvIndex + 1] || 'luster.conf'); | ||
luster.configure(require(configFilePath), true, path.dirname(configFilePath)).run(); |
{ | ||
"name": "luster", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Node.js cluster wrapper", | ||
@@ -5,0 +5,0 @@ "main": "./lib/luster.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87860
2225
0
11