github-webhook 3.0.0 → 3.0.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [3.0.1](https://github.com/rvagg/github-webhook/compare/v3.0.0...v3.0.1) (2026-01-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ * perform symlink-safe isMain check ([#23](https://github.com/rvagg/github-webhook/issues/23)) ([1f9efdd](https://github.com/rvagg/github-webhook/commit/1f9efdd1ce3bcfc6d766c1d0ab809f55e31c88af))
6
+
1
7
  ## [3.0.0](https://github.com/rvagg/github-webhook/compare/v2.0.2...v3.0.0) (2026-01-24)
2
8
 
3
9
  ### ⚠ BREAKING CHANGES
package/github-webhook.js CHANGED
@@ -14,7 +14,16 @@ import minimist from 'minimist'
14
14
  const serverDebug = debug('github-webhook:server')
15
15
  const eventsDebug = debug('github-webhook:events')
16
16
 
17
- const isMain = process.argv[1] === fileURLToPath(import.meta.url)
17
+ // Handle symlinks (npm global install creates symlinks)
18
+ function resolveRealPath (p) {
19
+ try {
20
+ return fs.realpathSync(p)
21
+ } catch {
22
+ return p
23
+ }
24
+ }
25
+
26
+ const isMain = resolveRealPath(process.argv[1]) === fileURLToPath(import.meta.url)
18
27
 
19
28
  if (isMain) {
20
29
  const argv = minimist(process.argv.slice(2))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-webhook",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A flexible web server for reacting GitHub Webhooks",
5
5
  "type": "module",
6
6
  "main": "github-webhook.js",