Fix regex with misleading operator precedence in @octokit/request dependency

- Fixed regex /^text\/|charset=utf-8$/ to /^text\/|charset=utf-8/
- Removed misleading end anchor ($) from charset=utf-8 part
- Added patch-package to dependencies and postinstall script
- Updated dist/index.js with fix applied to bundled dependencies
- All tests continue to pass
This commit is contained in:
Mardav Wala
2025-08-15 16:05:10 +00:00
parent 29996a4979
commit fcb131f251
31 changed files with 5074 additions and 9218 deletions
+4 -2
View File
@@ -8,7 +8,8 @@
"@actions/github": "^6.0.0",
"@octokit/plugin-paginate-rest": "^13.0.1",
"@octokit/request": "^9.2.2",
"@octokit/request-error": "^6.1.7"
"@octokit/request-error": "^6.1.7",
"patch-package": "^8.0.0"
},
"engines": {
"node": ">=20.0.0",
@@ -53,6 +54,7 @@
"check:format": "prettier --check .",
"check:lint": "eslint .",
"fix:format": "prettier --write .",
"test": "jest"
"test": "jest",
"postinstall": "patch-package"
}
}