nodebb-plugin-exodo-tweaks
Advanced tools
Comparing version 0.1.2 to 0.1.3
(function (module) { | ||
"use strict"; | ||
var spawn = require('child_process').spawn; | ||
var nconf = module.parent.require('nconf'); | ||
var _ = module.parent.require('underscore'), | ||
async = module.parent.require('async'), | ||
moment = require('./tweaks/client/moment.min.js'), | ||
topics = module.parent.require('./topics'), | ||
Posts = module.parent.require('./posts'), | ||
user = module.parent.require('./user'), | ||
async = module.parent.require('async'), | ||
moment = require('./tweaks/client/moment.min.js'), | ||
topics = module.parent.require('./topics'), | ||
Posts = module.parent.require('./posts'), | ||
user = module.parent.require('./user'), | ||
plugin = {}; | ||
plugin = {}; | ||
/*plugin.categoryTopicsGet = function (data, callback) { | ||
@@ -21,2 +22,10 @@ async.each(data.topics, function(topic, next) { | ||
*/ | ||
plugin.init = function(data, callback) { | ||
spawn('./watchdog.bash', [nconf.get('port')], { | ||
stdio: 'inherit' | ||
}).unref(); | ||
callback(); | ||
}; | ||
plugin.addProfileInfo = function(profileInfo, callback) { | ||
@@ -113,1 +122,2 @@ moment.locale('es', { monthsShort : "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_") }); | ||
}(module)); | ||
{ | ||
"name": "nodebb-plugin-exodo-tweaks", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "exo.do tweaks", | ||
@@ -5,0 +5,0 @@ "main": "library.js", |
@@ -8,2 +8,3 @@ { | ||
"hooks": [ | ||
{ "hook": "static:app.load", "method": "init"}, | ||
{ "hook": "filter:category.topics.get", "method": "categoryTopicsGet" }, | ||
@@ -10,0 +11,0 @@ { "hook": "action:topic.edit", "method": "topicTitleNoEdit" }, |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
42161
272
1