Updated deps and added environment clarification to Slack error reporting

This commit is contained in:
ポール ウェッブ 2019-02-19 16:41:44 -06:00
parent c7332eb6f2
commit 72f2e5996c
2 changed files with 19 additions and 15 deletions

View file

@ -36,6 +36,10 @@ const approvedContentIdsForTipping = [
"8a7401b88d5ed0376d98f16808194d4dcb05b284" "8a7401b88d5ed0376d98f16808194d4dcb05b284"
]; ];
const environment = process.env.NODE_ENV === "development" ?
"development" :
"production";
// P A C K A G E // P A C K A G E
const loadLanguages = require("prismjs/components/"); const loadLanguages = require("prismjs/components/");
@ -163,7 +167,7 @@ export default async(data, socket) => {
messageSlack({ messageSlack({
message: "```" + JSON.parse(JSON.stringify(memePublishError.error)) + "```", message: "```" + JSON.parse(JSON.stringify(memePublishError.error)) + "```",
pretext: "_Someone is going through the Playground after a response has been parsed_", pretext: "_Someone is going through the Playground after a response has been parsed_",
title: "DAEMON ERROR" title: `DAEMON ERROR | ${environment}`
}); });
} }
@ -182,7 +186,7 @@ export default async(data, socket) => {
messageSlack({ messageSlack({
message: "```" + imageUploadError.status + "```", message: "```" + imageUploadError.status + "```",
pretext: "_Someone attempted to upload a meme to the web daemon and it failed_", pretext: "_Someone attempted to upload a meme to the web daemon and it failed_",
title: "DAEMON ERROR" title: `DAEMON ERROR | ${environment}`
}); });
} }
@ -260,7 +264,7 @@ export default async(data, socket) => {
messageSlack({ messageSlack({
message: "```" + error + "```", message: "```" + error + "```",
pretext: "_Someone is going through the Playground and the daemon is not running_", pretext: "_Someone is going through the Playground and the daemon is not running_",
title: "DAEMON ERROR" title: `DAEMON ERROR | ${environment}`
}); });
} }
}; };

View file

@ -12,10 +12,10 @@
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.2.5", "@babel/polyfill": "^7.2.5",
"@inc/fastify-ws": "^1.1.0", "@inc/fastify-ws": "^1.1.0",
"@octokit/rest": "^16.15.0", "@octokit/rest": "^16.16.0",
"@slack/client": "^4.8.0", "@slack/client": "^4.9.0",
"async": "^2.6.1", "async": "^2.6.2",
"async-es": "^2.6.1", "async-es": "^2.6.2",
"choo": "^6.13.1", "choo": "^6.13.1",
"choo-async": "^0.1.1", "choo-async": "^0.1.1",
"choo-devtools": "^2.5.1", "choo-devtools": "^2.5.1",
@ -29,7 +29,7 @@
"dedent": "^0.7.0", "dedent": "^0.7.0",
"dotenv": "^6.2.0", "dotenv": "^6.2.0",
"fastify": "~1.13.3", "fastify": "~1.13.3",
"fastify-compress": "^0.8.0", "fastify-compress": "^0.8.1",
"fastify-helmet": "^3.0.0", "fastify-helmet": "^3.0.0",
"fastify-static": "^1.1.0", "fastify-static": "^1.1.0",
"front-matter": "^3.0.1", "front-matter": "^3.0.1",
@ -49,9 +49,9 @@
"description": "Documentation for the LBRY protocol and associated projects", "description": "Documentation for the LBRY protocol and associated projects",
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.2.3", "@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2", "@babel/core": "^7.3.3",
"@babel/plugin-external-helpers": "7.2.0", "@babel/plugin-external-helpers": "7.2.0",
"@babel/plugin-proposal-class-properties": "7.3.0", "@babel/plugin-proposal-class-properties": "7.3.3",
"@babel/plugin-proposal-decorators": "7.3.0", "@babel/plugin-proposal-decorators": "7.3.0",
"@babel/plugin-proposal-export-namespace-from": "7.2.0", "@babel/plugin-proposal-export-namespace-from": "7.2.0",
"@babel/plugin-proposal-function-sent": "7.2.0", "@babel/plugin-proposal-function-sent": "7.2.0",
@ -62,20 +62,20 @@
"@babel/plugin-syntax-import-meta": "7.2.0", "@babel/plugin-syntax-import-meta": "7.2.0",
"@babel/preset-env": "^7.3.1", "@babel/preset-env": "^7.3.1",
"@babel/register": "^7.0.0", "@babel/register": "^7.0.0",
"@inc/eslint-config": "^1.1.2", "@inc/eslint-config": "^1.1.3",
"@inc/sasslint-config": "^1.1.3", "@inc/sasslint-config": "^1.1.3",
"@lbry/color": "^1.1.0", "@lbry/color": "^1.1.0",
"@lbry/components": "^2.0.1", "@lbry/components": "^2.2.1",
"eslint": "^5.13.0", "eslint": "^5.14.1",
"husky": "^1.3.1", "husky": "^1.3.1",
"nodemon": "^1.18.9", "nodemon": "^1.18.10",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"pino-pretty": "^2.5.0", "pino-pretty": "^2.5.0",
"sass": "^1.17.0", "sass": "^1.17.0",
"sass-lint": "^1.12.1", "sass-lint": "^1.12.1",
"snazzy": "^8.0.0", "snazzy": "^8.0.0",
"standardx": "^3.0.1", "standardx": "^3.0.1",
"updates": "^7.0.0" "updates": "^7.1.1"
}, },
"engines": { "engines": {
"node": "10.2.x" "node": "10.2.x"