New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

manager

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

manager - npm Package Compare versions

Comparing version
1.0.7
to
1.0.8
+26
-14
lib/manager.js

@@ -110,5 +110,13 @@ var path = require('path');

setTimeout(function () {
isWait = false;
manageWorkers();
if (filename && filename.indexOf('build.json')) {
loadConfig(build);
assetWatcher(build.js, 'js'); // Monitor JS files changes
assetWatcher(build.css, 'css'); // Monitor CSS files changes
}
}, 500)

@@ -156,2 +164,19 @@ }

var loadConfig = function (config) {
if (typeof config != 'object') {
config = {};
}
basePath = config.basePath || path.dirname(require.main.filename);
build = require(path.join(basePath, 'build.json'));
for (var val in config) {
build[val] = config[val];
}
if (typeof build != 'object') {
throw new Error('[MANAGER]'.magenta + ' Cant load configuration from build.json'.red);
}
}
//Public methods

@@ -216,17 +241,4 @@ module.exports.on = function (event, cb) {

if (typeof config != 'object') {
config = {};
}
loadConfig(config);
basePath = config.basePath || path.dirname(require.main.filename);
build = require(path.join(basePath, 'build.json'));
for (var val in config) {
build[val] = config[val];
}
if (typeof build != 'object') {
throw new Error('[MANAGER]'.magenta + ' Cant load configuration from build.json'.red);
}
if (cluster.isMaster) {

@@ -233,0 +245,0 @@ manageWorkers();

{
"name": "manager",
"description": "Node.JS app lifecycle manager",
"keywords": ["production", "development", "deployment", "javascript", "css", "minify", "build"],
"version": "1.0.7",
"main": "index",
"homepage": "https://github.com/konteck/manager",
"engines": { "node": ">=0.6.0" },
"author": {
"name": "Alex Movsisyan",
"url": "https://github.com/konteck/manager"
},
"repository": {
"type": "git",
"url": "https://github.com/konteck/manager"
},
"dependencies": {
"uglify-js": "1.2.x",
"uglifycss": "0.0.x"
},
"licenses" : [{
"type" : "MIT",
"url" : "https://raw.github.com/konteck/manager/master/LICENSE.txt"
}]
"name": "manager",
"description": "Node.JS app lifecycle manager",
"keywords": [
"production",
"development",
"deployment",
"javascript",
"css",
"minify",
"build"
],
"version": "1.0.8",
"main": "index",
"homepage": "https://github.com/konteck/manager",
"engines": {
"node": ">=0.6.0"
},
"author": {
"name": "Alex Movsisyan",
"url": "https://github.com/konteck/manager"
},
"repository": {
"type": "git",
"url": "git://github.com/konteck/manager.git"
},
"dependencies": {
"uglify-js": "1.2.x",
"uglifycss": "0.0.x"
},
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/konteck/manager/master/LICENSE.txt"
}
],
"_id": "manager@1.0.7",
"devDependencies": {},
"optionalDependencies": {},
"_engineSupported": true,
"_npmVersion": "1.1.4",
"_nodeVersion": "v0.6.12",
"_defaultsLoaded": true,
"_from": "manager@1.0.x"
}