@eldrex/gateway
Advanced tools
+21
| MIT License | ||
| Copyright (c) 2026 Eldrex Delos Reyes Bula | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
+9
-3
@@ -303,7 +303,11 @@ "use strict"; | ||
| if (!sig) { | ||
| console.warn("[GitHubWebhook] Missing signature header \u2014 request rejected"); | ||
| console.warn( | ||
| "[GitHubWebhook] Missing signature header \u2014 request rejected" | ||
| ); | ||
| return null; | ||
| } | ||
| if (!this.verifySignature(options.secret, options.rawBody, sig)) { | ||
| console.warn("[GitHubWebhook] HMAC signature mismatch \u2014 request rejected"); | ||
| console.warn( | ||
| "[GitHubWebhook] HMAC signature mismatch \u2014 request rejected" | ||
| ); | ||
| return null; | ||
@@ -1855,3 +1859,5 @@ } | ||
| const info = await transporter.sendMail(mailOptions); | ||
| console.log(`[Email] Sent to ${config.to} \u2014 Message ID: ${info.messageId}`); | ||
| console.log( | ||
| `[Email] Sent to ${config.to} \u2014 Message ID: ${info.messageId}` | ||
| ); | ||
| return true; | ||
@@ -1858,0 +1864,0 @@ } catch (err) { |
+9
-3
@@ -230,7 +230,11 @@ // src/server.ts | ||
| if (!sig) { | ||
| console.warn("[GitHubWebhook] Missing signature header \u2014 request rejected"); | ||
| console.warn( | ||
| "[GitHubWebhook] Missing signature header \u2014 request rejected" | ||
| ); | ||
| return null; | ||
| } | ||
| if (!this.verifySignature(options.secret, options.rawBody, sig)) { | ||
| console.warn("[GitHubWebhook] HMAC signature mismatch \u2014 request rejected"); | ||
| console.warn( | ||
| "[GitHubWebhook] HMAC signature mismatch \u2014 request rejected" | ||
| ); | ||
| return null; | ||
@@ -1782,3 +1786,5 @@ } | ||
| const info = await transporter.sendMail(mailOptions); | ||
| console.log(`[Email] Sent to ${config.to} \u2014 Message ID: ${info.messageId}`); | ||
| console.log( | ||
| `[Email] Sent to ${config.to} \u2014 Message ID: ${info.messageId}` | ||
| ); | ||
| return true; | ||
@@ -1785,0 +1791,0 @@ } catch (err) { |
+13
-13
| { | ||
| "name": "@eldrex/gateway", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "publishConfig": { | ||
@@ -22,12 +22,3 @@ "registry": "https://registry.npmjs.org" | ||
| ], | ||
| "scripts": { | ||
| "build": "tsup", | ||
| "dev": "tsup --watch", | ||
| "lint": "prettier --check src/**/*.ts", | ||
| "test": "vitest run", | ||
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@eldrex/core": "workspace:*", | ||
| "@eldrex/personas": "workspace:*", | ||
| "@types/nodemailer": "^8.0.1", | ||
@@ -38,3 +29,5 @@ "chokidar": "^3.6.0", | ||
| "ws": "^8.18.0", | ||
| "zod": "^3.23.0" | ||
| "zod": "^3.23.0", | ||
| "@eldrex/core": "1.0.4", | ||
| "@eldrex/personas": "1.0.4" | ||
| }, | ||
@@ -49,3 +42,10 @@ "devDependencies": { | ||
| "author": "DevDiff Contributors", | ||
| "license": "MIT" | ||
| } | ||
| "license": "MIT", | ||
| "scripts": { | ||
| "build": "tsup", | ||
| "dev": "tsup --watch", | ||
| "lint": "prettier --check src/**/*.ts", | ||
| "test": "vitest run", | ||
| "typecheck": "tsc --noEmit" | ||
| } | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
9
12.5%4636
0.26%408047
-0.32%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated
Updated