Skip to content

Commit bd76734

Browse files
committed
Defaulted options arg of prompts.create() to {} to avoid throws from new optionless calls
1 parent 61fb8b1 commit bd76734

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.1.24.4
6+
// @version 2025.1.25
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
@@ -2186,7 +2186,7 @@
21862186

21872187
augment(prompt) { return `${prompt} {{reply in the language ${config.replyLang}}}` },
21882188

2189-
create(type, { mods }) {
2189+
create(type, { mods } = {}) {
21902190
mods = [].concat(mods || []) // normalize mods into array
21912191
const promptSrc = this[type]
21922192
const modsToApply = promptSrc.mods?.flatMap(mod =>

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.24.4
151+
// @version 2025.1.25
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -2782,7 +2782,7 @@
27822782

27832783
augment(prompt) { return `${prompt} {{reply in the language ${config.replyLang}}}` },
27842784

2785-
create(type, { mods, prevQuery }) {
2785+
create(type, { mods, prevQuery } = {}) {
27862786
mods = [].concat(mods || []) // normalize mods into array
27872787
const promptSrc = this[type]
27882788
const modsToApply = promptSrc.mods?.flatMap(mod =>

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.1.24.4
151+
// @version 2025.1.25
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -2668,7 +2668,7 @@
26682668

26692669
augment(prompt) { return `${prompt} {{reply in the language ${config.replyLang}}}` },
26702670

2671-
create(type, { mods, prevQuery }) {
2671+
create(type, { mods, prevQuery } = {}) {
26722672
mods = [].concat(mods || []) // normalize mods into array
26732673
const promptSrc = this[type]
26742674
const modsToApply = promptSrc.mods?.flatMap(mod =>

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.1.24.4
152+
// @version 2025.1.25
153153
// @license MIT
154154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155155
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -2957,7 +2957,7 @@
29572957

29582958
augment(prompt) { return `${prompt} {{reply in the language ${config.replyLang}}}` },
29592959

2960-
create(type, { mods, prevQuery }) {
2960+
create(type, { mods, prevQuery } = {}) {
29612961
mods = [].concat(mods || []) // normalize mods into array
29622962
const promptSrc = this[type]
29632963
const modsToApply = promptSrc.mods?.flatMap(mod =>

0 commit comments

Comments
 (0)