Socket
Socket
Sign inDemoInstall

juicy-coupon-bot

Package Overview
Dependencies
141
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.3.2

4

lib/publishFacebook.js

@@ -8,3 +8,3 @@ const logger = require('../lib/logger')

module.exports = (message) => {
if (process.env.PUBLISHING_MODE === true) {
if (process.env.PUBLISHING_MODE) {
graph.post('owasp.juiceshop/feed', { message }, function (err, res) {

@@ -18,4 +18,4 @@ if (err) {

} else {
logger.info(`[${colors.yellow('❌')}] Skipped Facebook post: ${colors.yellow('Post will only be published when PUBLISHING_MODE=true is set as an environment variable')}`)
logger.info(`[${colors.yellow('❌')}] Skipped Facebook post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
}
}

@@ -13,3 +13,3 @@ const logger = require('../lib/logger')

module.exports = (text, title) => {
if (process.env.PUBLISHING_MODE === true) {
if (process.env.PUBLISHING_MODE) {
R.api.post('/api/submit', { api_type: 'json', sr: 'owasp_juiceshop', kind: 'self', title, text })

@@ -23,4 +23,4 @@ .then(function (response) {

} else {
logger.info(`[${colors.yellow('❌')}] Skipped Reddit post: ${colors.yellow('Post will only be published when PUBLISHING_MODE=true is set as an environment variable')}`)
logger.info(`[${colors.yellow('❌')}] Skipped Reddit post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
}
}

@@ -12,3 +12,3 @@ const logger = require('../lib/logger')

module.exports = (status) => {
if (process.env.PUBLISHING_MODE === true) {
if (process.env.PUBLISHING_MODE) {
T.post('statuses/update', { status })

@@ -22,4 +22,4 @@ .then(function (tweet) {

} else {
logger.info(`[${colors.yellow('❌')}] Skipped Tweet: ${colors.yellow('Status will only be published when PUBLISHING_MODE=true is set as an environment variable')}`)
logger.info(`[${colors.yellow('❌')}] Skipped Tweet: ${colors.yellow('Status will only be published when PUBLISHING_MODE is set as an environment variable')}`)
}
}
{
"name": "juicy-coupon-bot",
"version": "1.3.1",
"version": "1.3.2",
"description": "Coupon code generator and distribution bot for OWASP Juice Shop",

@@ -5,0 +5,0 @@ "homepage": "http://owasp-juice.shop",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc