Skip to content

Commit

Permalink
chore(deps-dev): bump jsdom from 20.0.3 to 24.1.0 (#439)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump jsdom from 20.0.3 to 24.1.0

Bumps [jsdom](https://github.com/jsdom/jsdom) from 20.0.3 to 24.1.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md)
- [Commits](jsdom/jsdom@20.0.3...24.1.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Switch depreciate atob abd btoa to Buffer

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: HappNTH <[email protected]>
  • Loading branch information
dependabot[bot] and HappyNTH authored Jul 13, 2024
1 parent 48c437d commit f06e39b
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 195 deletions.
8 changes: 6 additions & 2 deletions classes/Ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export default class {

static dataFromQRCode(rawQRCode: string) {
try {
const result = JSON.parse(atob(rawQRCode));
const result = JSON.parse(
Buffer.from(rawQRCode, 'base64').toString('ascii')
);

return {
bookingReference: result[0],
Expand Down Expand Up @@ -117,7 +119,9 @@ export default class {
* @returns {string} Base 64 encoded string
*/
generateQRCodeString(bookingReference: string): string {
return btoa(JSON.stringify([bookingReference, this.id]));
return Buffer.from(JSON.stringify([bookingReference, this.id])).toString(
'base64'
);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-unused-imports": "^4.0.0",
"eslint-plugin-vue": "^9.27.0",
"jest": "^29.7.0",
"jsdom": "^20.0.3",
"jsdom": "^24.1.0",
"nuxt": "^3.12.3",
"postcss": "^8.4.39",
"prettier": "^3.3.2",
Expand Down
Loading

0 comments on commit f06e39b

Please sign in to comment.