Skip to content

Commit

Permalink
chore(deps): bump the vue group across 1 directory with 4 updates (#848)
Browse files Browse the repository at this point in the history
* chore(deps): bump the vue group across 1 directory with 4 updates

Bumps the vue group with 4 updates in the / directory: [vue-currency-input](https://github.com/dm4t2/vue-currency-input), [vue-gtag](https://github.com/MatteoGabriele/vue-gtag), [vue-qrcode-reader](https://github.com/gruhn/vue-qrcode-reader) and [vue-tsc](https://github.com/vuejs/language-tools/tree/HEAD/packages/tsc).


Updates `vue-currency-input` from 3.1.0 to 3.2.1
- [Release notes](https://github.com/dm4t2/vue-currency-input/releases)
- [Changelog](https://github.com/dm4t2/vue-currency-input/blob/main/CHANGELOG.md)
- [Commits](dm4t2/vue-currency-input@3.1.0...3.2.1)

Updates `vue-gtag` from 2.0.1 to 2.1.0
- [Release notes](https://github.com/MatteoGabriele/vue-gtag/releases)
- [Commits](MatteoGabriele/vue-gtag@v2.0.1...v2.1.0)

Updates `vue-qrcode-reader` from 5.5.11 to 5.7.1
- [Release notes](https://github.com/gruhn/vue-qrcode-reader/releases)
- [Commits](gruhn/vue-qrcode-reader@v5.5.11...v5.7.1)

Updates `vue-tsc` from 2.2.0 to 2.2.2
- [Release notes](https://github.com/vuejs/language-tools/releases)
- [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/language-tools/commits/v2.2.2/packages/tsc)

---
updated-dependencies:
- dependency-name: vue-currency-input
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: vue
- dependency-name: vue-gtag
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: vue
- dependency-name: vue-qrcode-reader
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: vue
- dependency-name: vue-tsc
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vue
...

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

* Regress vue-gtag to 2.0.1 because it has issues

* Fix QR code stuff

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: HappyNTH <[email protected]>
  • Loading branch information
dependabot[bot] and HappyNTH authored Feb 19, 2025
1 parent 952bba5 commit 2527702
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 85 deletions.
22 changes: 6 additions & 16 deletions components/ui/Input/UiInputTicketScanner.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ import InvalidTicketQRCodeException from '~~/exceptions/InvalidTicketQRCodeExcep
import type { TicketQRCodeData } from '~~/types/ticket';
const props = withDefaults(
defineProps<{
on?: boolean;
pauseOnDecode?: boolean;
}>(),
{
on: true,
pauseOnDecode: true
}
defineProps<{ on?: boolean; pauseOnDecode?: boolean }>(),
{ on: true, pauseOnDecode: true }
);
const cameraReset = ref(false);
Expand All @@ -33,10 +27,7 @@ const emit = defineEmits<{
(event: 'unable', message: string): void;
(
event: 'scanned',
data: {
ticketData: TicketQRCodeData;
reenable: () => void;
}
data: { ticketData: TicketQRCodeData; reenable: () => void }
): void;
(event: 'invalidCode'): void;
}>();
Expand All @@ -56,9 +47,8 @@ function onTrackEvent(detectedCodes: any, ctx: any) {
}
}
async function cameraOn(promise: Promise<any>) {
async function cameraOn(c: MediaTrackCapabilities) {
try {
await promise;
emit('ready');
} catch (error: any) {
let errorMessage;
Expand Down Expand Up @@ -90,11 +80,11 @@ async function cameraOn(promise: Promise<any>) {
emit('unable', errorMessage);
}
}
function onDetect(string: [string]) {
function onDetect(detectedCodes: { rawValue: string }[]) {
new Audio('/audio/beep_single.mp3').play();
try {
const rawValue = JSON.parse(JSON.stringify(string[0])).rawValue;
const rawValue = `${JSON.stringify(detectedCodes.map((code) => code.rawValue))} ${new Date().getTime()}`;
const ticketData = Ticket.dataFromQRCode(rawValue);
if (props.pauseOnDecode) {
cameraReset.value = true;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"unplugin-vue-components": "^0.27.5",
"vite-plugin-eslint2": "^5.0.3",
"vitest": "^2.0.5",
"vue-tsc": "^2.2.0",
"vue-tsc": "^2.2.2",
"webpack": "^5.98.0"
},
"dependencies": {
Expand Down Expand Up @@ -113,9 +113,9 @@
"qrcode.vue": "^3.6.0",
"sweetalert2": "^11.15.10",
"uuid": "^11.0.3",
"vue-currency-input": "^3.1.0",
"vue-gtag": "^2.0.1",
"vue-qrcode-reader": "5.5.11"
"vue-currency-input": "^3.2.1",
"vue-gtag": "2.0.1",
"vue-qrcode-reader": "5.7.1"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
53 changes: 11 additions & 42 deletions tests/unit/pages/booking/Book.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,10 @@ describe('Create Booking Page', () => {
bookingComponent = await mount(Book, {
shallow: false,
routeInfo: {
params: Object.assign(
{},
{
slug: 'legally-ginger'
},
routeParams
)
params: Object.assign({}, { slug: 'legally-ginger' }, routeParams)
},
apollo: {
queryResponses
},
global: {
components: { NuxtPage: fakePage ?? generateFakeNuxtPage() }
}
apollo: { queryResponses },
global: { components: { NuxtPage: fakePage ?? generateFakeNuxtPage() } }
});
}

Expand Down Expand Up @@ -74,9 +64,7 @@ describe('Create Booking Page', () => {
});

it('has a nuxt child', async () => {
await bookingComponent.setData({
ticketMatrix: 'fakeMatrix'
});
await bookingComponent.setData({ ticketMatrix: 'fakeMatrix' });

const nuxtChild = bookingComponent.findComponent({ name: 'NuxtPage' });
expect(nuxtChild.exists()).to.be.true;
Expand All @@ -88,20 +76,15 @@ describe('Create Booking Page', () => {
it('reacts to the child emitting select performance event', async () => {
const childComponent = bookingComponent.findComponent({ name: 'NuxtPage' });

await childComponent.vm.$emit('select-performance', {
id: 1
});
await childComponent.vm.$emit('select-performance', { id: 1 });

expect(bookingComponent.vm.booking.performance.id).to.eq(1);

const router = useRouter();
expect(router.push).toHaveBeenCalledWith({
hash: '#booking-view',
name: 'production-slug-book-performanceId-warnings',
params: {
slug: 'legally-ginger',
performanceId: 1
}
params: { slug: 'legally-ginger', performanceId: 1 }
});
});

Expand All @@ -116,20 +99,15 @@ describe('Create Booking Page', () => {
expect(router.push).toHaveBeenCalledWith({
hash: '#booking-view',
name: 'production-slug-book-performanceId-tickets',
params: {
slug: 'legally-ginger',
performanceId: null
}
params: { slug: 'legally-ginger', performanceId: null }
});
});

describe('with performance id', () => {
beforeEach(async () => {
await mountComponent({ performanceId: 1 }, [
GenericApolloResponse('production', Production({}, true)),
GenericApolloResponse('me', {
bookings: GenericNodeConnection()
}),
GenericApolloResponse('me', { bookings: GenericNodeConnection() }),
GenericApolloResponse('performance', Performance())
]);

Expand All @@ -152,10 +130,7 @@ describe('Create Booking Page', () => {
expect(router.push).toHaveBeenCalledWith({
name: 'production-slug-book-performanceId-warnings',
hash: '#booking-view',
params: {
performanceId: 1,
slug: 'legally-ginger'
}
params: { performanceId: 1, slug: 'legally-ginger' }
});
});
});
Expand Down Expand Up @@ -228,10 +203,7 @@ describe('Create Booking Page', () => {
expect(router.replace).toHaveBeenCalledWith({
hash: '#booking-view',
name: 'production-slug-book-performanceId-tickets',
params: {
slug: 'legally-ginger',
performanceId: 1
}
params: { slug: 'legally-ginger', performanceId: 1 }
});
mock.mockReset();
});
Expand All @@ -250,10 +222,7 @@ describe('Create Booking Page', () => {
expect(router.push).toHaveBeenCalledWith({
hash: '#booking-view',
name: 'production-slug-book',
params: {
slug: 'legally-ginger',
performanceId: 1
}
params: { slug: 'legally-ginger', performanceId: 1 }
});
shouldBeUsedMock.mockReset();
eligableMock.mockReset();
Expand Down
46 changes: 23 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4918,16 +4918,16 @@
dependencies:
rfdc "^1.4.1"

"@vue/[email protected].0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@vue/language-core/-/language-core-2.2.0.tgz#e48c54584f889f78b120ce10a050dfb316c7fcdf"
integrity sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==
"@vue/[email protected].2":
version "2.2.2"
resolved "https://registry.yarnpkg.com/@vue/language-core/-/language-core-2.2.2.tgz#aa0e916bf18434077887e8ba269729b45564f625"
integrity sha512-QotO41kurE5PLf3vrNgGTk3QswO2PdUFjBwNiOi7zMmGhwb25PSTh9hD1MCgKC06AVv+8sZQvlL3Do4TTVHSiQ==
dependencies:
"@volar/language-core" "~2.4.11"
"@vue/compiler-dom" "^3.5.0"
"@vue/compiler-vue2" "^2.7.16"
"@vue/shared" "^3.5.0"
alien-signals "^0.4.9"
alien-signals "^1.0.3"
minimatch "^9.0.3"
muggle-string "^0.4.1"
path-browserify "^1.0.1"
Expand Down Expand Up @@ -5402,10 +5402,10 @@ ajv@^8.0.0, ajv@^8.9.0:
json-schema-traverse "^1.0.0"
require-from-string "^2.0.2"

alien-signals@^0.4.9:
version "0.4.14"
resolved "https://registry.yarnpkg.com/alien-signals/-/alien-signals-0.4.14.tgz#9ff8f72a272300a51692f54bd9bbbada78fbf539"
integrity sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==
alien-signals@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/alien-signals/-/alien-signals-1.0.3.tgz#c9bee367ccbd3801cfde8ad3cbedaa2a6ad343b1"
integrity sha512-zQOh3wAYK5ujENxvBBR3CFGF/b6afaSzZ/c9yNhJ1ENrGHETvpUuKQsa93Qrclp0+PzTF93MaZ7scVp1uUozhA==

ansi-colors@^4.1.1, ansi-colors@^4.1.3:
version "4.1.3"
Expand Down Expand Up @@ -14483,10 +14483,10 @@ vue-component-type-helpers@^2.0.0:
resolved "https://registry.yarnpkg.com/vue-component-type-helpers/-/vue-component-type-helpers-2.1.6.tgz#f350515b252ed9e76960ac51f135636f8baef3fe"
integrity sha512-ng11B8B/ZADUMMOsRbqv0arc442q7lifSubD0v8oDXIFoMg/mXwAPUunrroIDkY+mcD0dHKccdaznSVp8EoX3w==

vue-currency-input@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/vue-currency-input/-/vue-currency-input-3.1.0.tgz#869a89bbbb98cc8e483cb410adbdd0f8d6eb1d74"
integrity sha512-XZ8bg61zRNJjRDo7I4K0UAah9qtkipexRcn/h9MzEqZQ9gVZWABObgN+042UchmCTiwSfsjGOd6DZGzd/TUUMA==
vue-currency-input@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/vue-currency-input/-/vue-currency-input-3.2.1.tgz#61a6fdf2b80e3f1b21017a1eec614893766cb30f"
integrity sha512-Osfxzdu5cdZSCS4Cm0vuk7LwNeSdHWGIWK8gtDBC1kU0UtAKz7iU/8dyJ0KDJKxbAYiKeovoQTRfYxCH82I0EA==

vue-demi@>=0.14.10, vue-demi@^0.14.10, vue-demi@^0.14.6:
version "0.14.10"
Expand All @@ -14511,15 +14511,15 @@ vue-eslint-parser@^9.4.3:
lodash "^4.17.21"
semver "^7.3.6"

vue-gtag@^2.0.1:
[email protected]:
version "2.0.1"
resolved "https://registry.yarnpkg.com/vue-gtag/-/vue-gtag-2.0.1.tgz#d4dc1b9cf79809c37ce844824c0f7fa97af520dd"
integrity sha512-aM4A58FVL0wV2ptYi+xzAjeg+pQVRyUcfBc5UkXAwQrR4t3WBhor50Izp2I+3Oo7+l+vWJ7u78DGcNzReb8S/A==

vue-qrcode-reader@5.5.11:
version "5.5.11"
resolved "https://registry.yarnpkg.com/vue-qrcode-reader/-/vue-qrcode-reader-5.5.11.tgz#84b3abf54471e4dfc39d7e5959a741bd0f4137c3"
integrity sha512-Ec/bVML1jgxSX+usbgdcXGhOFEFo4EzApCO2CNT1YK0Dcb0Mp7ASygz78RJJs22SU2oI7vz9iJDyr4ucSDTvjQ==
vue-qrcode-reader@5.7.1:
version "5.7.1"
resolved "https://registry.yarnpkg.com/vue-qrcode-reader/-/vue-qrcode-reader-5.7.1.tgz#920eb9cce9970fa15c5062c72dbb815c0edd9fd3"
integrity sha512-7QBu3PqaPJHxobiDLqgcrp6wsjdTk9GJWhRCd4CgQYi93gBw/sIXNNWtbjeKz8d3QYj13n9dyPvcPMUcGOsBHw==
dependencies:
barcode-detector "2.2.2"
webrtc-adapter "8.2.3"
Expand All @@ -14531,13 +14531,13 @@ vue-router@^4.5.0:
dependencies:
"@vue/devtools-api" "^6.6.4"

vue-tsc@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-2.2.0.tgz#dd06c56636f760d7534b7a7a0f6669ba93c217b8"
integrity sha512-gtmM1sUuJ8aSb0KoAFmK9yMxb8TxjewmxqTJ1aKphD5Cbu0rULFY6+UQT51zW7SpUcenfPUuflKyVwyx9Qdnxg==
vue-tsc@^2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-2.2.2.tgz#7e3c43dbd3ca3a38e0f04a864bd114ba31098b90"
integrity sha512-1icPKkxAA5KTAaSwg0wVWdE48EdsH8fgvcbAiqojP4jXKl6LEM3soiW1aG/zrWrFt8Mw1ncG2vG1PvpZpVfehA==
dependencies:
"@volar/typescript" "~2.4.11"
"@vue/language-core" "2.2.0"
"@vue/language-core" "2.2.2"

vue@^3.5.13:
version "3.5.13"
Expand Down

0 comments on commit 2527702

Please sign in to comment.