nodebb-plugin-group-email-etr
Advanced tools
Comparing version 0.8.10 to 0.8.11
@@ -13,3 +13,3 @@ // nodebb-plugin-group-email-etr | ||
Meta, | ||
SocketGroups, | ||
SocketAdmin, | ||
async, | ||
@@ -90,6 +90,6 @@ winston, | ||
SocketGroups.GroupEmailer = {} | ||
SocketAdmin.GroupEmailer = {} | ||
// The user clicked send on the Group Emailer page. | ||
SocketGroups.GroupEmailer.send = (socket, data, callback) => { | ||
SocketAdmin.GroupEmailer.send = (socket, data, callback) => { | ||
let { | ||
@@ -254,3 +254,3 @@ subject, | ||
// Render options list for in-topic sending. | ||
SocketGroups.GroupEmailer.getOptionsHtml = (socket, data, next) => { | ||
SocketAdmin.GroupEmailer.getOptionsHtml = (socket, data, next) => { | ||
async.waterfall([ | ||
@@ -266,3 +266,3 @@ async.apply(getGroups), | ||
// Import emoji-extended sets. | ||
SocketGroups.GroupEmailer.getSmileys = (socket, data, callback) => { | ||
SocketAdmin.GroupEmailer.getSmileys = (socket, data, callback) => { | ||
if (!ex || !ex.sets.length) return callback(null, [ | ||
@@ -295,3 +295,3 @@ [] | ||
SocketGroups.GroupEmailer.getBlacklist = (socket, data, next) => { | ||
SocketAdmin.GroupEmailer.getBlacklist = (socket, data, next) => { | ||
db.get('plugin-group-email-etr:blacklist', next) | ||
@@ -298,0 +298,0 @@ } |
@@ -6,3 +6,3 @@ // nodebb-plugin-group-email-etr | ||
exports.SocketGroups = nodebb('./src/socket.io/groups') | ||
exports.SocketAdmin = nodebb('./src/socket.io/admin') | ||
@@ -9,0 +9,0 @@ exports.db = nodebb('./src/database') |
{ | ||
"name": "nodebb-plugin-group-email-etr", | ||
"version": "0.8.10", | ||
"version": "0.8.11", | ||
"description": "Send an email message to members of a group. Modified for Quest by ETR.", | ||
@@ -45,3 +45,3 @@ "main": "lib/index.js", | ||
"chai-things": "^0.2.0", | ||
"mocha": "*", | ||
"mocha": "^10.0.0", | ||
"mocha-lcov-reporter": "^1.2.0", | ||
@@ -52,5 +52,5 @@ "mock-require": "^1.3.0", | ||
"sinon": "^1.17.4", | ||
"standard": "*", | ||
"standard": "^17.0.0", | ||
"watch": "^0.18.0" | ||
} | ||
} |
@@ -5,3 +5,3 @@ { | ||
"description": "Send an email message to members of a group. Forked from nodebb-plugin-group-email-etr@0.8.1. Modified for Quest by ETR.", | ||
"url": "https://github.com/AssociationsInternational/nodebb-plugin-group-email-etr/src/master/", | ||
"url": "https://bitbucket.org/expandtheroom/nodebb-plugin-group-email-etr/src/master/", | ||
"library": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "templates": "public/templates", |
@@ -11,4 +11,2 @@ // nodebb-plugin-group-email-etr | ||
menubar: "edit insert view format tools help", | ||
relative_urls: false, | ||
remove_script_host: false, | ||
plugins: [ | ||
@@ -126,3 +124,3 @@ 'autolink lists link hr anchor', | ||
socket.emit('groups.GroupEmailer.getOptionsHtml', {}, (err, optionsHtml) => { | ||
socket.emit('admin.GroupEmailer.getOptionsHtml', {}, (err, optionsHtml) => { | ||
if (err) return console.log(`getOptionsHtml socket err: ${err.message}`) | ||
@@ -191,3 +189,3 @@ | ||
socket.emit('groups.GroupEmailer.send', data, err => { | ||
socket.emit('admin.GroupEmailer.send', data, err => { | ||
if (err) { | ||
@@ -194,0 +192,0 @@ app.alertError(err) |
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
4773111
203
12
89645