Skip to content

Commit

Permalink
fix: patch search package until issue is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Trugamr committed Jul 29, 2023
1 parent 843ce1f commit dddbe97
Show file tree
Hide file tree
Showing 4 changed files with 1,072 additions and 736 deletions.
2 changes: 1 addition & 1 deletion ci/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function pipeline(client: Client) {
const development = base()
.withMountedDirectory('/app', source)
.withWorkdir('/app')
.withExec(['pnpm', 'install'])
.withExec(['pnpm', 'install', '--frozen-lockfile'])

// Remove dev dependencies
const production = base()
Expand Down
48 changes: 25 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"description": "🦦 just another discord bot",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"license": "MIT",
"scripts": {
"postinstall": "patch-package --error-on-fail",
"build": "run-s build:*",
"build:clean": "rimraf dist",
"build:index": "tsc",
Expand All @@ -17,37 +21,35 @@
"ci:build": "node --no-warnings --loader ts-node/esm ci/build.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"eslint": "^8.38.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-require-extensions": "^0.1.3",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.7",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"dependencies": {
"@dagger.io/dagger": "^0.5.0",
"@dagger.io/dagger": "^0.6.4",
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.0",
"discord.js": "^14.9.0",
"dotenv": "^16.0.3",
"execa": "^7.1.1",
"discord.js": "^14.11.0",
"dotenv": "^16.3.1",
"execa": "^7.2.0",
"inversify": "^6.0.1",
"libsodium-wrappers": "^0.7.11",
"patch-package": "^8.0.0",
"reflect-metadata": "^0.1.13",
"tiny-invariant": "^1.3.1",
"winston": "^3.8.2",
"winston": "^3.10.0",
"ytsr": "^3.8.2",
"zod": "^3.21.4"
},
"devDependencies": {
"@types/node": "^18.17.0",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"eslint": "^8.46.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-require-extensions": "^0.1.3",
"nodemon": "^3.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
}
}
13 changes: 13 additions & 0 deletions patches/ytsr+3.8.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/ytsr/lib/utils.js b/node_modules/ytsr/lib/utils.js
index 94e4ace..703c216 100644
--- a/node_modules/ytsr/lib/utils.js
+++ b/node_modules/ytsr/lib/utils.js
@@ -18,7 +18,7 @@ const DEFAULT_CONTEXT = {
exports.parseFilters = json => {
const pc = json.contents.twoColumnSearchResultsRenderer.primaryContents;
const wrapper = pc.sectionListRenderer || pc.richGridRenderer;
- const filterWrapper = (wrapper.subMenu || wrapper.submenu).searchSubMenuRenderer.groups;
+ const filterWrapper = (wrapper.subMenu || wrapper.submenu).searchSubMenuRenderer.groups || [];
const parsedGroups = new Map();
for (const filterGroup of filterWrapper) {
const singleFilterGroup = new Map();
Loading

0 comments on commit dddbe97

Please sign in to comment.