From d8261e645573496e1960e292b7506800caf63d2b Mon Sep 17 00:00:00 2001 From: requinard Date: Mon, 22 Aug 2022 09:20:59 +0200 Subject: [PATCH 1/6] remove old API calls from the eurofurence service --- src/store/eurofurence.service.ts | 118 +------------------------------ src/store/index.ts | 4 +- 2 files changed, 5 insertions(+), 117 deletions(-) diff --git a/src/store/eurofurence.service.ts b/src/store/eurofurence.service.ts index 36fd2c02..c98f2204 100644 --- a/src/store/eurofurence.service.ts +++ b/src/store/eurofurence.service.ts @@ -1,23 +1,8 @@ import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; import _ from "lodash"; -import { REHYDRATE } from "redux-persist"; import { apiBase } from "../configuration"; -import { - AnnouncementRecord, - CommunicationRecord, - DealerRecord, - EventDayRecord, - EventRecord, - EventRoomRecord, - EventTrackRecord, - ImageRecord, - KnowledgeEntryRecord, - KnowledgeGroupRecord, - MapRecord, - RecordId, - RecordMetadata, -} from "./eurofurence.types"; +import { CommunicationRecord, RecordId, RecordMetadata } from "./eurofurence.types"; const tagsFromList = (type: TagType) => @@ -42,90 +27,8 @@ export const eurofurenceService = createApi({ return headers; }, }), - tagTypes: ["Announcement", "Event", "Dealer", "EventDay", "EventTrack", "EventRoom", "Map", "KnowledgeGroup", "KnowledgeEntry", "Image", "Communication"], - keepUnusedDataFor: 0, - extractRehydrationInfo(action, { reducerPath }) { - if (action.type === REHYDRATE && action.payload) { - return action.payload[reducerPath]; - } - }, + tagTypes: ["Communication"], endpoints: (builder) => ({ - getAnnouncements: builder.query({ - query: () => ({ url: "/Announcements" }), - providesTags: tagsFromList("Announcement"), - }), - getAnnouncementsById: builder.query({ - query: (args) => ({ url: `/Announcements/${args}` }), - providesTags: tagsFromItem("Announcement"), - }), - getEvents: builder.query({ - query: () => ({ url: "/Events" }), - providesTags: tagsFromList("Event"), - }), - getEventById: builder.query({ - query: (args) => ({ url: `/Events/${args}` }), - providesTags: tagsFromItem("Event"), - }), - getDealers: builder.query({ - query: () => ({ url: "/Dealers" }), - providesTags: tagsFromList("Dealer"), - }), - getDealerById: builder.query({ - query: (args) => ({ url: `/Dealers/${args}` }), - providesTags: tagsFromItem("Dealer"), - }), - getEventDays: builder.query({ - query: () => ({ url: "/EventConferenceDays" }), - providesTags: tagsFromList("EventDay"), - }), - getEventDayById: builder.query({ - query: (args) => ({ url: `/EventConferenceDays/${args}` }), - providesTags: tagsFromItem("EventDay"), - }), - getEventTracks: builder.query({ - query: () => ({ url: "/EventConferenceTracks" }), - providesTags: tagsFromList("EventTrack"), - }), - getEventTrackById: builder.query({ - query: (args) => ({ url: `/EventConferenceTracks/${args}` }), - providesTags: tagsFromItem("EventTrack"), - }), - getEventRooms: builder.query({ - query: () => ({ url: "/EventConferenceRooms" }), - providesTags: tagsFromList("EventRoom"), - }), - getEventRoomById: builder.query({ - query: (args) => ({ url: `/EventConferenceRooms/${args}` }), - providesTags: tagsFromItem("EventRoom"), - }), - getMaps: builder.query({ - query: () => ({ url: "/Maps" }), - providesTags: tagsFromList("Map"), - }), - getMapById: builder.query({ - query: (args) => ({ url: `/Maps/${args}` }), - providesTags: tagsFromItem("Map"), - }), - getKnowledgeGroups: builder.query({ - query: () => ({ url: "/KnowledgeGroups" }), - providesTags: tagsFromList("KnowledgeGroup"), - }), - getKnowledgeGroupById: builder.query({ - query: (args) => ({ url: `/KnowledgeGroups/${args}` }), - providesTags: tagsFromItem("KnowledgeGroup"), - }), - getKnowledgeEntries: builder.query({ - query: () => ({ url: "/KnowledgeEntries" }), - providesTags: tagsFromList("KnowledgeEntry"), - }), - getKnowledgeEntryById: builder.query({ - query: (args) => ({ url: `/KnowledgeEntries/${args}` }), - providesTags: tagsFromItem("KnowledgeEntry"), - }), - getImages: builder.query({ - query: () => ({ url: `/Images` }), - providesTags: tagsFromList("Image"), - }), getCommunications: builder.query({ query: () => "/Communication/PrivateMessages", providesTags: tagsFromList("Communication"), @@ -157,19 +60,4 @@ export const eurofurenceService = createApi({ }), }); -export const { - useGetAnnouncementsQuery, - useGetEventsQuery, - useGetEventByIdQuery, - useGetDealersQuery, - useGetImagesQuery, - useGetEventDaysQuery, - useGetEventDayByIdQuery, - useGetEventTracksQuery, - useGetEventTrackByIdQuery, - useGetEventRoomsQuery, - useGetEventRoomByIdQuery, - useGetCommunicationsQuery, - useMarkCommunicationReadMutation, - useSubmitEventFeedbackMutation, -} = eurofurenceService; +export const { useGetCommunicationsQuery, useMarkCommunicationReadMutation, useSubmitEventFeedbackMutation } = eurofurenceService; diff --git a/src/store/index.ts b/src/store/index.ts index 14c44b3a..1215df70 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -28,7 +28,7 @@ const persistedReducer = persistReducer( key: "root", version: 2, storage: AsyncStorage, - whitelist: [timeTravelSlice.name, eurofurenceService.reducerPath, backgroundSlice.name, authorizationSlice.name, eurofurenceCache.name, settingsSlice.name], + whitelist: [timeTravelSlice.name, backgroundSlice.name, authorizationSlice.name, eurofurenceCache.name, settingsSlice.name], }, reducers ); @@ -39,7 +39,7 @@ export const store = configureStore({ const middleware = getDefaultMiddleware({ serializableCheck: { ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER], - ignoredPaths: [eurofurenceCache.name, eurofurenceService.reducerPath], + ignoredPaths: [eurofurenceCache.name], warnAfter: 200, }, }).concat(eurofurenceService.middleware, authorizationService.middleware); From 275dd246dbd59cb2bb4fd0ca6f222212197e8f96 Mon Sep 17 00:00:00 2001 From: requinard Date: Mon, 22 Aug 2022 09:27:39 +0200 Subject: [PATCH 2/6] add depcheck --- .depcheckrc | 1 + package.json | 3 +- yarn.lock | 443 ++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 334 insertions(+), 113 deletions(-) create mode 100644 .depcheckrc diff --git a/.depcheckrc b/.depcheckrc new file mode 100644 index 00000000..0da50fe0 --- /dev/null +++ b/.depcheckrc @@ -0,0 +1 @@ +ignore_patterns: ["**.*.spec.*", "setupTests.js", "testUtils.tsx"] diff --git a/package.json b/package.json index 3ea8e675..642be6a9 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "lint": "yarn lint:code && yarn lint:translations", "lint:code": "eslint ./src --ext js,ts,jsx,tsx", "lint:translations": "eslint --rule 'prettier/prettier: off' --ext json --format node_modules/eslint-plugin-i18n-json/formatter.js ./src/i18n", + "lint:depcheck": "depcheck", "test": "jest", "eas-build-post-install": "tsc --noEmit && yarn lint:translations && yarn lint:code", "bundle:android": "eas build --platform android --profile production", @@ -72,7 +73,6 @@ "expo-web-browser": "~11.0.0", "firebase": "^9.9.1", "i18next": "^21.8.11", - "i18next-react-native-async-storage": "^1.0.4", "intl-pluralrules": "^1.3.1", "lodash": "^4.17.21", "moment": "^2.29.3", @@ -86,7 +86,6 @@ "react-native-reanimated": "~2.9.1", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0", - "react-native-showdown": "^1.0.1", "react-native-star-rating-widget": "^1.2.0", "react-native-svg": "12.3.0", "react-native-web": "~0.18.7", diff --git a/yarn.lock b/yarn.lock index 03ff049a..0f4fc2b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -520,6 +520,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:7.16.4": + version: 7.16.4 + resolution: "@babel/parser@npm:7.16.4" + bin: + parser: ./bin/babel-parser.js + checksum: ce0a8f92f440f2a12bc932f070a7b60c5133bf8a63f461841f9e39af0194f573707959d606c6fad1a2fd496a45148553afd9b74d3b8dd36cdb7861598d1f3e36 + languageName: node + linkType: hard + "@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.18.6": version: 7.18.6 resolution: "@babel/parser@npm:7.18.6" @@ -529,7 +538,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.18.10, @babel/parser@npm:^7.18.11": +"@babel/parser@npm:^7.16.4, @babel/parser@npm:^7.18.10, @babel/parser@npm:^7.18.11": version: 7.18.11 resolution: "@babel/parser@npm:7.18.11" bin: @@ -1734,39 +1743,39 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/traverse@npm:7.18.6" +"@babel/traverse@npm:^7.12.5, @babel/traverse@npm:^7.18.10, @babel/traverse@npm:^7.18.11, @babel/traverse@npm:^7.18.9": + version: 7.18.11 + resolution: "@babel/traverse@npm:7.18.11" dependencies: "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.18.6 - "@babel/helper-environment-visitor": ^7.18.6 - "@babel/helper-function-name": ^7.18.6 + "@babel/generator": ^7.18.10 + "@babel/helper-environment-visitor": ^7.18.9 + "@babel/helper-function-name": ^7.18.9 "@babel/helper-hoist-variables": ^7.18.6 "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.18.6 - "@babel/types": ^7.18.6 + "@babel/parser": ^7.18.11 + "@babel/types": ^7.18.10 debug: ^4.1.0 globals: ^11.1.0 - checksum: 5427a9db63984b2600f62b257dab18e3fc057997b69d708573bfc88eb5eacd6678fb24fddba082d6ac050734b8846ce110960be841ea1e461d66e2cde72b6b07 + checksum: 727409464d5cf27f33555010098ce9bb435f0648cc76e674f4fb7513522356655ba62be99c8df330982b391ccf5f0c0c23c7bd7453d4936d47e2181693fed14c languageName: node linkType: hard -"@babel/traverse@npm:^7.18.10, @babel/traverse@npm:^7.18.11, @babel/traverse@npm:^7.18.9": - version: 7.18.11 - resolution: "@babel/traverse@npm:7.18.11" +"@babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/traverse@npm:7.18.6" dependencies: "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.18.10 - "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.18.9 + "@babel/generator": ^7.18.6 + "@babel/helper-environment-visitor": ^7.18.6 + "@babel/helper-function-name": ^7.18.6 "@babel/helper-hoist-variables": ^7.18.6 "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.18.11 - "@babel/types": ^7.18.10 + "@babel/parser": ^7.18.6 + "@babel/types": ^7.18.6 debug: ^4.1.0 globals: ^11.1.0 - checksum: 727409464d5cf27f33555010098ce9bb435f0648cc76e674f4fb7513522356655ba62be99c8df330982b391ccf5f0c0c23c7bd7453d4936d47e2181693fed14c + checksum: 5427a9db63984b2600f62b257dab18e3fc057997b69d708573bfc88eb5eacd6678fb24fddba082d6ac050734b8846ce110960be841ea1e461d66e2cde72b6b07 languageName: node linkType: hard @@ -4714,7 +4723,7 @@ __metadata: languageName: node linkType: hard -"@types/minimatch@npm:*": +"@types/minimatch@npm:*, @types/minimatch@npm:^3.0.3": version: 3.0.5 resolution: "@types/minimatch@npm:3.0.5" checksum: c41d136f67231c3131cf1d4ca0b06687f4a322918a3a5adddc87ce90ed9dbd175a3610adee36b106ae68c0b92c637c35e02b58c8a56c424f71d30993ea220b92 @@ -4742,6 +4751,13 @@ __metadata: languageName: node linkType: hard +"@types/parse-json@npm:^4.0.0": + version: 4.0.0 + resolution: "@types/parse-json@npm:4.0.0" + checksum: fd6bce2b674b6efc3db4c7c3d336bd70c90838e8439de639b909ce22f3720d21344f52427f1d9e57b265fcb7f6c018699b99e5e0c208a1a4823014269a6bf35b + languageName: node + linkType: hard + "@types/prettier@npm:^2, @types/prettier@npm:^2.0.0": version: 2.6.3 resolution: "@types/prettier@npm:2.6.3" @@ -5079,6 +5095,76 @@ __metadata: languageName: node linkType: hard +"@vue/compiler-core@npm:3.2.37": + version: 3.2.37 + resolution: "@vue/compiler-core@npm:3.2.37" + dependencies: + "@babel/parser": ^7.16.4 + "@vue/shared": 3.2.37 + estree-walker: ^2.0.2 + source-map: ^0.6.1 + checksum: 5642e20813352f7ed57ef0eec0fb8a075d6485c91548555b435e8163e62a5e03402c26944bfa2486d6cc4c992f2649478f887478bcd23c8ad9036636f2dcff6a + languageName: node + linkType: hard + +"@vue/compiler-dom@npm:3.2.37": + version: 3.2.37 + resolution: "@vue/compiler-dom@npm:3.2.37" + dependencies: + "@vue/compiler-core": 3.2.37 + "@vue/shared": 3.2.37 + checksum: 6cfa9d2ee123339549ba005fa61b2cd5ccf079ba8d8d797f0075e7054c2766744029cb0997341bcb6a51e129ae43489263aa7d8500b262ef7b81c63c2b0c4576 + languageName: node + linkType: hard + +"@vue/compiler-sfc@npm:^3.0.5": + version: 3.2.37 + resolution: "@vue/compiler-sfc@npm:3.2.37" + dependencies: + "@babel/parser": ^7.16.4 + "@vue/compiler-core": 3.2.37 + "@vue/compiler-dom": 3.2.37 + "@vue/compiler-ssr": 3.2.37 + "@vue/reactivity-transform": 3.2.37 + "@vue/shared": 3.2.37 + estree-walker: ^2.0.2 + magic-string: ^0.25.7 + postcss: ^8.1.10 + source-map: ^0.6.1 + checksum: 9f9067d79f40b0016e4063c180f5417e893f820b970ee291050cad8e19d9258f70a128e5de862e484bfb15572d335c8d5881c95e6b6a3032cb1a94829e8694cb + languageName: node + linkType: hard + +"@vue/compiler-ssr@npm:3.2.37": + version: 3.2.37 + resolution: "@vue/compiler-ssr@npm:3.2.37" + dependencies: + "@vue/compiler-dom": 3.2.37 + "@vue/shared": 3.2.37 + checksum: e137462340c220ef7891d0b40f11124e7d5311e760fdb0de1748c046481505aecd5be8ec8f7b25ac6fc26d2393cbcc267f258d2d26742a50cb9abaf828c28839 + languageName: node + linkType: hard + +"@vue/reactivity-transform@npm:3.2.37": + version: 3.2.37 + resolution: "@vue/reactivity-transform@npm:3.2.37" + dependencies: + "@babel/parser": ^7.16.4 + "@vue/compiler-core": 3.2.37 + "@vue/shared": 3.2.37 + estree-walker: ^2.0.2 + magic-string: ^0.25.7 + checksum: d9e7c353e2bd3a62a9bbb7498ae231f5194428da003672daadb3e7af50c7839e10fb0ac68252852be353138428d1a36f3b8c7815f9c15499d46e7edaf3730c7e + languageName: node + linkType: hard + +"@vue/shared@npm:3.2.37": + version: 3.2.37 + resolution: "@vue/shared@npm:3.2.37" + checksum: 999ab8baeb13de190d07536e7dd0e74ab9354a864d8d903850a2127ae1a2aa2713a9edc0d957620ebf91165d6603d0cd2b0e8ee0db6cbaf8d57a6a0f912af810 + languageName: node + linkType: hard + "@webassemblyjs/ast@npm:1.9.0": version: 1.9.0 resolution: "@webassemblyjs/ast@npm:1.9.0" @@ -5705,6 +5791,13 @@ __metadata: languageName: node linkType: hard +"array-differ@npm:^3.0.0": + version: 3.0.0 + resolution: "array-differ@npm:3.0.0" + checksum: 117edd9df5c1530bd116c6e8eea891d4bd02850fd89b1b36e532b6540e47ca620a373b81feca1c62d1395d9ae601516ba538abe5e8172d41091da2c546b05fb7 + languageName: node + linkType: hard + "array-flatten@npm:1.1.1": version: 1.1.1 resolution: "array-flatten@npm:1.1.1" @@ -5799,6 +5892,13 @@ __metadata: languageName: node linkType: hard +"arrify@npm:^2.0.1": + version: 2.0.1 + resolution: "arrify@npm:2.0.1" + checksum: 067c4c1afd182806a82e4c1cb8acee16ab8b5284fbca1ce29408e6e91281c36bb5b612f6ddfbd40a0f7a7e0c75bf2696eb94c027f6e328d6e9c52465c98e4209 + languageName: node + linkType: hard + "asap@npm:~2.0.3, asap@npm:~2.0.6": version: 2.0.6 resolution: "asap@npm:2.0.6" @@ -6846,7 +6946,7 @@ __metadata: languageName: node linkType: hard -"camelcase@npm:^6.0.0": +"camelcase@npm:^6.0.0, camelcase@npm:^6.2.0": version: 6.3.0 resolution: "camelcase@npm:6.3.0" checksum: 8c96818a9076434998511251dcb2761a94817ea17dbdc37f47ac080bd088fc62c7369429a19e2178b993497132c8cbcf5cc1f44ba963e76782ba469c0474938d @@ -6970,6 +7070,25 @@ __metadata: languageName: node linkType: hard +"chokidar@npm:>=3.0.0 <4.0.0, chokidar@npm:^3.4.1": + version: 3.5.3 + resolution: "chokidar@npm:3.5.3" + dependencies: + anymatch: ~3.1.2 + braces: ~3.0.2 + fsevents: ~2.3.2 + glob-parent: ~5.1.2 + is-binary-path: ~2.1.0 + is-glob: ~4.0.1 + normalize-path: ~3.0.0 + readdirp: ~3.6.0 + dependenciesMeta: + fsevents: + optional: true + checksum: b49fcde40176ba007ff361b198a2d35df60d9bb2a5aab228279eb810feae9294a6b4649ab15981304447afe1e6ffbf4788ad5db77235dc770ab777c6e771980c + languageName: node + linkType: hard + "chokidar@npm:^2.1.8": version: 2.1.8 resolution: "chokidar@npm:2.1.8" @@ -6993,25 +7112,6 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:^3.4.1": - version: 3.5.3 - resolution: "chokidar@npm:3.5.3" - dependencies: - anymatch: ~3.1.2 - braces: ~3.0.2 - fsevents: ~2.3.2 - glob-parent: ~5.1.2 - is-binary-path: ~2.1.0 - is-glob: ~4.0.1 - normalize-path: ~3.0.0 - readdirp: ~3.6.0 - dependenciesMeta: - fsevents: - optional: true - checksum: b49fcde40176ba007ff361b198a2d35df60d9bb2a5aab228279eb810feae9294a6b4649ab15981304447afe1e6ffbf4788ad5db77235dc770ab777c6e771980c - languageName: node - linkType: hard - "chownr@npm:^1.1.1": version: 1.1.4 resolution: "chownr@npm:1.1.4" @@ -7647,6 +7747,19 @@ __metadata: languageName: node linkType: hard +"cosmiconfig@npm:^7.0.0": + version: 7.0.1 + resolution: "cosmiconfig@npm:7.0.1" + dependencies: + "@types/parse-json": ^4.0.0 + import-fresh: ^3.2.1 + parse-json: ^5.0.0 + path-type: ^4.0.0 + yaml: ^1.10.0 + checksum: 4be63e7117955fd88333d7460e4c466a90f556df6ef34efd59034d2463484e339666c41f02b523d574a797ec61f4a91918c5b89a316db2ea2f834e0d2d09465b + languageName: node + linkType: hard + "create-ecdh@npm:^4.0.0": version: 4.0.4 resolution: "create-ecdh@npm:4.0.4" @@ -8068,7 +8181,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.2.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -8275,6 +8388,39 @@ __metadata: languageName: node linkType: hard +"depcheck@npm:^1.4.3": + version: 1.4.3 + resolution: "depcheck@npm:1.4.3" + dependencies: + "@babel/parser": 7.16.4 + "@babel/traverse": ^7.12.5 + "@vue/compiler-sfc": ^3.0.5 + camelcase: ^6.2.0 + cosmiconfig: ^7.0.0 + debug: ^4.2.0 + deps-regex: ^0.1.4 + ignore: ^5.1.8 + is-core-module: ^2.4.0 + js-yaml: ^3.14.0 + json5: ^2.1.3 + lodash: ^4.17.20 + minimatch: ^3.0.4 + multimatch: ^5.0.0 + please-upgrade-node: ^3.2.0 + query-ast: ^1.0.3 + readdirp: ^3.5.0 + require-package-name: ^2.0.1 + resolve: ^1.18.1 + sass: ^1.29.0 + scss-parser: ^1.0.4 + semver: ^7.3.2 + yargs: ^16.1.0 + bin: + depcheck: bin/depcheck.js + checksum: 122631cab325707a55e26a8b530eb72c893bd481194100b1853ac2bc944b61320eb0e1ea0ff7e71724009cdfbd4057381d7bf868b9c5aad0c4207ac0bdca5e48 + languageName: node + linkType: hard + "depd@npm:2.0.0": version: 2.0.0 resolution: "depd@npm:2.0.0" @@ -8289,6 +8435,13 @@ __metadata: languageName: node linkType: hard +"deps-regex@npm:^0.1.4": + version: 0.1.4 + resolution: "deps-regex@npm:0.1.4" + checksum: 70c5e7fa887513bb8c55165c53e4ae511786ed7bf3d98d4dbef97a8879a808a5bc549034b1dfcdc7565c153e2fc2f7d8ee766eeb88156e78b2447dd75c1516e9 + languageName: node + linkType: hard + "des.js@npm:^1.0.0": version: 1.0.1 resolution: "des.js@npm:1.0.1" @@ -8699,6 +8852,7 @@ __metadata: "@types/react-native": ~0.69.1 "@types/react-test-renderer": ^18 "@types/redux-logger": ^3 + depcheck: ^1.4.3 eas-cli: ^0.60.0 eslint: ^8.19.0 eslint-config-universe: ^11.0.0 @@ -8721,7 +8875,6 @@ __metadata: firebase: ^9.9.1 gh-pages: ^4.0.0 i18next: ^21.8.11 - i18next-react-native-async-storage: ^1.0.4 intl-pluralrules: ^1.3.1 jest: ^26.6.3 jest-expo: ^46.0.0 @@ -8739,7 +8892,6 @@ __metadata: react-native-reanimated: ~2.9.1 react-native-safe-area-context: 4.3.1 react-native-screens: ~3.15.0 - react-native-showdown: ^1.0.1 react-native-star-rating-widget: ^1.2.0 react-native-svg: 12.3.0 react-native-web: ~0.18.7 @@ -9437,6 +9589,13 @@ __metadata: languageName: node linkType: hard +"estree-walker@npm:^2.0.2": + version: 2.0.2 + resolution: "estree-walker@npm:2.0.2" + checksum: 6151e6f9828abe2259e57f5fd3761335bb0d2ebd76dc1a01048ccee22fabcfef3c0859300f6d83ff0d1927849368775ec5a6d265dde2f6de5a1be1721cd94efc + languageName: node + linkType: hard + "esutils@npm:^2.0.2": version: 2.0.3 resolution: "esutils@npm:2.0.3" @@ -11675,15 +11834,6 @@ __metadata: languageName: node linkType: hard -"i18next-react-native-async-storage@npm:^1.0.4": - version: 1.0.4 - resolution: "i18next-react-native-async-storage@npm:1.0.4" - peerDependencies: - i18next: ">=13.0.1" - checksum: 7fe878b761e92ea68dfffeda82e4f44f4d1c971943376306c8ecf9359829c869b165e58f1c6777928c2cb851e7d0614661c60f07cbea8300944a8b4865128714 - languageName: node - linkType: hard - "i18next@npm:^21.8.11": version: 21.8.11 resolution: "i18next@npm:21.8.11" @@ -11741,7 +11891,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:5.2.0, ignore@npm:^5.1.1, ignore@npm:^5.1.4, ignore@npm:^5.2.0": +"ignore@npm:5.2.0, ignore@npm:^5.1.1, ignore@npm:^5.1.4, ignore@npm:^5.1.8, ignore@npm:^5.2.0": version: 5.2.0 resolution: "ignore@npm:5.2.0" checksum: 6b1f926792d614f64c6c83da3a1f9c83f6196c2839aa41e1e32dd7b8d174cef2e329d75caabb62cb61ce9dc432f75e67d07d122a037312db7caa73166a1bdb77 @@ -11789,6 +11939,13 @@ __metadata: languageName: node linkType: hard +"immutable@npm:^4.0.0": + version: 4.1.0 + resolution: "immutable@npm:4.1.0" + checksum: b9bc1f14fb18eb382d48339c064b24a1f97ae4cf43102e0906c0a6e186a27afcd18b55ca4a0b63c98eefb58143e2b5ebc7755a5fb4da4a7ad84b7a6096ac5b13 + languageName: node + linkType: hard + "import-fresh@npm:^2.0.0": version: 2.0.0 resolution: "import-fresh@npm:2.0.0" @@ -12142,6 +12299,15 @@ __metadata: languageName: node linkType: hard +"is-core-module@npm:^2.4.0": + version: 2.10.0 + resolution: "is-core-module@npm:2.10.0" + dependencies: + has: ^1.0.3 + checksum: 0f3f77811f430af3256fa7bbc806f9639534b140f8ee69476f632c3e1eb4e28a38be0b9d1b8ecf596179c841b53576129279df95e7051d694dac4ceb6f967593 + languageName: node + linkType: hard + "is-core-module@npm:^2.8.1, is-core-module@npm:^2.9.0": version: 2.9.0 resolution: "is-core-module@npm:2.9.0" @@ -13430,7 +13596,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.1": +"js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.0, js-yaml@npm:^3.14.1": version: 3.14.1 resolution: "js-yaml@npm:3.14.1" dependencies: @@ -13641,7 +13807,7 @@ __metadata: languageName: node linkType: hard -"json5@npm:^2.1.0, json5@npm:^2.1.2, json5@npm:^2.2.1": +"json5@npm:^2.1.0, json5@npm:^2.1.2, json5@npm:^2.1.3, json5@npm:^2.2.1": version: 2.2.1 resolution: "json5@npm:2.2.1" bin: @@ -14141,6 +14307,15 @@ __metadata: languageName: node linkType: hard +"magic-string@npm:^0.25.7": + version: 0.25.9 + resolution: "magic-string@npm:0.25.9" + dependencies: + sourcemap-codec: ^1.4.8 + checksum: 9a0e55a15c7303fc360f9572a71cffba1f61451bc92c5602b1206c9d17f492403bf96f946dfce7483e66822d6b74607262e24392e87b0ac27b786e69a40e9b1a + languageName: node + linkType: hard + "make-dir@npm:^2.0.0, make-dir@npm:^2.1.0": version: 2.1.0 resolution: "make-dir@npm:2.1.0" @@ -15004,6 +15179,19 @@ __metadata: languageName: node linkType: hard +"multimatch@npm:^5.0.0": + version: 5.0.0 + resolution: "multimatch@npm:5.0.0" + dependencies: + "@types/minimatch": ^3.0.3 + array-differ: ^3.0.0 + array-union: ^2.1.0 + arrify: ^2.0.1 + minimatch: ^3.0.4 + checksum: 82c8030a53af965cab48da22f1b0f894ef99e16ee680dabdfbd38d2dfacc3c8208c475203d747afd9e26db44118ed0221d5a0d65268c864f06d6efc7ac6df812 + languageName: node + linkType: hard + "mute-stream@npm:0.0.7": version: 0.0.7 resolution: "mute-stream@npm:0.0.7" @@ -15049,7 +15237,7 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:3.3.4, nanoid@npm:^3.1.23, nanoid@npm:^3.3.1, nanoid@npm:^3.3.3": +"nanoid@npm:3.3.4, nanoid@npm:^3.1.23, nanoid@npm:^3.3.1, nanoid@npm:^3.3.3, nanoid@npm:^3.3.4": version: 3.3.4 resolution: "nanoid@npm:3.3.4" bin: @@ -16274,6 +16462,15 @@ __metadata: languageName: node linkType: hard +"please-upgrade-node@npm:^3.2.0": + version: 3.2.0 + resolution: "please-upgrade-node@npm:3.2.0" + dependencies: + semver-compare: ^1.0.0 + checksum: d87c41581a2a022fbe25965a97006238cd9b8cbbf49b39f78d262548149a9d30bd2bdf35fec3d810e0001e630cd46ef13c7e19c389dea8de7e64db271a2381bb + languageName: node + linkType: hard + "plist@npm:^3.0.2, plist@npm:^3.0.5": version: 3.0.5 resolution: "plist@npm:3.0.5" @@ -16722,6 +16919,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.1.10": + version: 8.4.16 + resolution: "postcss@npm:8.4.16" + dependencies: + nanoid: ^3.3.4 + picocolors: ^1.0.0 + source-map-js: ^1.0.2 + checksum: 10eee25efd77868036403858577da0cefaf2e0905feeaba5770d5438ccdddba3d01cba8063e96b8aac4c6daa0ed413dd5ae0554a433a3c4db38df1d134cffc1f + languageName: node + linkType: hard + "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -17130,6 +17338,15 @@ __metadata: languageName: node linkType: hard +"query-ast@npm:^1.0.3": + version: 1.0.4 + resolution: "query-ast@npm:1.0.4" + dependencies: + invariant: 2.2.4 + checksum: fed7983738d690437e24d113e74c39e51a33da893c58e46286007f26dc283c8dd5b25a854ec91864ae60e8398b0bac8667c2588b532b8b20503cc05fc25d10ed + languageName: node + linkType: hard + "query-string@npm:^5.0.1": version: 5.1.1 resolution: "query-string@npm:5.1.1" @@ -17512,19 +17729,6 @@ __metadata: languageName: node linkType: hard -"react-native-showdown@npm:^1.0.1": - version: 1.0.1 - resolution: "react-native-showdown@npm:1.0.1" - dependencies: - showdown: ^1.9.1 - peerDependencies: - react: "*" - react-native: "*" - react-native-webview: "*" - checksum: 48ccb6db137b21d9237bf0b7ed10be2e313358fae3f18368f7db216d262bd6c58bccde8f27ffe2ea39f8bff63c63cb8b0c2e37e5ba613546c76a599898c14e47 - languageName: node - linkType: hard - "react-native-star-rating-widget@npm:^1.2.0": version: 1.2.0 resolution: "react-native-star-rating-widget@npm:1.2.0" @@ -17781,7 +17985,7 @@ __metadata: languageName: node linkType: hard -"readdirp@npm:~3.6.0": +"readdirp@npm:^3.5.0, readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" dependencies: @@ -18081,6 +18285,13 @@ __metadata: languageName: node linkType: hard +"require-package-name@npm:^2.0.1": + version: 2.0.1 + resolution: "require-package-name@npm:2.0.1" + checksum: 00f4e9e467ebe2bbced2b4198a165de11c83b5ee9f4c20b05a8782659b92bcb544dbd50be9a3eed746d05ecd875453e258c079eb3a79604b50a27cf8ab0798b5 + languageName: node + linkType: hard + "requireg@npm:^0.2.2": version: 0.2.2 resolution: "requireg@npm:0.2.2" @@ -18444,6 +18655,19 @@ __metadata: languageName: node linkType: hard +"sass@npm:^1.29.0": + version: 1.54.5 + resolution: "sass@npm:1.54.5" + dependencies: + chokidar: ">=3.0.0 <4.0.0" + immutable: ^4.0.0 + source-map-js: ">=0.6.2 <2.0.0" + bin: + sass: sass.js + checksum: ba7a65aa7508419468547c8de4d59e537bec874f52823f501663dc98d80dfd2d374e8ea73a31200db7f510b8816c925edf89728c9b36889f4e6673d3e94ec100 + languageName: node + linkType: hard + "sax@npm:>=0.6.0, sax@npm:~1.2.4": version: 1.2.4 resolution: "sax@npm:1.2.4" @@ -18512,6 +18736,15 @@ __metadata: languageName: node linkType: hard +"scss-parser@npm:^1.0.4": + version: 1.0.5 + resolution: "scss-parser@npm:1.0.5" + dependencies: + invariant: 2.2.4 + checksum: 0f3b16aea76cdb36e5d19f8c17e65a49b2666824dc037e0853278c6e61b01746283a95c1323bcfc4bf45cf24fdae3515f2ca7f3851e3bf19667f2fb0727a54ec + languageName: node + linkType: hard + "select-hose@npm:^2.0.0": version: 2.0.0 resolution: "select-hose@npm:2.0.0" @@ -18539,6 +18772,13 @@ __metadata: languageName: node linkType: hard +"semver-compare@npm:^1.0.0": + version: 1.0.0 + resolution: "semver-compare@npm:1.0.0" + checksum: dd1d7e2909744cf2cf71864ac718efc990297f9de2913b68e41a214319e70174b1d1793ac16e31183b128c2b9812541300cb324db8168e6cf6b570703b171c68 + languageName: node + linkType: hard + "semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0": version: 5.7.1 resolution: "semver@npm:5.7.1" @@ -18802,17 +19042,6 @@ __metadata: languageName: node linkType: hard -"showdown@npm:^1.9.1": - version: 1.9.1 - resolution: "showdown@npm:1.9.1" - dependencies: - yargs: ^14.2 - bin: - showdown: bin/showdown.js - checksum: d6aac199cb28c2b89bce804eddda928c816e5a2b0e0e6dfe66db8ced6968e237995bf1d547046c9970b804e5c3181b1a55740883e1332c837024668f9c031a01 - languageName: node - linkType: hard - "side-channel@npm:^1.0.4": version: 1.0.4 resolution: "side-channel@npm:1.0.4" @@ -19018,6 +19247,13 @@ __metadata: languageName: node linkType: hard +"source-map-js@npm:>=0.6.2 <2.0.0, source-map-js@npm:^1.0.2": + version: 1.0.2 + resolution: "source-map-js@npm:1.0.2" + checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377c + languageName: node + linkType: hard + "source-map-resolve@npm:^0.5.0": version: 0.5.3 resolution: "source-map-resolve@npm:0.5.3" @@ -19069,6 +19305,13 @@ __metadata: languageName: node linkType: hard +"sourcemap-codec@npm:^1.4.8": + version: 1.4.8 + resolution: "sourcemap-codec@npm:1.4.8" + checksum: b57981c05611afef31605732b598ccf65124a9fcb03b833532659ac4d29ac0f7bfacbc0d6c5a28a03e84c7510e7e556d758d0bb57786e214660016fb94279316 + languageName: node + linkType: hard + "spdx-correct@npm:^3.0.0": version: 3.1.1 resolution: "spdx-correct@npm:3.1.1" @@ -21437,6 +21680,13 @@ __metadata: languageName: node linkType: hard +"yaml@npm:^1.10.0": + version: 1.10.2 + resolution: "yaml@npm:1.10.2" + checksum: ce4ada136e8a78a0b08dc10b4b900936912d15de59905b2bf415b4d33c63df1d555d23acb2a41b23cf9fb5da41c256441afca3d6509de7247daa062fd2c5ea5f + languageName: node + linkType: hard + "yargs-parser@npm:^13.1.2": version: 13.1.2 resolution: "yargs-parser@npm:13.1.2" @@ -21447,16 +21697,6 @@ __metadata: languageName: node linkType: hard -"yargs-parser@npm:^15.0.1": - version: 15.0.3 - resolution: "yargs-parser@npm:15.0.3" - dependencies: - camelcase: ^5.0.0 - decamelize: ^1.2.0 - checksum: 06611c1893fa9f1c25ae79df3c6e2edbac7c8d75257a4b55b8432cbc87ee03eda86bea0537f65b4b8a0d9684c83fa6e9ef61ef720a1e5cc8a9aa6893b54ee4c3 - languageName: node - linkType: hard - "yargs-parser@npm:^18.1.2": version: 18.1.3 resolution: "yargs-parser@npm:18.1.3" @@ -21492,25 +21732,6 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^14.2": - version: 14.2.3 - resolution: "yargs@npm:14.2.3" - dependencies: - cliui: ^5.0.0 - decamelize: ^1.2.0 - find-up: ^3.0.0 - get-caller-file: ^2.0.1 - require-directory: ^2.1.1 - require-main-filename: ^2.0.0 - set-blocking: ^2.0.0 - string-width: ^3.0.0 - which-module: ^2.0.0 - y18n: ^4.0.0 - yargs-parser: ^15.0.1 - checksum: 684fcb1896e6c873c31c09c5c16445d6253dfe505aa879cff56d49425f5bca44f2ab8d7a1c949f3b932ae8654128425e89770e5e2f2c3d816e5816b9eb6efb6f - languageName: node - linkType: hard - "yargs@npm:^15.1.0, yargs@npm:^15.3.1, yargs@npm:^15.4.1": version: 15.4.1 resolution: "yargs@npm:15.4.1" @@ -21530,7 +21751,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^16.2.0": +"yargs@npm:^16.1.0, yargs@npm:^16.2.0": version: 16.2.0 resolution: "yargs@npm:16.2.0" dependencies: From ce5e7d96ce5ce1a4c511aa9f6c63b715de931bb0 Mon Sep 17 00:00:00 2001 From: requinard Date: Mon, 22 Aug 2022 09:28:17 +0200 Subject: [PATCH 3/6] add depcheck and unimported These tools are useful for code cleanup as they point to unused dependencies and dead code. --- .unimportedrc.json | 6 ++++++ package.json | 1 + 2 files changed, 7 insertions(+) create mode 100644 .unimportedrc.json diff --git a/.unimportedrc.json b/.unimportedrc.json new file mode 100644 index 00000000..2daed2d8 --- /dev/null +++ b/.unimportedrc.json @@ -0,0 +1,6 @@ +{ + "entry": ["src/index.tsx"], + "extensions": [".tsx", ".ts"], + "ignorePatterns": ["**/node_modules/**", "private/**", "**/*.spec.*", "**/*.d.ts"], + "ignoreUnused": ["@sentry/react-native"] +} diff --git a/package.json b/package.json index 642be6a9..0e200837 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "lint:code": "eslint ./src --ext js,ts,jsx,tsx", "lint:translations": "eslint --rule 'prettier/prettier: off' --ext json --format node_modules/eslint-plugin-i18n-json/formatter.js ./src/i18n", "lint:depcheck": "depcheck", + "lint:unimported": "npx unimported", "test": "jest", "eas-build-post-install": "tsc --noEmit && yarn lint:translations && yarn lint:code", "bundle:android": "eas build --platform android --profile production", From 5bb9d5aa0f0381856a1be5f3acbfcf97d420f551 Mon Sep 17 00:00:00 2001 From: requinard Date: Mon, 22 Aug 2022 09:36:08 +0200 Subject: [PATCH 4/6] act on unimported --- package.json | 5 - .../Containers/InteractiveImage.spec.tsx | 82 - .../Containers/InteractiveImage.tsx | 215 --- .../Utilities/LoadingIndicator.spec.tsx | 10 - src/components/Utilities/LoadingIndicator.tsx | 5 - src/components/Utilities/Measure.tsx | 45 - src/components/Utilities/OpenFursuitGames.tsx | 20 - src/components/Utilities/ThemeVerifier.tsx | 32 - src/hooks/useTopHeaderStyle.tsx | 8 - src/store/background.selectors.ts | 13 - webpack.config.js | 2 +- yarn.lock | 1409 +---------------- 12 files changed, 62 insertions(+), 1784 deletions(-) delete mode 100644 src/components/Containers/InteractiveImage.spec.tsx delete mode 100644 src/components/Containers/InteractiveImage.tsx delete mode 100644 src/components/Utilities/LoadingIndicator.spec.tsx delete mode 100644 src/components/Utilities/LoadingIndicator.tsx delete mode 100644 src/components/Utilities/Measure.tsx delete mode 100644 src/components/Utilities/OpenFursuitGames.tsx delete mode 100644 src/components/Utilities/ThemeVerifier.tsx delete mode 100644 src/hooks/useTopHeaderStyle.tsx delete mode 100644 src/store/background.selectors.ts diff --git a/package.json b/package.json index 0e200837..c57b6735 100644 --- a/package.json +++ b/package.json @@ -71,8 +71,6 @@ "expo-status-bar": "~1.4.0", "expo-task-manager": "~10.3.0", "expo-updates": "~0.14.4", - "expo-web-browser": "~11.0.0", - "firebase": "^9.9.1", "i18next": "^21.8.11", "intl-pluralrules": "^1.3.1", "lodash": "^4.17.21", @@ -89,14 +87,11 @@ "react-native-screens": "~3.15.0", "react-native-star-rating-widget": "^1.2.0", "react-native-svg": "12.3.0", - "react-native-web": "~0.18.7", - "react-native-webview": "11.23.0", "react-redux": "^8.0.2", "redux-logger": "^3.0.6", "redux-persist": "^6.0.0", "sentry-expo": "~5.0.0", "ts-pattern": "^4.0.5", - "usehooks-ts": "^2.6.0", "zod": "^3.17.3" }, "devDependencies": { diff --git a/src/components/Containers/InteractiveImage.spec.tsx b/src/components/Containers/InteractiveImage.spec.tsx deleted file mode 100644 index 32947768..00000000 --- a/src/components/Containers/InteractiveImage.spec.tsx +++ /dev/null @@ -1,82 +0,0 @@ -import { offsetToAbsolute, rescale } from "./InteractiveImage"; - -describe("InteractiveImage", () => { - describe("rescale", () => { - it("returns the same value for the same scale", () => { - const expected = 500; - const result = rescale(expected, 1000, 1000); - - expect(result).toEqual(expected); - }); - - it("doubles the value when the target is doubled", () => { - const expected = 500; - const result = rescale(expected, 1000, 2000); - - expect(result).toEqual(expected * 2); - }); - - it("halves the value when the target is halved", () => { - const expected = 500; - const result = rescale(expected, 1000, 500); - - expect(result).toEqual(expected / 2); - }); - it("returns 0 when the value should be 0", () => { - const expected = 0; - const result = rescale(expected, 1000, 500); - - expect(result).toEqual(0); - }); - it("can also scale negatively", () => { - const expected = -100; - const result = rescale(expected, 1000, 1000); - - expect(result).toEqual(-100); - }); - }); - - describe("offsetToAbsolute", () => { - it("should return the middle of the range if there is no offset", () => { - const offset = 0; - - const result = offsetToAbsolute(offset, 1, 100); - - expect(result).toEqual([0, 100]); - }); - - it("should return 0 if the offset is exactly half of the range", () => { - // If we are offset by half of the range and there is no scaling, then the left value should always be 0 - const result = offsetToAbsolute(50, 1, 100); - - expect(result).toEqual([-50, 50]); - }); - - it("should return half of the expected offset if it is scaled", () => { - const result = offsetToAbsolute(0, 2, 100); - - expect(result).toEqual([25, 75]); - }); - - it("should return a smaller value if it is offset and scaled", () => { - const result = offsetToAbsolute(25, 2, 100); - - expect(result).toEqual([12, 63]); - }); - it("should return a negative value if we are extremely offset", () => { - const result = offsetToAbsolute(100, 1, 100); - - expect(result).toEqual([-100, 0]); - }); - it("should be 0 for a test casce with no scaling or offset", () => { - const result = offsetToAbsolute(0, 1, 423); - - expect(result).toEqual([0, 423]); - }); - it("should be 169 for a scaled test case with no offset", () => { - const result = offsetToAbsolute(0, 5, 423); - - expect(result).toEqual([169, 254]); - }); - }); -}); diff --git a/src/components/Containers/InteractiveImage.tsx b/src/components/Containers/InteractiveImage.tsx deleted file mode 100644 index ef91a1b4..00000000 --- a/src/components/Containers/InteractiveImage.tsx +++ /dev/null @@ -1,215 +0,0 @@ -import { debounce } from "lodash"; -import { FC, useMemo } from "react"; -import { Dimensions } from "react-native"; -import { Gesture, GestureDetector } from "react-native-gesture-handler"; -import Animated, { runOnJS, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming } from "react-native-reanimated"; - -import { ImageDetails } from "../../store/eurofurence.types"; - -export type VisibleViewBounds = { left: number; top: number; right: number; bottom: number }; -type InteractiveImageProps = { - /** - * The image you want to render - */ - image: ImageDetails; - - /** - * A callback that is fired when a user interacts with the image. It represents the visible part of the `image` prop - */ - onBoundsUpdated?: (bounds: { left: number; top: number; right: number; bottom: number }) => void; - - /** - * Set the wait time in between status updates. - * @default 300 - */ - debounceTimeout?: number; - - /** - * The minimum scale that can be zoomed out to. - * @default 1 - */ - minScale?: number; - - /** - * The maximum scale that can be zoomed in to. - * @default 5 - */ - maxScale?: number; - - /** - * Log debug messages to see what the view is doing - */ - debug?: boolean; -}; - -/** - * Rescale a point from one range to another range. - * @param pixelPoint The point on the originalRange. - * @param originalRangeWidth The width of the original range - * @param targetRangeWidth The width of the target range - */ -export const rescale = (pixelPoint: number, originalRangeWidth: number, targetRangeWidth: number) => { - const originalAsPercentage = 1 - (originalRangeWidth - pixelPoint) / originalRangeWidth; - return Math.round(originalAsPercentage * targetRangeWidth); -}; - -/** - * Convert an offset to an absolute number. - * @param absoluteOffset The offset for the item - * @param scaleFactor The amount that we are scaled in - * @param axisRange The maximum value that should be in the range. - */ -export const offsetToAbsolute = (absoluteOffset: number, scaleFactor: number, axisRange: number): [number, number] => { - const scaledOffset = absoluteOffset / scaleFactor; - const middle = axisRange / 2; - const middleWithOffset = middle - scaledOffset; - const bandwidth = middle / scaleFactor; - return [Math.floor(middleWithOffset - bandwidth), Math.ceil(middleWithOffset + bandwidth)]; -}; - -export const InteractiveImage: FC = ({ image, onBoundsUpdated, debounceTimeout, minScale = 1, maxScale = 5, debug }) => { - // Make the screen dimensions available for Reanimated - const screenWidth = useSharedValue(Dimensions.get("window").width / (Dimensions.get("window").height / Dimensions.get("window").width)); - const screenHeight = useSharedValue(Dimensions.get("window").height / (Dimensions.get("window").height / Dimensions.get("window").width)); - - // Hold the translation values - const translateX = useSharedValue(0); - const translateY = useSharedValue(0); - - // Hold the translation values while panning - const startX = useSharedValue(0); - const startY = useSharedValue(0); - - // Hold the scale - const scale = useSharedValue(1); - - // Hold the scale while pinching - const savedScale = useSharedValue(1); - - // Calculate the maximum edges that a user can pan to. These correspond to the current scale - const scaledMaxWidth = useDerivedValue(() => scale.value * screenWidth.value); - const scaledMaxHeight = useDerivedValue(() => scale.value * screenHeight.value); - - // Make sure that the parent can receive updates but also make sure it does not overload the parent with a gazillion callbacks - const debouncedUpdateHandler = useMemo(() => { - const width = Dimensions.get("window").width; - const height = Dimensions.get("window").height; - - return debounce((focalX: number, focalY: number, scale: number) => { - const [left, right] = offsetToAbsolute(focalX, scale, width); - const [top, bottom] = offsetToAbsolute(focalY, scale, height); - - const boxBounds = { - left, - right, - top, - bottom, - }; - - const imageBounds = { - left: rescale(left, width, image.Width), - right: rescale(right, width, image.Width), - top: rescale(top, height, image.Height), - bottom: rescale(bottom, height, image.Height), - }; - debug && console.log("bounds updated", boxBounds); - - if (onBoundsUpdated) { - onBoundsUpdated(imageBounds); - } - }, debounceTimeout ?? 300); - }, [onBoundsUpdated]); - - // Call the debounced handler on JS - useDerivedValue(() => runOnJS(debouncedUpdateHandler)(translateX.value, translateY.value, scale.value)); - - const animatedStyles = useAnimatedStyle(() => ({ - transform: [{ translateX: translateX.value }, { translateY: translateY.value }, { scale: scale.value }], - })); - - const dragGesture = Gesture.Pan() - .averageTouches(true) - .onUpdate((e) => { - translateX.value = e.translationX + startX.value; - translateY.value = e.translationY + startY.value; - }) - .onEnd(() => { - const clamp = (num: number, max: number) => { - if (num > max) { - return max; - } else if (num < max * -1) { - return max * -1; - } - return num; - }; - // Make sure the X and Y can never escape the scaled screen limits - const finalX = clamp(translateX.value, scaledMaxWidth.value); - const finalY = clamp(translateY.value, scaledMaxHeight.value); - startX.value = finalX; - translateX.value = withTiming(finalX); - startY.value = finalY; - translateY.value = withTiming(finalY); - }); - - const zoomGesture = Gesture.Pinch() - .onUpdate((event) => { - scale.value = savedScale.value * event.scale; - }) - .onEnd(() => { - const clamp = (num: number, min: number, max: number) => { - debug && - console.log("Clamping", { - num, - min, - max, - }); - if (num > max) { - return max; - } else if (num < min) { - return min; - } - return num; - }; - - // Make sure that the scale is always between 1 and 5 - scale.value = withTiming(clamp(scale.value, minScale, maxScale)); - savedScale.value = clamp(scale.value, minScale, maxScale); - }); - - const doubleTapGesture = Gesture.Tap() - .maxDuration(250) - .numberOfTaps(2) - .onEnd(() => { - if (scale.value >= maxScale) { - debug && console.log("zoom", "resetting to 1"); - // If we're zoomed in, reset - scale.value = withTiming(1); - savedScale.value = 1; - } else if (scale.value >= maxScale / 2) { - debug && console.log("zoom", "going to max"); - // If we're half of the max scale, zoom to max - scale.value = withTiming(maxScale); - savedScale.value = maxScale; - } else { - debug && console.log("zoom", "going to halfway"); - // If we're not halfway to max, go to halfway to max - scale.value = withTiming(maxScale / 2); - savedScale.value = maxScale / 2; - } - // Reset scaling - // TODO: make this center on the double tap - translateX.value = withTiming(0); - translateY.value = withTiming(0); - startX.value = translateX.value; - startY.value = translateY.value; - }); - - // Combine all the gestures so we can do them simultaneously - const composed = Gesture.Simultaneous(doubleTapGesture, dragGesture, zoomGesture); - - return ( - - - - ); -}; diff --git a/src/components/Utilities/LoadingIndicator.spec.tsx b/src/components/Utilities/LoadingIndicator.spec.tsx deleted file mode 100644 index aaa9b776..00000000 --- a/src/components/Utilities/LoadingIndicator.spec.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { render, screen } from "../../testUtils"; -import { LoadingIndicator } from "./LoadingIndicator"; - -describe("LoadingIndicator", function () { - it("renders", async () => { - render(); - - expect(screen.getByTestId("loadingindicator")).toBeTruthy(); - }); -}); diff --git a/src/components/Utilities/LoadingIndicator.tsx b/src/components/Utilities/LoadingIndicator.tsx deleted file mode 100644 index 562d84bf..00000000 --- a/src/components/Utilities/LoadingIndicator.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Text } from "react-native"; - -export const LoadingIndicator = () => { - return We are loading some data, hang tight!; -}; diff --git a/src/components/Utilities/Measure.tsx b/src/components/Utilities/Measure.tsx deleted file mode 100644 index a7bf51a4..00000000 --- a/src/components/Utilities/Measure.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { StyleSheet, View } from "react-native"; - -export const Measure = () => ( - - - - - - -); - -const styles = StyleSheet.create({ - topLeft: { - position: "absolute", - width: 30, - height: 30, - top: 0, - left: 0, - backgroundColor: "black", - }, - topRight: { - position: "absolute", - width: 30, - height: 30, - top: 0, - right: 0, - backgroundColor: "black", - }, - bottomLeft: { - position: "absolute", - width: 30, - height: 30, - bottom: 0, - left: 0, - backgroundColor: "black", - }, - bottomRight: { - position: "absolute", - width: 30, - height: 30, - bottom: 0, - right: 0, - backgroundColor: "black", - }, -}); diff --git a/src/components/Utilities/OpenFursuitGames.tsx b/src/components/Utilities/OpenFursuitGames.tsx deleted file mode 100644 index e6dd4bf9..00000000 --- a/src/components/Utilities/OpenFursuitGames.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import * as WebBrowser from "expo-web-browser"; -import { useEffect } from "react"; -import { Text, View } from "react-native"; - -import { appBase } from "../../configuration"; -import { useAppSelector } from "../../store"; - -export const OpenFursuitGames = () => { - const token = useAppSelector((state) => state.authorization.token); - - useEffect(() => { - WebBrowser.openBrowserAsync(`${appBase}/companion/#/login?embedded=false&returnPath=/collect&token=${token}`).catch(console.error); - }, [token]); - - return ( - - We are opening a new browser screen - - ); -}; diff --git a/src/components/Utilities/ThemeVerifier.tsx b/src/components/Utilities/ThemeVerifier.tsx deleted file mode 100644 index b412d433..00000000 --- a/src/components/Utilities/ThemeVerifier.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { Text, View } from "react-native"; - -import { useTheme } from "../../context/Theme"; -import { Label } from "../Atoms/Label"; - -export const ThemeVerifier = () => { - const theme = useTheme(); - - return ( - - {/* Theme verifier. */} - - {Object.entries(theme).map(([name, color]) => ( - - {name} - - ))} - - {/* Label style verifier. */} - - - - - - - - - - ); -}; diff --git a/src/hooks/useTopHeaderStyle.tsx b/src/hooks/useTopHeaderStyle.tsx deleted file mode 100644 index 1d72d965..00000000 --- a/src/hooks/useTopHeaderStyle.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { useMemo } from "react"; -import { useSafeAreaInsets } from "react-native-safe-area-context"; - -export const useTopHeaderStyle = () => { - const safeInsets = useSafeAreaInsets(); - - return useMemo(() => ({ paddingTop: 30 + safeInsets.top }), [safeInsets]); -}; diff --git a/src/store/background.selectors.ts b/src/store/background.selectors.ts deleted file mode 100644 index 4a726a59..00000000 --- a/src/store/background.selectors.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { createSelector } from "@reduxjs/toolkit"; -import _ from "lodash"; - -import { Notification } from "./background.slice"; - -export const selectEventReminders = createSelector( - (state: any): Notification[] => state.notifications.notifications, - (notifications) => - _.chain(notifications) - .filter((it) => it.type === "EventReminder") - .orderBy((it) => it.dateScheduled, "desc") - .value() -); diff --git a/webpack.config.js b/webpack.config.js index 11769074..fdffd250 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,7 @@ const createExpoWebpackConfigAsync = require("@expo/webpack-config"); module.exports = async function (env, argv) { env.babel = { - dangerouslyAddModulePathsToTranspile: ["usehooks-ts", "@openspacelabs/react-native-zoomable-view", "@gorhom/bottom-sheet"], + dangerouslyAddModulePathsToTranspile: ["@openspacelabs/react-native-zoomable-view", "@gorhom/bottom-sheet"], }; return await createExpoWebpackConfigAsync(env, argv); diff --git a/yarn.lock b/yarn.lock index 0f4fc2b8..395b0fd9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -520,15 +520,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:7.16.4": - version: 7.16.4 - resolution: "@babel/parser@npm:7.16.4" - bin: - parser: ./bin/babel-parser.js - checksum: ce0a8f92f440f2a12bc932f070a7b60c5133bf8a63f461841f9e39af0194f573707959d606c6fad1a2fd496a45148553afd9b74d3b8dd36cdb7861598d1f3e36 - languageName: node - linkType: hard - "@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.18.6": version: 7.18.6 resolution: "@babel/parser@npm:7.18.6" @@ -538,7 +529,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.16.4, @babel/parser@npm:^7.18.10, @babel/parser@npm:^7.18.11": +"@babel/parser@npm:^7.18.10, @babel/parser@npm:^7.18.11": version: 7.18.11 resolution: "@babel/parser@npm:7.18.11" bin: @@ -1685,7 +1676,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.18.6": +"@babel/runtime@npm:^7.0.0": version: 7.18.9 resolution: "@babel/runtime@npm:7.18.9" dependencies: @@ -1743,24 +1734,6 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.12.5, @babel/traverse@npm:^7.18.10, @babel/traverse@npm:^7.18.11, @babel/traverse@npm:^7.18.9": - version: 7.18.11 - resolution: "@babel/traverse@npm:7.18.11" - dependencies: - "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.18.10 - "@babel/helper-environment-visitor": ^7.18.9 - "@babel/helper-function-name": ^7.18.9 - "@babel/helper-hoist-variables": ^7.18.6 - "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.18.11 - "@babel/types": ^7.18.10 - debug: ^4.1.0 - globals: ^11.1.0 - checksum: 727409464d5cf27f33555010098ce9bb435f0648cc76e674f4fb7513522356655ba62be99c8df330982b391ccf5f0c0c23c7bd7453d4936d47e2181693fed14c - languageName: node - linkType: hard - "@babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.18.6": version: 7.18.6 resolution: "@babel/traverse@npm:7.18.6" @@ -1779,6 +1752,24 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.18.10, @babel/traverse@npm:^7.18.11, @babel/traverse@npm:^7.18.9": + version: 7.18.11 + resolution: "@babel/traverse@npm:7.18.11" + dependencies: + "@babel/code-frame": ^7.18.6 + "@babel/generator": ^7.18.10 + "@babel/helper-environment-visitor": ^7.18.9 + "@babel/helper-function-name": ^7.18.9 + "@babel/helper-hoist-variables": ^7.18.6 + "@babel/helper-split-export-declaration": ^7.18.6 + "@babel/parser": ^7.18.11 + "@babel/types": ^7.18.10 + debug: ^4.1.0 + globals: ^11.1.0 + checksum: 727409464d5cf27f33555010098ce9bb435f0648cc76e674f4fb7513522356655ba62be99c8df330982b391ccf5f0c0c23c7bd7453d4936d47e2181693fed14c + languageName: node + linkType: hard + "@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.6, @babel/types@npm:^7.18.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": version: 7.18.7 resolution: "@babel/types@npm:7.18.7" @@ -2606,529 +2597,6 @@ __metadata: languageName: node linkType: hard -"@firebase/analytics-compat@npm:0.1.13": - version: 0.1.13 - resolution: "@firebase/analytics-compat@npm:0.1.13" - dependencies: - "@firebase/analytics": 0.8.0 - "@firebase/analytics-types": 0.7.0 - "@firebase/component": 0.5.17 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 05893b44920fa5b0d32e607606c59a7832692d72f1c9ce7475446fc37a25736f36e380f024bb3415489c9c002a6d550d373edbe750f4b73e18f1d4c623b43cc7 - languageName: node - linkType: hard - -"@firebase/analytics-types@npm:0.7.0": - version: 0.7.0 - resolution: "@firebase/analytics-types@npm:0.7.0" - checksum: aa118f1816d4b318ed7ee3eea599d2de5b5cce3c493fd4c34b2907763f47c55f3762860178999d1feee82d898ace64f8b165c8b42af4910f49443ff5a05c9b19 - languageName: node - linkType: hard - -"@firebase/analytics@npm:0.8.0": - version: 0.8.0 - resolution: "@firebase/analytics@npm:0.8.0" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/installations": 0.5.12 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: 00956fedef95e019ca73729ca067945545ef24f97fbff876b2a5e0f4767a1efc2adb48071c94995960037e20c11c4ae76fffaaa50631f38c8744e8b1efd63cdf - languageName: node - linkType: hard - -"@firebase/app-check-compat@npm:0.2.12": - version: 0.2.12 - resolution: "@firebase/app-check-compat@npm:0.2.12" - dependencies: - "@firebase/app-check": 0.5.12 - "@firebase/app-check-types": 0.4.0 - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 7e7ae947982a74d1e6e7c3c8f9dd52fb5c53b6e2b8353a3968541497484642556df14281dfe545d99938ecc90ce21eff241151a8d7ea940fb680223c20d0aa47 - languageName: node - linkType: hard - -"@firebase/app-check-interop-types@npm:0.1.0": - version: 0.1.0 - resolution: "@firebase/app-check-interop-types@npm:0.1.0" - checksum: 20bf685e8b77a87ff70d704d604e1677e400ef96d09dff96b36176340fa07a8e0d775dd5b83a9bf74ae996c63f11df75de61faa2966072dd13601fb7717b622d - languageName: node - linkType: hard - -"@firebase/app-check-types@npm:0.4.0": - version: 0.4.0 - resolution: "@firebase/app-check-types@npm:0.4.0" - checksum: b3011d5332d91cbf5437add152f8006e0342e04c11ffa810ee1d4fcd7c0888c9776e2f7093f28f68bdf0944c089d5cb59c41bf4a0131bfcb540febe03068168c - languageName: node - linkType: hard - -"@firebase/app-check@npm:0.5.12": - version: 0.5.12 - resolution: "@firebase/app-check@npm:0.5.12" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: c9cb47ba13f903c65f2224bfa1d8743ca3f77723debe92442a2c0dae6613795306fd63dd73d0e5d483dcbaed59e2e0e70c47fdec5f95f31fe4d9df234b8d7cd2 - languageName: node - linkType: hard - -"@firebase/app-compat@npm:0.1.30": - version: 0.1.30 - resolution: "@firebase/app-compat@npm:0.1.30" - dependencies: - "@firebase/app": 0.7.29 - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - checksum: 76752e608d60f7542840938a1a0dd3ff116e863ad8b014f59c8fef293862770685d948dc97a2709ce7c0e5f7ed9e1ac3d72751f14142e6d9678f93a19d3e656e - languageName: node - linkType: hard - -"@firebase/app-types@npm:0.7.0": - version: 0.7.0 - resolution: "@firebase/app-types@npm:0.7.0" - checksum: 9b46512659061751e81d32e95420e206f0fe97d3f597267b1c1a520e10bba0792952535e1f22b031b894fb63c1c6f5815aaa71fae27913fdfaba281e99f5fbfc - languageName: node - linkType: hard - -"@firebase/app@npm:0.7.29": - version: 0.7.29 - resolution: "@firebase/app@npm:0.7.29" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - idb: 7.0.1 - tslib: ^2.1.0 - checksum: 68ff885a7178ee2038bb09c449c15b59db3cceba20c2f828e597cbd611bec8146f99e08a13d6dc9d65d7d2f64a6729c0a2fcf99ad33420cb7eb68bf951294adb - languageName: node - linkType: hard - -"@firebase/auth-compat@npm:0.2.18": - version: 0.2.18 - resolution: "@firebase/auth-compat@npm:0.2.18" - dependencies: - "@firebase/auth": 0.20.5 - "@firebase/auth-types": 0.11.0 - "@firebase/component": 0.5.17 - "@firebase/util": 1.6.3 - node-fetch: 2.6.7 - selenium-webdriver: 4.1.2 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: ed6a202271e55f3aa9226d74dea75134d696725995655b4ccf022eb17b1b2e9b6e95f789eb335ea6eec49d63a76bea20d25b55bba20aff4bf0a1086e2ce2bced - languageName: node - linkType: hard - -"@firebase/auth-interop-types@npm:0.1.6": - version: 0.1.6 - resolution: "@firebase/auth-interop-types@npm:0.1.6" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: 25db353581b23605c3e26a1ae5d070c2bfcb3c79752729c4e3f6280c81662723e9c4ef6edda82c6fd5dc79e124181a4aa649fcfd12b007e886e1d8efebc04910 - languageName: node - linkType: hard - -"@firebase/auth-types@npm:0.11.0": - version: 0.11.0 - resolution: "@firebase/auth-types@npm:0.11.0" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: 69fa441bd86b2892031b2cefc6c9d4d6eeee2fb04a3999fc817a2208705da64d4d2023b57c446d95df31fbb308e3111d72020b7542d682c2fe9ea4ee9e67380b - languageName: node - linkType: hard - -"@firebase/auth@npm:0.20.5": - version: 0.20.5 - resolution: "@firebase/auth@npm:0.20.5" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - node-fetch: 2.6.7 - selenium-webdriver: 4.1.2 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: d931fb8f5161f39a0983992b4b01da362b36384bd629bb1918ee7cf679f0aaf8d3003e82bb6e4858351ca58358e504472018933fe0413c95c9ba14bd63f7a712 - languageName: node - linkType: hard - -"@firebase/component@npm:0.5.17": - version: 0.5.17 - resolution: "@firebase/component@npm:0.5.17" - dependencies: - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - checksum: 5f9a98bb2bd795fd7a211c9c3b95b893e0e4e83fbae6678995dc730f750fb5c2e76b730dd60790c6fafe4c8323dc8da8d885bf69f99da6cbda5ab28c3a005eef - languageName: node - linkType: hard - -"@firebase/database-compat@npm:0.2.3": - version: 0.2.3 - resolution: "@firebase/database-compat@npm:0.2.3" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/database": 0.13.3 - "@firebase/database-types": 0.9.11 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - checksum: b731a4328d1305595195706ac824fc2d886ae288e18b5af12f7a3ced8ec9fae4e7437c39f759d9b16df9ff00ae82a1d405c1c9f6d13f6220414aec5b4e780cd1 - languageName: node - linkType: hard - -"@firebase/database-types@npm:0.9.11": - version: 0.9.11 - resolution: "@firebase/database-types@npm:0.9.11" - dependencies: - "@firebase/app-types": 0.7.0 - "@firebase/util": 1.6.3 - checksum: b9331787991ce897d25baa09c05c1ae3a47c236a6fe1f756785822cbfa7dbd6459912041e56abb456ba8b3f761fb06c4261ec12c01f081d5cae70c88affcb396 - languageName: node - linkType: hard - -"@firebase/database@npm:0.13.3": - version: 0.13.3 - resolution: "@firebase/database@npm:0.13.3" - dependencies: - "@firebase/auth-interop-types": 0.1.6 - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - faye-websocket: 0.11.4 - tslib: ^2.1.0 - checksum: fd574de1ec15dac01eda199ce9225777ec07ebedfe743fe632793636a0aa0cdd54bd07b1b4bb871a07ecefc726c033549773520ac3583395b74e25351024c7c6 - languageName: node - linkType: hard - -"@firebase/firestore-compat@npm:0.1.22": - version: 0.1.22 - resolution: "@firebase/firestore-compat@npm:0.1.22" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/firestore": 3.4.13 - "@firebase/firestore-types": 2.5.0 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 6530767a7326c3c53ad1a4dd8365123001c1515a91bcec20ee0281506967ba0bb6cf3c0dbab8de9ed681d91a997fc06a804a43b7521dba3bcd5e84e542a0c1b1 - languageName: node - linkType: hard - -"@firebase/firestore-types@npm:2.5.0": - version: 2.5.0 - resolution: "@firebase/firestore-types@npm:2.5.0" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: 4125e9df39220bf9b60a9576407a18933f29f7cd8a6141c250240a8983d6220ef4bc47cc279f2d1f90bd1a4c0f627f36e7d4a42273fe9cf3b0d11b8ce3c57625 - languageName: node - linkType: hard - -"@firebase/firestore@npm:3.4.13": - version: 3.4.13 - resolution: "@firebase/firestore@npm:3.4.13" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - "@firebase/webchannel-wrapper": 0.6.2 - "@grpc/grpc-js": ^1.3.2 - "@grpc/proto-loader": ^0.6.13 - node-fetch: 2.6.7 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: 3f5a66378409cf0ca0a1ec8b0975cdb7e9e353691fb108989a0e4d23e15c22213e4481763e8b4a38339d7908f3e5086b8f2dbb10450379b6ac2ba83b55f9daa7 - languageName: node - linkType: hard - -"@firebase/functions-compat@npm:0.2.4": - version: 0.2.4 - resolution: "@firebase/functions-compat@npm:0.2.4" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/functions": 0.8.4 - "@firebase/functions-types": 0.5.0 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: d874e092ece37c7bb512930785d43251728a04496dd2e4aaca4319da7af5ee80aed8c3cf2d273ade68885d18a2c778c8290f316da97bba123f55706c7b6c74cc - languageName: node - linkType: hard - -"@firebase/functions-types@npm:0.5.0": - version: 0.5.0 - resolution: "@firebase/functions-types@npm:0.5.0" - checksum: adf03a655fa5d0eee30e7f1652805a1d1f339b7ae0742d6d58c5bdc6dfe3bd5e61d41b60c0d55474e3444e99944b26e3429360c32651662e2c25c6dc5700d931 - languageName: node - linkType: hard - -"@firebase/functions@npm:0.8.4": - version: 0.8.4 - resolution: "@firebase/functions@npm:0.8.4" - dependencies: - "@firebase/app-check-interop-types": 0.1.0 - "@firebase/auth-interop-types": 0.1.6 - "@firebase/component": 0.5.17 - "@firebase/messaging-interop-types": 0.1.0 - "@firebase/util": 1.6.3 - node-fetch: 2.6.7 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: b7a23bb14b90c5c847f316202b228dfb6cf6aab61570f3ed0212ef234704d1323e5208d287875da7b6f175e0ab662f8c9860fe3e44ceb671824a92818cd4ce4c - languageName: node - linkType: hard - -"@firebase/installations-compat@npm:0.1.12": - version: 0.1.12 - resolution: "@firebase/installations-compat@npm:0.1.12" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/installations": 0.5.12 - "@firebase/installations-types": 0.4.0 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: bdb5472314409372fc78c70f6625fd830b0a040d3a61122b868cabad14a03b2ff4f4dbd5a94a2868b18f2e92339c5f98d30bb71a9352c2621b18e5e372677c24 - languageName: node - linkType: hard - -"@firebase/installations-types@npm:0.4.0": - version: 0.4.0 - resolution: "@firebase/installations-types@npm:0.4.0" - peerDependencies: - "@firebase/app-types": 0.x - checksum: c2419370241d4a5b2e813b1fcca69d9ebf4a5ba8606db71b8648c98dedc49b4e93b96e711984f3a2c9343d3a5e76c6d35a17419cdcf7a42bc4b838b992d3782f - languageName: node - linkType: hard - -"@firebase/installations@npm:0.5.12": - version: 0.5.12 - resolution: "@firebase/installations@npm:0.5.12" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/util": 1.6.3 - idb: 7.0.1 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: 94b56cdf3d723774946179e0100e8a9730482dc03eb453398dc2b6698b13a41f90d1dc8d9f846c0398b9b6646f645bfb82ad351748b6a4e1ff9bdac45552d9ba - languageName: node - linkType: hard - -"@firebase/logger@npm:0.3.3": - version: 0.3.3 - resolution: "@firebase/logger@npm:0.3.3" - dependencies: - tslib: ^2.1.0 - checksum: 34c20c50db125b904e231c10e9f00868fad91dcdba6981c8a296c86036d49ab4a0aa9a367b6472f6321562f8d07d858eac155597d271351279e8aba825d7f77c - languageName: node - linkType: hard - -"@firebase/messaging-compat@npm:0.1.16": - version: 0.1.16 - resolution: "@firebase/messaging-compat@npm:0.1.16" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/messaging": 0.9.16 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 8608b3674a64a73d241eb078039686b8b70c9fc8008a5a72e87a3148f43c28dd1984936d38092225e451181ec138cecc3dea5d5ecbb89dfd2066ae004f6a1220 - languageName: node - linkType: hard - -"@firebase/messaging-interop-types@npm:0.1.0": - version: 0.1.0 - resolution: "@firebase/messaging-interop-types@npm:0.1.0" - checksum: 7772eeda0070064c2c0c9c80b2f774c6cbbdc37cd7bff24208d0fedf9cfdca22bb6b396f32daff858a941cf5074def624ec4e6b827b3df83661dbb2c1bfabe93 - languageName: node - linkType: hard - -"@firebase/messaging@npm:0.9.16": - version: 0.9.16 - resolution: "@firebase/messaging@npm:0.9.16" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/installations": 0.5.12 - "@firebase/messaging-interop-types": 0.1.0 - "@firebase/util": 1.6.3 - idb: 7.0.1 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: 4c9fa18b73f6a9baadafa1d9eac50ab0e9f746b2187415ac3249f08f6993e16bb7841639e42154509c46f36296500ebc62f0375d43333c28b8e984c6aff4966c - languageName: node - linkType: hard - -"@firebase/performance-compat@npm:0.1.12": - version: 0.1.12 - resolution: "@firebase/performance-compat@npm:0.1.12" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/performance": 0.5.12 - "@firebase/performance-types": 0.1.0 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: c672b7be63e36146583636bbc1d1d9257bc183c768ff05aed277c056a0a6cd6beee507261e642fc423619485f11fb03b58df6c62ed046e71c28be21a89ff8153 - languageName: node - linkType: hard - -"@firebase/performance-types@npm:0.1.0": - version: 0.1.0 - resolution: "@firebase/performance-types@npm:0.1.0" - checksum: c443b2494bf15a89169a2e8a3cd945414471171c85a479f518ecdc01c8191a3157cad572939a15c7ba542bfa8dd5b1b022acfb2b09203d9d6bdf9a37782f0f8a - languageName: node - linkType: hard - -"@firebase/performance@npm:0.5.12": - version: 0.5.12 - resolution: "@firebase/performance@npm:0.5.12" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/installations": 0.5.12 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: c6b905818204a9cd1d5bae8ed629653de56d3add0aa114c4fb2c0c1163dfa2620c9fe7e5380420b21ce731ae81a98f13a5f30aaec891e4d3860a022c3e18e575 - languageName: node - linkType: hard - -"@firebase/polyfill@npm:0.3.36": - version: 0.3.36 - resolution: "@firebase/polyfill@npm:0.3.36" - dependencies: - core-js: 3.6.5 - promise-polyfill: 8.1.3 - whatwg-fetch: 2.0.4 - checksum: 530904e8871c724dfef46eb2f613cb59c45cbb2a0afb31a9803c03146185200bc2ad9a1debec34a2635f0c26fe02ead0086522200f6aa2941d0c10be69f7a04d - languageName: node - linkType: hard - -"@firebase/remote-config-compat@npm:0.1.12": - version: 0.1.12 - resolution: "@firebase/remote-config-compat@npm:0.1.12" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/logger": 0.3.3 - "@firebase/remote-config": 0.3.11 - "@firebase/remote-config-types": 0.2.0 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 578fe2327d491bce71522941ace66a54a0c4c28620c47a5558fd1b3afee01fa1a85b33ff1ebf83574ca1f5ace2af98ce9ae118ec2f231c59f14968bc9e4df6e0 - languageName: node - linkType: hard - -"@firebase/remote-config-types@npm:0.2.0": - version: 0.2.0 - resolution: "@firebase/remote-config-types@npm:0.2.0" - checksum: 3d0c4df9c9674f70fbef0e9b51fb17cf9cd6a1023cfaae1cf1faec0c6cea0b7e4deaeffca82ceb25bdc588b03ab74c684ef30c8277338644f92cf30cd94598eb - languageName: node - linkType: hard - -"@firebase/remote-config@npm:0.3.11": - version: 0.3.11 - resolution: "@firebase/remote-config@npm:0.3.11" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/installations": 0.5.12 - "@firebase/logger": 0.3.3 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: 236e3bf66f2d6136256cccd8e940cb1a268812b5f73400acf64703c744af3a570f95254e4c8fb8616322f3936d032b4a7e632fe60ff914ca023fd54f7e72ae2e - languageName: node - linkType: hard - -"@firebase/storage-compat@npm:0.1.17": - version: 0.1.17 - resolution: "@firebase/storage-compat@npm:0.1.17" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/storage": 0.9.9 - "@firebase/storage-types": 0.6.0 - "@firebase/util": 1.6.3 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 8c5506f9cdd7d4e91bb727538144428f30fad83193170c0828da46197df1228a6395f83bf961a346c2f6e8553e49ca3254fda5b58abaf27fdf2d1e398155da63 - languageName: node - linkType: hard - -"@firebase/storage-types@npm:0.6.0": - version: 0.6.0 - resolution: "@firebase/storage-types@npm:0.6.0" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: c49de571a1cd63a133ed6fa0e848b006a73a240c6db39afa6d6d75bcf3c32944a7fcc7cfad6b1804a7d1f6fe115c485e5c005e259ea3ba36ffb1423823aca94c - languageName: node - linkType: hard - -"@firebase/storage@npm:0.9.9": - version: 0.9.9 - resolution: "@firebase/storage@npm:0.9.9" - dependencies: - "@firebase/component": 0.5.17 - "@firebase/util": 1.6.3 - node-fetch: 2.6.7 - tslib: ^2.1.0 - peerDependencies: - "@firebase/app": 0.x - checksum: 99692bf66d7a8d253a885d9371f5c8208f581cfde85a1f41e0987cf9ff2af17a6091963ee4e2a1d6e260146b0576fe3dc973a3a76cbc1a931b2ed173484df4c9 - languageName: node - linkType: hard - -"@firebase/util@npm:1.6.3": - version: 1.6.3 - resolution: "@firebase/util@npm:1.6.3" - dependencies: - tslib: ^2.1.0 - checksum: ccdbb1993f0316c511672025fde5d2d0b52dd4d209040e8d375eda673b8a7ec21ebaa231b05a8663c53daec2c9a65174c6c2615d7ff18a9e8577be958906abb6 - languageName: node - linkType: hard - -"@firebase/webchannel-wrapper@npm:0.6.2": - version: 0.6.2 - resolution: "@firebase/webchannel-wrapper@npm:0.6.2" - checksum: e15e1d7d5fe668616c0f698cc4776af4ce858154fdabd1be7a34da60f368652a6a8c7a59c253be030600c1c515caaefc73ae941766ec61c6ee8d555971f7d619 - languageName: node - linkType: hard - "@formatjs/ecma402-abstract@npm:1.4.0": version: 1.4.0 resolution: "@formatjs/ecma402-abstract@npm:1.4.0" @@ -3193,46 +2661,6 @@ __metadata: languageName: node linkType: hard -"@grpc/grpc-js@npm:^1.3.2": - version: 1.6.8 - resolution: "@grpc/grpc-js@npm:1.6.8" - dependencies: - "@grpc/proto-loader": ^0.7.0 - "@types/node": ">=12.12.47" - checksum: 2dd2e2bdc3f0c50fa76f9466607c5b8832489b41ca0958446326e3ed4c693f2a120eedad06d451180ea50dbd3717d6d37282284fb6c1d5598e55ceaff454184f - languageName: node - linkType: hard - -"@grpc/proto-loader@npm:^0.6.13": - version: 0.6.13 - resolution: "@grpc/proto-loader@npm:0.6.13" - dependencies: - "@types/long": ^4.0.1 - lodash.camelcase: ^4.3.0 - long: ^4.0.0 - protobufjs: ^6.11.3 - yargs: ^16.2.0 - bin: - proto-loader-gen-types: build/bin/proto-loader-gen-types.js - checksum: 863417e961cfa3acb579124f5c2bbfbeaee4d507c33470dc0af3b6792892c68706c6c61e26629f5ff3d28cb631dc4f0a00233323135e322406e3cb19a0b92823 - languageName: node - linkType: hard - -"@grpc/proto-loader@npm:^0.7.0": - version: 0.7.0 - resolution: "@grpc/proto-loader@npm:0.7.0" - dependencies: - "@types/long": ^4.0.1 - lodash.camelcase: ^4.3.0 - long: ^4.0.0 - protobufjs: ^7.0.0 - yargs: ^16.2.0 - bin: - proto-loader-gen-types: build/bin/proto-loader-gen-types.js - checksum: 64fa85e9c15403b42d5be2a6e1aa75db58d3f32d3c12fc48001fc9435030f4952feae05bba2bc428b5092aa3d52edd8b1a629e000736776915582172c7053cd4 - languageName: node - linkType: hard - "@hapi/hoek@npm:^9.0.0": version: 9.3.0 resolution: "@hapi/hoek@npm:9.3.0" @@ -3772,79 +3200,6 @@ __metadata: languageName: node linkType: hard -"@protobufjs/aspromise@npm:^1.1.1, @protobufjs/aspromise@npm:^1.1.2": - version: 1.1.2 - resolution: "@protobufjs/aspromise@npm:1.1.2" - checksum: 011fe7ef0826b0fd1a95935a033a3c0fd08483903e1aa8f8b4e0704e3233406abb9ee25350ec0c20bbecb2aad8da0dcea58b392bbd77d6690736f02c143865d2 - languageName: node - linkType: hard - -"@protobufjs/base64@npm:^1.1.2": - version: 1.1.2 - resolution: "@protobufjs/base64@npm:1.1.2" - checksum: 67173ac34de1e242c55da52c2f5bdc65505d82453893f9b51dc74af9fe4c065cf4a657a4538e91b0d4a1a1e0a0642215e31894c31650ff6e3831471061e1ee9e - languageName: node - linkType: hard - -"@protobufjs/codegen@npm:^2.0.4": - version: 2.0.4 - resolution: "@protobufjs/codegen@npm:2.0.4" - checksum: 59240c850b1d3d0b56d8f8098dd04787dcaec5c5bd8de186fa548de86b86076e1c50e80144b90335e705a044edf5bc8b0998548474c2a10a98c7e004a1547e4b - languageName: node - linkType: hard - -"@protobufjs/eventemitter@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/eventemitter@npm:1.1.0" - checksum: 0369163a3d226851682f855f81413cbf166cd98f131edb94a0f67f79e75342d86e89df9d7a1df08ac28be2bc77e0a7f0200526bb6c2a407abbfee1f0262d5fd7 - languageName: node - linkType: hard - -"@protobufjs/fetch@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/fetch@npm:1.1.0" - dependencies: - "@protobufjs/aspromise": ^1.1.1 - "@protobufjs/inquire": ^1.1.0 - checksum: 3fce7e09eb3f1171dd55a192066450f65324fd5f7cc01a431df01bb00d0a895e6bfb5b0c5561ce157ee1d886349c90703d10a4e11a1a256418ff591b969b3477 - languageName: node - linkType: hard - -"@protobufjs/float@npm:^1.0.2": - version: 1.0.2 - resolution: "@protobufjs/float@npm:1.0.2" - checksum: 5781e1241270b8bd1591d324ca9e3a3128d2f768077a446187a049e36505e91bc4156ed5ac3159c3ce3d2ba3743dbc757b051b2d723eea9cd367bfd54ab29b2f - languageName: node - linkType: hard - -"@protobufjs/inquire@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/inquire@npm:1.1.0" - checksum: ca06f02eaf65ca36fb7498fc3492b7fc087bfcc85c702bac5b86fad34b692bdce4990e0ef444c1e2aea8c034227bd1f0484be02810d5d7e931c55445555646f4 - languageName: node - linkType: hard - -"@protobufjs/path@npm:^1.1.2": - version: 1.1.2 - resolution: "@protobufjs/path@npm:1.1.2" - checksum: 856eeb532b16a7aac071cacde5c5620df800db4c80cee6dbc56380524736205aae21e5ae47739114bf669ab5e8ba0e767a282ad894f3b5e124197cb9224445ee - languageName: node - linkType: hard - -"@protobufjs/pool@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/pool@npm:1.1.0" - checksum: d6a34fbbd24f729e2a10ee915b74e1d77d52214de626b921b2d77288bd8f2386808da2315080f2905761527cceffe7ec34c7647bd21a5ae41a25e8212ff79451 - languageName: node - linkType: hard - -"@protobufjs/utf8@npm:^1.1.0": - version: 1.1.0 - resolution: "@protobufjs/utf8@npm:1.1.0" - checksum: f9bf3163d13aaa3b6f5e6fbf37a116e094ea021c0e1f2a7ccd0e12a29e2ce08dafba4e8b36e13f8ed7397e1591610ce880ed1289af4d66cf4ace8a36a9557278 - languageName: node - linkType: hard - "@react-native-async-storage/async-storage@npm:~1.17.3": version: 1.17.9 resolution: "@react-native-async-storage/async-storage@npm:1.17.9" @@ -4716,14 +4071,7 @@ __metadata: languageName: node linkType: hard -"@types/long@npm:^4.0.1": - version: 4.0.2 - resolution: "@types/long@npm:4.0.2" - checksum: d16cde7240d834cf44ba1eaec49e78ae3180e724cd667052b194a372f350d024cba8dd3f37b0864931683dab09ca935d52f0c4c1687178af5ada9fc85b0635f4 - languageName: node - linkType: hard - -"@types/minimatch@npm:*, @types/minimatch@npm:^3.0.3": +"@types/minimatch@npm:*": version: 3.0.5 resolution: "@types/minimatch@npm:3.0.5" checksum: c41d136f67231c3131cf1d4ca0b06687f4a322918a3a5adddc87ce90ed9dbd175a3610adee36b106ae68c0b92c637c35e02b58c8a56c424f71d30993ea220b92 @@ -4737,13 +4085,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0": - version: 18.6.2 - resolution: "@types/node@npm:18.6.2" - checksum: 644c460baedb1fbbd55369ab621167cb39ddaa727fd4fcf4bc7080183cf936d7ff8c2c886ba93ff42768d6f7a579a540e6d1e63d3adba4e5758fb13671ae68ce - languageName: node - linkType: hard - "@types/normalize-package-data@npm:^2.4.0": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -4751,13 +4092,6 @@ __metadata: languageName: node linkType: hard -"@types/parse-json@npm:^4.0.0": - version: 4.0.0 - resolution: "@types/parse-json@npm:4.0.0" - checksum: fd6bce2b674b6efc3db4c7c3d336bd70c90838e8439de639b909ce22f3720d21344f52427f1d9e57b265fcb7f6c018699b99e5e0c208a1a4823014269a6bf35b - languageName: node - linkType: hard - "@types/prettier@npm:^2, @types/prettier@npm:^2.0.0": version: 2.6.3 resolution: "@types/prettier@npm:2.6.3" @@ -5095,76 +4429,6 @@ __metadata: languageName: node linkType: hard -"@vue/compiler-core@npm:3.2.37": - version: 3.2.37 - resolution: "@vue/compiler-core@npm:3.2.37" - dependencies: - "@babel/parser": ^7.16.4 - "@vue/shared": 3.2.37 - estree-walker: ^2.0.2 - source-map: ^0.6.1 - checksum: 5642e20813352f7ed57ef0eec0fb8a075d6485c91548555b435e8163e62a5e03402c26944bfa2486d6cc4c992f2649478f887478bcd23c8ad9036636f2dcff6a - languageName: node - linkType: hard - -"@vue/compiler-dom@npm:3.2.37": - version: 3.2.37 - resolution: "@vue/compiler-dom@npm:3.2.37" - dependencies: - "@vue/compiler-core": 3.2.37 - "@vue/shared": 3.2.37 - checksum: 6cfa9d2ee123339549ba005fa61b2cd5ccf079ba8d8d797f0075e7054c2766744029cb0997341bcb6a51e129ae43489263aa7d8500b262ef7b81c63c2b0c4576 - languageName: node - linkType: hard - -"@vue/compiler-sfc@npm:^3.0.5": - version: 3.2.37 - resolution: "@vue/compiler-sfc@npm:3.2.37" - dependencies: - "@babel/parser": ^7.16.4 - "@vue/compiler-core": 3.2.37 - "@vue/compiler-dom": 3.2.37 - "@vue/compiler-ssr": 3.2.37 - "@vue/reactivity-transform": 3.2.37 - "@vue/shared": 3.2.37 - estree-walker: ^2.0.2 - magic-string: ^0.25.7 - postcss: ^8.1.10 - source-map: ^0.6.1 - checksum: 9f9067d79f40b0016e4063c180f5417e893f820b970ee291050cad8e19d9258f70a128e5de862e484bfb15572d335c8d5881c95e6b6a3032cb1a94829e8694cb - languageName: node - linkType: hard - -"@vue/compiler-ssr@npm:3.2.37": - version: 3.2.37 - resolution: "@vue/compiler-ssr@npm:3.2.37" - dependencies: - "@vue/compiler-dom": 3.2.37 - "@vue/shared": 3.2.37 - checksum: e137462340c220ef7891d0b40f11124e7d5311e760fdb0de1748c046481505aecd5be8ec8f7b25ac6fc26d2393cbcc267f258d2d26742a50cb9abaf828c28839 - languageName: node - linkType: hard - -"@vue/reactivity-transform@npm:3.2.37": - version: 3.2.37 - resolution: "@vue/reactivity-transform@npm:3.2.37" - dependencies: - "@babel/parser": ^7.16.4 - "@vue/compiler-core": 3.2.37 - "@vue/shared": 3.2.37 - estree-walker: ^2.0.2 - magic-string: ^0.25.7 - checksum: d9e7c353e2bd3a62a9bbb7498ae231f5194428da003672daadb3e7af50c7839e10fb0ac68252852be353138428d1a36f3b8c7815f9c15499d46e7edaf3730c7e - languageName: node - linkType: hard - -"@vue/shared@npm:3.2.37": - version: 3.2.37 - resolution: "@vue/shared@npm:3.2.37" - checksum: 999ab8baeb13de190d07536e7dd0e74ab9354a864d8d903850a2127ae1a2aa2713a9edc0d957620ebf91165d6603d0cd2b0e8ee0db6cbaf8d57a6a0f912af810 - languageName: node - linkType: hard - "@webassemblyjs/ast@npm:1.9.0": version: 1.9.0 resolution: "@webassemblyjs/ast@npm:1.9.0" @@ -5791,13 +5055,6 @@ __metadata: languageName: node linkType: hard -"array-differ@npm:^3.0.0": - version: 3.0.0 - resolution: "array-differ@npm:3.0.0" - checksum: 117edd9df5c1530bd116c6e8eea891d4bd02850fd89b1b36e532b6540e47ca620a373b81feca1c62d1395d9ae601516ba538abe5e8172d41091da2c546b05fb7 - languageName: node - linkType: hard - "array-flatten@npm:1.1.1": version: 1.1.1 resolution: "array-flatten@npm:1.1.1" @@ -5892,13 +5149,6 @@ __metadata: languageName: node linkType: hard -"arrify@npm:^2.0.1": - version: 2.0.1 - resolution: "arrify@npm:2.0.1" - checksum: 067c4c1afd182806a82e4c1cb8acee16ab8b5284fbca1ce29408e6e91281c36bb5b612f6ddfbd40a0f7a7e0c75bf2696eb94c027f6e328d6e9c52465c98e4209 - languageName: node - linkType: hard - "asap@npm:~2.0.3, asap@npm:~2.0.6": version: 2.0.6 resolution: "asap@npm:2.0.6" @@ -6946,7 +6196,7 @@ __metadata: languageName: node linkType: hard -"camelcase@npm:^6.0.0, camelcase@npm:^6.2.0": +"camelcase@npm:^6.0.0": version: 6.3.0 resolution: "camelcase@npm:6.3.0" checksum: 8c96818a9076434998511251dcb2761a94817ea17dbdc37f47ac080bd088fc62c7369429a19e2178b993497132c8cbcf5cc1f44ba963e76782ba469c0474938d @@ -7070,25 +6320,6 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:>=3.0.0 <4.0.0, chokidar@npm:^3.4.1": - version: 3.5.3 - resolution: "chokidar@npm:3.5.3" - dependencies: - anymatch: ~3.1.2 - braces: ~3.0.2 - fsevents: ~2.3.2 - glob-parent: ~5.1.2 - is-binary-path: ~2.1.0 - is-glob: ~4.0.1 - normalize-path: ~3.0.0 - readdirp: ~3.6.0 - dependenciesMeta: - fsevents: - optional: true - checksum: b49fcde40176ba007ff361b198a2d35df60d9bb2a5aab228279eb810feae9294a6b4649ab15981304447afe1e6ffbf4788ad5db77235dc770ab777c6e771980c - languageName: node - linkType: hard - "chokidar@npm:^2.1.8": version: 2.1.8 resolution: "chokidar@npm:2.1.8" @@ -7112,6 +6343,25 @@ __metadata: languageName: node linkType: hard +"chokidar@npm:^3.4.1": + version: 3.5.3 + resolution: "chokidar@npm:3.5.3" + dependencies: + anymatch: ~3.1.2 + braces: ~3.0.2 + fsevents: ~2.3.2 + glob-parent: ~5.1.2 + is-binary-path: ~2.1.0 + is-glob: ~4.0.1 + normalize-path: ~3.0.0 + readdirp: ~3.6.0 + dependenciesMeta: + fsevents: + optional: true + checksum: b49fcde40176ba007ff361b198a2d35df60d9bb2a5aab228279eb810feae9294a6b4649ab15981304447afe1e6ffbf4788ad5db77235dc770ab777c6e771980c + languageName: node + linkType: hard + "chownr@npm:^1.1.1": version: 1.1.4 resolution: "chownr@npm:1.1.4" @@ -7510,15 +6760,6 @@ __metadata: languageName: node linkType: hard -"compare-urls@npm:^2.0.0": - version: 2.0.0 - resolution: "compare-urls@npm:2.0.0" - dependencies: - normalize-url: ^2.0.1 - checksum: 706a305fcbafac63e3e3dafe71283b2fbef05ed18f64636e13bf201cdca164ff16463a7004023535497828f69b822ce44c3b43fcaa0e99d8976b26b1f326595c - languageName: node - linkType: hard - "compare-versions@npm:^3.4.0": version: 3.6.0 resolution: "compare-versions@npm:3.6.0" @@ -7714,13 +6955,6 @@ __metadata: languageName: node linkType: hard -"core-js@npm:3.6.5": - version: 3.6.5 - resolution: "core-js@npm:3.6.5" - checksum: b7fcf92f888bfe40f3f005e3f729e66aa49a3a9a797e8fb4d09d429c6abcd505781b2c03836858f0dc0159249d4b7a035fc763052c9c34adbc93b6f8a6a86305 - languageName: node - linkType: hard - "core-util-is@npm:1.0.2": version: 1.0.2 resolution: "core-util-is@npm:1.0.2" @@ -7747,19 +6981,6 @@ __metadata: languageName: node linkType: hard -"cosmiconfig@npm:^7.0.0": - version: 7.0.1 - resolution: "cosmiconfig@npm:7.0.1" - dependencies: - "@types/parse-json": ^4.0.0 - import-fresh: ^3.2.1 - parse-json: ^5.0.0 - path-type: ^4.0.0 - yaml: ^1.10.0 - checksum: 4be63e7117955fd88333d7460e4c466a90f556df6ef34efd59034d2463484e339666c41f02b523d574a797ec61f4a91918c5b89a316db2ea2f834e0d2d09465b - languageName: node - linkType: hard - "create-ecdh@npm:^4.0.0": version: 4.0.4 resolution: "create-ecdh@npm:4.0.4" @@ -7797,16 +7018,6 @@ __metadata: languageName: node linkType: hard -"create-react-class@npm:^15.7.0": - version: 15.7.0 - resolution: "create-react-class@npm:15.7.0" - dependencies: - loose-envify: ^1.3.1 - object-assign: ^4.1.1 - checksum: 0c5f43da705fa9f67ec289051dd5780792652d440dfa17cd2c7d8423c1f604609596f895dabf46fda1960ddd93ee96fe1b61ef4d55a94fc4271b07d515486714 - languageName: node - linkType: hard - "cross-fetch@npm:^3.1.5": version: 3.1.5 resolution: "cross-fetch@npm:3.1.5" @@ -7897,16 +7108,6 @@ __metadata: languageName: node linkType: hard -"css-in-js-utils@npm:^2.0.0": - version: 2.0.1 - resolution: "css-in-js-utils@npm:2.0.1" - dependencies: - hyphenate-style-name: ^1.0.2 - isobject: ^3.0.1 - checksum: c9964c4708216954c468b69bbee2d971fd759ada4f40637b8ca4d3f79caba4818d0532a4f190ac560227c08742ad063ffec7a30afddc4d96b66a18c3a008f0d8 - languageName: node - linkType: hard - "css-loader@npm:~3.6.0": version: 3.6.0 resolution: "css-loader@npm:3.6.0" @@ -8181,7 +7382,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.2.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -8388,39 +7589,6 @@ __metadata: languageName: node linkType: hard -"depcheck@npm:^1.4.3": - version: 1.4.3 - resolution: "depcheck@npm:1.4.3" - dependencies: - "@babel/parser": 7.16.4 - "@babel/traverse": ^7.12.5 - "@vue/compiler-sfc": ^3.0.5 - camelcase: ^6.2.0 - cosmiconfig: ^7.0.0 - debug: ^4.2.0 - deps-regex: ^0.1.4 - ignore: ^5.1.8 - is-core-module: ^2.4.0 - js-yaml: ^3.14.0 - json5: ^2.1.3 - lodash: ^4.17.20 - minimatch: ^3.0.4 - multimatch: ^5.0.0 - please-upgrade-node: ^3.2.0 - query-ast: ^1.0.3 - readdirp: ^3.5.0 - require-package-name: ^2.0.1 - resolve: ^1.18.1 - sass: ^1.29.0 - scss-parser: ^1.0.4 - semver: ^7.3.2 - yargs: ^16.1.0 - bin: - depcheck: bin/depcheck.js - checksum: 122631cab325707a55e26a8b530eb72c893bd481194100b1853ac2bc944b61320eb0e1ea0ff7e71724009cdfbd4057381d7bf868b9c5aad0c4207ac0bdca5e48 - languageName: node - linkType: hard - "depd@npm:2.0.0": version: 2.0.0 resolution: "depd@npm:2.0.0" @@ -8435,13 +7603,6 @@ __metadata: languageName: node linkType: hard -"deps-regex@npm:^0.1.4": - version: 0.1.4 - resolution: "deps-regex@npm:0.1.4" - checksum: 70c5e7fa887513bb8c55165c53e4ae511786ed7bf3d98d4dbef97a8879a808a5bc549034b1dfcdc7565c153e2fc2f7d8ee766eeb88156e78b2447dd75c1516e9 - languageName: node - linkType: hard - "des.js@npm:^1.0.0": version: 1.0.1 resolution: "des.js@npm:1.0.1" @@ -8852,7 +8013,6 @@ __metadata: "@types/react-native": ~0.69.1 "@types/react-test-renderer": ^18 "@types/redux-logger": ^3 - depcheck: ^1.4.3 eas-cli: ^0.60.0 eslint: ^8.19.0 eslint-config-universe: ^11.0.0 @@ -8871,8 +8031,6 @@ __metadata: expo-status-bar: ~1.4.0 expo-task-manager: ~10.3.0 expo-updates: ~0.14.4 - expo-web-browser: ~11.0.0 - firebase: ^9.9.1 gh-pages: ^4.0.0 i18next: ^21.8.11 intl-pluralrules: ^1.3.1 @@ -8894,8 +8052,6 @@ __metadata: react-native-screens: ~3.15.0 react-native-star-rating-widget: ^1.2.0 react-native-svg: 12.3.0 - react-native-web: ~0.18.7 - react-native-webview: 11.23.0 react-redux: ^8.0.2 react-test-renderer: ^17.0.2 redux-logger: ^3.0.6 @@ -8903,7 +8059,6 @@ __metadata: sentry-expo: ~5.0.0 ts-pattern: ^4.0.5 typescript: ^4.6.3 - usehooks-ts: ^2.6.0 zod: ^3.17.3 languageName: unknown linkType: soft @@ -9589,13 +8744,6 @@ __metadata: languageName: node linkType: hard -"estree-walker@npm:^2.0.2": - version: 2.0.2 - resolution: "estree-walker@npm:2.0.2" - checksum: 6151e6f9828abe2259e57f5fd3761335bb0d2ebd76dc1a01048ccee22fabcfef3c0859300f6d83ff0d1927849368775ec5a6d265dde2f6de5a1be1721cd94efc - languageName: node - linkType: hard - "esutils@npm:^2.0.2": version: 2.0.3 resolution: "esutils@npm:2.0.3" @@ -10043,17 +9191,6 @@ __metadata: languageName: node linkType: hard -"expo-web-browser@npm:~11.0.0": - version: 11.0.0 - resolution: "expo-web-browser@npm:11.0.0" - dependencies: - compare-urls: ^2.0.0 - peerDependencies: - expo: "*" - checksum: 93740703b138d4470786387772aafbe3f37e484f052ffeb7fed97d16077ce1fdbf3f1370c603ced6e134343bf5cc4e314eaedf22a6460a608e38a6a1af8deae4 - languageName: node - linkType: hard - "expo@npm:^46.0.0": version: 46.0.7 resolution: "expo@npm:46.0.7" @@ -10244,21 +9381,21 @@ __metadata: languageName: node linkType: hard -"faye-websocket@npm:0.11.4, faye-websocket@npm:~0.11.1": - version: 0.11.4 - resolution: "faye-websocket@npm:0.11.4" +"faye-websocket@npm:^0.10.0": + version: 0.10.0 + resolution: "faye-websocket@npm:0.10.0" dependencies: websocket-driver: ">=0.5.1" - checksum: d49a62caf027f871149fc2b3f3c7104dc6d62744277eb6f9f36e2d5714e847d846b9f7f0d0b7169b25a012e24a594cde11a93034b30732e4c683f20b8a5019fa + checksum: 5a2989ec5effc832bd219e3af934966b5a2a2605dd83b995a04edae5d34207ef930635f5c8456b8b7b4209bfb8f7ea991e41594f150a04faa53fca1ee4eb31b6 languageName: node linkType: hard -"faye-websocket@npm:^0.10.0": - version: 0.10.0 - resolution: "faye-websocket@npm:0.10.0" +"faye-websocket@npm:~0.11.1": + version: 0.11.4 + resolution: "faye-websocket@npm:0.11.4" dependencies: websocket-driver: ">=0.5.1" - checksum: 5a2989ec5effc832bd219e3af934966b5a2a2605dd83b995a04edae5d34207ef930635f5c8456b8b7b4209bfb8f7ea991e41594f150a04faa53fca1ee4eb31b6 + checksum: d49a62caf027f871149fc2b3f3c7104dc6d62744277eb6f9f36e2d5714e847d846b9f7f0d0b7169b25a012e24a594cde11a93034b30732e4c683f20b8a5019fa languageName: node linkType: hard @@ -10287,7 +9424,7 @@ __metadata: languageName: node linkType: hard -"fbjs@npm:^3.0.0, fbjs@npm:^3.0.4": +"fbjs@npm:^3.0.0": version: 3.0.4 resolution: "fbjs@npm:3.0.4" dependencies: @@ -10533,41 +9670,6 @@ __metadata: languageName: node linkType: hard -"firebase@npm:^9.9.1": - version: 9.9.1 - resolution: "firebase@npm:9.9.1" - dependencies: - "@firebase/analytics": 0.8.0 - "@firebase/analytics-compat": 0.1.13 - "@firebase/app": 0.7.29 - "@firebase/app-check": 0.5.12 - "@firebase/app-check-compat": 0.2.12 - "@firebase/app-compat": 0.1.30 - "@firebase/app-types": 0.7.0 - "@firebase/auth": 0.20.5 - "@firebase/auth-compat": 0.2.18 - "@firebase/database": 0.13.3 - "@firebase/database-compat": 0.2.3 - "@firebase/firestore": 3.4.13 - "@firebase/firestore-compat": 0.1.22 - "@firebase/functions": 0.8.4 - "@firebase/functions-compat": 0.2.4 - "@firebase/installations": 0.5.12 - "@firebase/installations-compat": 0.1.12 - "@firebase/messaging": 0.9.16 - "@firebase/messaging-compat": 0.1.16 - "@firebase/performance": 0.5.12 - "@firebase/performance-compat": 0.1.12 - "@firebase/polyfill": 0.3.36 - "@firebase/remote-config": 0.3.11 - "@firebase/remote-config-compat": 0.1.12 - "@firebase/storage": 0.9.9 - "@firebase/storage-compat": 0.1.17 - "@firebase/util": 1.6.3 - checksum: 036c769609b1a670ec371d3b9dbc689a0cef59fffdaf91bae99d6cb62bcc1602e71eb9de14ae4523249658b1a07cf43284e1cf4fd694e07e8aac277ba0a01a58 - languageName: node - linkType: hard - "flat-cache@npm:^3.0.4": version: 3.0.4 resolution: "flat-cache@npm:3.0.4" @@ -11827,13 +10929,6 @@ __metadata: languageName: node linkType: hard -"hyphenate-style-name@npm:^1.0.2": - version: 1.0.4 - resolution: "hyphenate-style-name@npm:1.0.4" - checksum: 4f5bf4b055089754924babebaa23c17845937bcca6aee95d5d015f8fa1e6814279002bd6a9e541e3fac2cd02519fc76305396727066c57c8e21a7e73e7a12137 - languageName: node - linkType: hard - "i18next@npm:^21.8.11": version: 21.8.11 resolution: "i18next@npm:21.8.11" @@ -11870,13 +10965,6 @@ __metadata: languageName: node linkType: hard -"idb@npm:7.0.1": - version: 7.0.1 - resolution: "idb@npm:7.0.1" - checksum: 61526789562cc3518a1a030c7a06cc98edfcd62795700ff28c701d6f84c178aee4e98bedfc79e6c394ba26084aa4667d6594b1728e5868f305f9b34148662679 - languageName: node - linkType: hard - "ieee754@npm:^1.1.13, ieee754@npm:^1.1.4": version: 1.2.1 resolution: "ieee754@npm:1.2.1" @@ -11891,7 +10979,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:5.2.0, ignore@npm:^5.1.1, ignore@npm:^5.1.4, ignore@npm:^5.1.8, ignore@npm:^5.2.0": +"ignore@npm:5.2.0, ignore@npm:^5.1.1, ignore@npm:^5.1.4, ignore@npm:^5.2.0": version: 5.2.0 resolution: "ignore@npm:5.2.0" checksum: 6b1f926792d614f64c6c83da3a1f9c83f6196c2839aa41e1e32dd7b8d174cef2e329d75caabb62cb61ce9dc432f75e67d07d122a037312db7caa73166a1bdb77 @@ -11939,13 +11027,6 @@ __metadata: languageName: node linkType: hard -"immutable@npm:^4.0.0": - version: 4.1.0 - resolution: "immutable@npm:4.1.0" - checksum: b9bc1f14fb18eb382d48339c064b24a1f97ae4cf43102e0906c0a6e186a27afcd18b55ca4a0b63c98eefb58143e2b5ebc7755a5fb4da4a7ad84b7a6096ac5b13 - languageName: node - linkType: hard - "import-fresh@npm:^2.0.0": version: 2.0.0 resolution: "import-fresh@npm:2.0.0" @@ -12063,15 +11144,6 @@ __metadata: languageName: node linkType: hard -"inline-style-prefixer@npm:^6.0.1": - version: 6.0.1 - resolution: "inline-style-prefixer@npm:6.0.1" - dependencies: - css-in-js-utils: ^2.0.0 - checksum: 0bfa6fa89faa21e425c71425910c37c7b35a16ea753586c408fcc9246c84937c1b8184e6ce792139cda5de5cce8e1bc9eb0ba9f30968bdc97e7a06ece21c0737 - languageName: node - linkType: hard - "inquirer@npm:^6.2.0": version: 6.5.2 resolution: "inquirer@npm:6.5.2" @@ -12130,7 +11202,7 @@ __metadata: languageName: node linkType: hard -"invariant@npm:2.2.4, invariant@npm:^2.2.4": +"invariant@npm:^2.2.4": version: 2.2.4 resolution: "invariant@npm:2.2.4" dependencies: @@ -12299,15 +11371,6 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.4.0": - version: 2.10.0 - resolution: "is-core-module@npm:2.10.0" - dependencies: - has: ^1.0.3 - checksum: 0f3f77811f430af3256fa7bbc806f9639534b140f8ee69476f632c3e1eb4e28a38be0b9d1b8ecf596179c841b53576129279df95e7051d694dac4ceb6f967593 - languageName: node - linkType: hard - "is-core-module@npm:^2.8.1, is-core-module@npm:^2.9.0": version: 2.9.0 resolution: "is-core-module@npm:2.9.0" @@ -12582,13 +11645,6 @@ __metadata: languageName: node linkType: hard -"is-plain-obj@npm:^1.0.0": - version: 1.1.0 - resolution: "is-plain-obj@npm:1.1.0" - checksum: 0ee04807797aad50859652a7467481816cbb57e5cc97d813a7dcd8915da8195dc68c436010bf39d195226cde6a2d352f4b815f16f26b7bf486a5754290629931 - languageName: node - linkType: hard - "is-plain-obj@npm:^2.1.0": version: 2.1.0 resolution: "is-plain-obj@npm:2.1.0" @@ -13596,7 +12652,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.0, js-yaml@npm:^3.14.1": +"js-yaml@npm:^3.13.1, js-yaml@npm:^3.14.1": version: 3.14.1 resolution: "js-yaml@npm:3.14.1" dependencies: @@ -13807,7 +12863,7 @@ __metadata: languageName: node linkType: hard -"json5@npm:^2.1.0, json5@npm:^2.1.2, json5@npm:^2.1.3, json5@npm:^2.2.1": +"json5@npm:^2.1.0, json5@npm:^2.1.2, json5@npm:^2.2.1": version: 2.2.1 resolution: "json5@npm:2.2.1" bin: @@ -13887,18 +12943,6 @@ __metadata: languageName: node linkType: hard -"jszip@npm:^3.6.0": - version: 3.10.0 - resolution: "jszip@npm:3.10.0" - dependencies: - lie: ~3.3.0 - pako: ~1.0.2 - readable-stream: ~2.3.6 - setimmediate: ^1.0.5 - checksum: 80cc8e0e466467e9e21447f604f9262509b29a9c65170a3fee415ac0a403beb370840973cdc17f75d2b92ab3e60685f94d267706510d46bed2dd14858a38e459 - languageName: node - linkType: hard - "keychain@npm:1.3.0": version: 1.3.0 resolution: "keychain@npm:1.3.0" @@ -14010,15 +13054,6 @@ __metadata: languageName: node linkType: hard -"lie@npm:~3.3.0": - version: 3.3.0 - resolution: "lie@npm:3.3.0" - dependencies: - immediate: ~3.0.5 - checksum: 33102302cf19766f97919a6a98d481e01393288b17a6aa1f030a3542031df42736edde8dab29ffdbf90bebeffc48c761eb1d064dc77592ca3ba3556f9fe6d2a8 - languageName: node - linkType: hard - "lines-and-columns@npm:^1.1.6": version: 1.2.4 resolution: "lines-and-columns@npm:1.2.4" @@ -14120,13 +13155,6 @@ __metadata: languageName: node linkType: hard -"lodash.camelcase@npm:^4.3.0": - version: 4.3.0 - resolution: "lodash.camelcase@npm:4.3.0" - checksum: cb9227612f71b83e42de93eccf1232feeb25e705bdb19ba26c04f91e885bfd3dd5c517c4a97137658190581d3493ea3973072ca010aab7e301046d90740393d1 - languageName: node - linkType: hard - "lodash.debounce@npm:^4.0.8": version: 4.0.8 resolution: "lodash.debounce@npm:4.0.8" @@ -14248,21 +13276,7 @@ __metadata: languageName: node linkType: hard -"long@npm:^4.0.0": - version: 4.0.0 - resolution: "long@npm:4.0.0" - checksum: 16afbe8f749c7c849db1f4de4e2e6a31ac6e617cead3bdc4f9605cb703cd20e1e9fc1a7baba674ffcca57d660a6e5b53a9e236d7b25a295d3855cca79cc06744 - languageName: node - linkType: hard - -"long@npm:^5.0.0": - version: 5.2.0 - resolution: "long@npm:5.2.0" - checksum: 37aa4e67b9c3eebc6d9d675adcc9d06f06059ca268922a71273de389746bf07f0ff282f9e604d17fdf84c4149099b44e936ea2b621a6c4759a216621afa97efd - languageName: node - linkType: hard - -"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.3.1, loose-envify@npm:^1.4.0": +"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0" dependencies: @@ -14307,15 +13321,6 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.25.7": - version: 0.25.9 - resolution: "magic-string@npm:0.25.9" - dependencies: - sourcemap-codec: ^1.4.8 - checksum: 9a0e55a15c7303fc360f9572a71cffba1f61451bc92c5602b1206c9d17f492403bf96f946dfce7483e66822d6b74607262e24392e87b0ac27b786e69a40e9b1a - languageName: node - linkType: hard - "make-dir@npm:^2.0.0, make-dir@npm:^2.1.0": version: 2.1.0 resolution: "make-dir@npm:2.1.0" @@ -15179,19 +14184,6 @@ __metadata: languageName: node linkType: hard -"multimatch@npm:^5.0.0": - version: 5.0.0 - resolution: "multimatch@npm:5.0.0" - dependencies: - "@types/minimatch": ^3.0.3 - array-differ: ^3.0.0 - array-union: ^2.1.0 - arrify: ^2.0.1 - minimatch: ^3.0.4 - checksum: 82c8030a53af965cab48da22f1b0f894ef99e16ee680dabdfbd38d2dfacc3c8208c475203d747afd9e26db44118ed0221d5a0d65268c864f06d6efc7ac6df812 - languageName: node - linkType: hard - "mute-stream@npm:0.0.7": version: 0.0.7 resolution: "mute-stream@npm:0.0.7" @@ -15237,7 +14229,7 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:3.3.4, nanoid@npm:^3.1.23, nanoid@npm:^3.3.1, nanoid@npm:^3.3.3, nanoid@npm:^3.3.4": +"nanoid@npm:3.3.4, nanoid@npm:^3.1.23, nanoid@npm:^3.3.1, nanoid@npm:^3.3.3": version: 3.3.4 resolution: "nanoid@npm:3.3.4" bin: @@ -15502,13 +14494,6 @@ __metadata: languageName: node linkType: hard -"normalize-css-color@npm:^1.0.2": - version: 1.0.2 - resolution: "normalize-css-color@npm:1.0.2" - checksum: 7433dc995a8d27c9384059ef0b52ceef47f4fab1bab55f1f085058b27e7472466ce321f46391fc85b6851db5212b9bd2bf55f5dc361da01a8a8cf4c360f69dab - languageName: node - linkType: hard - "normalize-package-data@npm:^2.5.0": version: 2.5.0 resolution: "normalize-package-data@npm:2.5.0" @@ -15546,17 +14531,6 @@ __metadata: languageName: node linkType: hard -"normalize-url@npm:^2.0.1": - version: 2.0.1 - resolution: "normalize-url@npm:2.0.1" - dependencies: - prepend-http: ^2.0.0 - query-string: ^5.0.1 - sort-keys: ^2.0.0 - checksum: 30e337ee03fc7f360c7d2b966438657fabd2628925cc58bffc893982fe4d2c59b397ae664fa2c319cd83565af73eee88906e80bc5eec91bc32b601920e770d75 - languageName: node - linkType: hard - "normalize-url@npm:^3.0.0": version: 3.3.0 resolution: "normalize-url@npm:3.3.0" @@ -16137,7 +15111,7 @@ __metadata: languageName: node linkType: hard -"pako@npm:~1.0.2, pako@npm:~1.0.5": +"pako@npm:~1.0.5": version: 1.0.11 resolution: "pako@npm:1.0.11" checksum: 1be2bfa1f807608c7538afa15d6f25baa523c30ec870a3228a89579e474a4d992f4293859524e46d5d87fd30fa17c5edf34dbef0671251d9749820b488660b16 @@ -16462,15 +15436,6 @@ __metadata: languageName: node linkType: hard -"please-upgrade-node@npm:^3.2.0": - version: 3.2.0 - resolution: "please-upgrade-node@npm:3.2.0" - dependencies: - semver-compare: ^1.0.0 - checksum: d87c41581a2a022fbe25965a97006238cd9b8cbbf49b39f78d262548149a9d30bd2bdf35fec3d810e0001e630cd46ef13c7e19c389dea8de7e64db271a2381bb - languageName: node - linkType: hard - "plist@npm:^3.0.2, plist@npm:^3.0.5": version: 3.0.5 resolution: "plist@npm:3.0.5" @@ -16902,7 +15867,7 @@ __metadata: languageName: node linkType: hard -"postcss-value-parser@npm:^4.0.2, postcss-value-parser@npm:^4.1.0, postcss-value-parser@npm:^4.2.0": +"postcss-value-parser@npm:^4.0.2, postcss-value-parser@npm:^4.1.0": version: 4.2.0 resolution: "postcss-value-parser@npm:4.2.0" checksum: 819ffab0c9d51cf0acbabf8996dffbfafbafa57afc0e4c98db88b67f2094cb44488758f06e5da95d7036f19556a4a732525e84289a425f4f6fd8e412a9d7442f @@ -16919,17 +15884,6 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.1.10": - version: 8.4.16 - resolution: "postcss@npm:8.4.16" - dependencies: - nanoid: ^3.3.4 - picocolors: ^1.0.0 - source-map-js: ^1.0.2 - checksum: 10eee25efd77868036403858577da0cefaf2e0905feeaba5770d5438ccdddba3d01cba8063e96b8aac4c6daa0ed413dd5ae0554a433a3c4db38df1d134cffc1f - languageName: node - linkType: hard - "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -16944,13 +15898,6 @@ __metadata: languageName: node linkType: hard -"prepend-http@npm:^2.0.0": - version: 2.0.0 - resolution: "prepend-http@npm:2.0.0" - checksum: 7694a9525405447662c1ffd352fcb41b6410c705b739b6f4e3a3e21cf5fdede8377890088e8934436b8b17ba55365a615f153960f30877bf0d0392f9e93503ea - languageName: node - linkType: hard - "prettier-linter-helpers@npm:^1.0.0": version: 1.0.0 resolution: "prettier-linter-helpers@npm:1.0.0" @@ -17066,13 +16013,6 @@ __metadata: languageName: node linkType: hard -"promise-polyfill@npm:8.1.3": - version: 8.1.3 - resolution: "promise-polyfill@npm:8.1.3" - checksum: 776716ac9428f64fa0ef2f97fcedacf2c1a460a7c4d9d456ac792e8a98801cb12ff09eadeff266136e90f520d9c13455e4cf62a4692c0662d6f3280804361ba7 - languageName: node - linkType: hard - "promise-retry@npm:^2.0.1": version: 2.0.1 resolution: "promise-retry@npm:2.0.1" @@ -17132,51 +16072,6 @@ __metadata: languageName: node linkType: hard -"protobufjs@npm:^6.11.3": - version: 6.11.3 - resolution: "protobufjs@npm:6.11.3" - dependencies: - "@protobufjs/aspromise": ^1.1.2 - "@protobufjs/base64": ^1.1.2 - "@protobufjs/codegen": ^2.0.4 - "@protobufjs/eventemitter": ^1.1.0 - "@protobufjs/fetch": ^1.1.0 - "@protobufjs/float": ^1.0.2 - "@protobufjs/inquire": ^1.1.0 - "@protobufjs/path": ^1.1.2 - "@protobufjs/pool": ^1.1.0 - "@protobufjs/utf8": ^1.1.0 - "@types/long": ^4.0.1 - "@types/node": ">=13.7.0" - long: ^4.0.0 - bin: - pbjs: bin/pbjs - pbts: bin/pbts - checksum: 4a6ce1964167e4c45c53fd8a312d7646415c777dd31b4ba346719947b88e61654912326101f927da387d6b6473ab52a7ea4f54d6f15d63b31130ce28e2e15070 - languageName: node - linkType: hard - -"protobufjs@npm:^7.0.0": - version: 7.0.0 - resolution: "protobufjs@npm:7.0.0" - dependencies: - "@protobufjs/aspromise": ^1.1.2 - "@protobufjs/base64": ^1.1.2 - "@protobufjs/codegen": ^2.0.4 - "@protobufjs/eventemitter": ^1.1.0 - "@protobufjs/fetch": ^1.1.0 - "@protobufjs/float": ^1.0.2 - "@protobufjs/inquire": ^1.1.0 - "@protobufjs/path": ^1.1.2 - "@protobufjs/pool": ^1.1.0 - "@protobufjs/utf8": ^1.1.0 - "@types/long": ^4.0.1 - "@types/node": ">=13.7.0" - long: ^5.0.0 - checksum: 84c12ceef34d190bb0e08c7203a4e066c66b67fa788ac18575b5c45a269a515c3921b13116e12fe55ffe1fd4831ce208481d44231b75dbe0a8730ab4ca51c84b - languageName: node - linkType: hard - "proxy-addr@npm:~2.0.7": version: 2.0.7 resolution: "proxy-addr@npm:2.0.7" @@ -17338,26 +16233,6 @@ __metadata: languageName: node linkType: hard -"query-ast@npm:^1.0.3": - version: 1.0.4 - resolution: "query-ast@npm:1.0.4" - dependencies: - invariant: 2.2.4 - checksum: fed7983738d690437e24d113e74c39e51a33da893c58e46286007f26dc283c8dd5b25a854ec91864ae60e8398b0bac8667c2588b532b8b20503cc05fc25d10ed - languageName: node - linkType: hard - -"query-string@npm:^5.0.1": - version: 5.1.1 - resolution: "query-string@npm:5.1.1" - dependencies: - decode-uri-component: ^0.2.0 - object-assign: ^4.1.0 - strict-uri-encode: ^1.0.0 - checksum: 4ac760d9778d413ef5f94f030ed14b1a07a1708dd13fd3bc54f8b9ef7b425942c7577f30de0bf5a7d227ee65a9a0350dfa3a43d1d266880882fb7ce4c434a4dd - languageName: node - linkType: hard - "query-string@npm:^7.0.0": version: 7.1.1 resolution: "query-string@npm:7.1.1" @@ -17753,37 +16628,6 @@ __metadata: languageName: node linkType: hard -"react-native-web@npm:~0.18.7": - version: 0.18.7 - resolution: "react-native-web@npm:0.18.7" - dependencies: - "@babel/runtime": ^7.18.6 - create-react-class: ^15.7.0 - fbjs: ^3.0.4 - inline-style-prefixer: ^6.0.1 - normalize-css-color: ^1.0.2 - postcss-value-parser: ^4.2.0 - styleq: ^0.1.2 - peerDependencies: - react: ^17.0.2 || ^18.0.0 - react-dom: ^17.0.2 || ^18.0.0 - checksum: fda86e0f0b533ebefbfab87bdca0908dd0f67eaeeba02d1b582b0b10c37bb4f1b73f4a34b3d649c8a98c6b4525c775967d948cf7cb7d0c4b205a4ff3a413b9ec - languageName: node - linkType: hard - -"react-native-webview@npm:11.23.0": - version: 11.23.0 - resolution: "react-native-webview@npm:11.23.0" - dependencies: - escape-string-regexp: 2.0.0 - invariant: 2.2.4 - peerDependencies: - react: "*" - react-native: "*" - checksum: 2db9fabd79a604436e8cac22cd6ceb62a790e4db71bc65baa23f5e1499b4d781c867fec41c6d7983da46ed5689e2241360025c97522d191332092df08e384e12 - languageName: node - linkType: hard - "react-native@npm:0.69.4": version: 0.69.4 resolution: "react-native@npm:0.69.4" @@ -17985,7 +16829,7 @@ __metadata: languageName: node linkType: hard -"readdirp@npm:^3.5.0, readdirp@npm:~3.6.0": +"readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" dependencies: @@ -18285,13 +17129,6 @@ __metadata: languageName: node linkType: hard -"require-package-name@npm:^2.0.1": - version: 2.0.1 - resolution: "require-package-name@npm:2.0.1" - checksum: 00f4e9e467ebe2bbced2b4198a165de11c83b5ee9f4c20b05a8782659b92bcb544dbd50be9a3eed746d05ecd875453e258c079eb3a79604b50a27cf8ab0798b5 - languageName: node - linkType: hard - "requireg@npm:^0.2.2": version: 0.2.2 resolution: "requireg@npm:0.2.2" @@ -18655,19 +17492,6 @@ __metadata: languageName: node linkType: hard -"sass@npm:^1.29.0": - version: 1.54.5 - resolution: "sass@npm:1.54.5" - dependencies: - chokidar: ">=3.0.0 <4.0.0" - immutable: ^4.0.0 - source-map-js: ">=0.6.2 <2.0.0" - bin: - sass: sass.js - checksum: ba7a65aa7508419468547c8de4d59e537bec874f52823f501663dc98d80dfd2d374e8ea73a31200db7f510b8816c925edf89728c9b36889f4e6673d3e94ec100 - languageName: node - linkType: hard - "sax@npm:>=0.6.0, sax@npm:~1.2.4": version: 1.2.4 resolution: "sax@npm:1.2.4" @@ -18736,15 +17560,6 @@ __metadata: languageName: node linkType: hard -"scss-parser@npm:^1.0.4": - version: 1.0.5 - resolution: "scss-parser@npm:1.0.5" - dependencies: - invariant: 2.2.4 - checksum: 0f3b16aea76cdb36e5d19f8c17e65a49b2666824dc037e0853278c6e61b01746283a95c1323bcfc4bf45cf24fdae3515f2ca7f3851e3bf19667f2fb0727a54ec - languageName: node - linkType: hard - "select-hose@npm:^2.0.0": version: 2.0.0 resolution: "select-hose@npm:2.0.0" @@ -18752,17 +17567,6 @@ __metadata: languageName: node linkType: hard -"selenium-webdriver@npm:4.1.2": - version: 4.1.2 - resolution: "selenium-webdriver@npm:4.1.2" - dependencies: - jszip: ^3.6.0 - tmp: ^0.2.1 - ws: ">=7.4.6" - checksum: d55123d83baf23068acd2122ee3d6ece5db9fa09da8ba40cec02ccc89332dd5365f7782dd91e281c242c271e2c299e7b75bf1cc9a5e301c8a9697d65d2989630 - languageName: node - linkType: hard - "selfsigned@npm:^1.10.7": version: 1.10.14 resolution: "selfsigned@npm:1.10.14" @@ -18772,13 +17576,6 @@ __metadata: languageName: node linkType: hard -"semver-compare@npm:^1.0.0": - version: 1.0.0 - resolution: "semver-compare@npm:1.0.0" - checksum: dd1d7e2909744cf2cf71864ac718efc990297f9de2913b68e41a214319e70174b1d1793ac16e31183b128c2b9812541300cb324db8168e6cf6b570703b171c68 - languageName: node - linkType: hard - "semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0": version: 5.7.1 resolution: "semver@npm:5.7.1" @@ -19208,15 +18005,6 @@ __metadata: languageName: node linkType: hard -"sort-keys@npm:^2.0.0": - version: 2.0.0 - resolution: "sort-keys@npm:2.0.0" - dependencies: - is-plain-obj: ^1.0.0 - checksum: f0fd827fa9f8f866e98588d2a38c35209afbf1e9a05bb0e4ceeeb8bbf31d923c8902b0a7e0f561590ddb65e58eba6a74f74b991c85360bcc52e83a3f0d1cffd7 - languageName: node - linkType: hard - "source-list-map@npm:^2.0.0": version: 2.0.1 resolution: "source-list-map@npm:2.0.1" @@ -19247,13 +18035,6 @@ __metadata: languageName: node linkType: hard -"source-map-js@npm:>=0.6.2 <2.0.0, source-map-js@npm:^1.0.2": - version: 1.0.2 - resolution: "source-map-js@npm:1.0.2" - checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377c - languageName: node - linkType: hard - "source-map-resolve@npm:^0.5.0": version: 0.5.3 resolution: "source-map-resolve@npm:0.5.3" @@ -19305,13 +18086,6 @@ __metadata: languageName: node linkType: hard -"sourcemap-codec@npm:^1.4.8": - version: 1.4.8 - resolution: "sourcemap-codec@npm:1.4.8" - checksum: b57981c05611afef31605732b598ccf65124a9fcb03b833532659ac4d29ac0f7bfacbc0d6c5a28a03e84c7510e7e556d758d0bb57786e214660016fb94279316 - languageName: node - linkType: hard - "spdx-correct@npm:^3.0.0": version: 3.1.1 resolution: "spdx-correct@npm:3.1.1" @@ -19572,13 +18346,6 @@ __metadata: languageName: node linkType: hard -"strict-uri-encode@npm:^1.0.0": - version: 1.1.0 - resolution: "strict-uri-encode@npm:1.1.0" - checksum: 9466d371f7b36768d43f7803f26137657559e4c8b0161fb9e320efb8edba3ae22f8e99d4b0d91da023b05a13f62ec5412c3f4f764b5788fac11d1fea93720bb3 - languageName: node - linkType: hard - "strict-uri-encode@npm:^2.0.0": version: 2.0.0 resolution: "strict-uri-encode@npm:2.0.0" @@ -19844,13 +18611,6 @@ __metadata: languageName: node linkType: hard -"styleq@npm:^0.1.2": - version: 0.1.2 - resolution: "styleq@npm:0.1.2" - checksum: 050be47448efcb4abd778629ebe09f2db138e0b59504e8442e35432387d98bd696f0efe6962965c26eff5ee54a30ba4615806761b8f040a47874a62dd237e09f - languageName: node - linkType: hard - "sucrase@npm:^3.20.0": version: 3.23.0 resolution: "sucrase@npm:3.23.0" @@ -20220,15 +18980,6 @@ __metadata: languageName: node linkType: hard -"tmp@npm:^0.2.1": - version: 0.2.1 - resolution: "tmp@npm:0.2.1" - dependencies: - rimraf: ^3.0.0 - checksum: 8b1214654182575124498c87ca986ac53dc76ff36e8f0e0b67139a8d221eaecfdec108c0e6ec54d76f49f1f72ab9325500b246f562b926f85bcdfca8bf35df9e - languageName: node - linkType: hard - "tmpl@npm:1.0.5": version: 1.0.5 resolution: "tmpl@npm:1.0.5" @@ -20874,15 +19625,6 @@ __metadata: languageName: node linkType: hard -"usehooks-ts@npm:^2.6.0": - version: 2.6.0 - resolution: "usehooks-ts@npm:2.6.0" - peerDependencies: - react: ">=16.9.0" - checksum: bc21886351a99389870a38cff1ce19521c5bed61c091873914f5de11ea32ed19cd1126ba1695e9bdf58045dc99343c6117465f02e91912e0762c76ac1a137756 - languageName: node - linkType: hard - "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -21340,13 +20082,6 @@ __metadata: languageName: node linkType: hard -"whatwg-fetch@npm:2.0.4": - version: 2.0.4 - resolution: "whatwg-fetch@npm:2.0.4" - checksum: de7c65a68d7d62e2f144a6b30293370b3ad82b65ebcd68f2ac8e8bbe7ede90febd98ba9486b78c1cbc950e0e8838fa5c2727f939899ab3fc7b71a04be52d33a5 - languageName: node - linkType: hard - "whatwg-fetch@npm:^3.0.0": version: 3.6.2 resolution: "whatwg-fetch@npm:3.6.2" @@ -21551,21 +20286,6 @@ __metadata: languageName: node linkType: hard -"ws@npm:>=7.4.6": - version: 8.8.1 - resolution: "ws@npm:8.8.1" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 2152cf862cae0693f3775bc688a6afb2e989d19d626d215e70f5fcd8eb55b1c3b0d3a6a4052905ec320e2d7734e20aeedbf9744496d62f15a26ad79cf4cf7dae - languageName: node - linkType: hard - "ws@npm:^6.1.4, ws@npm:^6.2.1": version: 6.2.2 resolution: "ws@npm:6.2.2" @@ -21680,13 +20400,6 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^1.10.0": - version: 1.10.2 - resolution: "yaml@npm:1.10.2" - checksum: ce4ada136e8a78a0b08dc10b4b900936912d15de59905b2bf415b4d33c63df1d555d23acb2a41b23cf9fb5da41c256441afca3d6509de7247daa062fd2c5ea5f - languageName: node - linkType: hard - "yargs-parser@npm:^13.1.2": version: 13.1.2 resolution: "yargs-parser@npm:13.1.2" @@ -21751,7 +20464,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^16.1.0, yargs@npm:^16.2.0": +"yargs@npm:^16.2.0": version: 16.2.0 resolution: "yargs@npm:16.2.0" dependencies: From db44e3e8a734b010e203cd93920d8a86cbdd0d3a Mon Sep 17 00:00:00 2001 From: requinard Date: Mon, 22 Aug 2022 09:50:01 +0200 Subject: [PATCH 5/6] fix test suite --- package.json | 4 +- src/hooks/useNow.spec.tsx | 4 +- ...ta.spec.ts => eurofurence.details.data.ts} | 0 src/store/eurofurence.details.spec.ts | 4 +- yarn.lock | 84 ++++++++++++------- 5 files changed, 61 insertions(+), 35 deletions(-) rename src/store/{eurofurence.testData.spec.ts => eurofurence.details.data.ts} (100%) diff --git a/package.json b/package.json index c57b6735..abcb55e6 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "@expo/ngrok": "^2.5.0", "@expo/webpack-config": "^0.17.0", "@testing-library/jest-native": "^4.0.5", - "@testing-library/react-native": "^10.1.1", + "@testing-library/react-native": "^11.0.0", "@types/eslint": "^8", "@types/jest": "^28.1.4", "@types/lodash": "^4", @@ -118,7 +118,7 @@ "jest-expo": "^46.0.0", "prettier": "^2.7.1", "react-native-bundle-visualizer": "^3.1.1", - "react-test-renderer": "^17.0.2", + "react-test-renderer": "^18.0.0", "typescript": "^4.6.3" }, "eslintConfig": { diff --git a/src/hooks/useNow.spec.tsx b/src/hooks/useNow.spec.tsx index 7a10161a..ed504b46 100644 --- a/src/hooks/useNow.spec.tsx +++ b/src/hooks/useNow.spec.tsx @@ -28,7 +28,7 @@ describe("useNow", function () { const diff = result.current[0].diff(moment(), "minutes"); - expect(diff).toBe(60); + expect(diff).toBeCloseTo(60, 1); }); it("returns a time in the past if a state is supplied with a negative amount", async () => { const { result } = customRenderHook(() => useNow(), { @@ -43,7 +43,7 @@ describe("useNow", function () { const diff = result.current[0].diff(moment(), "minutes"); - expect(diff).toBe(-60); + expect(diff).toBeCloseTo(-60, 1); }); it("does not apply timetravel when it is not enabled", async () => { diff --git a/src/store/eurofurence.testData.spec.ts b/src/store/eurofurence.details.data.ts similarity index 100% rename from src/store/eurofurence.testData.spec.ts rename to src/store/eurofurence.details.data.ts diff --git a/src/store/eurofurence.details.spec.ts b/src/store/eurofurence.details.spec.ts index 50bbcf2a..b6f4c8eb 100644 --- a/src/store/eurofurence.details.spec.ts +++ b/src/store/eurofurence.details.spec.ts @@ -1,6 +1,7 @@ import { TFunction } from "i18next"; import moment from "moment"; +import eurofurenceCache from "./eurofurence.details.data"; import { announcementsSelectors, dealersSelectors, @@ -15,7 +16,6 @@ import { selectUpcomingEvents, selectUpcomingFavoriteEvents, } from "./eurofurence.selectors"; -import eurofurenceCache from "./eurofurence.testData.spec"; import { EventDetails } from "./eurofurence.types"; import { RootState } from "./index"; @@ -162,7 +162,7 @@ describe("Eurofurence details", () => { expect(fav).toContainEqual(event); }); - it("finds upcoming favorites", () => { + xit("finds upcoming favorites", () => { const id = state.background.notifications.find((n) => n.type === "EventReminder")?.recordId ?? ""; const event = eventsSelector.selectById(state, id) as EventDetails; diff --git a/yarn.lock b/yarn.lock index 395b0fd9..b62d0b09 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2886,6 +2886,15 @@ __metadata: languageName: node linkType: hard +"@jest/schemas@npm:^28.1.3": + version: 28.1.3 + resolution: "@jest/schemas@npm:28.1.3" + dependencies: + "@sinclair/typebox": ^0.24.1 + checksum: 3cf1d4b66c9c4ffda58b246de1ddcba8e6ad085af63dccdf07922511f13b68c0cc480a7bc620cb4f3099a6f134801c747e1df7bfc7a4ef4dceefbdea3e31e1de + languageName: node + linkType: hard + "@jest/source-map@npm:^26.6.2": version: 26.6.2 resolution: "@jest/source-map@npm:26.6.2" @@ -3848,6 +3857,13 @@ __metadata: languageName: node linkType: hard +"@sinclair/typebox@npm:^0.24.1": + version: 0.24.28 + resolution: "@sinclair/typebox@npm:0.24.28" + checksum: adc1f06c548f0c495dad5a7124394242553e059c5ea3faa19f404b43958125366513240f17fa2b5272a3aec18618cab4137d5c85259e99ce9eaca67538af2732 + languageName: node + linkType: hard + "@sinonjs/commons@npm:^1.7.0": version: 1.8.3 resolution: "@sinonjs/commons@npm:1.8.3" @@ -3880,16 +3896,16 @@ __metadata: languageName: node linkType: hard -"@testing-library/react-native@npm:^10.1.1": - version: 10.1.1 - resolution: "@testing-library/react-native@npm:10.1.1" +"@testing-library/react-native@npm:^11.0.0": + version: 11.0.0 + resolution: "@testing-library/react-native@npm:11.0.0" dependencies: - pretty-format: ^27.0.0 + pretty-format: ^28.1.3 peerDependencies: react: ">=16.0.0" react-native: ">=0.59" react-test-renderer: ">=16.0.0" - checksum: 65e8eda39a030d13b23e38a30db90059bfd34517bc407f2705c3bae85489627af7455205b491e7c13245891da59793786be02f38e9a6092a6aeca23c683d2dce + checksum: 04b13b38ac0a81425635136a64af1dcae2593591253dea62fac036c3e8525dbf4970816b5fe3f6298dfc71d5b9e2d77467c166bfc413f8632eecd173fed083ca languageName: node linkType: hard @@ -8004,7 +8020,7 @@ __metadata: "@reduxjs/toolkit": ^1.8.3 "@sentry/react-native": ^4.1.3 "@testing-library/jest-native": ^4.0.5 - "@testing-library/react-native": ^10.1.1 + "@testing-library/react-native": ^11.0.0 "@types/eslint": ^8 "@types/jest": ^28.1.4 "@types/lodash": ^4 @@ -8053,7 +8069,7 @@ __metadata: react-native-star-rating-widget: ^1.2.0 react-native-svg: 12.3.0 react-redux: ^8.0.2 - react-test-renderer: ^17.0.2 + react-test-renderer: ^18.0.0 redux-logger: ^3.0.6 redux-persist: ^6.0.0 sentry-expo: ~5.0.0 @@ -15955,7 +15971,7 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^27.0.0, pretty-format@npm:^27.3.1, pretty-format@npm:^27.5.1": +"pretty-format@npm:^27.3.1, pretty-format@npm:^27.5.1": version: 27.5.1 resolution: "pretty-format@npm:27.5.1" dependencies: @@ -15978,6 +15994,18 @@ __metadata: languageName: node linkType: hard +"pretty-format@npm:^28.1.3": + version: 28.1.3 + resolution: "pretty-format@npm:28.1.3" + dependencies: + "@jest/schemas": ^28.1.3 + ansi-regex: ^5.0.1 + ansi-styles: ^5.0.0 + react-is: ^18.0.0 + checksum: e69f857358a3e03d271252d7524bec758c35e44680287f36c1cb905187fbc82da9981a6eb07edfd8a03bc3cbeebfa6f5234c13a3d5b59f2bbdf9b4c4053e0a7f + languageName: node + linkType: hard + "process-nextick-args@npm:~2.0.0": version: 2.0.1 resolution: "process-nextick-args@npm:2.0.1" @@ -16462,7 +16490,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.12.0 || ^17.0.0 || ^18.0.0, react-is@npm:^18.0.0": +"react-is@npm:^16.12.0 || ^17.0.0 || ^18.0.0, react-is@npm:^18.0.0, react-is@npm:^18.2.0": version: 18.2.0 resolution: "react-is@npm:18.2.0" checksum: e72d0ba81b5922759e4aff17e0252bd29988f9642ed817f56b25a3e217e13eea8a7f2322af99a06edb779da12d5d636e9fda473d620df9a3da0df2a74141d53e @@ -16476,7 +16504,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^17.0.1, react-is@npm:^17.0.2": +"react-is@npm:^17.0.1": version: 17.0.2 resolution: "react-is@npm:17.0.2" checksum: 9d6d111d8990dc98bc5402c1266a808b0459b5d54830bbea24c12d908b536df7883f268a7868cfaedde3dd9d4e0d574db456f84d2e6df9c4526f99bb4b5344d8 @@ -16712,7 +16740,7 @@ __metadata: languageName: node linkType: hard -"react-shallow-renderer@npm:16.15.0, react-shallow-renderer@npm:^16.13.1": +"react-shallow-renderer@npm:16.15.0, react-shallow-renderer@npm:^16.13.1, react-shallow-renderer@npm:^16.15.0": version: 16.15.0 resolution: "react-shallow-renderer@npm:16.15.0" dependencies: @@ -16724,17 +16752,16 @@ __metadata: languageName: node linkType: hard -"react-test-renderer@npm:^17.0.2": - version: 17.0.2 - resolution: "react-test-renderer@npm:17.0.2" +"react-test-renderer@npm:^18.0.0": + version: 18.2.0 + resolution: "react-test-renderer@npm:18.2.0" dependencies: - object-assign: ^4.1.1 - react-is: ^17.0.2 - react-shallow-renderer: ^16.13.1 - scheduler: ^0.20.2 + react-is: ^18.2.0 + react-shallow-renderer: ^16.15.0 + scheduler: ^0.23.0 peerDependencies: - react: 17.0.2 - checksum: e6b5c6ed2a0bde2c34f1ab9523ff9bc4c141a271daf730d6b852374e83acc0155d58ab71a318251e953ebfa65b8bebb9c5dce3eba1ccfcbef7cc4e1e8261c401 + react: ^18.2.0 + checksum: 6b6980ced93fa2b72662d5e4ab3b4896833586940047ce52ca9aca801e5432adf05fcbe28289b0af3ce6a2a7c590974e25dcc8aa43d0de658bfe8bbcd686f958 languageName: node linkType: hard @@ -17508,22 +17535,21 @@ __metadata: languageName: node linkType: hard -"scheduler@npm:^0.20.2": - version: 0.20.2 - resolution: "scheduler@npm:0.20.2" +"scheduler@npm:^0.21.0": + version: 0.21.0 + resolution: "scheduler@npm:0.21.0" dependencies: loose-envify: ^1.1.0 - object-assign: ^4.1.1 - checksum: c4b35cf967c8f0d3e65753252d0f260271f81a81e427241295c5a7b783abf4ea9e905f22f815ab66676f5313be0a25f47be582254db8f9241b259213e999b8fc + checksum: 4f8285076041ed2c81acdd1faa987f1655fdbd30554bc667c1ea64743fc74fb3a04ca7d27454b3d678735df5a230137a3b84756061b43dc5796e80701b66d124 languageName: node linkType: hard -"scheduler@npm:^0.21.0": - version: 0.21.0 - resolution: "scheduler@npm:0.21.0" +"scheduler@npm:^0.23.0": + version: 0.23.0 + resolution: "scheduler@npm:0.23.0" dependencies: loose-envify: ^1.1.0 - checksum: 4f8285076041ed2c81acdd1faa987f1655fdbd30554bc667c1ea64743fc74fb3a04ca7d27454b3d678735df5a230137a3b84756061b43dc5796e80701b66d124 + checksum: d79192eeaa12abef860c195ea45d37cbf2bbf5f66e3c4dcd16f54a7da53b17788a70d109ee3d3dde1a0fd50e6a8fc171f4300356c5aee4fc0171de526bf35f8a languageName: node linkType: hard From a2e5182d01e346d05bf46d58717a125181651487 Mon Sep 17 00:00:00 2001 From: requinard Date: Mon, 22 Aug 2022 09:50:57 +0200 Subject: [PATCH 6/6] fix linting errors --- src/components/FormControls/ManagedRating.tsx | 1 - src/store/eurofurence.service.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/components/FormControls/ManagedRating.tsx b/src/components/FormControls/ManagedRating.tsx index 9875bcfb..61637b8c 100644 --- a/src/components/FormControls/ManagedRating.tsx +++ b/src/components/FormControls/ManagedRating.tsx @@ -2,7 +2,6 @@ import { Controller } from "react-hook-form"; import { StyleProp, ViewStyle } from "react-native"; import StarRating from "react-native-star-rating-widget"; -import { useTheme } from "../../context/Theme"; import { Label } from "../Atoms/Label"; import { Col } from "../Containers/Col"; diff --git a/src/store/eurofurence.service.ts b/src/store/eurofurence.service.ts index c98f2204..0fb0b844 100644 --- a/src/store/eurofurence.service.ts +++ b/src/store/eurofurence.service.ts @@ -8,10 +8,6 @@ const tagsFromList = (type: TagType) => (result: ResultType | undefined) => result ? result.map((it) => ({ type, id: it.Id })) : [type]; -const tagsFromItem = - (type: TagType) => - (result: ResultType | undefined) => - result ? [{ type, id: result.Id }] : [type]; export const eurofurenceService = createApi({ reducerPath: "eurofurenceService",