@yrpri/api 9.0.141 → 9.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +2 -2
- package/controllers/nonSpa.cjs +1 -1
- package/package.json +1 -1
- package/services/utils/airbrake.cjs +1 -1
- package/utils/airbrake.cjs +1 -1
package/app.js
CHANGED
|
@@ -55,10 +55,10 @@ import { Notifier } from "@airbrake/node";
|
|
|
55
55
|
import { fileURLToPath } from "url";
|
|
56
56
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
57
57
|
let airbrake;
|
|
58
|
-
if (process.env.AIRBRAKE_PROJECT_ID && process.env.AIRBRAKE_API_KEY) {
|
|
58
|
+
if (process.env.AIRBRAKE_PROJECT_ID && (process.env.AIRBRAKE_API_KEY || process.env.AIRBRAKE_PROJECT_KEY)) {
|
|
59
59
|
airbrake = new Notifier({
|
|
60
60
|
projectId: parseInt(process.env.AIRBRAKE_PROJECT_ID),
|
|
61
|
-
projectKey: process.env.AIRBRAKE_API_KEY,
|
|
61
|
+
projectKey: process.env.AIRBRAKE_API_KEY || process.env.AIRBRAKE_PROJECT_KEY || "",
|
|
62
62
|
performanceStats: false,
|
|
63
63
|
});
|
|
64
64
|
}
|
package/controllers/nonSpa.cjs
CHANGED
|
@@ -553,7 +553,7 @@ router.get('/{*splat}', function botController(req, res, next) {
|
|
|
553
553
|
}
|
|
554
554
|
], error => {
|
|
555
555
|
if (error) {
|
|
556
|
-
log.
|
|
556
|
+
log.warn("Id for nonSpa is not a number", { error });
|
|
557
557
|
res.sendStatus(200);
|
|
558
558
|
}
|
|
559
559
|
else {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ if (process.env.AIRBRAKE_PROJECT_ID) {
|
|
|
6
6
|
try {
|
|
7
7
|
airBrake = new Airbrake.Notifier({
|
|
8
8
|
projectId: process.env.AIRBRAKE_PROJECT_ID,
|
|
9
|
-
projectKey: process.env.AIRBRAKE_API_KEY,
|
|
9
|
+
projectKey: process.env.AIRBRAKE_API_KEY || process.env.AIRBRAKE_PROJECT_KEY || "",
|
|
10
10
|
performanceStats: false
|
|
11
11
|
});
|
|
12
12
|
}
|
package/utils/airbrake.cjs
CHANGED
|
@@ -6,7 +6,7 @@ if (process.env.AIRBRAKE_PROJECT_ID) {
|
|
|
6
6
|
try {
|
|
7
7
|
airBrake = new Airbrake.Notifier({
|
|
8
8
|
projectId: process.env.AIRBRAKE_PROJECT_ID,
|
|
9
|
-
projectKey: process.env.AIRBRAKE_API_KEY,
|
|
9
|
+
projectKey: process.env.AIRBRAKE_API_KEY || process.env.AIRBRAKE_PROJECT_KEY,
|
|
10
10
|
performanceStats: false
|
|
11
11
|
});
|
|
12
12
|
}
|