kahoot.js-fix
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -16,2 +16,4 @@ /** | ||
lastValue = result.quizQuestionAnswers | ||
} else if (key === 'quizQuestionAnswers') { | ||
return lastValue | ||
} | ||
@@ -18,0 +20,0 @@ |
{ | ||
"$schema": "https://json.schemastore.org/package", | ||
"name": "kahoot.js-fix", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Fixes a critical bug in kahoot.js-updated", | ||
@@ -6,0 +6,0 @@ "repository": "https://gitlab.com/MysteryBlokHed/kahoot.js-fix", |
# kahoot.js fix | ||
Fixes a critical bug in [kahoot.js-updated](https://www.npmjs.com/package/kahoot.js-updated). | ||
Fixes ~~one~~ two critical bugs in [kahoot.js-updated](https://www.npmjs.com/package/kahoot.js-updated). | ||
## The bug | ||
## The bugs | ||
### The first | ||
In the file `src/modules/backup.js`, kahoot.js tries to get an array from a property | ||
@@ -20,2 +22,8 @@ after parsing a response from the Kahoot API. However, this property doesn't always exist. | ||
### The second | ||
In another part of the code, there's an attempt to get the key `quizQuestionAnswers` from a different object. | ||
This key, shockingly, is also missing here! | ||
The last valid value or an empty array is also returned in this case. | ||
## License | ||
@@ -22,0 +30,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15576
27
38