From f730125ffb941fe936d6a18c775cbe3a99b312dc Mon Sep 17 00:00:00 2001 From: makhtar-sarr Date: Sat, 11 Nov 2023 07:12:53 +0000 Subject: [PATCH 01/98] feat(locale): and location to fr_SN (#2533) --- src/locales/fr_SN/index.ts | 2 + src/locales/fr_SN/location/building_number.ts | 1 + src/locales/fr_SN/location/city_name.ts | 53 +++++++++++++++++++ src/locales/fr_SN/location/city_pattern.ts | 1 + src/locales/fr_SN/location/default_country.ts | 1 + src/locales/fr_SN/location/index.ts | 22 ++++++++ src/locales/fr_SN/location/postcode.ts | 1 + src/locales/fr_SN/location/state.ts | 16 ++++++ 8 files changed, 97 insertions(+) create mode 100644 src/locales/fr_SN/location/building_number.ts create mode 100644 src/locales/fr_SN/location/city_name.ts create mode 100644 src/locales/fr_SN/location/city_pattern.ts create mode 100644 src/locales/fr_SN/location/default_country.ts create mode 100644 src/locales/fr_SN/location/index.ts create mode 100644 src/locales/fr_SN/location/postcode.ts create mode 100644 src/locales/fr_SN/location/state.ts diff --git a/src/locales/fr_SN/index.ts b/src/locales/fr_SN/index.ts index 027ca3f3054..5a35c753b4f 100644 --- a/src/locales/fr_SN/index.ts +++ b/src/locales/fr_SN/index.ts @@ -4,10 +4,12 @@ */ import type { LocaleDefinition } from '../..'; import internet from './internet'; +import location from './location'; import metadata from './metadata'; const fr_SN: LocaleDefinition = { internet, + location, metadata, }; diff --git a/src/locales/fr_SN/location/building_number.ts b/src/locales/fr_SN/location/building_number.ts new file mode 100644 index 00000000000..b875f685863 --- /dev/null +++ b/src/locales/fr_SN/location/building_number.ts @@ -0,0 +1 @@ +export default ['####', '###', '##', '#']; diff --git a/src/locales/fr_SN/location/city_name.ts b/src/locales/fr_SN/location/city_name.ts new file mode 100644 index 00000000000..8e7b51ca8ee --- /dev/null +++ b/src/locales/fr_SN/location/city_name.ts @@ -0,0 +1,53 @@ +export default [ + 'Bakel', + 'Bambey', + 'Bargny', + 'Bignona', + 'Dagana', + 'Dahra', + 'Dakar', + 'Diourbel', + 'Fatick', + 'Gandiaye', + 'Gossas', + 'Goudomp', + 'Guinguinéo', + 'Guédiawaye', + 'Joal-Fadiouth', + 'Kaffrine', + 'Kanel', + 'Kaolack', + 'Kayar', + 'Khombole', + 'Kolda', + 'Koungheul', + 'Kébémer', + 'Kédougou', + 'Linguère', + 'Louga', + 'Matam', + 'Mbacké', + 'Mboro', + 'Mbour', + 'NDofan', + 'Ndioum', + 'Ngaaÿ Meckhe', + 'Nguékhokh', + 'Nioro du Rip', + 'Ourossogui', + 'Pikine', + 'Pout', + 'Richard-Toll', + 'Rufisque', + 'Saint-Louis', + 'Sokone', + 'Sébikhotane', + 'Sédhiou', + 'Tambacounda', + 'Thiadiaye', + 'Thiès', + 'Tivaouane', + 'Touba', + 'Vélingara', + 'Ziguinchor', +]; diff --git a/src/locales/fr_SN/location/city_pattern.ts b/src/locales/fr_SN/location/city_pattern.ts new file mode 100644 index 00000000000..ad43b68fc5c --- /dev/null +++ b/src/locales/fr_SN/location/city_pattern.ts @@ -0,0 +1 @@ +export default ['{{location.city_name}}']; diff --git a/src/locales/fr_SN/location/default_country.ts b/src/locales/fr_SN/location/default_country.ts new file mode 100644 index 00000000000..dd6221e0c48 --- /dev/null +++ b/src/locales/fr_SN/location/default_country.ts @@ -0,0 +1 @@ +export default ['Sénégal']; diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts new file mode 100644 index 00000000000..f46a91ce126 --- /dev/null +++ b/src/locales/fr_SN/location/index.ts @@ -0,0 +1,22 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocationDefinition } from '../../..'; +import building_number from './building_number'; +import city_name from './city_name'; +import city_pattern from './city_pattern'; +import default_country from './default_country'; +import postcode from './postcode'; +import state from './state'; + +const location: LocationDefinition = { + building_number, + city_name, + city_pattern, + default_country, + postcode, + state, +}; + +export default location; diff --git a/src/locales/fr_SN/location/postcode.ts b/src/locales/fr_SN/location/postcode.ts new file mode 100644 index 00000000000..db2bcfedae5 --- /dev/null +++ b/src/locales/fr_SN/location/postcode.ts @@ -0,0 +1 @@ +export default ['#####']; diff --git a/src/locales/fr_SN/location/state.ts b/src/locales/fr_SN/location/state.ts new file mode 100644 index 00000000000..da6aa87a848 --- /dev/null +++ b/src/locales/fr_SN/location/state.ts @@ -0,0 +1,16 @@ +export default [ + 'Dakar', + 'Diourbel', + 'Fatick', + 'Kaffrine', + 'Kaolack', + 'Kolda', + 'Kédougou', + 'Louga', + 'Matam', + 'Saint-Louis', + 'Sédhiou', + 'Tambacounda', + 'Thiès', + 'Ziguinchor', +]; From 26f298cee1b9fd385ad0dd0306c4ce68e79b9fae Mon Sep 17 00:00:00 2001 From: larvide <37039204+LARVAIDE@users.noreply.github.com> Date: Mon, 13 Nov 2023 00:35:16 +0800 Subject: [PATCH 02/98] docs: restructure apidocs page tree (#2530) Co-authored-by: larvide --- docs/.vitepress/api-pages.ts | 57 +++++++++++++++++-------------- scripts/apidoc/faker-class.ts | 3 +- scripts/apidoc/faker-utilities.ts | 3 +- scripts/apidoc/generate.ts | 8 +++-- scripts/apidoc/module-methods.ts | 3 +- scripts/apidoc/utils.ts | 2 +- scripts/apidoc/writer.ts | 21 ++++++++++-- 7 files changed, 61 insertions(+), 36 deletions(-) diff --git a/docs/.vitepress/api-pages.ts b/docs/.vitepress/api-pages.ts index dad86954967..c23e6cfc466 100644 --- a/docs/.vitepress/api-pages.ts +++ b/docs/.vitepress/api-pages.ts @@ -4,32 +4,37 @@ export const apiPages = [ { text: 'Overview', link: '/api/' }, { text: 'Faker', link: '/api/faker.html' }, { text: 'SimpleFaker', link: '/api/simpleFaker.html' }, - { text: 'Airline', link: '/api/airline.html' }, - { text: 'Animal', link: '/api/animal.html' }, - { text: 'Color', link: '/api/color.html' }, - { text: 'Commerce', link: '/api/commerce.html' }, - { text: 'Company', link: '/api/company.html' }, - { text: 'Database', link: '/api/database.html' }, - { text: 'Datatype', link: '/api/datatype.html' }, - { text: 'Date', link: '/api/date.html' }, - { text: 'Finance', link: '/api/finance.html' }, - { text: 'Git', link: '/api/git.html' }, - { text: 'Hacker', link: '/api/hacker.html' }, - { text: 'Helpers', link: '/api/helpers.html' }, - { text: 'Image', link: '/api/image.html' }, - { text: 'Internet', link: '/api/internet.html' }, - { text: 'Location', link: '/api/location.html' }, - { text: 'Lorem', link: '/api/lorem.html' }, - { text: 'Music', link: '/api/music.html' }, - { text: 'Number', link: '/api/number.html' }, - { text: 'Person', link: '/api/person.html' }, - { text: 'Phone', link: '/api/phone.html' }, - { text: 'Random', link: '/api/random.html' }, - { text: 'Science', link: '/api/science.html' }, - { text: 'String', link: '/api/string.html' }, - { text: 'System', link: '/api/system.html' }, - { text: 'Vehicle', link: '/api/vehicle.html' }, - { text: 'Word', link: '/api/word.html' }, { text: 'Randomizer', link: '/api/randomizer.html' }, { text: 'Utilities', link: '/api/utils.html' }, + { + text: 'Modules', + items: [ + { text: 'Airline', link: '/api/airline.html' }, + { text: 'Animal', link: '/api/animal.html' }, + { text: 'Color', link: '/api/color.html' }, + { text: 'Commerce', link: '/api/commerce.html' }, + { text: 'Company', link: '/api/company.html' }, + { text: 'Database', link: '/api/database.html' }, + { text: 'Datatype', link: '/api/datatype.html' }, + { text: 'Date', link: '/api/date.html' }, + { text: 'Finance', link: '/api/finance.html' }, + { text: 'Git', link: '/api/git.html' }, + { text: 'Hacker', link: '/api/hacker.html' }, + { text: 'Helpers', link: '/api/helpers.html' }, + { text: 'Image', link: '/api/image.html' }, + { text: 'Internet', link: '/api/internet.html' }, + { text: 'Location', link: '/api/location.html' }, + { text: 'Lorem', link: '/api/lorem.html' }, + { text: 'Music', link: '/api/music.html' }, + { text: 'Number', link: '/api/number.html' }, + { text: 'Person', link: '/api/person.html' }, + { text: 'Phone', link: '/api/phone.html' }, + { text: 'Random', link: '/api/random.html' }, + { text: 'Science', link: '/api/science.html' }, + { text: 'String', link: '/api/string.html' }, + { text: 'System', link: '/api/system.html' }, + { text: 'Vehicle', link: '/api/vehicle.html' }, + { text: 'Word', link: '/api/word.html' }, + ], + }, ]; diff --git a/scripts/apidoc/faker-class.ts b/scripts/apidoc/faker-class.ts index 44648831142..6672896c50b 100644 --- a/scripts/apidoc/faker-class.ts +++ b/scripts/apidoc/faker-class.ts @@ -55,7 +55,8 @@ async function processClass( comment, examples, deprecated, - methods + methods, + '' ); } diff --git a/scripts/apidoc/faker-utilities.ts b/scripts/apidoc/faker-utilities.ts index 0da03581283..ad1f74c3aa2 100644 --- a/scripts/apidoc/faker-utilities.ts +++ b/scripts/apidoc/faker-utilities.ts @@ -34,6 +34,7 @@ async function processUtilities( comment, undefined, undefined, - methods + methods, + '' ); } diff --git a/scripts/apidoc/generate.ts b/scripts/apidoc/generate.ts index 316757cc9b1..44610869b84 100644 --- a/scripts/apidoc/generate.ts +++ b/scripts/apidoc/generate.ts @@ -24,13 +24,15 @@ export async function generate(): Promise { const pages = [ ...(await processFakerClasses(project)), + await processFakerRandomizer(project), + await processFakerUtilities(project), ...(await processModules(project)).sort((a, b) => a.text.localeCompare(b.text) ), - await processFakerRandomizer(project), - await processFakerUtilities(project), ]; - await writeApiPagesIndex(pages.map(({ text, link }) => ({ text, link }))); + await writeApiPagesIndex( + pages.map(({ text, link, category }) => ({ text, link, category })) + ); writeApiDiffIndex( Object.fromEntries(pages.map(({ text, diff }) => [text, diff])) ); diff --git a/scripts/apidoc/module-methods.ts b/scripts/apidoc/module-methods.ts index 772a72360bc..c21ccf97268 100644 --- a/scripts/apidoc/module-methods.ts +++ b/scripts/apidoc/module-methods.ts @@ -57,7 +57,8 @@ async function processModule( comment, examples, deprecated, - methods + methods, + 'Modules' ); } diff --git a/scripts/apidoc/utils.ts b/scripts/apidoc/utils.ts index b6b533f6ce9..18176da5b33 100644 --- a/scripts/apidoc/utils.ts +++ b/scripts/apidoc/utils.ts @@ -4,7 +4,7 @@ import type { Method } from '../../docs/.vitepress/components/api-docs/method'; // Types -export type Page = { text: string; link: string }; +export type Page = { text: string; link: string; category: string }; export type ModuleSummary = Page & { methods: Method[]; diff --git a/scripts/apidoc/writer.ts b/scripts/apidoc/writer.ts index 0fc7ae78486..23586230414 100644 --- a/scripts/apidoc/writer.ts +++ b/scripts/apidoc/writer.ts @@ -2,8 +2,10 @@ import { writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; import type { ProjectReflection } from 'typedoc'; import { ReflectionKind } from 'typedoc'; +import type { DefaultTheme } from 'vitepress'; import type { Method } from '../../docs/.vitepress/components/api-docs/method'; import type { APIGroup } from '../../docs/api/api-types'; +import { groupBy } from '../../src/internal/group-by'; import { formatMarkdown, formatTypescript } from './format'; import { extractSourceBaseUrl } from './typedoc'; import type { DocsApiDiffIndex, ModuleSummary, Page } from './utils'; @@ -40,6 +42,7 @@ editLink: false * @param examples The example code. * @param deprecated The deprecation message. * @param methods The methods of the module. + * @param category The category of the module. */ export async function writeApiDocsModule( moduleName: string, @@ -47,7 +50,8 @@ export async function writeApiDocsModule( comment: string, examples: string | undefined, deprecated: string | undefined, - methods: Method[] + methods: Method[], + category: string ): Promise { await writeApiDocsModulePage( moduleName, @@ -63,6 +67,7 @@ export async function writeApiDocsModule( text: moduleName, link: `/api/${lowerModuleName}.html`, methods, + category, diff: { moduleHash: diffHash({ name: moduleName, @@ -164,13 +169,23 @@ function writeApiDocsModuleData( * @param pages The pages to write into the index. */ export async function writeApiPagesIndex(pages: Page[]): Promise { + const pagesByCategory = groupBy(pages, (page) => page.category); + const pageTree = Object.entries(pagesByCategory).flatMap( + ([category, items]): DefaultTheme.SidebarItem[] => { + const cleanedItems = items.map(({ text, link }) => ({ text, link })); + return category + ? [{ text: category, items: cleanedItems }] + : cleanedItems; + } + ); + // Write api-pages.ts console.log('Updating api-pages.ts'); - pages.splice(0, 0, { text: 'Overview', link: '/api/' }); + pageTree.splice(0, 0, { text: 'Overview', link: '/api/' }); let apiPagesContent = ` // This file is automatically generated. // Run '${scriptCommand}' to update - export const apiPages = ${JSON.stringify(pages)}; + export const apiPages = ${JSON.stringify(pageTree)}; `.replace(/\n +/, '\n'); apiPagesContent = await formatTypescript(apiPagesContent); From ef965da48a8089e6bb19bcf260bfcd8af1a43799 Mon Sep 17 00:00:00 2001 From: makhtar-sarr Date: Sun, 12 Nov 2023 17:47:51 +0000 Subject: [PATCH 03/98] feat(locale): add person to fr_SN (#2537) --- src/locales/fr_SN/index.ts | 2 + src/locales/fr_SN/person/female_first_name.ts | 81 ++++++++++ src/locales/fr_SN/person/first_name.ts | 5 + src/locales/fr_SN/person/index.ts | 22 +++ src/locales/fr_SN/person/last_name.ts | 150 ++++++++++++++++++ src/locales/fr_SN/person/last_name_pattern.ts | 1 + src/locales/fr_SN/person/male_first_name.ts | 105 ++++++++++++ src/locales/fr_SN/person/name.ts | 3 + 8 files changed, 369 insertions(+) create mode 100644 src/locales/fr_SN/person/female_first_name.ts create mode 100644 src/locales/fr_SN/person/first_name.ts create mode 100644 src/locales/fr_SN/person/index.ts create mode 100644 src/locales/fr_SN/person/last_name.ts create mode 100644 src/locales/fr_SN/person/last_name_pattern.ts create mode 100644 src/locales/fr_SN/person/male_first_name.ts create mode 100644 src/locales/fr_SN/person/name.ts diff --git a/src/locales/fr_SN/index.ts b/src/locales/fr_SN/index.ts index 5a35c753b4f..7b766e772ef 100644 --- a/src/locales/fr_SN/index.ts +++ b/src/locales/fr_SN/index.ts @@ -6,11 +6,13 @@ import type { LocaleDefinition } from '../..'; import internet from './internet'; import location from './location'; import metadata from './metadata'; +import person from './person'; const fr_SN: LocaleDefinition = { internet, location, metadata, + person, }; export default fr_SN; diff --git a/src/locales/fr_SN/person/female_first_name.ts b/src/locales/fr_SN/person/female_first_name.ts new file mode 100644 index 00000000000..fc2a743237a --- /dev/null +++ b/src/locales/fr_SN/person/female_first_name.ts @@ -0,0 +1,81 @@ +export default [ + 'Abibatou', + 'Aby', + 'Adama', + 'Alima', + 'Ami', + 'Amie', + 'Amina', + 'Aminata', + 'Amy', + 'Anna', + 'Arame', + 'Asta', + 'Astou', + 'Atta', + 'Awa', + 'Aïcha', + 'Aïda', + 'Aïssa', + 'Aïssata', + 'Aïssatou', + 'Banna', + 'Bineta', + 'Binta', + 'Bintou', + 'Coumba', + 'Dado', + 'Diarra', + 'Dieynaba', + 'Dior', + 'Elisabeth', + 'Elène', + 'Fanta', + 'Fatim', + 'Fatima', + 'Fatimata', + 'Fatma', + 'Fatou', + 'Fatoumata', + 'Fily', + 'Haby', + 'Hawa', + 'Jeanne', + 'Josephine', + 'Kadiatou', + 'Khadidiatou', + 'Khady', + 'Khoudia', + 'Kiné', + 'Lala', + 'Madeleine', + 'Maguette', + 'Mariama', + 'Marie', + 'Marième', + 'Mary', + 'Marème', + 'Maï', + 'Maïmouna', + 'Néné', + 'Oumou', + 'Paulette', + 'Penda', + 'Rama', + 'Ramata', + 'Ramatoulaye', + 'Rokhaya', + 'Rose', + 'Safiatou', + 'Safiétou', + 'Salimata', + 'Salimatou', + 'Saly', + 'Seynabou', + 'Soda', + 'Sokhna', + 'Sophie', + 'Thérèse', + 'Yacine', + 'Yaya', +]; diff --git a/src/locales/fr_SN/person/first_name.ts b/src/locales/fr_SN/person/first_name.ts new file mode 100644 index 00000000000..3c787970a71 --- /dev/null +++ b/src/locales/fr_SN/person/first_name.ts @@ -0,0 +1,5 @@ +import { mergeArrays } from './../../../internal/merge'; +import female_first_name from './female_first_name'; +import male_first_name from './male_first_name'; + +export default mergeArrays(female_first_name, male_first_name); diff --git a/src/locales/fr_SN/person/index.ts b/src/locales/fr_SN/person/index.ts new file mode 100644 index 00000000000..148d05fa360 --- /dev/null +++ b/src/locales/fr_SN/person/index.ts @@ -0,0 +1,22 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { PersonDefinition } from '../../..'; +import female_first_name from './female_first_name'; +import first_name from './first_name'; +import last_name from './last_name'; +import last_name_pattern from './last_name_pattern'; +import male_first_name from './male_first_name'; +import name_ from './name'; + +const person: PersonDefinition = { + female_first_name, + first_name, + last_name, + last_name_pattern, + male_first_name, + name: name_, +}; + +export default person; diff --git a/src/locales/fr_SN/person/last_name.ts b/src/locales/fr_SN/person/last_name.ts new file mode 100644 index 00000000000..ea5f5ef3b5d --- /dev/null +++ b/src/locales/fr_SN/person/last_name.ts @@ -0,0 +1,150 @@ +export default [ + 'Aïdara', + 'Amar', + 'Anne', + 'Aw', + 'Ba', + 'Babou', + 'Badiane', + 'Badji', + 'Bakhoum', + 'Baldé', + 'Barry', + 'Beye', + 'Biteye', + 'Bodian', + 'Boye', + 'Camara', + 'Ciss', + 'Cisse', + 'Cissokho', + 'Coly', + 'Coulibaly', + 'Dabo', + 'Dembelé', + 'Dème', + 'Dia', + 'Diaby', + 'Diack', + 'Diagne', + 'Diakhaté', + 'Diallo', + 'Diamanka', + 'Diao', + 'Diarra', + 'Diatta', + 'Diattara', + 'Diaw', + 'Diawara', + 'Diédhiou', + 'Diémé', + 'Diène', + 'Dieng', + 'Dieye', + 'Diome', + 'Dione', + 'Diongue', + 'Diop', + 'Diouf', + 'Dioum', + 'Djitté', + 'Dramé', + 'Fall', + 'Faty', + 'Faye', + 'Fofana', + 'Gadiaga', + 'Gassama', + 'Gaye', + 'Gning', + 'Gningue', + 'Gomis', + 'Goudiaby', + 'Gueye', + 'Guissé', + 'Hane', + 'Ka', + 'Kamara', + 'Kandé', + 'Kandji', + 'Kane', + 'Kanté', + 'Kassé', + 'Kébé', + 'Keïta', + 'Khouma', + 'Konaté', + 'Konté', + 'Lam', + 'Leye', + 'Lo', + 'Loum', + 'Ly', + 'Mané', + 'Manga', + 'Mangane', + 'Mar', + 'Mbacké', + 'Mballo', + 'Mbaye', + 'Mbèngue', + 'Mbodj', + 'Mboup', + 'Mbow', + 'Mendy', + 'Ndao', + 'Ndaw', + 'Ndiaye', + 'Ndione', + 'Ndir', + 'Ndong', + 'Ndour', + 'Ndoye', + 'Ngom', + 'Nguèr', + 'Niane', + 'Niang', + 'Niass', + 'Niasse', + 'Pouye', + 'Sabaly', + 'Sadio', + 'Sagna', + 'Sakho', + 'Sall', + 'Samb', + 'Samba', + 'Sambe', + 'Sambou', + 'Sané', + 'Sarr', + 'Seck', + 'Ségnane', + 'Sène', + 'Senghor', + 'Seydi', + 'Seye', + 'Sidibé', + 'Sonko', + 'Souare', + 'Soumaré', + 'Sow', + 'Sy', + 'Sylla', + 'Tall', + 'Tamba', + 'Thiam', + 'Thiao', + 'Thiaw', + 'Thiongane', + 'Thioub', + 'Thioune', + 'Tine', + 'Top', + 'Touré', + 'Traoré', + 'Wade', + 'Wane', + 'Willane', + 'Yade', +]; diff --git a/src/locales/fr_SN/person/last_name_pattern.ts b/src/locales/fr_SN/person/last_name_pattern.ts new file mode 100644 index 00000000000..c66a770f4e3 --- /dev/null +++ b/src/locales/fr_SN/person/last_name_pattern.ts @@ -0,0 +1 @@ +export default [{ value: '{{person.last_name}}', weight: 1 }]; diff --git a/src/locales/fr_SN/person/male_first_name.ts b/src/locales/fr_SN/person/male_first_name.ts new file mode 100644 index 00000000000..295f4a0b495 --- /dev/null +++ b/src/locales/fr_SN/person/male_first_name.ts @@ -0,0 +1,105 @@ +export default [ + 'Abdou', + 'Abdoul', + 'Abdoulaye', + 'Abou', + 'Aboubacar', + 'Adama', + 'Ahmed', + 'Alassane', + 'Aliou', + 'Alioune', + 'Alpha', + 'Aly', + 'Amadou', + 'Amady', + 'Amath', + 'Amdy', + 'Ameth', + 'Antoine', + 'Arona', + 'Baba', + 'Babacar', + 'Bakary', + 'Birane', + 'Bouba', + 'Boubacar', + 'Boubou', + 'Cheikh', + 'Cheikhou', + 'Chekhouna', + 'Cherif', + 'Dame', + 'Daouda', + 'Demba', + 'Djibril', + 'Hamidou', + 'Ibou', + 'Ibra', + 'Ibrahima', + 'Idrissa', + 'Idy', + 'Insa', + 'Ismaïla', + 'Issa', + 'Jean', + 'Joseph', + 'Kalidou', + 'Kéba', + 'Khadim', + 'Khalifa', + 'Lamine', + 'Lassana', + 'Mactar', + 'Mady', + 'Makhtar', + 'Malick', + 'Mama', + 'Mamadou', + 'Mamady', + 'Mamour', + 'Mansour', + 'Massamba', + 'Matar', + 'Mbaye', + 'Médoune', + 'Meïssa', + 'Michel', + 'Moctar', + 'Modou', + 'Mohamadou', + 'Mohamed', + 'Mohammed', + 'Mouhamadou', + 'Mouhamed', + 'Mouhameth', + 'Mouhammadou', + 'Moussa', + 'Moustapha', + 'Omar', + 'Oumar', + 'Ousmane', + 'Pathé', + 'Paul', + 'Pierre', + 'Sada', + 'Sadio', + 'Saèr', + 'Sagar', + 'Salif', + 'Saliou', + 'Samba', + 'Seckou', + 'Sékou', + 'Seydou', + 'Sidy', + 'Siré', + 'Souleymane', + 'Thierno', + 'Tidiane', + 'Waly', + 'Yoro', + 'Youssou', + 'Youssouph', + 'Youssoupha', +]; diff --git a/src/locales/fr_SN/person/name.ts b/src/locales/fr_SN/person/name.ts new file mode 100644 index 00000000000..3ed8a80c86e --- /dev/null +++ b/src/locales/fr_SN/person/name.ts @@ -0,0 +1,3 @@ +export default [ + { value: '{{person.firstName}} {{person.lastName}}', weight: 1 }, +]; From 7ce8c285cb5b2d13e95a17be78ecbd52f3c7d9db Mon Sep 17 00:00:00 2001 From: Samuel Koch Date: Mon, 13 Nov 2023 05:07:05 -0300 Subject: [PATCH 04/98] fix(date): ensures correct range for birthdate (#2535) --- src/modules/date/index.ts | 2 +- test/modules/__snapshots__/date.spec.ts.snap | 12 ++++---- test/modules/date.spec.ts | 29 ++++++++++++++++++++ 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index 69854688a5b..d79da51fd41 100644 --- a/src/modules/date/index.ts +++ b/src/modules/date/index.ts @@ -890,7 +890,7 @@ export class SimpleDateModule extends SimpleModuleBase { options.min ?? refYear - 80 ); max = new Date(Date.UTC(0, 11, 30)).setUTCFullYear( - options.max ?? refYear - 18 + options.max ?? refYear - 19 ); } diff --git a/test/modules/__snapshots__/date.spec.ts.snap b/test/modules/__snapshots__/date.spec.ts.snap index 701c8cc7430..4ade2cc7301 100644 --- a/test/modules/__snapshots__/date.spec.ts.snap +++ b/test/modules/__snapshots__/date.spec.ts.snap @@ -71,11 +71,11 @@ exports[`date > 42 > birthdate > with age mode and refDate 1`] = `1963-09-27T06: exports[`date > 42 > birthdate > with age range and refDate 1`] = `1962-12-27T20:13:59.702Z`; -exports[`date > 42 > birthdate > with only refDate 1`] = `1964-08-06T01:03:57.017Z`; +exports[`date > 42 > birthdate > with only refDate 1`] = `1964-03-22T08:05:39.972Z`; exports[`date > 42 > birthdate > with year and refDate 1`] = `0020-07-07T19:06:53.022Z`; -exports[`date > 42 > birthdate > with year mode and refDate 1`] = `1964-08-06T01:03:57.017Z`; +exports[`date > 42 > birthdate > with year mode and refDate 1`] = `1964-03-22T08:05:39.972Z`; exports[`date > 42 > birthdate > with year range and refDate 1`] = `0057-12-20T11:59:23.890Z`; @@ -199,11 +199,11 @@ exports[`date > 1211 > birthdate > with age mode and refDate 1`] = `1998-08-21T2 exports[`date > 1211 > birthdate > with age range and refDate 1`] = `1996-10-13T01:44:07.645Z`; -exports[`date > 1211 > birthdate > with only refDate 1`] = `1999-06-29T11:06:58.506Z`; +exports[`date > 1211 > birthdate > with only refDate 1`] = `1998-07-25T13:16:46.938Z`; exports[`date > 1211 > birthdate > with year and refDate 1`] = `0021-01-26T13:16:31.421Z`; -exports[`date > 1211 > birthdate > with year mode and refDate 1`] = `1999-06-29T11:06:58.506Z`; +exports[`date > 1211 > birthdate > with year mode and refDate 1`] = `1998-07-25T13:16:46.938Z`; exports[`date > 1211 > birthdate > with year range and refDate 1`] = `0113-12-03T19:45:27.654Z`; @@ -325,11 +325,11 @@ exports[`date > 1337 > birthdate > with age mode and refDate 1`] = `1956-08-25T0 exports[`date > 1337 > birthdate > with age range and refDate 1`] = `1956-02-15T21:16:40.120Z`; -exports[`date > 1337 > birthdate > with only refDate 1`] = `1957-07-05T09:38:29.057Z`; +exports[`date > 1337 > birthdate > with only refDate 1`] = `1957-03-31T18:18:18.869Z`; exports[`date > 1337 > birthdate > with year and refDate 1`] = `0020-05-27T14:46:44.831Z`; -exports[`date > 1337 > birthdate > with year mode and refDate 1`] = `1957-07-05T09:38:29.057Z`; +exports[`date > 1337 > birthdate > with year mode and refDate 1`] = `1957-03-31T18:18:18.869Z`; exports[`date > 1337 > birthdate > with year range and refDate 1`] = `0046-08-09T19:19:18.047Z`; diff --git a/test/modules/date.spec.ts b/test/modules/date.spec.ts index 715d714af5d..bbd8020d2f0 100644 --- a/test/modules/date.spec.ts +++ b/test/modules/date.spec.ts @@ -587,6 +587,35 @@ describe('date', () => { expect(birthdate.getUTCFullYear()).toBeLessThanOrEqual(max); }); + it('returns a random birthdate that is 18+ by default', () => { + // Generate the latest possible value => youngest + faker.seed(2855577693); + + const refDate = new Date(); + const birthdate = faker.date.birthdate({ refDate }); + expect(birthdate).toBeInstanceOf(Date); + const value = birthdate.valueOf(); + const refDateValue = refDate.valueOf(); + expect(value).toBeLessThanOrEqual(refDateValue); + const deltaDate = new Date(refDateValue - value); + expect(deltaDate.getUTCFullYear() - 1970).toBeGreaterThanOrEqual(18); + }); + + it('returns a random birthdate in one year', () => { + const min = 1990; + const max = 1990; + + const birthdate = faker.date.birthdate({ min, max, mode: 'year' }); + + // birthdate is a date object + expect(birthdate).toBeInstanceOf(Date); + expect(birthdate.toISOString()).not.toMatch(/T00:00:00.000Z/); + + // Generated date is between min and max + expect(birthdate.getUTCFullYear()).toBeGreaterThanOrEqual(min); + expect(birthdate.getUTCFullYear()).toBeLessThanOrEqual(max); + }); + it('returns a random birthdate between two ages', () => { const min = 4; const max = 5; From a747854d6b5d4db5c02ff344b8abb322c6ceac99 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 13 Nov 2023 09:20:17 +0100 Subject: [PATCH 05/98] test(docs): ensure defaults are consistent (#2177) --- scripts/apidoc/parameter-defaults.ts | 2 +- scripts/apidoc/signature.ts | 60 ++++++++------- scripts/apidoc/typedoc.ts | 43 +++++++++++ src/modules/airline/index.ts | 6 +- src/modules/commerce/index.ts | 28 ++++++- src/modules/datatype/index.ts | 6 +- src/modules/date/index.ts | 2 +- src/modules/finance/index.ts | 38 +++++----- src/modules/helpers/index.ts | 16 ++-- src/modules/internet/index.ts | 36 ++++----- src/modules/location/index.ts | 72 ++++++++++++------ src/modules/number/index.ts | 12 +-- src/modules/person/index.ts | 2 +- src/modules/random/index.ts | 6 +- src/modules/string/index.ts | 20 +++++ src/modules/system/index.ts | 2 +- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 76 +++++++++++++++++++ 17 files changed, 307 insertions(+), 120 deletions(-) diff --git a/scripts/apidoc/parameter-defaults.ts b/scripts/apidoc/parameter-defaults.ts index 34264b05b8f..c2eecdc27c9 100644 --- a/scripts/apidoc/parameter-defaults.ts +++ b/scripts/apidoc/parameter-defaults.ts @@ -58,7 +58,7 @@ function cleanParameterDefault(value?: string): string | undefined { } // Strip type casts: "'foobar' as unknown as T" => "'foobar'" - return value.replace(/ as unknown as [A-Za-z<>]+/, ''); + return value.replace(/( as unknown)? as [A-Za-z<>]+/, ''); } /** diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 43026a78aa3..08fe5896b18 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -23,8 +23,8 @@ import { extractSeeAlsos, extractSince, extractSourcePath, + extractSummaryDefault, extractThrows, - joinTagParts, toBlock, } from './typedoc'; @@ -108,8 +108,7 @@ async function analyzeParameter(parameter: ParameterReflection): Promise<{ const name = parameter.name; const declarationName = name + (isOptional(parameter) ? '?' : ''); const type = parameter.type; - const commentDefault = extractDefaultFromComment(parameter.comment); - const defaultValue = parameter.defaultValue ?? commentDefault; + const defaultValue = extractDefaultFromParameter(parameter); let signatureText = ''; if (defaultValue) { @@ -136,6 +135,7 @@ async function analyzeParameter(parameter: ParameterReflection): Promise<{ }; } +// keep in sync with assertNestedParameterDefault async function analyzeParameterOptions( name: string, parameterType?: SomeType @@ -311,39 +311,41 @@ async function signatureTypeToText( } /** - * Extracts and removed the parameter default from the comments. + * Extracts and optionally removes the parameter default from the parameter. + * + * @param parameter The parameter to extract the default from. + * @param eraseDefault Whether to erase the default text from the parameter comment. + * + * @returns The extracted default value. + */ +function extractDefaultFromParameter( + parameter: ParameterReflection, + eraseDefault = true +): string | undefined { + const commentDefault = extractDefaultFromComment( + parameter.comment, + eraseDefault + ); + return parameter.defaultValue ?? commentDefault; +} + +/** + * Extracts and optionally removes the parameter default from the comments. * * @param comment The comment to extract the default from. + * @param eraseDefault Whether to erase the default text from the comment. * * @returns The extracted default value. */ -function extractDefaultFromComment(comment?: Comment): string | undefined { +function extractDefaultFromComment( + comment?: Comment, + eraseDefault = true +): string | undefined { if (!comment) { return; } - const defaultTag = comment.getTag('@default'); - if (defaultTag) { - return extractRawDefault({ comment }); - } - - const summary = comment.summary; - const text = joinTagParts(summary).trim(); - if (!text) { - return; - } - - const result = /^(.*)[ \n]Defaults to `([^`]+)`\.(.*)$/s.exec(text); - if (!result) { - return; - } - - if (result[3].trim()) { - throw new Error(`Found description text after the default value:\n${text}`); - } - - summary.splice(-2, 2); - const lastSummaryPart = summary[summary.length - 1]; - lastSummaryPart.text = lastSummaryPart.text.replace(/[ \n]Defaults to $/, ''); - return result[2]; + const tagDefault = extractRawDefault({ comment }); + const summaryDefault = extractSummaryDefault(comment, eraseDefault); + return tagDefault || summaryDefault; } diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 0d3799df62d..12b474b0435 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -246,6 +246,49 @@ export function extractRawDefault(reflection?: CommentHolder): string { return extractRawCode('@default', reflection)[0] ?? ''; } +/** + * Extracts and optionally removes the default from the comment summary. + * + * @param comment The comment to extract the default from. + * @param eraseDefault Whether to erase the default text from the comment. + * + * @returns The extracted default value. + */ +export function extractSummaryDefault( + comment?: Comment, + eraseDefault = true +): string | undefined { + if (!comment) { + return; + } + + const summary = comment.summary; + const text = joinTagParts(summary).trim(); + if (!text) { + return; + } + + const result = /^(.*)[ \n]Defaults to `([^`]+)`\.(.*)$/s.exec(text); + if (!result) { + return; + } + + if (result[3].trim()) { + throw new Error(`Found description text after the default value:\n${text}`); + } + + if (eraseDefault) { + summary.splice(-2, 2); + const lastSummaryPart = summary[summary.length - 1]; + lastSummaryPart.text = lastSummaryPart.text.replace( + /[ \n]Defaults to $/, + '' + ); + } + + return result[2]; +} + /** * Extracts the examples from the jsdocs without the surrounding md code block. * diff --git a/src/modules/airline/index.ts b/src/modules/airline/index.ts index f0ada30c8c4..4c1ec318eeb 100644 --- a/src/modules/airline/index.ts +++ b/src/modules/airline/index.ts @@ -125,7 +125,7 @@ export class AirlineModule extends ModuleBase { * are used by airlines to identify reservations. They're also known as booking reference numbers, * locator codes, confirmation codes, or reservation codes. * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.allowNumerics Whether to allow numeric characters. Defaults to `false`. * @param options.allowVisuallySimilarCharacters Whether to allow visually similar characters such as '1' and 'I'. Defaults to `false`. * @@ -174,7 +174,7 @@ export class AirlineModule extends ModuleBase { /** * Generates a random seat. * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.aircraftType The aircraft type. Can be one of `narrowbody`, `regional`, `widebody`. Defaults to `narrowbody`. * * @example @@ -225,7 +225,7 @@ export class AirlineModule extends ModuleBase { * `${faker.airline.airline().iataCode}${faker.airline.flightNumber({ addLeadingZeros: true })}` // 'AA0798' * ``` * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.length The number or range of digits to generate. Defaults to `{ min: 1, max: 4 }`. * @param options.addLeadingZeros Whether to pad the flight number up to 4 digits with leading zeros. Defaults to `false`. * diff --git a/src/modules/commerce/index.ts b/src/modules/commerce/index.ts index 48f56568582..1be3fcb2765 100644 --- a/src/modules/commerce/index.ts +++ b/src/modules/commerce/index.ts @@ -115,7 +115,7 @@ export class CommerceModule extends ModuleBase { /** * Generates a price between min and max (inclusive). * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.min The minimum price. Defaults to `1`. * @param options.max The maximum price. Defaults to `1000`. * @param options.dec The number of decimal places. Defaults to `2`. @@ -179,7 +179,7 @@ export class CommerceModule extends ModuleBase { /** * Generates a price between min and max (inclusive). * - * @param options The minimum price or on options object. Defaults to `{}`. + * @param options The minimum price or on options object. * @param options.min The minimum price. Defaults to `1`. * @param options.max The maximum price. Defaults to `1000`. * @param options.dec The number of decimal places. Defaults to `2`. @@ -201,9 +201,29 @@ export class CommerceModule extends ModuleBase { options?: | number | { + /** + * The minimum price. + * + * @default 1 + */ min?: number; + /** + * The maximum price. + * + * @default 1000 + */ max?: number; + /** + * The number of decimal places. + * + * @default 2 + */ dec?: number; + /** + * The currency value to use. + * + * @default '' + */ symbol?: string; }, legacyMax?: number, @@ -213,7 +233,7 @@ export class CommerceModule extends ModuleBase { /** * Generates a price between min and max (inclusive). * - * @param options The minimum price or on options object. Defaults to `{}`. + * @param options The minimum price or on options object. * @param options.min The minimum price. Defaults to `1`. * @param options.max The maximum price. Defaults to `1000`. * @param options.dec The number of decimal places. Defaults to `2`. @@ -330,7 +350,7 @@ export class CommerceModule extends ModuleBase { /** * Returns a random [ISBN](https://en.wikipedia.org/wiki/ISBN) identifier. * - * @param options The variant to return or an options object. Defaults to `{}`. + * @param options The variant to return or an options object. * @param options.variant The variant to return. Can be either `10` (10-digit format) * or `13` (13-digit format). Defaults to `13`. * @param options.separator The separator to use in the format. Defaults to `'-'`. diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index a8b77a2c67a..ad0b548928f 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -15,7 +15,7 @@ export class DatatypeModule extends SimpleModuleBase { * Returns a single random number between zero and the given max value or the given range with the specified precision. * The bounds are inclusive. * - * @param options Maximum value or options object. + * @param options Maximum value or options object. Defaults to `99999`. * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `min + 99999`. * @param options.precision Precision of the generated number. Defaults to `1`. @@ -213,7 +213,7 @@ export class DatatypeModule extends SimpleModuleBase { /** * Returns a string containing UTF-16 chars between 33 and 125 (`!` to `}`). * - * @param options Length of the generated string or an options object. Defaults to `{}`. + * @param options Length of the generated string or an options object. * @param options.length Length of the generated string. Max length is `2^20`. Defaults to `10`. * * @see faker.string.sample() @@ -285,7 +285,7 @@ export class DatatypeModule extends SimpleModuleBase { * If the probability is `>= 1.0`, it will always return `true`. * The probability is limited to two decimal places. * - * @param options The optional options object or the probability (`[0.00, 1.00]`) of returning `true`. Defaults to `0.5`. + * @param options The optional options object or the probability (`[0.00, 1.00]`) of returning `true`. * @param options.probability The probability (`[0.00, 1.00]`) of returning `true`. Defaults to `0.5`. * * @example diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index d79da51fd41..a40b477247a 100644 --- a/src/modules/date/index.ts +++ b/src/modules/date/index.ts @@ -491,7 +491,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.to The late date boundary. * @param options.count The number of dates to generate. Defaults to `3`. * @param legacyTo Deprecated, use `options.to` instead. - * @param legacyCount Deprecated, use `options.count` instead. + * @param legacyCount Deprecated, use `options.count` instead. Defaults to `3`. * * @example * faker.date.betweens({ from: '2020-01-01T00:00:00.000Z', to: '2030-01-01T00:00:00.000Z' }) diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index 4e0d80ed69b..c443b6055df 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -78,7 +78,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random account number. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.length The length of the account number. Defaults to `8`. * * @example @@ -98,7 +98,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random account number. * - * @param optionsOrLength An options object or the length of the account number. Defaults to `{}`. + * @param optionsOrLength An options object or the length of the account number. * @param optionsOrLength.length The length of the account number. Defaults to `8`. * * @example @@ -123,7 +123,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random account number. * - * @param options An options object or the length of the account number. Defaults to `{}`. + * @param options An options object or the length of the account number. * @param options.length The length of the account number. Defaults to `8`. * * @example @@ -241,7 +241,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random masked number. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.length The length of the unmasked number. Defaults to `4`. * @param options.parens Whether to use surrounding parenthesis. Defaults to `true`. * @param options.ellipsis Whether to prefix the numbers with an ellipsis. Defaults to `true`. @@ -262,7 +262,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random masked number. * - * @param optionsOrLength An options object or the length of the unmask number. Defaults to `{}`. + * @param optionsOrLength An options object or the length of the unmask number. * @param optionsOrLength.length The length of the unmasked number. Defaults to `4`. * @param optionsOrLength.parens Whether to use surrounding parenthesis. Defaults to `true`. * @param optionsOrLength.ellipsis Whether to prefix the numbers with an ellipsis. Defaults to `true`. @@ -303,7 +303,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random masked number. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.length The length of the unmasked number. Defaults to `4`. * @param options.parens Whether to use surrounding parenthesis. Defaults to `true`. * @param options.ellipsis Whether to prefix the numbers with an ellipsis. Defaults to `true`. @@ -388,7 +388,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random amount between the given bounds (inclusive). * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.min The lower bound for the amount. Defaults to `0`. * @param options.max The upper bound for the amount. Defaults to `1000`. * @param options.dec The number of decimal places for the amount. Defaults to `2`. @@ -439,7 +439,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random amount between the given bounds (inclusive). * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.min The lower bound for the amount. Defaults to `0`. * @param options.max The upper bound for the amount. Defaults to `1000`. * @param options.dec The number of decimal places for the amount. Defaults to `2`. @@ -448,7 +448,7 @@ export class FinanceModule extends ModuleBase { * @param legacyMax The upper bound for the amount. Defaults to `1000`. * @param legacyDec The number of decimal places for the amount. Defaults to `2`. * @param legacySymbol The symbol used to prefix the amount. Defaults to `''`. - * @param legacyAutoFormat If true this method will use `Number.toLocaleString()`. Otherwise it will use `Number.toFixed()`. + * @param legacyAutoFormat If true this method will use `Number.toLocaleString()`. Otherwise it will use `Number.toFixed()`. Defaults to `false`. * * @example * faker.finance.amount() // '617.87' @@ -506,7 +506,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random amount between the given bounds (inclusive). * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.min The lower bound for the amount. Defaults to `0`. * @param options.max The upper bound for the amount. Defaults to `1000`. * @param options.dec The number of decimal places for the amount. Defaults to `2`. @@ -515,7 +515,7 @@ export class FinanceModule extends ModuleBase { * @param legacyMax The upper bound for the amount. Defaults to `1000`. * @param legacyDec The number of decimal places for the amount. Defaults to `2`. * @param legacySymbol The symbol used to prefix the amount. Defaults to `''`. - * @param legacyAutoFormat If true this method will use `Number.toLocaleString()`. Otherwise it will use `Number.toFixed()`. + * @param legacyAutoFormat If true this method will use `Number.toLocaleString()`. Otherwise it will use `Number.toFixed()`. Defaults to `false`. * * @example * faker.finance.amount() // '617.87' @@ -750,7 +750,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random credit card number. * - * @param options An options object, the issuer or a custom format. Defaults to `{}`. + * @param options An options object, the issuer or a custom format. * @param options.issuer The name of the issuer (case-insensitive) or the format used to generate one. * * @example @@ -776,7 +776,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random credit card number. * - * @param options An options object, the issuer or a custom format. Defaults to `{}`. + * @param options An options object, the issuer or a custom format. * @param options.issuer The name of the issuer (case-insensitive) or the format used to generate one. * * @example @@ -867,7 +867,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random PIN number. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.length The length of the PIN to generate. Defaults to `4`. * * @throws Will throw an error if length is less than 1. @@ -889,7 +889,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random PIN number. * - * @param options An options object or the length of the PIN. Defaults to `{}`. + * @param options An options object or the length of the PIN. * @param options.length The length of the PIN to generate. Defaults to `4`. * * @throws Will throw an error if length is less than 1. @@ -916,7 +916,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random PIN number. * - * @param options An options object or the length of the PIN. Defaults to `{}`. + * @param options An options object or the length of the PIN. * @param options.length The length of the PIN to generate. Defaults to `4`. * * @throws Will throw an error if length is less than 1. @@ -990,7 +990,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random iban. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.formatted Return a formatted version of the generated IBAN. Defaults to `false`. * @param options.countryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. * @@ -1019,7 +1019,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random iban. * - * @param options An options object or whether the return value should be formatted. Defaults to `{}`. + * @param options An options object or whether the return value should be formatted. * @param options.formatted Return a formatted version of the generated IBAN. Defaults to `false`. * @param options.countryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. * @param legacyCountryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. @@ -1056,7 +1056,7 @@ export class FinanceModule extends ModuleBase { /** * Generates a random iban. * - * @param options An options object or whether the return value should be formatted. Defaults to `{}`. + * @param options An options object or whether the return value should be formatted. * @param options.formatted Return a formatted version of the generated IBAN. Defaults to `false`. * @param options.countryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. * @param legacyCountryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index f7d9538bce1..59eeadba59f 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -175,7 +175,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * For that all spaces (` `) are replaced by hyphens (`-`) * and most non word characters except for dots and hyphens will be removed. * - * @param string The input to slugify. + * @param string The input to slugify. Defaults to `''`. * * @example * faker.helpers.slugify() // '' @@ -195,7 +195,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * Parses the given string symbol by symbol and replaces the placeholders with digits (`0` - `9`). * `!` will be replaced by digits >=2 (`2` - `9`). * - * @param string The template string to parse. + * @param string The template string to parse. Defaults to `''`. * @param symbol The symbol to replace with digits. Defaults to `'#'`. * * @example @@ -228,7 +228,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * - `?` will be replaced with an upper letter ('A' - 'Z') * - and `*` will be replaced with either a digit or letter. * - * @param string The template string to parse. + * @param string The template string to parse. Defaults to `''`. * * @example * faker.helpers.replaceSymbols() // '' @@ -293,8 +293,8 @@ export class SimpleHelpersModule extends SimpleModuleBase { * This method supports both range patterns `[4-9]` as well as the patterns used by `replaceSymbolWithNumber()`. * `L` will be replaced with the appropriate Luhn checksum. * - * @param string The credit card format pattern. Defaults to `6453-####-####-####-###L`. - * @param symbol The symbol to replace with a digit. + * @param string The credit card format pattern. Defaults to `'6453-####-####-####-###L'`. + * @param symbol The symbol to replace with a digit. Defaults to `'#'`. * * @example * faker.helpers.replaceCreditCardSymbols() // '6453-4876-8626-8995-3771' @@ -323,7 +323,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * - `.{min,max}` => Repeat the character `min` to `max` times. * - `[min-max]` => Generate a number between min and max (inclusive). * - * @param string The template string to parse. + * @param string The template string to parse. Defaults to `''`. * * @see faker.helpers.fromRegExp() * @@ -769,7 +769,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * @template TResult The type of result of the given callback. * * @param callback The callback to that will be invoked if the probability check was successful. - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.probability The probability (`[0.00, 1.00]`) of the callback being invoked. Defaults to `0.5`. * * @example @@ -1092,7 +1092,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * @template TMethod The type of the method to execute. * * @param method The method used to generate the values. - * @param args The arguments used to call the method. + * @param args The arguments used to call the method. Defaults to `[]`. * @param options The optional options used to configure this method. * @param options.startTime This parameter does nothing. * @param options.maxTime The time in milliseconds this method may take before throwing an error. Defaults to `50`. diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 4f58615f71b..5eb9b4bc279 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -56,7 +56,7 @@ export class InternetModule extends ModuleBase { /** * Generates an email address using the given person's name as base. * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param options.provider The mail provider domain to use. If not specified, a random free mail provider will be chosen. @@ -101,7 +101,7 @@ export class InternetModule extends ModuleBase { * @param firstName The optional first name to use. If not specified, a random one will be chosen. * @param lastName The optional last name to use. If not specified, a random one will be chosen. * @param provider The mail provider domain to use. If not specified, a random free mail provider will be chosen. - * @param options The options to use. Defaults to `{ allowSpecialCharacters: false }`. + * @param options The options to use. * @param options.allowSpecialCharacters Whether special characters such as ``.!#$%&'*+-/=?^_`{|}~`` should be included * in the email address. Defaults to `false`. * @@ -131,7 +131,7 @@ export class InternetModule extends ModuleBase { /** * Generates an email address using the given person's name as base. * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param options.provider The mail provider domain to use. If not specified, a random free mail provider will be chosen. @@ -139,7 +139,7 @@ export class InternetModule extends ModuleBase { * in the email address. Defaults to `false`. * @param legacyLastName The optional last name to use. If not specified, a random one will be chosen. * @param legacyProvider The mail provider domain to use. If not specified, a random free mail provider will be chosen. - * @param legacyOptions The options to use. Defaults to `{ allowSpecialCharacters: false }`. + * @param legacyOptions The options to use. * @param legacyOptions.allowSpecialCharacters Whether special characters such as ``.!#$%&'*+-/=?^_`{|}~`` should be included * in the email address. Defaults to `false`. * @@ -287,7 +287,7 @@ export class InternetModule extends ModuleBase { /** * Generates an email address using an example mail provider using the given person's name as base. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param options.allowSpecialCharacters Whether special characters such as ``.!#$%&'*+-/=?^_`{|}~`` should be included @@ -325,7 +325,7 @@ export class InternetModule extends ModuleBase { * * @param firstName The optional first name to use. If not specified, a random one will be chosen. * @param lastName The optional last name to use. If not specified, a random one will be chosen. - * @param options The options to use. Defaults to `{ allowSpecialCharacters: false }`. + * @param options The options to use. * @param options.allowSpecialCharacters Whether special characters such as ``.!#$%&'*+-/=?^_`{|}~`` should be included * in the email address. Defaults to `false`. * @@ -353,13 +353,13 @@ export class InternetModule extends ModuleBase { /** * Generates an email address using an example mail provider using the given person's name as base. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param options.allowSpecialCharacters Whether special characters such as ``.!#$%&'*+-/=?^_`{|}~`` should be included * in the email address. Defaults to `false`. * @param legacyLastName The optional last name to use. If not specified, a random one will be chosen. - * @param legacyOptions The options to use. Defaults to `{}`. + * @param legacyOptions The options to use. * @param legacyOptions.allowSpecialCharacters Whether special characters such as ``.!#$%&'*+-/=?^_`{|}~`` should be included * in the email address. Defaults to `false`. * @@ -477,7 +477,7 @@ export class InternetModule extends ModuleBase { * This will always return a plain ASCII string. * Some basic stripping of accents and transliteration of characters will be done. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @@ -537,7 +537,7 @@ export class InternetModule extends ModuleBase { * This will always return a plain ASCII string. * Some basic stripping of accents and transliteration of characters will be done. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param legacyLastName The optional last name to use. If not specified, a random one will be chosen. @@ -661,7 +661,7 @@ export class InternetModule extends ModuleBase { * If the input names include Unicode characters, the resulting display name will contain Unicode characters. * It will not contain spaces. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @@ -721,7 +721,7 @@ export class InternetModule extends ModuleBase { * If the input names include Unicode characters, the resulting display name will contain Unicode characters. * It will not contain spaces. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param legacyLastName The optional last name to use. If not specified, a random one will be chosen. @@ -1043,7 +1043,7 @@ export class InternetModule extends ModuleBase { * Based on * http://stackoverflow.com/questions/43044/algorithm-to-randomly-generate-an-aesthetically-pleasing-color-palette * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.redBase The optional base red in range between `0` and `255`. Defaults to `0`. * @param options.greenBase The optional base green in range between `0` and `255`. Defaults to `0`. * @param options.blueBase The optional base blue in range between `0` and `255`. Defaults to `0`. @@ -1099,7 +1099,7 @@ export class InternetModule extends ModuleBase { * Based on * http://stackoverflow.com/questions/43044/algorithm-to-randomly-generate-an-aesthetically-pleasing-color-palette * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.redBase The optional base red in range between `0` and `255`. Defaults to `0`. * @param options.greenBase The optional base green in range between `0` and `255`. Defaults to `0`. * @param options.blueBase The optional base blue in range between `0` and `255`. Defaults to `0`. @@ -1202,7 +1202,7 @@ export class InternetModule extends ModuleBase { /** * Generates a random mac address. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param separator The optional separator to use. Can be either `':'`, `'-'` or `''`. Defaults to `':'`. * * @example @@ -1232,7 +1232,7 @@ export class InternetModule extends ModuleBase { /** * Generates a random mac address. * - * @param options The optional separator or an options object. Defaults to `{}`. + * @param options The optional separator or an options object. * @param separator The optional separator to use. Can be either `':'`, `'-'` or `''`. Defaults to `':'`. * * @example @@ -1292,7 +1292,7 @@ export class InternetModule extends ModuleBase { * Generates a random password-like string. Do not use this method for generating actual passwords for users. * Since the source of the randomness is not cryptographically secure, neither is this generator. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.length The length of the password to generate. Defaults to `15`. * @param options.memorable Whether the generated password should be memorable. Defaults to `false`. * @param options.pattern The pattern that all chars should match. @@ -1364,7 +1364,7 @@ export class InternetModule extends ModuleBase { /** * Generates a random password. * - * @param options The length of the password or an options object. Defaults to `{}`. + * @param options The length of the password or an options object. * @param options.length The length of the password to generate. Defaults to `15`. * @param options.memorable Whether the generated password should be memorable. Defaults to `false`. * @param options.pattern The pattern that all chars should match. diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index baf51c510fc..1c20d713456 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -18,7 +18,7 @@ export class LocationModule extends ModuleBase { * Generates random zip code from specified format. If format is not specified, * the locale's zip format is used. * - * @param options The format used to generate the zip code or an options object. Defaults to `{}`. + * @param options The format used to generate the zip code or an options object. * @param options.state The state to generate the zip code for. * If the current locale does not have a corresponding `postcode_by_state` definition, an error is thrown. * @param options.format The optional format used to generate the zip code. @@ -85,7 +85,7 @@ export class LocationModule extends ModuleBase { * * If the current locale does not have a corresponding `postcode_by_state` definition, an error is thrown. * - * @param options A state abbreviation or an options object. Defaults to `{}`. + * @param options A state abbreviation or an options object. * @param options.state The abbreviation of the state to generate the zip code for. * If not specified, a random zip code is generated according to the locale's zip format. * @@ -227,7 +227,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random localized street address. * - * @param options Whether to use a full address or an options object. Defaults to `{}`. + * @param options Whether to use a full address or an options object. * @param options.useFullAddress When true this will generate a full address. * Otherwise it will just generate a street address. * @@ -314,7 +314,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) country code. * - * @param options The code to return or an options object. Defaults to `{}`. + * @param options The code to return or an options object. * @param options.variant The variant to return. Can be one of: * * - `'alpha-2'` (two-letter code) @@ -373,7 +373,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random localized state, or other equivalent first-level administrative entity for the locale's country such as a province or region. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.abbreviated If true this will return abbreviated first-level administrative entity names. * Otherwise this will return the long name. Defaults to `false`. * @@ -427,7 +427,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random latitude. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.max The upper bound for the latitude to generate. Defaults to `90`. * @param options.min The lower bound for the latitude to generate. Defaults to `-90`. * @param options.precision The number of decimal points of precision for the latitude. Defaults to `4`. @@ -479,7 +479,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random latitude. * - * @param options The upper bound for the latitude or an options object. Defaults to `{}`. + * @param options The upper bound for the latitude or an options object. * @param options.max The upper bound for the latitude to generate. Defaults to `90`. * @param options.min The lower bound for the latitude to generate. Defaults to `-90`. * @param options.precision The number of decimal points of precision for the latitude. Defaults to `4`. @@ -526,7 +526,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random latitude. * - * @param options The upper bound for the latitude or an options object. Defaults to `{}`. + * @param options The upper bound for the latitude or an options object. * @param options.max The upper bound for the latitude to generate. Defaults to `90`. * @param options.min The lower bound for the latitude to generate. Defaults to `-90`. * @param options.precision The number of decimal points of precision for the latitude. Defaults to `4`. @@ -582,7 +582,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random longitude. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.max The upper bound for the longitude to generate. Defaults to `180`. * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. @@ -618,7 +618,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random longitude. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.max The upper bound for the longitude to generate. Defaults to `180`. * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. @@ -635,7 +635,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random longitude. * - * @param options The upper bound for the longitude or an options object. Defaults to `{}`. + * @param options The upper bound for the longitude or an options object. * @param options.max The upper bound for the longitude to generate. Defaults to `180`. * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. @@ -679,7 +679,7 @@ export class LocationModule extends ModuleBase { /** * Generates a random longitude. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.max The upper bound for the longitude to generate. Defaults to `180`. * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. @@ -735,7 +735,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random direction (cardinal and ordinal; northwest, east, etc). * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.abbreviated If true this will return abbreviated directions (NW, E, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -773,7 +773,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random direction (cardinal and ordinal; northwest, east, etc). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (NW, E, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -799,7 +799,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random direction (cardinal and ordinal; northwest, east, etc). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (NW, E, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -848,7 +848,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random cardinal direction (north, east, south, west). * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.abbreviated If true this will return abbreviated directions (N, E, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -912,7 +912,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random cardinal direction (north, east, south, west). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (N, E, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -960,7 +960,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random ordinal direction (northwest, southeast, etc). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (NW, SE, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -982,7 +982,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random ordinal direction (northwest, southeast, etc). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (NW, SE, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -999,7 +999,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random ordinal direction (northwest, southeast, etc). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (NW, SE, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -1025,7 +1025,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random ordinal direction (northwest, southeast, etc). * - * @param options Whether to use abbreviated or an options object. Defaults to `{}`. + * @param options Whether to use abbreviated or an options object. * @param options.abbreviated If true this will return abbreviated directions (NW, SE, etc). * Otherwise this will return the long name. Defaults to `false`. * @@ -1087,8 +1087,21 @@ export class LocationModule extends ModuleBase { * @since 8.0.0 */ nearbyGPSCoordinate(options?: { + /** + * The original coordinate to get a new coordinate close to. + */ origin?: [latitude: number, longitude: number]; + /** + * The maximum distance from the given coordinate to the new coordinate. + * + * @default 10 + */ radius?: number; + /** + * If `true` assume the radius to be in kilometers. If `false` for miles. + * + * @default false + */ isMetric?: boolean; }): [latitude: number, longitude: number]; /** @@ -1121,8 +1134,8 @@ export class LocationModule extends ModuleBase { * If no coordinate is given, a random one will be chosen. * @param options.radius The maximum distance from the given coordinate to the new coordinate. Defaults to `10`. * @param options.isMetric If `true` assume the radius to be in kilometers. If `false` for miles. Defaults to `false`. - * @param legacyRadius Deprecated, use `options.radius` instead. - * @param legacyIsMetric Deprecated, use `options.isMetric` instead. + * @param legacyRadius Deprecated, use `options.radius` instead. Defaults to `10`. + * @param legacyIsMetric Deprecated, use `options.isMetric` instead. Defaults to `false`. * * @example * faker.location.nearbyGPSCoordinate() // [ 33.8475, -170.5953 ] @@ -1135,8 +1148,21 @@ export class LocationModule extends ModuleBase { options?: | [latitude: number, longitude: number] | { + /** + * The original coordinate to get a new coordinate close to. + */ origin?: [latitude: number, longitude: number]; + /** + * The maximum distance from the given coordinate to the new coordinate. + * + * @default 10 + */ radius?: number; + /** + * If `true` assume the radius to be in kilometers. If `false` for miles. + * + * @default false + */ isMetric?: boolean; }, legacyRadius?: number, diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index 85272affcc1..de32af254ef 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -20,7 +20,7 @@ export class NumberModule extends SimpleModuleBase { * Returns a single random integer between zero and the given max value or the given range. * The bounds are inclusive. * - * @param options Maximum value or options object. Defaults to `{}`. + * @param options Maximum value or options object. * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `Number.MAX_SAFE_INTEGER`. * @@ -87,7 +87,7 @@ export class NumberModule extends SimpleModuleBase { * Returns a single random floating-point number for a given precision or range and precision. * The lower bound is inclusive, the upper bound is exclusive, unless precision is passed. * - * @param options Upper bound or options object. Defaults to `{}`. + * @param options Upper bound or options object. * @param options.min Lower bound for generated number. Defaults to `0.0`. * @param options.max Upper bound for generated number. Defaults to `1.0`. * @param options.precision Precision of the generated number, for example `0.01` will round to 2 decimal points. @@ -164,7 +164,7 @@ export class NumberModule extends SimpleModuleBase { * Returns a [binary](https://en.wikipedia.org/wiki/Binary_number) number. * The bounds are inclusive. * - * @param options Maximum value or options object. Defaults to `{}`. + * @param options Maximum value or options object. * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `1`. * @@ -213,7 +213,7 @@ export class NumberModule extends SimpleModuleBase { * Returns an [octal](https://en.wikipedia.org/wiki/Octal) number. * The bounds are inclusive. * - * @param options Maximum value or options object. Defaults to `{}`. + * @param options Maximum value or options object. * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `7`. * @@ -262,7 +262,7 @@ export class NumberModule extends SimpleModuleBase { * Returns a lowercase [hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) number. * The bounds are inclusive. * - * @param options Maximum value or options object. Defaults to `{}`. + * @param options Maximum value or options object. * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `15`. * @@ -309,7 +309,7 @@ export class NumberModule extends SimpleModuleBase { * Returns a [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#bigint_type) number. * The bounds are inclusive. * - * @param options Maximum value or options object. Defaults to `{}`. + * @param options Maximum value or options object. * @param options.min Lower bound for generated bigint. Defaults to `0n`. * @param options.max Upper bound for generated bigint. Defaults to `min + 999999999999999n`. * diff --git a/src/modules/person/index.ts b/src/modules/person/index.ts index f5f4778c048..e0f4b6b0c67 100644 --- a/src/modules/person/index.ts +++ b/src/modules/person/index.ts @@ -174,7 +174,7 @@ export class PersonModule extends ModuleBase { /** * Generates a random full name. * - * @param options An options object. Defaults to `{}`. + * @param options An options object. * @param options.firstName The optional first name to use. If not specified a random one will be chosen. * @param options.lastName The optional last name to use. If not specified a random one will be chosen. * @param options.sex The optional sex to use. Can be either `'female'` or `'male'`. diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 98d28bc5a4f..997583c1165 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -215,7 +215,7 @@ export class RandomModule extends ModuleBase { /** * Generating a string consisting of letters in the English alphabet. * - * @param options Either the number of characters or an options instance. Defaults to `{ count: 1, casing: 'mixed', bannedChars: [] }`. + * @param options Either the number of characters or an options instance. * @param options.count The number of characters to generate. Defaults to `1`. * @param options.casing The casing of the characters. Defaults to `'mixed'`. * @param options.bannedChars An array with characters to exclude. Defaults to `[]`. @@ -276,7 +276,7 @@ export class RandomModule extends ModuleBase { * Generating a string consisting of alpha characters and digits. * * @param count The number of characters and digits to generate. Defaults to `1`. - * @param options The options to use. Defaults to `{ bannedChars: [] }`. + * @param options The options to use. * @param options.casing The casing of the characters. Defaults to `'lower'`. * @param options.bannedChars An array of characters and digits which should be banned in the generated string. Defaults to `[]`. * @@ -325,7 +325,7 @@ export class RandomModule extends ModuleBase { * Generates a given length string of digits. * * @param length The number of digits to generate. Defaults to `1`. - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.allowLeadingZeros Whether leading zeros are allowed or not. Defaults to `true`. * @param options.bannedDigits An array of digits which should be banned in the generated string. Defaults to `[]`. * diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index 923c5286f79..e841e29db1b 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -351,6 +351,11 @@ export class StringModule extends SimpleModuleBase { */ binary( options: { + /** + * The number or range of characters to generate after the prefix. + * + * @default 1 + */ length?: | number | { @@ -363,6 +368,11 @@ export class StringModule extends SimpleModuleBase { */ max: number; }; + /** + * Prefix for the generated number. + * + * @default '0b' + */ prefix?: string; } = {} ): string { @@ -393,6 +403,11 @@ export class StringModule extends SimpleModuleBase { */ octal( options: { + /** + * The number or range of characters to generate after the prefix. + * + * @default 1 + */ length?: | number | { @@ -405,6 +420,11 @@ export class StringModule extends SimpleModuleBase { */ max: number; }; + /** + * Prefix for the generated number. + * + * @default '0o' + */ prefix?: string; } = {} ): string { diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts index fa38d6ce467..4c6e010ffca 100644 --- a/src/modules/system/index.ts +++ b/src/modules/system/index.ts @@ -226,7 +226,7 @@ export class SystemModule extends ModuleBase { /** * Returns a random [network interface](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-understanding_the_predictable_network_interface_device_names). * - * @param options The options to use. Defaults to `{}`. + * @param options The options to use. * @param options.interfaceType The interface type. Can be one of `en`, `wl`, `ww`. * @param options.interfaceSchema The interface schema. Can be one of `index`, `slot`, `mac`, `pci`. * diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 47eca926d97..7e0203350cb 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -1,5 +1,6 @@ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; +import type { ReflectionType, SomeType } from 'typedoc'; import validator from 'validator'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; import { initMarkdownRenderer } from '../../../scripts/apidoc/markdown'; @@ -9,8 +10,10 @@ import { extractDescription, extractJoinedRawExamples, extractModuleFieldName, + extractRawDefault, extractSeeAlsos, extractSince, + extractSummaryDefault, extractTagContent, MISSING_DESCRIPTION, } from '../../../scripts/apidoc/typedoc'; @@ -89,6 +92,57 @@ describe('verify JSDoc tags', () => { } } + // keep in sync with analyzeParameterOptions + function assertNestedParameterDefault( + name: string, + parameterType?: SomeType + ): void { + if (!parameterType) { + return; + } + + switch (parameterType.type) { + case 'array': + return assertNestedParameterDefault( + `${name}[]`, + parameterType.elementType + ); + + case 'union': + for (const type of parameterType.types) { + assertNestedParameterDefault(name, type); + } + + return; + + case 'reflection': { + for (const property of parameterType.declaration.children ?? []) { + const reflection = property.comment + ? property + : (property.type as ReflectionType)?.declaration?.signatures?.[0]; + const comment = reflection?.comment; + const tagDefault = extractRawDefault({ comment }) || undefined; + const summaryDefault = extractSummaryDefault(comment, false); + + if (summaryDefault) { + expect( + tagDefault, + `Expect jsdoc summary default and @default for ${name}.${property.name} to be the same` + ).toBe(summaryDefault); + } + } + + return; + } + + case 'typeOperator': + return assertNestedParameterDefault(name, parameterType.target); + + default: + return; + } + } + describe.each(Object.entries(modules))( '%s', (moduleName, [module, methodsByName]) => { @@ -172,6 +226,28 @@ describe('verify JSDoc tags', () => { }); it('verify @param tags', async () => { + // This must run before analyzeSignature + for (const param of signature.parameters ?? []) { + const type = param.type; + const paramDefault = param.defaultValue; + const commentDefault = extractSummaryDefault( + param.comment, + false + ); + if (paramDefault) { + if (/^{.*}$/.test(paramDefault)) { + expect(commentDefault).toBeUndefined(); + } else { + expect( + commentDefault, + `Expect '${param.name}'s js implementation default to be the same as the jsdoc summary default.` + ).toBe(paramDefault); + } + } + + assertNestedParameterDefault(param.name, type); + } + for (const param of ( await analyzeSignature(signature, '', methodName) ).parameters) { From 5364ca232741b40c164ed12074efa709f95f186b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:04:42 +0100 Subject: [PATCH 06/98] chore(deps): update devdependencies (#2538) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 20 ++-- pnpm-lock.yaml | 275 +++++++++++++++++++++++++++---------------------- 2 files changed, 162 insertions(+), 133 deletions(-) diff --git a/package.json b/package.json index 571c679fbe0..fbf3add150a 100644 --- a/package.json +++ b/package.json @@ -89,32 +89,32 @@ "devDependencies": { "@actions/github": "~6.0.0", "@algolia/client-search": "~4.19.1", - "@types/markdown-it": "~13.0.5", - "@types/node": "~20.8.10", - "@types/sanitize-html": "~2.9.3", - "@types/semver": "~7.5.4", - "@types/validator": "~13.11.5", + "@types/markdown-it": "~13.0.6", + "@types/node": "~20.9.0", + "@types/sanitize-html": "~2.9.4", + "@types/semver": "~7.5.5", + "@types/validator": "~13.11.6", "@typescript-eslint/eslint-plugin": "~6.9.1", "@typescript-eslint/parser": "~6.9.1", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", - "@vueuse/core": "~10.5.0", + "@vueuse/core": "~10.6.0", "conventional-changelog-cli": "~4.1.0", - "cypress": "~13.4.0", + "cypress": "~13.5.0", "esbuild": "~0.19.5", "eslint": "~8.53.0", "eslint-config-prettier": "~9.0.0", "eslint-define-config": "~1.24.1", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", - "eslint-plugin-jsdoc": "~46.8.2", + "eslint-plugin-jsdoc": "~46.9.0", "eslint-plugin-prettier": "~5.0.1", "eslint-plugin-unicorn": "~49.0.0", "eslint-plugin-vitest": "~0.3.9", "glob": "~10.3.10", "npm-run-all": "~4.1.5", "prettier": "3.0.3", - "prettier-plugin-organize-imports": "~3.2.3", + "prettier-plugin-organize-imports": "~3.2.4", "rimraf": "~5.0.5", "sanitize-html": "~2.11.0", "semver": "~7.5.4", @@ -126,7 +126,7 @@ "vite": "~4.5.0", "vitepress": "1.0.0-beta.7", "vitest": "~0.34.6", - "vue": "~3.3.7" + "vue": "~3.3.8" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 89c089699a1..dc301766d36 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,20 +8,20 @@ devDependencies: specifier: ~4.19.1 version: 4.19.1 '@types/markdown-it': - specifier: ~13.0.5 - version: 13.0.5 + specifier: ~13.0.6 + version: 13.0.6 '@types/node': - specifier: ~20.8.10 - version: 20.8.10 + specifier: ~20.9.0 + version: 20.9.0 '@types/sanitize-html': - specifier: ~2.9.3 - version: 2.9.3 + specifier: ~2.9.4 + version: 2.9.4 '@types/semver': - specifier: ~7.5.4 - version: 7.5.4 + specifier: ~7.5.5 + version: 7.5.5 '@types/validator': - specifier: ~13.11.5 - version: 13.11.5 + specifier: ~13.11.6 + version: 13.11.6 '@typescript-eslint/eslint-plugin': specifier: ~6.9.1 version: 6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.53.0)(typescript@4.9.5) @@ -35,14 +35,14 @@ devDependencies: specifier: ~0.34.7 version: 0.34.7(vitest@0.34.6) '@vueuse/core': - specifier: ~10.5.0 - version: 10.5.0(vue@3.3.7) + specifier: ~10.6.0 + version: 10.6.0(vue@3.3.8) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: - specifier: ~13.4.0 - version: 13.4.0 + specifier: ~13.5.0 + version: 13.5.0 esbuild: specifier: ~0.19.5 version: 0.19.5 @@ -62,8 +62,8 @@ devDependencies: specifier: ~2.0.0 version: 2.0.0(eslint@8.53.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~46.8.2 - version: 46.8.2(eslint@8.53.0) + specifier: ~46.9.0 + version: 46.9.0(eslint@8.53.0) eslint-plugin-prettier: specifier: ~5.0.1 version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.0.3) @@ -83,8 +83,8 @@ devDependencies: specifier: 3.0.3 version: 3.0.3 prettier-plugin-organize-imports: - specifier: ~3.2.3 - version: 3.2.3(prettier@3.0.3)(typescript@4.9.5) + specifier: ~3.2.4 + version: 3.2.4(prettier@3.0.3)(typescript@4.9.5) rimraf: specifier: ~5.0.5 version: 5.0.5 @@ -111,16 +111,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.0 - version: 4.5.0(@types/node@20.8.10) + version: 4.5.0(@types/node@20.9.0) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.8.10)(search-insights@2.9.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.9.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.3.7 - version: 3.3.7(typescript@4.9.5) + specifier: ~3.3.8 + version: 3.3.8(typescript@4.9.5) packages: @@ -453,11 +453,11 @@ packages: - '@algolia/client-search' dev: true - /@es-joy/jsdoccomment@0.40.1: - resolution: {integrity: sha512-YORCdZSusAlBrFpZ77pJjc5r1bQs5caPWtAu+WWmiSo+8XaUzseapVrfAtiRFbQWnrBxxLLEwF6f6ZG/UgCQCg==} + /@es-joy/jsdoccomment@0.41.0: + resolution: {integrity: sha512-aKUhyn1QI5Ksbqcr3fFJj16p99QdjUxXAEuFst1Z47DRyoiMwivIH9MV/ARcJOCXVjPfjITciej8ZD2O/6qUmw==} engines: {node: '>=16'} dependencies: - comment-parser: 1.4.0 + comment-parser: 1.4.1 esquery: 1.5.0 jsdoc-type-pratt-parser: 4.0.0 dev: true @@ -1140,8 +1140,8 @@ packages: resolution: {integrity: sha512-pTjcqY9E4nOI55Wgpz7eiI8+LzdYnw3qxXCfHyBDdPbYvbyLgWLJGh8EdPvqawwMK1Uo1794AUkkR38Fr0g+2g==} dev: true - /@types/markdown-it@13.0.5: - resolution: {integrity: sha512-QhJP7hkq3FCrFNx0szMNCT/79CXfcEgUIA3jc5GBfeXqoKsk3R8JZm2wRXJ2DiyjbPE4VMFOSDemLFcUTZmHEQ==} + /@types/markdown-it@13.0.6: + resolution: {integrity: sha512-0VqpvusJn1/lwRegCxcHVdmLfF+wIsprsKMC9xW8UPcTxhFcQtoN/fBU1zMe8pH7D/RuueMh2CaBaNv+GrLqTw==} dependencies: '@types/linkify-it': 3.0.3 '@types/mdurl': 1.0.3 @@ -1159,8 +1159,8 @@ packages: resolution: {integrity: sha512-4slmbtwV59ZxitY4ixUZdy1uRLf9eSIvBWPQxNjhHYWEtn0FryfKpyS2cvADYXTayWdKEIsJengncrVvkI4I6A==} dev: true - /@types/node@20.8.10: - resolution: {integrity: sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==} + /@types/node@20.9.0: + resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} dependencies: undici-types: 5.26.5 dev: true @@ -1169,14 +1169,14 @@ packages: resolution: {integrity: sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==} dev: true - /@types/sanitize-html@2.9.3: - resolution: {integrity: sha512-1rsSdEJLV7utAG+Fms2uP+nSmmYmOhUUSSZvUz4wF2wlA0M5/A/gVgnpWZ7EKaPWsrrxWiSuNJqSBW8dh2isBA==} + /@types/sanitize-html@2.9.4: + resolution: {integrity: sha512-Ym4hjmAFxF/eux7nW2yDPAj2o9RYh0vP/9V5ECoHtgJ/O9nPGslUd20CMn6WatRMlFVfjMTg3lMcWq8YyO6QnA==} dependencies: htmlparser2: 8.0.2 dev: true - /@types/semver@7.5.4: - resolution: {integrity: sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==} + /@types/semver@7.5.5: + resolution: {integrity: sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==} dev: true /@types/sinonjs__fake-timers@8.1.1: @@ -1187,19 +1187,23 @@ packages: resolution: {integrity: sha512-jA2llq2zNkg8HrALI7DtWzhALcVH0l7i89yhY3iBdOz6cBPeACoFq+fkQrjHA39t1hnSFOboZ7A/AY5MMZSlag==} dev: true - /@types/validator@13.11.5: - resolution: {integrity: sha512-xW4qsT4UIYILu+7ZrBnfQdBYniZrMLYYK3wN9M/NdeIHgBN5pZI2/8Q7UfdWIcr5RLJv/OGENsx91JIpUUoC7Q==} + /@types/validator@13.11.6: + resolution: {integrity: sha512-HUgHujPhKuNzgNXBRZKYexwoG+gHKU+tnfPqjWXFghZAnn73JElicMkuSKJyLGr9JgyA8IgK7fj88IyA9rwYeQ==} dev: true /@types/web-bluetooth@0.0.18: resolution: {integrity: sha512-v/ZHEj9xh82usl8LMR3GarzFY1IrbXJw5L4QfQhokjRV91q+SelFqxQWSep1ucXEZ22+dSTwLFkXeur25sPIbw==} dev: true + /@types/web-bluetooth@0.0.20: + resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} + dev: true + /@types/yauzl@2.10.1: resolution: {integrity: sha512-CHzgNU3qYBnp/O4S3yv2tXPlvMTq0YWSTVg2/JYLqWZGHwwgJGAwd00poay/11asPq8wLFwHzubyInqHIFmmiw==} requiresBuild: true dependencies: - '@types/node': 20.8.10 + '@types/node': 20.9.0 dev: true optional: true @@ -1349,7 +1353,7 @@ packages: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) '@types/json-schema': 7.0.13 - '@types/semver': 7.5.4 + '@types/semver': 7.5.5 '@typescript-eslint/scope-manager': 6.7.5 '@typescript-eslint/types': 6.7.5 '@typescript-eslint/typescript-estree': 6.7.5(typescript@4.9.5) @@ -1368,7 +1372,7 @@ packages: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) '@types/json-schema': 7.0.13 - '@types/semver': 7.5.4 + '@types/semver': 7.5.5 '@typescript-eslint/scope-manager': 6.9.1 '@typescript-eslint/types': 6.9.1 '@typescript-eslint/typescript-estree': 6.9.1(typescript@4.9.5) @@ -1399,15 +1403,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.4.0(vite@4.5.0)(vue@3.3.7): + /@vitejs/plugin-vue@4.4.0(vite@4.5.0)(vue@3.3.8): resolution: {integrity: sha512-xdguqb+VUwiRpSg+nsc2HtbAUSGak25DXYvpQQi4RVU1Xq1uworyoH/md9Rfd8zMmPR/pSghr309QNcftUVseg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.0(@types/node@20.8.10) - vue: 3.3.7(typescript@4.9.5) + vite: 4.5.0(@types/node@20.9.0) + vue: 3.3.8(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1492,106 +1496,118 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.3.7: - resolution: {integrity: sha512-pACdY6YnTNVLXsB86YD8OF9ihwpolzhhtdLVHhBL6do/ykr6kKXNYABRtNMGrsQXpEXXyAdwvWWkuTbs4MFtPQ==} + /@vue/compiler-core@3.3.8: + resolution: {integrity: sha512-hN/NNBUECw8SusQvDSqqcVv6gWq8L6iAktUR0UF3vGu2OhzRqcOiAno0FmBJWwxhYEXRlQJT5XnoKsVq1WZx4g==} dependencies: '@babel/parser': 7.23.0 - '@vue/shared': 3.3.7 + '@vue/shared': 3.3.8 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.3.7: - resolution: {integrity: sha512-0LwkyJjnUPssXv/d1vNJ0PKfBlDoQs7n81CbO6Q0zdL7H1EzqYRrTVXDqdBVqro0aJjo/FOa1qBAPVI4PGSHBw==} + /@vue/compiler-dom@3.3.8: + resolution: {integrity: sha512-+PPtv+p/nWDd0AvJu3w8HS0RIm/C6VGBIRe24b9hSyNWOAPEUosFZ5diwawwP8ip5sJ8n0Pe87TNNNHnvjs0FQ==} dependencies: - '@vue/compiler-core': 3.3.7 - '@vue/shared': 3.3.7 + '@vue/compiler-core': 3.3.8 + '@vue/shared': 3.3.8 dev: true - /@vue/compiler-sfc@3.3.7: - resolution: {integrity: sha512-7pfldWy/J75U/ZyYIXRVqvLRw3vmfxDo2YLMwVtWVNew8Sm8d6wodM+OYFq4ll/UxfqVr0XKiVwti32PCrruAw==} + /@vue/compiler-sfc@3.3.8: + resolution: {integrity: sha512-WMzbUrlTjfYF8joyT84HfwwXo+8WPALuPxhy+BZ6R4Aafls+jDBnSz8PDz60uFhuqFbl3HxRfxvDzrUf3THwpA==} dependencies: '@babel/parser': 7.23.0 - '@vue/compiler-core': 3.3.7 - '@vue/compiler-dom': 3.3.7 - '@vue/compiler-ssr': 3.3.7 - '@vue/reactivity-transform': 3.3.7 - '@vue/shared': 3.3.7 + '@vue/compiler-core': 3.3.8 + '@vue/compiler-dom': 3.3.8 + '@vue/compiler-ssr': 3.3.8 + '@vue/reactivity-transform': 3.3.8 + '@vue/shared': 3.3.8 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.31 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.3.7: - resolution: {integrity: sha512-TxOfNVVeH3zgBc82kcUv+emNHo+vKnlRrkv8YvQU5+Y5LJGJwSNzcmLUoxD/dNzv0bhQ/F0s+InlgV0NrApJZg==} + /@vue/compiler-ssr@3.3.8: + resolution: {integrity: sha512-hXCqQL/15kMVDBuoBYpUnSYT8doDNwsjvm3jTefnXr+ytn294ySnT8NlsFHmTgKNjwpuFy7XVV8yTeLtNl/P6w==} dependencies: - '@vue/compiler-dom': 3.3.7 - '@vue/shared': 3.3.7 + '@vue/compiler-dom': 3.3.8 + '@vue/shared': 3.3.8 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity-transform@3.3.7: - resolution: {integrity: sha512-APhRmLVbgE1VPGtoLQoWBJEaQk4V8JUsqrQihImVqKT+8U6Qi3t5ATcg4Y9wGAPb3kIhetpufyZ1RhwbZCIdDA==} + /@vue/reactivity-transform@3.3.8: + resolution: {integrity: sha512-49CvBzmZNtcHua0XJ7GdGifM8GOXoUMOX4dD40Y5DxI3R8OUhMlvf2nvgUAcPxaXiV5MQQ1Nwy09ADpnLQUqRw==} dependencies: '@babel/parser': 7.23.0 - '@vue/compiler-core': 3.3.7 - '@vue/shared': 3.3.7 + '@vue/compiler-core': 3.3.8 + '@vue/shared': 3.3.8 estree-walker: 2.0.2 magic-string: 0.30.5 dev: true - /@vue/reactivity@3.3.7: - resolution: {integrity: sha512-cZNVjWiw00708WqT0zRpyAgduG79dScKEPYJXq2xj/aMtk3SKvL3FBt2QKUlh6EHBJ1m8RhBY+ikBUzwc7/khg==} + /@vue/reactivity@3.3.8: + resolution: {integrity: sha512-ctLWitmFBu6mtddPyOKpHg8+5ahouoTCRtmAHZAXmolDtuZXfjL2T3OJ6DL6ezBPQB1SmMnpzjiWjCiMYmpIuw==} dependencies: - '@vue/shared': 3.3.7 + '@vue/shared': 3.3.8 dev: true - /@vue/runtime-core@3.3.7: - resolution: {integrity: sha512-LHq9du3ubLZFdK/BP0Ysy3zhHqRfBn80Uc+T5Hz3maFJBGhci1MafccnL3rpd5/3wVfRHAe6c+PnlO2PAavPTQ==} + /@vue/runtime-core@3.3.8: + resolution: {integrity: sha512-qurzOlb6q26KWQ/8IShHkMDOuJkQnQcTIp1sdP4I9MbCf9FJeGVRXJFr2mF+6bXh/3Zjr9TDgURXrsCr9bfjUw==} dependencies: - '@vue/reactivity': 3.3.7 - '@vue/shared': 3.3.7 + '@vue/reactivity': 3.3.8 + '@vue/shared': 3.3.8 dev: true - /@vue/runtime-dom@3.3.7: - resolution: {integrity: sha512-PFQU1oeJxikdDmrfoNQay5nD4tcPNYixUBruZzVX/l0eyZvFKElZUjW4KctCcs52nnpMGO6UDK+jF5oV4GT5Lw==} + /@vue/runtime-dom@3.3.8: + resolution: {integrity: sha512-Noy5yM5UIf9UeFoowBVgghyGGPIDPy1Qlqt0yVsUdAVbqI8eeMSsTqBtauaEoT2UFXUk5S64aWVNJN4MJ2vRdA==} dependencies: - '@vue/runtime-core': 3.3.7 - '@vue/shared': 3.3.7 + '@vue/runtime-core': 3.3.8 + '@vue/shared': 3.3.8 csstype: 3.1.2 dev: true - /@vue/server-renderer@3.3.7(vue@3.3.7): - resolution: {integrity: sha512-UlpKDInd1hIZiNuVVVvLgxpfnSouxKQOSE2bOfQpBuGwxRV/JqqTCyyjXUWiwtVMyeRaZhOYYqntxElk8FhBhw==} + /@vue/server-renderer@3.3.8(vue@3.3.8): + resolution: {integrity: sha512-zVCUw7RFskvPuNlPn/8xISbrf0zTWsTSdYTsUTN1ERGGZGVnRxM2QZ3x1OR32+vwkkCm0IW6HmJ49IsPm7ilLg==} peerDependencies: - vue: 3.3.7 + vue: 3.3.8 dependencies: - '@vue/compiler-ssr': 3.3.7 - '@vue/shared': 3.3.7 - vue: 3.3.7(typescript@4.9.5) + '@vue/compiler-ssr': 3.3.8 + '@vue/shared': 3.3.8 + vue: 3.3.8(typescript@4.9.5) dev: true - /@vue/shared@3.3.7: - resolution: {integrity: sha512-N/tbkINRUDExgcPTBvxNkvHGu504k8lzlNQRITVnm6YjOjwa4r0nnbd4Jb01sNpur5hAllyRJzSK5PvB9PPwRg==} + /@vue/shared@3.3.8: + resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} dev: true - /@vueuse/core@10.5.0(vue@3.3.7): + /@vueuse/core@10.5.0(vue@3.3.8): resolution: {integrity: sha512-z/tI2eSvxwLRjOhDm0h/SXAjNm8N5ld6/SC/JQs6o6kpJ6Ya50LnEL8g5hoYu005i28L0zqB5L5yAl8Jl26K3A==} dependencies: '@types/web-bluetooth': 0.0.18 '@vueuse/metadata': 10.5.0 - '@vueuse/shared': 10.5.0(vue@3.3.7) - vue-demi: 0.14.6(vue@3.3.7) + '@vueuse/shared': 10.5.0(vue@3.3.8) + vue-demi: 0.14.6(vue@3.3.8) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + + /@vueuse/core@10.6.0(vue@3.3.8): + resolution: {integrity: sha512-+Yee+g9+9BEbvkyGdn4Bf4yZx9EfocAytpV2ZlrlP7xcz+qznLmZIDqDroTvc5vtMkWZicisgEv8dt3+jL+HQg==} + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 10.6.0 + '@vueuse/shared': 10.6.0(vue@3.3.8) + vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.5.0(focus-trap@7.5.4)(vue@3.3.7): + /@vueuse/integrations@10.5.0(focus-trap@7.5.4)(vue@3.3.8): resolution: {integrity: sha512-fm5sXLCK0Ww3rRnzqnCQRmfjDURaI4xMsx+T+cec0ngQqHx/JgUtm8G0vRjwtonIeTBsH1Q8L3SucE+7K7upJQ==} peerDependencies: async-validator: '*' @@ -1632,10 +1648,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.5.0(vue@3.3.7) - '@vueuse/shared': 10.5.0(vue@3.3.7) + '@vueuse/core': 10.5.0(vue@3.3.8) + '@vueuse/shared': 10.5.0(vue@3.3.8) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.3.7) + vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1645,10 +1661,23 @@ packages: resolution: {integrity: sha512-fEbElR+MaIYyCkeM0SzWkdoMtOpIwO72x8WsZHRE7IggiOlILttqttM69AS13nrDxosnDBYdyy3C5mR1LCxHsw==} dev: true - /@vueuse/shared@10.5.0(vue@3.3.7): + /@vueuse/metadata@10.6.0: + resolution: {integrity: sha512-mzKHkHoiK6xVz01VzQjM2l6ofUanEaofgEGPgDHcAzlvOTccPRTIdEuzneOUTYxgfm1vkDikS6rtrEw/NYlaTQ==} + dev: true + + /@vueuse/shared@10.5.0(vue@3.3.8): resolution: {integrity: sha512-18iyxbbHYLst9MqU1X1QNdMHIjks6wC7XTVf0KNOv5es/Ms6gjVFCAAWTVP2JStuGqydg3DT+ExpFORUEi9yhg==} dependencies: - vue-demi: 0.14.6(vue@3.3.7) + vue-demi: 0.14.6(vue@3.3.8) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + + /@vueuse/shared@10.6.0(vue@3.3.8): + resolution: {integrity: sha512-0t4MVE18sO+/4Gh0jfeOXBTjKeV4606N9kIrDOLPjFl8Rwnlodn+QC5A4LfJuysK7aOsTMjF3KnzNeueaI0xlQ==} + dependencies: + vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2130,8 +2159,8 @@ packages: engines: {node: '>= 6'} dev: true - /comment-parser@1.4.0: - resolution: {integrity: sha512-QLyTNiZ2KDOibvFPlZ6ZngVsZ/0gYnE6uTXi5aoDg8ed3AkJAz4sEje3Y8a29hQ1s6A99MZXe47fLAXQ1rTqaw==} + /comment-parser@1.4.1: + resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==} engines: {node: '>= 12.0.0'} dev: true @@ -2491,8 +2520,8 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@13.4.0: - resolution: {integrity: sha512-KeWNC9xSHG/ewZURVbaQsBQg2mOKw4XhjJZFKjWbEjgZCdxpPXLpJnfq5Jns1Gvnjp6AlnIfpZfWFlDgVKXdWQ==} + /cypress@13.5.0: + resolution: {integrity: sha512-oh6U7h9w8wwHfzNDJQ6wVcAeXu31DlIYlNOBvfd6U4CcB8oe4akawQmH+QJVOMZlM42eBoCne015+svVqdwdRQ==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -2973,15 +3002,15 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.8.2(eslint@8.53.0): - resolution: {integrity: sha512-5TSnD018f3tUJNne4s4gDWQflbsgOycIKEUBoCLn6XtBMgNHxQFmV8vVxUtiPxAQq8lrX85OaSG/2gnctxw9uQ==} + /eslint-plugin-jsdoc@46.9.0(eslint@8.53.0): + resolution: {integrity: sha512-UQuEtbqLNkPf5Nr/6PPRCtr9xypXY+g8y/Q7gPa0YK7eDhh0y2lWprXRnaYbW7ACgIUvpDKy9X2bZqxtGzBG9Q==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@es-joy/jsdoccomment': 0.40.1 + '@es-joy/jsdoccomment': 0.41.0 are-docs-informative: 0.0.2 - comment-parser: 1.4.0 + comment-parser: 1.4.1 debug: 4.3.4(supports-color@8.1.1) escape-string-regexp: 4.0.0 eslint: 8.53.0 @@ -4897,8 +4926,8 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.3(prettier@3.0.3)(typescript@4.9.5): - resolution: {integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==} + /prettier-plugin-organize-imports@3.2.4(prettier@3.0.3)(typescript@4.9.5): + resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 '@volar/vue-typescript': ^1.0.4 @@ -5985,7 +6014,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.8.10): + /vite-node@0.34.6(@types/node@20.9.0): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5995,7 +6024,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.8.10) + vite: 4.5.0(@types/node@20.9.0) transitivePeerDependencies: - '@types/node' - less @@ -6007,7 +6036,7 @@ packages: - terser dev: true - /vite@4.5.0(@types/node@20.8.10): + /vite@4.5.0(@types/node@20.9.0): resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6035,7 +6064,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.8.10 + '@types/node': 20.9.0 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6043,23 +6072,23 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.8.10)(search-insights@2.9.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.9.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.9.0) - '@vitejs/plugin-vue': 4.4.0(vite@4.5.0)(vue@3.3.7) + '@vitejs/plugin-vue': 4.4.0(vite@4.5.0)(vue@3.3.8) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.5.0(vue@3.3.7) - '@vueuse/integrations': 10.5.0(focus-trap@7.5.4)(vue@3.3.7) + '@vueuse/core': 10.6.0(vue@3.3.8) + '@vueuse/integrations': 10.5.0(focus-trap@7.5.4)(vue@3.3.8) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.5 - vite: 4.5.0(@types/node@20.8.10) - vue: 3.3.7(typescript@4.9.5) + vite: 4.5.0(@types/node@20.9.0) + vue: 3.3.8(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6121,7 +6150,7 @@ packages: dependencies: '@types/chai': 4.3.8 '@types/chai-subset': 1.3.3 - '@types/node': 20.8.10 + '@types/node': 20.9.0 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6141,8 +6170,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.0(@types/node@20.8.10) - vite-node: 0.34.6(@types/node@20.8.10) + vite: 4.5.0(@types/node@20.9.0) + vite-node: 0.34.6(@types/node@20.9.0) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6162,7 +6191,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.3.7): + /vue-demi@0.14.6(vue@3.3.8): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6174,22 +6203,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.3.7(typescript@4.9.5) + vue: 3.3.8(typescript@4.9.5) dev: true - /vue@3.3.7(typescript@4.9.5): - resolution: {integrity: sha512-YEMDia1ZTv1TeBbnu6VybatmSteGOS3A3YgfINOfraCbf85wdKHzscD6HSS/vB4GAtI7sa1XPX7HcQaJ1l24zA==} + /vue@3.3.8(typescript@4.9.5): + resolution: {integrity: sha512-5VSX/3DabBikOXMsxzlW8JyfeLKlG9mzqnWgLQLty88vdZL7ZJgrdgBOmrArwxiLtmS+lNNpPcBYqrhE6TQW5w==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.3.7 - '@vue/compiler-sfc': 3.3.7 - '@vue/runtime-dom': 3.3.7 - '@vue/server-renderer': 3.3.7(vue@3.3.7) - '@vue/shared': 3.3.7 + '@vue/compiler-dom': 3.3.8 + '@vue/compiler-sfc': 3.3.8 + '@vue/runtime-dom': 3.3.8 + '@vue/server-renderer': 3.3.8(vue@3.3.8) + '@vue/shared': 3.3.8 typescript: 4.9.5 dev: true From 8fd146936719fce0103b75fed4ea161bbc7114c3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:15:23 +0000 Subject: [PATCH 07/98] chore(deps): update typescript-eslint to ~6.10.0 (#2539) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 109 ++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 87 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index fbf3add150a..f5c4ca470a6 100644 --- a/package.json +++ b/package.json @@ -94,8 +94,8 @@ "@types/sanitize-html": "~2.9.4", "@types/semver": "~7.5.5", "@types/validator": "~13.11.6", - "@typescript-eslint/eslint-plugin": "~6.9.1", - "@typescript-eslint/parser": "~6.9.1", + "@typescript-eslint/eslint-plugin": "~6.10.0", + "@typescript-eslint/parser": "~6.10.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc301766d36..bb9de91da1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,11 +23,11 @@ devDependencies: specifier: ~13.11.6 version: 13.11.6 '@typescript-eslint/eslint-plugin': - specifier: ~6.9.1 - version: 6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.53.0)(typescript@4.9.5) + specifier: ~6.10.0 + version: 6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.9.1 - version: 6.9.1(eslint@8.53.0)(typescript@4.9.5) + specifier: ~6.10.0 + version: 6.10.0(eslint@8.53.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -72,7 +72,7 @@ devDependencies: version: 49.0.0(eslint@8.53.0) eslint-plugin-vitest: specifier: ~0.3.9 - version: 0.3.9(@typescript-eslint/eslint-plugin@6.9.1)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.9(@typescript-eslint/eslint-plugin@6.10.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1207,8 +1207,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==} + /@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-uoLj4g2OTL8rfUQVx2AFO1hp/zja1wABJq77P6IclQs6I/m9GLrm7jCdgzZkvWdDCQf1uEvoa8s8CupsgWQgVg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1219,11 +1219,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.9.1 - '@typescript-eslint/parser': 6.9.1(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.9.1 - '@typescript-eslint/type-utils': 6.9.1(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.9.1(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.9.1 + '@typescript-eslint/parser': 6.10.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.10.0 + '@typescript-eslint/type-utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.10.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 graphemer: 1.4.0 @@ -1236,8 +1236,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.9.1(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==} + /@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1246,10 +1246,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.9.1 - '@typescript-eslint/types': 6.9.1 - '@typescript-eslint/typescript-estree': 6.9.1(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.9.1 + '@typescript-eslint/scope-manager': 6.10.0 + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/typescript-estree': 6.10.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.10.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 typescript: 4.9.5 @@ -1257,6 +1257,14 @@ packages: - supports-color dev: true + /@typescript-eslint/scope-manager@6.10.0: + resolution: {integrity: sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/visitor-keys': 6.10.0 + dev: true + /@typescript-eslint/scope-manager@6.7.5: resolution: {integrity: sha512-GAlk3eQIwWOJeb9F7MKQ6Jbah/vx1zETSDw8likab/eFcqkjSD7BI75SDAeC5N2L0MmConMoPvTsmkrg71+B1A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1273,8 +1281,8 @@ packages: '@typescript-eslint/visitor-keys': 6.9.1 dev: true - /@typescript-eslint/type-utils@6.9.1(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==} + /@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-wYpPs3hgTFblMYwbYWPT3eZtaDOjbLyIYuqpwuLBBqhLiuvJ+9sEp2gNRJEtR5N/c9G1uTtQQL5AhV0fEPJYcg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1283,8 +1291,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.9.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.9.1(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.10.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1293,6 +1301,11 @@ packages: - supports-color dev: true + /@typescript-eslint/types@6.10.0: + resolution: {integrity: sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + /@typescript-eslint/types@6.7.5: resolution: {integrity: sha512-WboQBlOXtdj1tDFPyIthpKrUb+kZf2VroLZhxKa/VlwLlLyqv/PwUNgL30BlTVZV1Wu4Asu2mMYPqarSO4L5ZQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1303,6 +1316,27 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true + /@typescript-eslint/typescript-estree@6.10.0(typescript@4.9.5): + resolution: {integrity: sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/visitor-keys': 6.10.0 + debug: 4.3.4(supports-color@8.1.1) + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/typescript-estree@6.7.5(typescript@4.9.5): resolution: {integrity: sha512-NhJiJ4KdtwBIxrKl0BqG1Ur+uw7FiOnOThcYx9DpOGJ/Abc9z2xNzLeirCG02Ig3vkvrc2qFLmYSSsaITbKjlg==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1345,6 +1379,25 @@ packages: - supports-color dev: true + /@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-v+pJ1/RcVyRc0o4wAGux9x42RHmAjIGzPRo538Z8M1tVx6HOnoQBCX/NoadHQlZeC+QO2yr4nNSFWOoraZCAyg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@types/json-schema': 7.0.13 + '@types/semver': 7.5.5 + '@typescript-eslint/scope-manager': 6.10.0 + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/typescript-estree': 6.10.0(typescript@4.9.5) + eslint: 8.53.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/utils@6.7.5(eslint@8.53.0)(typescript@4.9.5): resolution: {integrity: sha512-pfRRrH20thJbzPPlPc4j0UNGvH1PjPlhlCMq4Yx7EGjV7lvEeGX0U6MJYe8+SyFutWgSHsdbJ3BXzZccYggezA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1383,6 +1436,14 @@ packages: - typescript dev: true + /@typescript-eslint/visitor-keys@6.10.0: + resolution: {integrity: sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.10.0 + eslint-visitor-keys: 3.4.3 + dev: true + /@typescript-eslint/visitor-keys@6.7.5: resolution: {integrity: sha512-3MaWdDZtLlsexZzDSdQWsFQ9l9nL8B80Z4fImSpyllFC/KLqWQRdEcB+gGGO+N3Q2uL40EsG66wZLsohPxNXvg==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3066,7 +3127,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.9(@typescript-eslint/eslint-plugin@6.9.1)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.9(@typescript-eslint/eslint-plugin@6.10.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-ZGrz8dWFlotM5dwrsMLP4VcY5MizwKNV4JTnY0VKdnuCZ+qeEUMHf1qd8kRGQA3tqLvXcV929wt2ANkduq2Pgw==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3079,7 +3140,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.9.1(eslint@8.53.0)(typescript@4.9.5) eslint: 8.53.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 652da4f004f57ea5c69ecd99740c5718c46eeb2c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:38:30 +0000 Subject: [PATCH 08/98] chore(deps): update dependency prettier to v3.1.0 (#2541) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- src/modules/internet/user-agent.ts | 14 ++++++++------ test/support/seeded-runs.ts | 4 ++-- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index f5c4ca470a6..14617db72da 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,7 @@ "eslint-plugin-vitest": "~0.3.9", "glob": "~10.3.10", "npm-run-all": "~4.1.5", - "prettier": "3.0.3", + "prettier": "3.1.0", "prettier-plugin-organize-imports": "~3.2.4", "rimraf": "~5.0.5", "sanitize-html": "~2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb9de91da1e..595c9fefc96 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,7 +66,7 @@ devDependencies: version: 46.9.0(eslint@8.53.0) eslint-plugin-prettier: specifier: ~5.0.1 - version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.0.3) + version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.1.0) eslint-plugin-unicorn: specifier: ~49.0.0 version: 49.0.0(eslint@8.53.0) @@ -80,11 +80,11 @@ devDependencies: specifier: ~4.1.5 version: 4.1.5 prettier: - specifier: 3.0.3 - version: 3.0.3 + specifier: 3.1.0 + version: 3.1.0 prettier-plugin-organize-imports: specifier: ~3.2.4 - version: 3.2.4(prettier@3.0.3)(typescript@4.9.5) + version: 3.2.4(prettier@3.1.0)(typescript@4.9.5) rimraf: specifier: ~5.0.5 version: 5.0.5 @@ -3083,7 +3083,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.0.3): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.1.0): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3099,7 +3099,7 @@ packages: dependencies: eslint: 8.53.0 eslint-config-prettier: 9.0.0(eslint@8.53.0) - prettier: 3.0.3 + prettier: 3.1.0 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -4987,7 +4987,7 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.4(prettier@3.0.3)(typescript@4.9.5): + /prettier-plugin-organize-imports@3.2.4(prettier@3.1.0)(typescript@4.9.5): resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -5000,12 +5000,12 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.0.3 + prettier: 3.1.0 typescript: 4.9.5 dev: true - /prettier@3.0.3: - resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + /prettier@3.1.0: + resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} engines: {node: '>=14'} hasBin: true dev: true diff --git a/src/modules/internet/user-agent.ts b/src/modules/internet/user-agent.ts index 43a1b3cebe6..fba5ed05ea5 100644 --- a/src/modules/internet/user-agent.ts +++ b/src/modules/internet/user-agent.ts @@ -255,8 +255,8 @@ export function generate(faker: Faker): string { arch === 'win' ? `(Windows NT ${version_string.nt()}${proc ? `; ${proc}` : ''}` : arch === 'mac' - ? `(Macintosh; ${proc} Mac OS X ${version_string.osx()}` - : `(X11; Linux ${proc}`; + ? `(Macintosh; ${proc} Mac OS X ${version_string.osx()}` + : `(X11; Linux ${proc}`; return `Mozilla/5.0 ${os_ver}; rv:${firefox_ver.slice( 0, @@ -290,8 +290,10 @@ export function generate(faker: Faker): string { arch === 'win' ? `(Windows NT ${version_string.nt()}; U; ${randomLang()}${presto_ver}` : arch === 'lin' - ? `(X11; Linux ${randomProc(arch)}; U; ${randomLang()}${presto_ver}` - : `(Macintosh; Intel Mac OS X ${version_string.osx()} U; ${randomLang()} Presto/${version_string.presto()} Version/${version_string.presto2()})`; + ? `(X11; Linux ${randomProc( + arch + )}; U; ${randomLang()}${presto_ver}` + : `(Macintosh; Intel Mac OS X ${version_string.osx()} U; ${randomLang()} Presto/${version_string.presto()} Version/${version_string.presto2()})`; return `Opera/${faker.number.int({ min: 9, @@ -326,8 +328,8 @@ export function generate(faker: Faker): string { '_' )}) ` : arch === 'win' - ? `(Windows; U; Windows NT ${version_string.nt()})` - : `(X11; Linux ${randomProc(arch)}`; + ? `(Windows; U; Windows NT ${version_string.nt()})` + : `(X11; Linux ${randomProc(arch)}`; return `Mozilla/5.0 ${os_ver} AppleWebKit/${safari} (KHTML, like Gecko) Chrome/${version_string.chrome()} Safari/${safari}`; }, diff --git a/test/support/seeded-runs.ts b/test/support/seeded-runs.ts index 4b014cb6d03..e95a522f9f3 100644 --- a/test/support/seeded-runs.ts +++ b/test/support/seeded-runs.ts @@ -11,8 +11,8 @@ type FakerModule = { [Key in keyof Faker]: Faker[Key] extends Callable | string | number | number[] ? never : Key extends 'definitions' | 'locales' - ? never - : Key; + ? never + : Key; }[keyof Faker]; /** From 36fc517d17591c8ea1d5135d9a93c7591e3d1f74 Mon Sep 17 00:00:00 2001 From: makhtar-sarr Date: Tue, 14 Nov 2023 08:34:47 +0000 Subject: [PATCH 09/98] feat(locale): add streets to location fr_SN (#2536) --- src/locales/fr_SN/location/index.ts | 10 ++++++ .../fr_SN/location/secondary_address.ts | 1 + src/locales/fr_SN/location/street_address.ts | 4 +++ src/locales/fr_SN/location/street_pattern.ts | 1 + src/locales/fr_SN/location/street_prefix.ts | 12 +++++++ src/locales/fr_SN/location/street_suffix.ts | 33 +++++++++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 src/locales/fr_SN/location/secondary_address.ts create mode 100644 src/locales/fr_SN/location/street_address.ts create mode 100644 src/locales/fr_SN/location/street_pattern.ts create mode 100644 src/locales/fr_SN/location/street_prefix.ts create mode 100644 src/locales/fr_SN/location/street_suffix.ts diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts index f46a91ce126..c13e4805f72 100644 --- a/src/locales/fr_SN/location/index.ts +++ b/src/locales/fr_SN/location/index.ts @@ -8,7 +8,12 @@ import city_name from './city_name'; import city_pattern from './city_pattern'; import default_country from './default_country'; import postcode from './postcode'; +import secondary_address from './secondary_address'; import state from './state'; +import street_address from './street_address'; +import street_pattern from './street_pattern'; +import street_prefix from './street_prefix'; +import street_suffix from './street_suffix'; const location: LocationDefinition = { building_number, @@ -16,7 +21,12 @@ const location: LocationDefinition = { city_pattern, default_country, postcode, + secondary_address, state, + street_address, + street_pattern, + street_prefix, + street_suffix, }; export default location; diff --git a/src/locales/fr_SN/location/secondary_address.ts b/src/locales/fr_SN/location/secondary_address.ts new file mode 100644 index 00000000000..776ec15169b --- /dev/null +++ b/src/locales/fr_SN/location/secondary_address.ts @@ -0,0 +1 @@ +export default ['Apt. ###', '# étage']; diff --git a/src/locales/fr_SN/location/street_address.ts b/src/locales/fr_SN/location/street_address.ts new file mode 100644 index 00000000000..2e1a661d418 --- /dev/null +++ b/src/locales/fr_SN/location/street_address.ts @@ -0,0 +1,4 @@ +export default { + normal: '{{location.buildingNumber}} {{location.street}}', + full: '{{location.buildingNumber}} {{location.street}} {{location.secondaryAddress}}', +}; diff --git a/src/locales/fr_SN/location/street_pattern.ts b/src/locales/fr_SN/location/street_pattern.ts new file mode 100644 index 00000000000..f62f53f0931 --- /dev/null +++ b/src/locales/fr_SN/location/street_pattern.ts @@ -0,0 +1 @@ +export default ['{{location.street_prefix}} {{location.street_suffix}}']; diff --git a/src/locales/fr_SN/location/street_prefix.ts b/src/locales/fr_SN/location/street_prefix.ts new file mode 100644 index 00000000000..d03abd97564 --- /dev/null +++ b/src/locales/fr_SN/location/street_prefix.ts @@ -0,0 +1,12 @@ +export default [ + 'Allée', + 'Voie', + 'Rue', + 'Avenue', + 'Boulevard', + 'Quai', + 'Place', + 'Échangeur', + 'Résidence', + 'Immeuble', +]; diff --git a/src/locales/fr_SN/location/street_suffix.ts b/src/locales/fr_SN/location/street_suffix.ts new file mode 100644 index 00000000000..5dff1b5a62b --- /dev/null +++ b/src/locales/fr_SN/location/street_suffix.ts @@ -0,0 +1,33 @@ +export default [ + "de l'alternance", + "de l'émergence", + 'Abdou Aziz Sy Dabakh', + 'Amadou Assane Ndoye', + 'Birago Diop', + 'Blaise Diagne', + 'Cheikh Amadou Bamba', + 'Cheikh Anta Diop', + 'Cheikh Seydi El Hadji Malick Sy', + 'Dial Diop', + 'Faidherbe', + 'Galandou Diouf', + 'Houphouët Boigny', + 'Lamine Gueye', + 'Lat Dior', + 'Léopold Sedar Senghor', + 'Neslon Mandela', + 'Saint Michel', + 'St Joseph', + 'Sérigne Fallou Mbacké', + 'Victor Hugo', + 'Wagane Diouf', + 'William Ponty', + 'Yacine Boubou', + 'de Bordeaux', + 'de Contournement Nord', + 'de Nguinth', + 'des Diambars', + 'des Jasmins', + 'du Baol', + 'du Tirailleur', +]; From 7e3c92e802614ae5e9f621d9e679dfd6f6d63cf1 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 14 Nov 2023 17:11:26 +0100 Subject: [PATCH 10/98] infra: enable strictNullChecks in tsconfig (#2435) --- cypress/e2e/api.cy.ts | 2 +- docs/.vitepress/config.ts | 13 +- docs/.vitepress/versions.ts | 21 ++-- scripts/apidoc/faker-class.ts | 6 +- scripts/apidoc/signature.ts | 2 +- src/definitions/date.ts | 3 +- src/definitions/definitions.ts | 2 +- src/locale-proxy.ts | 40 +++++-- src/modules/airline/index.ts | 2 +- src/modules/color/index.ts | 37 +++--- src/modules/commerce/index.ts | 10 +- src/modules/date/index.ts | 51 ++++---- src/modules/finance/index.ts | 22 +++- src/modules/helpers/index.ts | 2 +- src/modules/helpers/unique.ts | 4 +- src/modules/internet/index.ts | 2 + src/modules/person/index.ts | 112 ++++++++++++------ src/modules/random/index.ts | 2 +- test/faker.spec.ts | 4 +- test/modules/airline.spec.ts | 12 +- test/modules/finance-iban.spec.ts | 13 +- test/modules/helpers.spec.ts | 3 +- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 2 +- test/vitest-extensions.ts | 2 +- tsconfig.json | 1 - 25 files changed, 239 insertions(+), 131 deletions(-) diff --git a/cypress/e2e/api.cy.ts b/cypress/e2e/api.cy.ts index be61f5dfc5b..e87ea856f50 100644 --- a/cypress/e2e/api.cy.ts +++ b/cypress/e2e/api.cy.ts @@ -34,7 +34,7 @@ describe('API Test', () => { cy.get('.api-group li').each(($el) => { const anchor = $el.find('a'); const text = anchor.text(); - const link = anchor.attr('href').split('#')[0]; + const link = anchor.attr('href')?.split('#')[0] ?? 'MISSING'; if (checked.has(link)) { return; } diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 12fea107d34..e8484526a74 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -121,11 +121,14 @@ const config = defineConfig({ { icon: 'github', link: 'https://github.com/faker-js/faker' }, ], - algolia: { - apiKey: process.env.API_KEY, - appId: process.env.APP_ID, - indexName: 'fakerjs', - }, + algolia: + process.env.API_KEY == null || process.env.APP_ID == null + ? undefined + : { + apiKey: process.env.API_KEY, + appId: process.env.APP_ID, + indexName: 'fakerjs', + }, footer: { message: 'Released under the MIT License.', diff --git a/docs/.vitepress/versions.ts b/docs/.vitepress/versions.ts index 2964557cee9..90b0fc8dd25 100644 --- a/docs/.vitepress/versions.ts +++ b/docs/.vitepress/versions.ts @@ -14,18 +14,23 @@ function readOtherLatestReleaseTagNames(): string[] { .toString('utf8') .split('\n') .filter((tag) => semver.valid(tag)) - .reduce>((acc, tag) => { - const majorVersion = semver.major(tag); + .filter((tag) => { // Only consider tags for our deployed website versions, // excluding the current major version. - if (majorVersion >= 6 && majorVersion !== currentMajorVersion) { - (acc[majorVersion] = acc[majorVersion] ?? []).push(tag); + const majorVersion = semver.major(tag); + return majorVersion >= 6 && majorVersion !== currentMajorVersion; + }) + .reduce>((latestTagByMajor, tag) => { + const majorVersion = semver.major(tag); + + const latestTag = latestTagByMajor[majorVersion]; + if (latestTag == null || semver.lt(latestTag, tag)) { + latestTagByMajor[majorVersion] = tag; } - return acc; + + return latestTagByMajor; }, {}); - return Object.entries(latestReleaseTagNames) - .map(([major, tags]) => semver.maxSatisfying(tags, `^${major}`)) - .sort(semver.rcompare); + return Object.values(latestReleaseTagNames).sort(semver.rcompare); } // Set by netlify diff --git a/scripts/apidoc/faker-class.ts b/scripts/apidoc/faker-class.ts index 6672896c50b..a9acad3cb41 100644 --- a/scripts/apidoc/faker-class.ts +++ b/scripts/apidoc/faker-class.ts @@ -28,6 +28,10 @@ export async function processFakerRandomizer( .getChildrenByKind(ReflectionKind.Interface) .find((clazz) => clazz.name === 'Randomizer'); + if (randomizerClass == null) { + throw new Error('Randomizer class not found'); + } + return processClass(randomizerClass); } @@ -63,7 +67,7 @@ async function processClass( function hasConstructor(clazz: DeclarationReflection): boolean { return clazz .getChildrenByKind(ReflectionKind.Constructor) - .some((constructor) => constructor.signatures.length > 0); + .some((constructor) => (constructor.signatures?.length ?? 0) > 0); } async function processConstructor( diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 08fe5896b18..82d4047ef7d 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -305,7 +305,7 @@ async function signatureTypeToText( await Promise.all( signature.parameters?.map( async (p) => `${p.name}: ${await typeToText(p.type)}` - ) + ) ?? [] ) ).join(', ')}) => ${await typeToText(signature.type)}`; } diff --git a/src/definitions/date.ts b/src/definitions/date.ts index 16cfb28aa26..2265a0256cf 100644 --- a/src/definitions/date.ts +++ b/src/definitions/date.ts @@ -26,8 +26,9 @@ export interface DateEntryDefinition { /** * The short name/abbreviation of the entry. + * If null, the locale does not support a short name/abbreviation for the entry. */ - abbr: string[]; + abbr: string[] | null; /** * The wide name of the entry when used in context. If absent wide will be used instead. diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts index ca495e3477a..c2a3b560099 100644 --- a/src/definitions/definitions.ts +++ b/src/definitions/definitions.ts @@ -50,4 +50,4 @@ export type LocaleDefinition = { system?: SystemDefinition; vehicle?: VehicleDefinition; word?: WordDefinition; -} & Record | undefined>; +} & Record>; diff --git a/src/locale-proxy.ts b/src/locale-proxy.ts index 67b29d473cc..e99ba655156 100644 --- a/src/locale-proxy.ts +++ b/src/locale-proxy.ts @@ -54,6 +54,30 @@ export function createLocaleProxy(locale: LocaleDefinition): LocaleProxy { }) as LocaleProxy; } +/** + * Checks that the value is not null or undefined and throws an error if it is. + * + * @param value The value to check. + * @param path The path to the locale data. + */ +export function assertLocaleData( + value: T, + ...path: string[] +): asserts value is NonNullable { + if (value === null) { + throw new FakerError( + `The locale data for '${path.join('.')}' aren't applicable to this locale. + If you think this is a bug, please report it at: https://github.com/faker-js/faker` + ); + } else if (value === undefined) { + throw new FakerError( + `The locale data for '${path.join('.')}' are missing in this locale. + Please contribute the missing data to the project or use a locale/Faker instance that has these data. + For more information see https://fakerjs.dev/guide/localization.html` + ); + } +} + /** * Creates a proxy for a category that throws an error when accessing an undefined property. * @@ -79,20 +103,10 @@ function createCategoryProxy< const value = target[entryName]; if (typeof entryName === 'symbol' || entryName === 'nodeType') { return value; - } else if (value === null) { - throw new FakerError( - `The locale data for '${categoryName}.${entryName.toString()}' aren't applicable to this locale. - If you think this is a bug, please report it at: https://github.com/faker-js/faker` - ); - } else if (value === undefined) { - throw new FakerError( - `The locale data for '${categoryName}.${entryName.toString()}' are missing in this locale. - Please contribute the missing data to the project or use a locale/Faker instance that has these data. - For more information see https://fakerjs.dev/guide/localization.html` - ); - } else { - return value; } + + assertLocaleData(value, categoryName, entryName.toString()); + return value; }, set: throwReadOnlyError, diff --git a/src/modules/airline/index.ts b/src/modules/airline/index.ts index 4c1ec318eeb..e8ac47c58c2 100644 --- a/src/modules/airline/index.ts +++ b/src/modules/airline/index.ts @@ -155,7 +155,7 @@ export class AirlineModule extends ModuleBase { ): string { const { allowNumerics = false, allowVisuallySimilarCharacters = false } = options; - const excludedChars = []; + const excludedChars: string[] = []; if (!allowNumerics) { excludedChars.push(...numerics); } diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts index 5962ef71b67..57b906a376d 100644 --- a/src/modules/color/index.ts +++ b/src/modules/color/index.ts @@ -47,17 +47,19 @@ export type Casing = 'lower' | 'upper' | 'mixed'; * * @param hexColor Hex color string to be formatted. * @param options Options object. - * @param options.prefix Prefix of the generated hex color. Defaults to `'0x'`. - * @param options.casing Letter type case of the generated hex color. Defaults to `'mixed'`. + * @param options.prefix Prefix of the generated hex color. + * @param options.casing Letter type case of the generated hex color. */ function formatHexColor( hexColor: string, - options?: { - prefix?: string; - casing?: Casing; + options: { + prefix: string; + casing: Casing; } ): string { - switch (options?.casing) { + const { prefix, casing } = options; + + switch (casing) { case 'upper': hexColor = hexColor.toUpperCase(); break; @@ -68,8 +70,8 @@ function formatHexColor( // Do nothing } - if (options?.prefix) { - hexColor = options.prefix + hexColor; + if (prefix) { + hexColor = prefix + hexColor; } return hexColor; @@ -360,19 +362,20 @@ export class ColorModule extends ModuleBase { */ includeAlpha?: boolean; }): string | number[]; - rgb(options?: { - prefix?: string; - casing?: Casing; - format?: 'hex' | ColorFormat; - includeAlpha?: boolean; - }): string | number[] { + rgb( + options: { + prefix?: string; + casing?: Casing; + format?: 'hex' | ColorFormat; + includeAlpha?: boolean; + } = {} + ): string | number[] { const { format = 'hex', includeAlpha = false, prefix = '#', casing = 'lower', - } = options || {}; - options = { format, includeAlpha, prefix, casing }; + } = options; let color: string | number[]; let cssFunction: CssFunctionType = 'rgb'; if (format === 'hex') { @@ -380,7 +383,7 @@ export class ColorModule extends ModuleBase { length: includeAlpha ? 8 : 6, prefix: '', }); - color = formatHexColor(color, options); + color = formatHexColor(color, { prefix, casing }); return color; } diff --git a/src/modules/commerce/index.ts b/src/modules/commerce/index.ts index 1be3fcb2765..425bc8483e9 100644 --- a/src/modules/commerce/index.ts +++ b/src/modules/commerce/index.ts @@ -1,3 +1,4 @@ +import { FakerError } from '../../errors/faker-error'; import { deprecated } from '../../internal/deprecated'; import { ModuleBase } from '../../internal/module-base'; @@ -401,7 +402,14 @@ export class CommerceModule extends ModuleBase { const registrantLength = groupRules.find( ([rangeMaximum]) => elementValue <= rangeMaximum - )[1]; + )?.[1]; + + if (!registrantLength) { + // This can only happen if the ISBN_LENGTH_RULES are corrupted + throw new FakerError( + `Unable to find a registrant length for the group ${group}` + ); + } const registrant = element.slice(0, registrantLength); const publication = element.slice(registrantLength); diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index a40b477247a..39c857354b7 100644 --- a/src/modules/date/index.ts +++ b/src/modules/date/index.ts @@ -3,6 +3,7 @@ import type { DateEntryDefinition } from '../../definitions'; import { FakerError } from '../../errors/faker-error'; import { deprecated } from '../../internal/deprecated'; import { SimpleModuleBase } from '../../internal/module-base'; +import { assertLocaleData } from '../../locale-proxy'; /** * Converts date passed as a string, number or Date to a Date object. @@ -15,6 +16,10 @@ function toDate( date: string | Date | number | undefined, fallback: () => Date ): Date { + if (date == null) { + return fallback(); + } + date = new Date(date); if (Number.isNaN(date.valueOf())) { date = fallback(); @@ -383,14 +388,15 @@ export class SimpleDateModule extends SimpleModuleBase { }, legacyTo?: string | Date | number ): Date { - if (typeof options !== 'object' || options instanceof Date) { + if (options instanceof Date || typeof options !== 'object') { deprecated({ deprecated: 'faker.date.between(from, to)', proposed: 'faker.date.between({ from, to })', since: '8.0', until: '9.0', }); - options = { from: options, to: legacyTo }; + // We use options as fallback for legacyTo avoid TS errors for unintended usage. + options = { from: options, to: legacyTo ?? options }; } const { from, to } = options; @@ -559,14 +565,15 @@ export class SimpleDateModule extends SimpleModuleBase { legacyTo?: string | Date | number, legacyCount: number = 3 ): Date[] { - if (typeof options !== 'object' || options instanceof Date) { + if (options instanceof Date || typeof options !== 'object') { deprecated({ deprecated: 'faker.date.betweens(from, to, count)', proposed: 'faker.date.betweens({ from, to, count })', since: '8.0', until: '9.0', }); - options = { from: options, to: legacyTo, count: legacyCount }; + // We use options as fallback for legacyTo avoid TS errors for unintended usage. + options = { from: options, to: legacyTo ?? options, count: legacyCount }; } const { from, to, count = 3 } = options; @@ -864,12 +871,6 @@ export class SimpleDateModule extends SimpleModuleBase { refDate?: string | Date | number; } = {} ): Date { - if (options.max < options.min) { - throw new FakerError( - `Max ${options.max} should be larger than or equal to min ${options.min}.` - ); - } - const mode = options.mode === 'age' ? 'age' : 'year'; const refDate = toDate(options.refDate, this.faker.defaultRefDate); const refYear = refDate.getUTCFullYear(); @@ -894,6 +895,12 @@ export class SimpleDateModule extends SimpleModuleBase { ); } + if (max < min) { + throw new FakerError( + `Max ${options.max} should be larger than or equal to min ${options.min}.` + ); + } + return new Date(this.faker.number.int({ min, max })); } } @@ -1074,12 +1081,8 @@ export class DateModule extends SimpleDateModule { context?: boolean; } = {} ): string { - const { - // eslint-disable-next-line deprecation/deprecation - abbr, - abbreviated = abbr ?? false, - context = false, - } = options; + // eslint-disable-next-line deprecation/deprecation + const { abbr, abbreviated = abbr ?? false, context = false } = options; if (abbr != null) { deprecated({ @@ -1100,7 +1103,9 @@ export class DateModule extends SimpleDateModule { type = useContext ? 'wide_context' : 'wide'; } - return this.faker.helpers.arrayElement(source[type]); + const values = source[type]; + assertLocaleData(values, 'date.month', type); + return this.faker.helpers.arrayElement(values); } /** @@ -1260,12 +1265,8 @@ export class DateModule extends SimpleDateModule { context?: boolean; } = {} ): string { - const { - // eslint-disable-next-line deprecation/deprecation - abbr, - abbreviated = abbr ?? false, - context = false, - } = options; + // eslint-disable-next-line deprecation/deprecation + const { abbr, abbreviated = abbr ?? false, context = false } = options; if (abbr != null) { deprecated({ @@ -1286,6 +1287,8 @@ export class DateModule extends SimpleDateModule { type = useContext ? 'wide_context' : 'wide'; } - return this.faker.helpers.arrayElement(source[type]); + const values = source[type]; + assertLocaleData(values, 'date.weekday', type); + return this.faker.helpers.arrayElement(values); } } diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index c443b6055df..33db26f0003 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -23,6 +23,22 @@ export interface Currency { symbol: string; } +/** + * Puts a space after every 4 characters. + * + * @internal + * + * @param iban The iban to pretty print. + */ +export function prettyPrintIban(iban: string): string { + let pretty = ''; + for (let i = 0; i < iban.length; i += 4) { + pretty += `${iban.substring(i, i + 4)} `; + } + + return pretty.trimEnd(); +} + /** * Module to generate finance and money related entries. * @@ -663,9 +679,9 @@ export class FinanceModule extends ModuleBase { */ currencySymbol(): string { let symbol: string; - while (!symbol) { + do { symbol = this.currency().symbol; - } + } while (symbol.length === 0); return symbol; } @@ -1147,7 +1163,7 @@ export class FinanceModule extends ModuleBase { const result = `${ibanFormat.country}${checksum}${s}`; - return formatted ? result.match(/.{1,4}/g).join(' ') : result; + return formatted ? prettyPrintIban(result) : result; } /** diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 59eeadba59f..667f3a51d4d 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -1120,7 +1120,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { ) => RecordKey, >( method: TMethod, - args: Parameters = [] as Parameters, + args: Parameters = [] as unknown as Parameters, options: { /** * This parameter does nothing. diff --git a/src/modules/helpers/unique.ts b/src/modules/helpers/unique.ts index 44b3a71d339..20805530478 100644 --- a/src/modules/helpers/unique.ts +++ b/src/modules/helpers/unique.ts @@ -97,9 +97,9 @@ export function exec< maxRetries = 50, currentIterations = 0, compare = defaultCompare, - store, + store = {}, } = options; - let { exclude } = options; + let { exclude = [] } = options; options.currentIterations = currentIterations; // Support single exclude argument as string diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 5eb9b4bc279..8cc651a3fd7 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -620,6 +620,7 @@ export class InternetModule extends ModuleBase { firstName + this.faker.helpers.arrayElement(['.', '_']) + lastName; break; case 2: + default: result = `${firstName}${this.faker.helpers.arrayElement([ '.', '_', @@ -804,6 +805,7 @@ export class InternetModule extends ModuleBase { firstName + this.faker.helpers.arrayElement(['.', '_']) + lastName; break; case 2: + default: result = `${firstName}${this.faker.helpers.arrayElement([ '.', '_', diff --git a/src/modules/person/index.ts b/src/modules/person/index.ts index e0f4b6b0c67..0c5f79c37ce 100644 --- a/src/modules/person/index.ts +++ b/src/modules/person/index.ts @@ -1,5 +1,7 @@ import type { Faker } from '../..'; +import { FakerError } from '../../errors/faker-error'; import { ModuleBase } from '../../internal/module-base'; +import { assertLocaleData } from '../../locale-proxy'; export enum Sex { Female = 'female', @@ -18,6 +20,7 @@ export type SexType = `${Sex}`; * @param param2.generic Non-sex definitions. * @param param2.female Female definitions. * @param param2.male Male definitions. + * @param type Type of the definition. * * @returns Definition based on given sex. */ @@ -25,10 +28,14 @@ function selectDefinition( faker: Faker, elementSelectorFn: (values: T[]) => string, sex: SexType | undefined, - // TODO @Shinigami92 2022-03-21: Remove fallback empty object when `strict: true` - { generic, female, male }: { generic?: T[]; female?: T[]; male?: T[] } = {} + { + generic, + female, + male, + }: { generic?: T[] | null; female?: T[] | null; male?: T[] | null }, + type: string ): string { - let values: T[] | undefined; + let values: T[] | undefined | null; switch (sex) { case Sex.Female: @@ -50,6 +57,8 @@ function selectDefinition( } else { values = generic; } + + assertLocaleData(values, `person.{${type}, female_${type}, male_${type}}`); } return elementSelectorFn(values); @@ -92,11 +101,17 @@ export class PersonModule extends ModuleBase { const { first_name, female_first_name, male_first_name } = this.faker.rawDefinitions.person ?? {}; - return selectDefinition(this.faker, this.faker.helpers.arrayElement, sex, { - generic: first_name, - female: female_first_name, - male: male_first_name, - }); + return selectDefinition( + this.faker, + this.faker.helpers.arrayElement, + sex, + { + generic: first_name, + female: female_first_name, + male: male_first_name, + }, + 'first_name' + ); } /** @@ -135,16 +150,23 @@ export class PersonModule extends ModuleBase { generic: last_name_pattern, female: female_last_name_pattern, male: male_last_name_pattern, - } + }, + 'last_name_pattern' ); return this.faker.helpers.fake(pattern); } - return selectDefinition(this.faker, this.faker.helpers.arrayElement, sex, { - generic: last_name, - female: female_last_name, - male: male_last_name, - }); + return selectDefinition( + this.faker, + this.faker.helpers.arrayElement, + sex, + { + generic: last_name, + female: female_last_name, + male: male_last_name, + }, + 'last_name' + ); } /** @@ -164,11 +186,17 @@ export class PersonModule extends ModuleBase { const { middle_name, female_middle_name, male_middle_name } = this.faker.rawDefinitions.person ?? {}; - return selectDefinition(this.faker, this.faker.helpers.arrayElement, sex, { - generic: middle_name, - female: female_middle_name, - male: male_middle_name, - }); + return selectDefinition( + this.faker, + this.faker.helpers.arrayElement, + sex, + { + generic: middle_name, + female: female_middle_name, + male: male_middle_name, + }, + 'middle_name' + ); } /** @@ -305,11 +333,17 @@ export class PersonModule extends ModuleBase { const { prefix, female_prefix, male_prefix } = this.faker.rawDefinitions.person ?? {}; - return selectDefinition(this.faker, this.faker.helpers.arrayElement, sex, { - generic: prefix, - female: female_prefix, - male: male_prefix, - }); + return selectDefinition( + this.faker, + this.faker.helpers.arrayElement, + sex, + { + generic: prefix, + female: female_prefix, + male: male_prefix, + }, + 'prefix' + ); } /** @@ -350,9 +384,13 @@ export class PersonModule extends ModuleBase { * @since 8.0.0 */ jobDescriptor(): string { - return this.faker.helpers.arrayElement( - this.faker.definitions.person.title.descriptor - ); + const values = this.faker.definitions.person.title.descriptor; + + if (values == null) { + throw new FakerError('No person.title.descriptor definitions available.'); + } + + return this.faker.helpers.arrayElement(values); } /** @@ -364,9 +402,13 @@ export class PersonModule extends ModuleBase { * @since 8.0.0 */ jobArea(): string { - return this.faker.helpers.arrayElement( - this.faker.definitions.person.title.level - ); + const values = this.faker.definitions.person.title.level; + + if (values == null) { + throw new FakerError('No person.title.area definitions available.'); + } + + return this.faker.helpers.arrayElement(values); } /** @@ -378,9 +420,13 @@ export class PersonModule extends ModuleBase { * @since 8.0.0 */ jobType(): string { - return this.faker.helpers.arrayElement( - this.faker.definitions.person.title.job - ); + const values = this.faker.definitions.person.title.job; + + if (values == null) { + throw new FakerError('No person.title.job definitions available.'); + } + + return this.faker.helpers.arrayElement(values); } /** diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 997583c1165..474e8ca61a4 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -123,7 +123,7 @@ export class RandomModule extends ModuleBase { '_', '-', ]; - let result: string; + let result = ''; let iteration = 0; diff --git a/test/faker.spec.ts b/test/faker.spec.ts index 2ff5aab9468..bd42246a5a5 100644 --- a/test/faker.spec.ts +++ b/test/faker.spec.ts @@ -41,7 +41,7 @@ describe('faker', () => { describe('rawDefinitions', () => { it('locale rawDefinition accessibility', () => { // Metadata - expect(faker.rawDefinitions.metadata.title).toBeDefined(); + expect(faker.rawDefinitions.metadata?.title).toBeDefined(); // Standard modules expect(faker.rawDefinitions.location?.city_name).toBeDefined(); // Non-existing module @@ -62,7 +62,7 @@ describe('faker', () => { // Non-existing module expect(faker.definitions.missing).toBeDefined(); // Non-existing definition in a non-existing module - expect(() => faker.definitions.missing.missing).toThrow(); + expect(() => faker.definitions.missing?.missing).toThrow(); // Non-existing definition in an existing module expect(() => faker.definitions.location.missing).toThrow(); }); diff --git a/test/modules/airline.spec.ts b/test/modules/airline.spec.ts index 5ac05a5b82f..bf674570c76 100644 --- a/test/modules/airline.spec.ts +++ b/test/modules/airline.spec.ts @@ -96,7 +96,7 @@ describe('airline', () => { it('should return a random narrowbody seat when not passing an argument', () => { const seat = faker.airline.seat(); const matchResult = seatRegex.exec(seat); - expect(matchResult).not.toBeNull(); + expectNotNull(matchResult); const row = matchResult[1]; const seatLetter = matchResult[2]; expect(row).toSatisfy((row: number) => row >= 1 && row <= 35); @@ -107,7 +107,7 @@ describe('airline', () => { aircraftType: Aircraft.Narrowbody, }); const matchResult = seatRegex.exec(seat); - expect(matchResult).not.toBeNull(); + expectNotNull(matchResult); const row = matchResult[1]; const seatLetter = matchResult[2]; expect(row).toSatisfy((row: number) => row >= 1 && row <= 35); @@ -116,7 +116,7 @@ describe('airline', () => { it('should return a random regional seat', () => { const seat = faker.airline.seat({ aircraftType: Aircraft.Regional }); const matchResult = seatRegex.exec(seat); - expect(matchResult).not.toBeNull(); + expectNotNull(matchResult); const row = matchResult[1]; const seatLetter = matchResult[2]; expect(row).toSatisfy((row: number) => row >= 1 && row <= 20); @@ -125,7 +125,7 @@ describe('airline', () => { it('should return a random widebody seat', () => { const seat = faker.airline.seat({ aircraftType: Aircraft.Widebody }); const matchResult = seatRegex.exec(seat); - expect(matchResult).not.toBeNull(); + expectNotNull(matchResult); const row = matchResult[1]; const seatLetter = matchResult[2]; expect(row).toSatisfy((row: number) => row >= 1 && row <= 60); @@ -179,3 +179,7 @@ describe('airline', () => { } ); }); + +function expectNotNull(value: T): asserts value is NonNullable { + expect(value).not.toBeNull(); +} diff --git a/test/modules/finance-iban.spec.ts b/test/modules/finance-iban.spec.ts index 145a4751b50..4d801aa570f 100644 --- a/test/modules/finance-iban.spec.ts +++ b/test/modules/finance-iban.spec.ts @@ -1,6 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; +import { prettyPrintIban } from '../../src/modules/finance'; import ibanLib from '../../src/modules/finance/iban'; import { times } from '../support/times'; @@ -36,7 +37,7 @@ describe('finance_iban', () => { expect(iban).toSatisfy(validator.isIBAN); - const ibanFormatted = iban.match(/.{1,4}/g).join(' '); + const ibanFormatted = prettyPrintIban(iban); const bban = iban.substring(4) + iban.substring(0, 4); expect( @@ -96,7 +97,7 @@ describe('finance_iban', () => { expect(iban).toSatisfy(validator.isIBAN); - const ibanFormated = iban.match(/.{1,4}/g).join(' '); + const ibanFormated = prettyPrintIban(iban); const bban = iban.substring(4) + iban.substring(0, 4); expect( @@ -162,7 +163,7 @@ describe('finance_iban', () => { expect(iban).toSatisfy(validator.isIBAN); - const ibanFormated = iban.match(/.{1,4}/g).join(' '); + const ibanFormated = prettyPrintIban(iban); const bban = iban.substring(4) + iban.substring(0, 4); expect( @@ -232,7 +233,7 @@ describe('finance_iban', () => { expect(iban).toSatisfy(validator.isIBAN); - const ibanFormated = iban.match(/.{1,4}/g).join(' '); + const ibanFormated = prettyPrintIban(iban); const bban = iban.substring(4) + iban.substring(0, 4); expect( @@ -291,7 +292,7 @@ describe('finance_iban', () => { expect(iban).toSatisfy(validator.isIBAN); - const ibanFormated = iban.match(/.{1,4}/g).join(' '); + const ibanFormated = prettyPrintIban(iban); const bban = iban.substring(4) + iban.substring(0, 4); expect( @@ -336,7 +337,7 @@ describe('finance_iban', () => { // Bank account number 16 digit const iban = faker.finance.iban(false, 'AL'); - const ibanFormated = iban.match(/.{1,4}/g).join(' '); + const ibanFormated = prettyPrintIban(iban); expect(iban).toSatisfy(validator.isIBAN); diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 3f850086770..766d06502c4 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -223,7 +223,6 @@ describe('helpers', () => { }); it('should throw on an empty array', () => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-return expect(() => faker.helpers.arrayElement([])).toThrow( new FakerError('Cannot get value from empty dataset.') ); @@ -1062,7 +1061,7 @@ describe('helpers', () => { }); it('should be able to return locale definition strings', () => { - expect(faker.definitions.cell_phone.formats).toContain( + expect(faker.definitions.cell_phone?.formats).toContain( faker.helpers.fake('{{cell_phone.formats}}') ); }); diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 7e0203350cb..b4a9f5ff730 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -160,7 +160,7 @@ describe('verify JSDoc tags', () => { // Write temp files to disk // Extract examples and make them runnable - const examples = extractJoinedRawExamples(signature); + const examples = extractJoinedRawExamples(signature) ?? ''; // Save examples to a file to run them later in the specific tests const dir = resolveDirToModule(moduleName); diff --git a/test/vitest-extensions.ts b/test/vitest-extensions.ts index e23b9c09c81..0a441d87425 100644 --- a/test/vitest-extensions.ts +++ b/test/vitest-extensions.ts @@ -2,7 +2,7 @@ import { expect } from 'vitest'; expect.extend({ toContainDuplicates(received: T[]) { - const { isNot } = this; + const { isNot = false } = this; const uniques = new Set(received); const duplications = received.filter((entry) => !uniques.delete(entry)); diff --git a/tsconfig.json b/tsconfig.json index cda27929e8f..da5cd4e6926 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,6 @@ "stripInternal": true, // We need to disable these for now, and need to tackle them in another PR - "strictNullChecks": false, "noImplicitAny": false, // These are configs specifically for !build and have to be reverted in the tsconfig.build.json From 932a87502c4b3ab34edbba6c46f6c9c1c91d5bf3 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 14 Nov 2023 17:28:37 +0100 Subject: [PATCH 11/98] infra(unicorn): prefer-module (#2510) --- .eslintrc.js | 1 - scripts/apidoc/utils.ts | 5 +++-- scripts/generate-locales.ts | 13 +++++++------ test/all-functional.spec.ts | 2 +- test/faker.spec.ts | 2 +- test/locale-imports.spec.ts | 2 +- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 5 +++-- test/simple-faker.spec.ts | 2 +- 8 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6636c8f319f..4b57462e1d3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -56,7 +56,6 @@ module.exports = defineConfig({ 'unicorn/numeric-separators-style': 'off', 'unicorn/prefer-code-point': 'off', 'unicorn/prefer-export-from': 'off', - 'unicorn/prefer-module': 'off', 'unicorn/prefer-string-slice': 'off', 'unicorn/prevent-abbreviations': 'off', 'unicorn/require-array-join-separator': 'off', diff --git a/scripts/apidoc/utils.ts b/scripts/apidoc/utils.ts index 18176da5b33..f26c6cdd5e2 100644 --- a/scripts/apidoc/utils.ts +++ b/scripts/apidoc/utils.ts @@ -1,5 +1,6 @@ import { createHash } from 'node:crypto'; -import { resolve } from 'node:path'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; import type { Method } from '../../docs/.vitepress/components/api-docs/method'; // Types @@ -31,7 +32,7 @@ export interface DocsApiDiff { // Paths -const pathRoot = resolve(__dirname, '..', '..'); +const pathRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..'); export const pathDocsDir = resolve(pathRoot, 'docs'); const pathPublicDir = resolve(pathDocsDir, 'public'); export const nameDocsDiffIndexFile = 'api-diff-index.json'; diff --git a/scripts/generate-locales.ts b/scripts/generate-locales.ts index d2e9513e1b0..ebc06670124 100644 --- a/scripts/generate-locales.ts +++ b/scripts/generate-locales.ts @@ -21,7 +21,8 @@ import { readFileSync, writeFileSync, } from 'node:fs'; -import { resolve } from 'node:path'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; import type { Options } from 'prettier'; import { format } from 'prettier'; import options from '../.prettierrc.js'; @@ -29,7 +30,7 @@ import type { LocaleDefinition, MetadataDefinition } from '../src/definitions'; // Constants -const pathRoot = resolve(__dirname, '..'); +const pathRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const pathLocale = resolve(pathRoot, 'src', 'locale'); const pathLocales = resolve(pathRoot, 'src', 'locales'); const pathLocaleIndex = resolve(pathLocale, 'index.ts'); @@ -359,8 +360,8 @@ async function normalizeLocaleFile(filePath: string, definitionKey: string) { } const fileContentPreData = fileContent.substring(0, compareIndex); - // eslint-disable-next-line @typescript-eslint/no-var-requires - const localeData = normalizeDataRecursive(require(filePath).default); + const fileImport = await import(`file:${filePath}`); + const localeData = normalizeDataRecursive(fileImport.default); // We reattach the content before the actual data implementation to keep stuff like comments. // In the long term we should probably define a whether we want those in the files at all. @@ -388,8 +389,8 @@ async function main(): Promise { const pathMetadata = resolve(pathModules, 'metadata.ts'); let localeTitle = 'No title found'; try { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const metadata: MetadataDefinition = require(pathMetadata).default; + const metadataImport = await import(`file:${pathMetadata}`); + const metadata: MetadataDefinition = metadataImport.default; const { title } = metadata; if (!title) { throw new Error( diff --git a/test/all-functional.spec.ts b/test/all-functional.spec.ts index 4b822175be2..5718ec4befa 100644 --- a/test/all-functional.spec.ts +++ b/test/all-functional.spec.ts @@ -73,7 +73,7 @@ const BROKEN_LOCALE_METHODS = { jobType: ['ur'], }, } satisfies { - [module in keyof Faker]?: SkipConfig; + [module_ in keyof Faker]?: SkipConfig; }; function isWorkingLocaleForMethod( diff --git a/test/faker.spec.ts b/test/faker.spec.ts index bd42246a5a5..a098d89856e 100644 --- a/test/faker.spec.ts +++ b/test/faker.spec.ts @@ -19,7 +19,7 @@ describe('faker', () => { vi.spyOn(console, methodName as keyof typeof console) ); - // eslint-disable-next-line @typescript-eslint/no-var-requires + // eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module -- Using import() requires types being build but the CI / TS-Check runs without them. require('..').faker; new Faker({ locale: { metadata: { title: '' } } }); diff --git a/test/locale-imports.spec.ts b/test/locale-imports.spec.ts index 6882d5379c8..999a7223437 100644 --- a/test/locale-imports.spec.ts +++ b/test/locale-imports.spec.ts @@ -4,7 +4,7 @@ import { allLocales } from '../src'; describe.each(Object.keys(allLocales))('locale imports', (locale) => { it(`should be possible to directly require('@faker-js/faker/locale/${locale}')`, () => { - // eslint-disable-next-line @typescript-eslint/no-var-requires + // eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module const { faker } = require(`../dist/cjs/locale/${locale}`) as { faker: Faker; }; diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index b4a9f5ff730..29a487a51ae 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -1,5 +1,6 @@ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { resolve } from 'node:path'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; import type { ReflectionType, SomeType } from 'typedoc'; import validator from 'validator'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; @@ -25,7 +26,7 @@ import { loadProjectModules } from './utils'; beforeAll(initMarkdownRenderer); -const tempDir = resolve(__dirname, 'temp'); +const tempDir = resolve(dirname(fileURLToPath(import.meta.url)), 'temp'); afterAll(() => { // Remove temp folder diff --git a/test/simple-faker.spec.ts b/test/simple-faker.spec.ts index c416f4fed4c..899bcafedfa 100644 --- a/test/simple-faker.spec.ts +++ b/test/simple-faker.spec.ts @@ -10,7 +10,7 @@ describe('simpleFaker', () => { vi.spyOn(console, methodName as keyof typeof console) ); - // eslint-disable-next-line @typescript-eslint/no-var-requires + // eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module -- Using import() requires types being build but the CI / TS-Check runs without them. require('..').simpleFaker; new SimpleFaker(); From 3f614f0e2d80d3408ca5e2c6695839e3b9e2d166 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Tue, 14 Nov 2023 20:17:15 +0100 Subject: [PATCH 12/98] chore(release): 8.3.0 (#2546) --- CHANGELOG.md | 27 ++ package.json | 2 +- pnpm-lock.yaml | 698 +++++++++++++++++++++++-------------------------- 3 files changed, 353 insertions(+), 374 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98cfc8b2cd2..e09eb1466cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,33 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [8.3.0](https://github.com/faker-js/faker/compare/v8.2.0...v8.3.0) (2023-11-14) + + +### Features + +* **person:** use fake patterns for jobTitle ([#2528](https://github.com/faker-js/faker/issues/2528)) ([b40ad45](https://github.com/faker-js/faker/commit/b40ad45ad3cca6769968a63264e6d925bf4b328a)) + + +### Bug Fixes + +* **date:** ensures correct range for birthdate ([#2535](https://github.com/faker-js/faker/issues/2535)) ([7ce8c28](https://github.com/faker-js/faker/commit/7ce8c285cb5b2d13e95a17be78ecbd52f3c7d9db)) +* **finance:** maskedNumber has incorrect defaults ([#2494](https://github.com/faker-js/faker/issues/2494)) ([e0ba50b](https://github.com/faker-js/faker/commit/e0ba50b37e438503ed1899bff35afc92b4f8f49c)) +* **locale:** improve Swedish phone numbers format ([#2520](https://github.com/faker-js/faker/issues/2520)) ([e4865df](https://github.com/faker-js/faker/commit/e4865df199359797397cc3c5455f3a1a9c179f93)) + + +### Changed Locales + +* **locale:** remove fr_CH data which is identical to fr ([#2526](https://github.com/faker-js/faker/issues/2526)) ([fafcba4](https://github.com/faker-js/faker/commit/fafcba473f8a91eeb8230ebdc1ad5039b25091e1)) + + +### New Locales + +* **locale:** add person to fr_SN ([#2537](https://github.com/faker-js/faker/issues/2537)) ([ef965da](https://github.com/faker-js/faker/commit/ef965da48a8089e6bb19bcf260bfcd8af1a43799)) +* **locale:** add Senegal locale ([#2525](https://github.com/faker-js/faker/issues/2525)) ([6df70bc](https://github.com/faker-js/faker/commit/6df70bce16500ab74a37f932f2e17a08f297430b)) +* **locale:** add streets to location fr_SN ([#2536](https://github.com/faker-js/faker/issues/2536)) ([36fc517](https://github.com/faker-js/faker/commit/36fc517d17591c8ea1d5135d9a93c7591e3d1f74)) +* **locale:** and location to fr_SN ([#2533](https://github.com/faker-js/faker/issues/2533)) ([f730125](https://github.com/faker-js/faker/commit/f730125ffb941fe936d6a18c775cbe3a99b312dc)) + ## [8.2.0](https://github.com/faker-js/faker/compare/v8.1.0...v8.2.0) (2023-10-14) diff --git a/package.json b/package.json index 14617db72da..e33788b47d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@faker-js/faker", - "version": "8.2.0", + "version": "8.3.0", "description": "Generate massive amounts of fake contextual data", "keywords": [ "faker", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 595c9fefc96..672c33a2193 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -114,7 +114,7 @@ devDependencies: version: 4.5.0(@types/node@20.9.0) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.9.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.10.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -134,21 +134,21 @@ packages: dependencies: '@actions/http-client': 2.2.0 '@octokit/core': 5.0.1 - '@octokit/plugin-paginate-rest': 9.0.0(@octokit/core@5.0.1) - '@octokit/plugin-rest-endpoint-methods': 10.0.1(@octokit/core@5.0.1) + '@octokit/plugin-paginate-rest': 9.1.4(@octokit/core@5.0.1) + '@octokit/plugin-rest-endpoint-methods': 10.1.5(@octokit/core@5.0.1) dev: true /@actions/http-client@2.2.0: resolution: {integrity: sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==} dependencies: tunnel: 0.0.6 - undici: 5.26.3 + undici: 5.27.2 dev: true - /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.9.0): + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.9.0) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0) '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) transitivePeerDependencies: - '@algolia/client-search' @@ -156,13 +156,13 @@ packages: - search-insights dev: true - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.9.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) - search-insights: 2.9.0 + search-insights: 2.10.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch @@ -319,7 +319,7 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 dev: true /@babel/code-frame@7.22.13: @@ -349,16 +349,16 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/parser@7.23.0: - resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} + /@babel/parser@7.23.3: + resolution: {integrity: sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.3 dev: true - /@babel/types@7.23.0: - resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} + /@babel/types@7.23.3: + resolution: {integrity: sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.22.5 @@ -414,11 +414,11 @@ packages: resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==} dev: true - /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.9.0): + /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0): resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: - '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.9.0) - preact: 10.18.1 + '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0) + preact: 10.19.2 transitivePeerDependencies: - '@algolia/client-search' - '@types/react' @@ -427,7 +427,7 @@ packages: - search-insights dev: true - /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.9.0): + /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0): resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -444,11 +444,11 @@ packages: search-insights: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.9.0) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0) '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) '@docsearch/css': 3.5.2 algoliasearch: 4.20.0 - search-insights: 2.9.0 + search-insights: 2.10.0 transitivePeerDependencies: - '@algolia/client-search' dev: true @@ -868,8 +868,8 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.9.1: - resolution: {integrity: sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==} + /@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -895,8 +895,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@fastify/busboy@2.0.0: - resolution: {integrity: sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==} + /@fastify/busboy@2.1.0: + resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==} engines: {node: '>=14'} dev: true @@ -960,7 +960,7 @@ packages: dependencies: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 dev: true /@jridgewell/resolve-uri@3.1.1: @@ -977,8 +977,8 @@ packages: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true - /@jridgewell/trace-mapping@0.3.19: - resolution: {integrity: sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==} + /@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} dependencies: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 @@ -1016,79 +1016,79 @@ packages: dependencies: '@octokit/auth-token': 4.0.0 '@octokit/graphql': 7.0.2 - '@octokit/request': 8.1.4 + '@octokit/request': 8.1.5 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.3.0 before-after-hook: 2.2.3 - universal-user-agent: 6.0.0 + universal-user-agent: 6.0.1 dev: true - /@octokit/endpoint@9.0.1: - resolution: {integrity: sha512-hRlOKAovtINHQPYHZlfyFwaM8OyetxeoC81lAkBy34uLb8exrZB50SQdeW3EROqiY9G9yxQTpp5OHTV54QD+vA==} + /@octokit/endpoint@9.0.2: + resolution: {integrity: sha512-qhKW8YLIi+Kmc92FQUFGr++DYtkx/1fBv+Thua6baqnjnOsgBYJDCvWZR1YcINuHGOEQt416WOfE+A/oG60NBQ==} engines: {node: '>= 18'} dependencies: - '@octokit/types': 12.0.0 + '@octokit/types': 12.3.0 is-plain-object: 5.0.0 - universal-user-agent: 6.0.0 + universal-user-agent: 6.0.1 dev: true /@octokit/graphql@7.0.2: resolution: {integrity: sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q==} engines: {node: '>= 18'} dependencies: - '@octokit/request': 8.1.4 - '@octokit/types': 12.0.0 - universal-user-agent: 6.0.0 + '@octokit/request': 8.1.5 + '@octokit/types': 12.3.0 + universal-user-agent: 6.0.1 dev: true - /@octokit/openapi-types@19.0.0: - resolution: {integrity: sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==} + /@octokit/openapi-types@19.0.2: + resolution: {integrity: sha512-8li32fUDUeml/ACRp/njCWTsk5t17cfTM1jp9n08pBrqs5cDFJubtjsSnuz56r5Tad6jdEPJld7LxNp9dNcyjQ==} dev: true - /@octokit/plugin-paginate-rest@9.0.0(@octokit/core@5.0.1): - resolution: {integrity: sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==} + /@octokit/plugin-paginate-rest@9.1.4(@octokit/core@5.0.1): + resolution: {integrity: sha512-MvZx4WvfhBnt7PtH5XE7HORsO7bBk4er1FgRIUr1qJ89NR2I6bWjGyKsxk8z42FPQ34hFQm0Baanh4gzdZR4gQ==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': '>=5' dependencies: '@octokit/core': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.3.0 dev: true - /@octokit/plugin-rest-endpoint-methods@10.0.1(@octokit/core@5.0.1): - resolution: {integrity: sha512-fgS6HPkPvJiz8CCliewLyym9qAx0RZ/LKh3sATaPfM41y/O2wQ4Z9MrdYeGPVh04wYmHFmWiGlKPC7jWVtZXQA==} + /@octokit/plugin-rest-endpoint-methods@10.1.5(@octokit/core@5.0.1): + resolution: {integrity: sha512-LMEdsMV8TTMjMTqVoqMzV95XTbv0ZsWxCxQtjAunQOCdwoDH4BVF/Ke5JMSZEVCWGI2kzxnUNbFnK/MxwV7NjA==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': '>=5' dependencies: '@octokit/core': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.3.0 dev: true /@octokit/request-error@5.0.1: resolution: {integrity: sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==} engines: {node: '>= 18'} dependencies: - '@octokit/types': 12.0.0 + '@octokit/types': 12.3.0 deprecation: 2.3.1 once: 1.4.0 dev: true - /@octokit/request@8.1.4: - resolution: {integrity: sha512-M0aaFfpGPEKrg7XoA/gwgRvc9MSXHRO2Ioki1qrPDbl1e9YhjIwVoHE7HIKmv/m3idzldj//xBujcFNqGX6ENA==} + /@octokit/request@8.1.5: + resolution: {integrity: sha512-zVKbNbX1xUluD9ZR4/tPs1yuYrK9xeh5fGZUXA6u04XGsTvomg0YO8/ZUC0FqAd49hAOEMFPAVUTh+2lBhOhLA==} engines: {node: '>= 18'} dependencies: - '@octokit/endpoint': 9.0.1 + '@octokit/endpoint': 9.0.2 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.3.0 is-plain-object: 5.0.0 - universal-user-agent: 6.0.0 + universal-user-agent: 6.0.1 dev: true - /@octokit/types@12.0.0: - resolution: {integrity: sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==} + /@octokit/types@12.3.0: + resolution: {integrity: sha512-nJ8X2HRr234q3w/FcovDlA+ttUU4m1eJAourvfUUtwAWeqL8AsyRqfnLvVnYn3NFbUnsmzQCzLNdFerPwdmcDQ==} dependencies: - '@octokit/openapi-types': 19.0.0 + '@octokit/openapi-types': 19.0.2 dev: true /@pkgjs/parseargs@0.11.0: @@ -1103,7 +1103,7 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dependencies: cross-spawn: 7.0.3 - fast-glob: 3.3.1 + fast-glob: 3.3.2 is-glob: 4.0.3 open: 9.1.0 picocolors: 1.0.0 @@ -1118,45 +1118,47 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@types/chai-subset@1.3.3: - resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} + /@types/chai-subset@1.3.5: + resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} dependencies: - '@types/chai': 4.3.8 + '@types/chai': 4.3.10 dev: true - /@types/chai@4.3.8: - resolution: {integrity: sha512-yW/qTM4mRBBcsA9Xw9FbcImYtFPY7sgr+G/O5RDYVmxiy9a+pE5FyoFUi8JYCZY5nicj8atrr1pcfPiYpeNGOA==} + /@types/chai@4.3.10: + resolution: {integrity: sha512-of+ICnbqjmFCiixUnqRulbylyXQrPqIGf/B3Jax1wIF3DvSheysQxAWvqHhZiW3IQrycvokcLcFQlveGp+vyNg==} dev: true - /@types/istanbul-lib-coverage@2.0.4: - resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} + /@types/istanbul-lib-coverage@2.0.6: + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} dev: true - /@types/json-schema@7.0.13: - resolution: {integrity: sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==} + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} dev: true - /@types/linkify-it@3.0.3: - resolution: {integrity: sha512-pTjcqY9E4nOI55Wgpz7eiI8+LzdYnw3qxXCfHyBDdPbYvbyLgWLJGh8EdPvqawwMK1Uo1794AUkkR38Fr0g+2g==} + /@types/linkify-it@3.0.5: + resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==} dev: true /@types/markdown-it@13.0.6: resolution: {integrity: sha512-0VqpvusJn1/lwRegCxcHVdmLfF+wIsprsKMC9xW8UPcTxhFcQtoN/fBU1zMe8pH7D/RuueMh2CaBaNv+GrLqTw==} dependencies: - '@types/linkify-it': 3.0.3 - '@types/mdurl': 1.0.3 + '@types/linkify-it': 3.0.5 + '@types/mdurl': 1.0.5 dev: true - /@types/mdurl@1.0.3: - resolution: {integrity: sha512-T5k6kTXak79gwmIOaDF2UUQXFbnBE0zBUzF20pz7wDYu0RQMzWg+Ml/Pz50214NsFHBITkoi5VtdjFZnJ2ijjA==} + /@types/mdurl@1.0.5: + resolution: {integrity: sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==} dev: true - /@types/minimist@1.2.3: - resolution: {integrity: sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==} + /@types/minimist@1.2.5: + resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: true - /@types/node@18.18.5: - resolution: {integrity: sha512-4slmbtwV59ZxitY4ixUZdy1uRLf9eSIvBWPQxNjhHYWEtn0FryfKpyS2cvADYXTayWdKEIsJengncrVvkI4I6A==} + /@types/node@18.18.9: + resolution: {integrity: sha512-0f5klcuImLnG4Qreu9hPj/rEfFq6YRc5n2mAjSsH+ec/mJL+3voBH0+8T7o8RpFjH7ovc+TRsL/c7OYIQsPTfQ==} + dependencies: + undici-types: 5.26.5 dev: true /@types/node@20.9.0: @@ -1165,8 +1167,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/normalize-package-data@2.4.2: - resolution: {integrity: sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==} + /@types/normalize-package-data@2.4.4: + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: true /@types/sanitize-html@2.9.4: @@ -1183,24 +1185,20 @@ packages: resolution: {integrity: sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==} dev: true - /@types/sizzle@2.3.4: - resolution: {integrity: sha512-jA2llq2zNkg8HrALI7DtWzhALcVH0l7i89yhY3iBdOz6cBPeACoFq+fkQrjHA39t1hnSFOboZ7A/AY5MMZSlag==} + /@types/sizzle@2.3.6: + resolution: {integrity: sha512-m04Om5Gz6kbjUwAQ7XJJQ30OdEFsSmAVsvn4NYwcTRyMVpKKa1aPuESw1n2CxS5fYkOQv3nHgDKeNa8e76fUkw==} dev: true /@types/validator@13.11.6: resolution: {integrity: sha512-HUgHujPhKuNzgNXBRZKYexwoG+gHKU+tnfPqjWXFghZAnn73JElicMkuSKJyLGr9JgyA8IgK7fj88IyA9rwYeQ==} dev: true - /@types/web-bluetooth@0.0.18: - resolution: {integrity: sha512-v/ZHEj9xh82usl8LMR3GarzFY1IrbXJw5L4QfQhokjRV91q+SelFqxQWSep1ucXEZ22+dSTwLFkXeur25sPIbw==} - dev: true - /@types/web-bluetooth@0.0.20: resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} dev: true - /@types/yauzl@2.10.1: - resolution: {integrity: sha512-CHzgNU3qYBnp/O4S3yv2tXPlvMTq0YWSTVg2/JYLqWZGHwwgJGAwd00poay/11asPq8wLFwHzubyInqHIFmmiw==} + /@types/yauzl@2.10.3: + resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: '@types/node': 20.9.0 @@ -1218,7 +1216,7 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.9.1 + '@eslint-community/regexpp': 4.10.0 '@typescript-eslint/parser': 6.10.0(eslint@8.53.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 6.10.0 '@typescript-eslint/type-utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) @@ -1265,20 +1263,12 @@ packages: '@typescript-eslint/visitor-keys': 6.10.0 dev: true - /@typescript-eslint/scope-manager@6.7.5: - resolution: {integrity: sha512-GAlk3eQIwWOJeb9F7MKQ6Jbah/vx1zETSDw8likab/eFcqkjSD7BI75SDAeC5N2L0MmConMoPvTsmkrg71+B1A==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/visitor-keys': 6.7.5 - dev: true - - /@typescript-eslint/scope-manager@6.9.1: - resolution: {integrity: sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==} + /@typescript-eslint/scope-manager@6.11.0: + resolution: {integrity: sha512-0A8KoVvIURG4uhxAdjSaxy8RdRE//HztaZdG8KiHLP8WOXSk0vlF7Pvogv+vlJA5Rnjj/wDcFENvDaHb+gKd1A==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.9.1 - '@typescript-eslint/visitor-keys': 6.9.1 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/visitor-keys': 6.11.0 dev: true /@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@4.9.5): @@ -1306,13 +1296,8 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.7.5: - resolution: {integrity: sha512-WboQBlOXtdj1tDFPyIthpKrUb+kZf2VroLZhxKa/VlwLlLyqv/PwUNgL30BlTVZV1Wu4Asu2mMYPqarSO4L5ZQ==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - - /@typescript-eslint/types@6.9.1: - resolution: {integrity: sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==} + /@typescript-eslint/types@6.11.0: + resolution: {integrity: sha512-ZbEzuD4DwEJxwPqhv3QULlRj8KYTAnNsXxmfuUXFCxZmO6CF2gM/y+ugBSAQhrqaJL3M+oe4owdWunaHM6beqA==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1337,29 +1322,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.7.5(typescript@4.9.5): - resolution: {integrity: sha512-NhJiJ4KdtwBIxrKl0BqG1Ur+uw7FiOnOThcYx9DpOGJ/Abc9z2xNzLeirCG02Ig3vkvrc2qFLmYSSsaITbKjlg==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/visitor-keys': 6.7.5 - debug: 4.3.4(supports-color@8.1.1) - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@4.9.5) - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/typescript-estree@6.9.1(typescript@4.9.5): - resolution: {integrity: sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==} + /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5): + resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1367,8 +1331,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.9.1 - '@typescript-eslint/visitor-keys': 6.9.1 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1386,7 +1350,7 @@ packages: eslint: ^7.0.0 || ^8.0.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) - '@types/json-schema': 7.0.13 + '@types/json-schema': 7.0.15 '@types/semver': 7.5.5 '@typescript-eslint/scope-manager': 6.10.0 '@typescript-eslint/types': 6.10.0 @@ -1398,37 +1362,18 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.7.5(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-pfRRrH20thJbzPPlPc4j0UNGvH1PjPlhlCMq4Yx7EGjV7lvEeGX0U6MJYe8+SyFutWgSHsdbJ3BXzZccYggezA==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) - '@types/json-schema': 7.0.13 - '@types/semver': 7.5.5 - '@typescript-eslint/scope-manager': 6.7.5 - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/typescript-estree': 6.7.5(typescript@4.9.5) - eslint: 8.53.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - - /@typescript-eslint/utils@6.9.1(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==} + /@typescript-eslint/utils@6.11.0(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) - '@types/json-schema': 7.0.13 + '@types/json-schema': 7.0.15 '@types/semver': 7.5.5 - '@typescript-eslint/scope-manager': 6.9.1 - '@typescript-eslint/types': 6.9.1 - '@typescript-eslint/typescript-estree': 6.9.1(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.11.0 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) eslint: 8.53.0 semver: 7.5.4 transitivePeerDependencies: @@ -1444,19 +1389,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.7.5: - resolution: {integrity: sha512-3MaWdDZtLlsexZzDSdQWsFQ9l9nL8B80Z4fImSpyllFC/KLqWQRdEcB+gGGO+N3Q2uL40EsG66wZLsohPxNXvg==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.7.5 - eslint-visitor-keys: 3.4.3 - dev: true - - /@typescript-eslint/visitor-keys@6.9.1: - resolution: {integrity: sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==} + /@typescript-eslint/visitor-keys@6.11.0: + resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.9.1 + '@typescript-eslint/types': 6.11.0 eslint-visitor-keys: 3.4.3 dev: true @@ -1464,8 +1401,8 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.4.0(vite@4.5.0)(vue@3.3.8): - resolution: {integrity: sha512-xdguqb+VUwiRpSg+nsc2HtbAUSGak25DXYvpQQi4RVU1Xq1uworyoH/md9Rfd8zMmPR/pSghr309QNcftUVseg==} + /@vitejs/plugin-vue@4.4.1(vite@4.5.0)(vue@3.3.8): + resolution: {integrity: sha512-HCQG8VDFDM7YDAdcj5QI5DvUi+r6xvo9LgvYdk7LSkUNwdpempdB5horkMSZsbdey9Ywsf5aaU8kEPw9M5kREA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 @@ -1482,13 +1419,13 @@ packages: dependencies: '@ampproject/remapping': 2.2.1 '@bcoe/v8-coverage': 0.2.3 - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.6 magic-string: 0.30.5 picocolors: 1.0.0 - std-env: 3.4.3 + std-env: 3.5.0 test-exclude: 6.0.0 v8-to-istanbul: 9.1.3 vitest: 0.34.6(@vitest/ui@0.34.7) @@ -1532,7 +1469,7 @@ packages: vitest: '>=0.30.1 <1' dependencies: '@vitest/utils': 0.34.7 - fast-glob: 3.3.1 + fast-glob: 3.3.2 fflate: 0.8.1 flatted: 3.2.9 pathe: 1.1.1 @@ -1560,7 +1497,7 @@ packages: /@vue/compiler-core@3.3.8: resolution: {integrity: sha512-hN/NNBUECw8SusQvDSqqcVv6gWq8L6iAktUR0UF3vGu2OhzRqcOiAno0FmBJWwxhYEXRlQJT5XnoKsVq1WZx4g==} dependencies: - '@babel/parser': 7.23.0 + '@babel/parser': 7.23.3 '@vue/shared': 3.3.8 estree-walker: 2.0.2 source-map-js: 1.0.2 @@ -1576,7 +1513,7 @@ packages: /@vue/compiler-sfc@3.3.8: resolution: {integrity: sha512-WMzbUrlTjfYF8joyT84HfwwXo+8WPALuPxhy+BZ6R4Aafls+jDBnSz8PDz60uFhuqFbl3HxRfxvDzrUf3THwpA==} dependencies: - '@babel/parser': 7.23.0 + '@babel/parser': 7.23.3 '@vue/compiler-core': 3.3.8 '@vue/compiler-dom': 3.3.8 '@vue/compiler-ssr': 3.3.8 @@ -1602,7 +1539,7 @@ packages: /@vue/reactivity-transform@3.3.8: resolution: {integrity: sha512-49CvBzmZNtcHua0XJ7GdGifM8GOXoUMOX4dD40Y5DxI3R8OUhMlvf2nvgUAcPxaXiV5MQQ1Nwy09ADpnLQUqRw==} dependencies: - '@babel/parser': 7.23.0 + '@babel/parser': 7.23.3 '@vue/compiler-core': 3.3.8 '@vue/shared': 3.3.8 estree-walker: 2.0.2 @@ -1644,32 +1581,32 @@ packages: resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} dev: true - /@vueuse/core@10.5.0(vue@3.3.8): - resolution: {integrity: sha512-z/tI2eSvxwLRjOhDm0h/SXAjNm8N5ld6/SC/JQs6o6kpJ6Ya50LnEL8g5hoYu005i28L0zqB5L5yAl8Jl26K3A==} + /@vueuse/core@10.6.0(vue@3.3.8): + resolution: {integrity: sha512-+Yee+g9+9BEbvkyGdn4Bf4yZx9EfocAytpV2ZlrlP7xcz+qznLmZIDqDroTvc5vtMkWZicisgEv8dt3+jL+HQg==} dependencies: - '@types/web-bluetooth': 0.0.18 - '@vueuse/metadata': 10.5.0 - '@vueuse/shared': 10.5.0(vue@3.3.8) + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 10.6.0 + '@vueuse/shared': 10.6.0(vue@3.3.8) vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/core@10.6.0(vue@3.3.8): - resolution: {integrity: sha512-+Yee+g9+9BEbvkyGdn4Bf4yZx9EfocAytpV2ZlrlP7xcz+qznLmZIDqDroTvc5vtMkWZicisgEv8dt3+jL+HQg==} + /@vueuse/core@10.6.1(vue@3.3.8): + resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} dependencies: '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.6.0 - '@vueuse/shared': 10.6.0(vue@3.3.8) + '@vueuse/metadata': 10.6.1 + '@vueuse/shared': 10.6.1(vue@3.3.8) vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.5.0(focus-trap@7.5.4)(vue@3.3.8): - resolution: {integrity: sha512-fm5sXLCK0Ww3rRnzqnCQRmfjDURaI4xMsx+T+cec0ngQqHx/JgUtm8G0vRjwtonIeTBsH1Q8L3SucE+7K7upJQ==} + /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.8): + resolution: {integrity: sha512-mPDupuofMJ4DPmtX/FfP1MajmWRzYDv8WSaTCo8LQ5kFznjWgmUQ16ApjYqgMquqffNY6+IRMdMgosLDRZOSZA==} peerDependencies: async-validator: '*' axios: '*' @@ -1709,8 +1646,8 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.5.0(vue@3.3.8) - '@vueuse/shared': 10.5.0(vue@3.3.8) + '@vueuse/core': 10.6.1(vue@3.3.8) + '@vueuse/shared': 10.6.1(vue@3.3.8) focus-trap: 7.5.4 vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: @@ -1718,16 +1655,16 @@ packages: - vue dev: true - /@vueuse/metadata@10.5.0: - resolution: {integrity: sha512-fEbElR+MaIYyCkeM0SzWkdoMtOpIwO72x8WsZHRE7IggiOlILttqttM69AS13nrDxosnDBYdyy3C5mR1LCxHsw==} - dev: true - /@vueuse/metadata@10.6.0: resolution: {integrity: sha512-mzKHkHoiK6xVz01VzQjM2l6ofUanEaofgEGPgDHcAzlvOTccPRTIdEuzneOUTYxgfm1vkDikS6rtrEw/NYlaTQ==} dev: true - /@vueuse/shared@10.5.0(vue@3.3.8): - resolution: {integrity: sha512-18iyxbbHYLst9MqU1X1QNdMHIjks6wC7XTVf0KNOv5es/Ms6gjVFCAAWTVP2JStuGqydg3DT+ExpFORUEi9yhg==} + /@vueuse/metadata@10.6.1: + resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==} + dev: true + + /@vueuse/shared@10.6.0(vue@3.3.8): + resolution: {integrity: sha512-0t4MVE18sO+/4Gh0jfeOXBTjKeV4606N9kIrDOLPjFl8Rwnlodn+QC5A4LfJuysK7aOsTMjF3KnzNeueaI0xlQ==} dependencies: vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: @@ -1735,8 +1672,8 @@ packages: - vue dev: true - /@vueuse/shared@10.6.0(vue@3.3.8): - resolution: {integrity: sha512-0t4MVE18sO+/4Gh0jfeOXBTjKeV4606N9kIrDOLPjFl8Rwnlodn+QC5A4LfJuysK7aOsTMjF3KnzNeueaI0xlQ==} + /@vueuse/shared@10.6.1(vue@3.3.8): + resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} dependencies: vue-demi: 0.14.6(vue@3.3.8) transitivePeerDependencies: @@ -1752,21 +1689,21 @@ packages: through: 2.3.8 dev: true - /acorn-jsx@5.3.2(acorn@8.10.0): + /acorn-jsx@5.3.2(acorn@8.11.2): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.10.0 + acorn: 8.11.2 dev: true - /acorn-walk@8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + /acorn-walk@8.3.0: + resolution: {integrity: sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==} engines: {node: '>=0.4.0'} dev: true - /acorn@8.10.0: - resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} + /acorn@8.11.2: + resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -1877,7 +1814,7 @@ packages: /array-buffer-byte-length@1.0.0: resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 is-array-buffer: 3.0.2 dev: true @@ -1894,10 +1831,10 @@ packages: resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - es-shim-unscopables: 1.0.0 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 dev: true /arraybuffer.prototype.slice@1.0.2: @@ -1905,10 +1842,10 @@ packages: engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.0 - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - get-intrinsic: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 is-array-buffer: 3.0.2 is-shared-array-buffer: 1.0.2 dev: true @@ -1938,8 +1875,8 @@ packages: engines: {node: '>=8'} dev: true - /async@3.2.4: - resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} + /async@3.2.5: + resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} dev: true /asynckit@0.4.0: @@ -2063,11 +2000,12 @@ packages: engines: {node: '>=6'} dev: true - /call-bind@1.0.2: - resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} + /call-bind@1.0.5: + resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} dependencies: function-bind: 1.1.2 - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 + set-function-length: 1.1.1 dev: true /callsites@3.1.0: @@ -2589,9 +2527,9 @@ packages: dependencies: '@cypress/request': 3.0.1 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) - '@types/node': 18.18.5 + '@types/node': 18.18.9 '@types/sinonjs__fake-timers': 8.1.1 - '@types/sizzle': 2.3.4 + '@types/sizzle': 2.3.6 arch: 2.2.0 blob-util: 2.0.2 bluebird: 3.7.2 @@ -2733,9 +2671,9 @@ packages: resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 gopd: 1.0.1 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 dev: true /define-lazy-prop@3.0.0: @@ -2748,7 +2686,7 @@ packages: engines: {node: '>= 0.4'} dependencies: define-data-property: 1.1.1 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 object-keys: 1.1.1 dev: true @@ -2876,26 +2814,26 @@ packages: is-arrayish: 0.2.1 dev: true - /es-abstract@1.22.2: - resolution: {integrity: sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA==} + /es-abstract@1.22.3: + resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.0 arraybuffer.prototype.slice: 1.0.2 available-typed-arrays: 1.0.5 - call-bind: 1.0.2 - es-set-tostringtag: 2.0.1 + call-bind: 1.0.5 + es-set-tostringtag: 2.0.2 es-to-primitive: 1.2.1 function.prototype.name: 1.1.6 - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 get-symbol-description: 1.0.0 globalthis: 1.0.3 gopd: 1.0.1 - has: 1.0.4 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 has-proto: 1.0.1 has-symbols: 1.0.3 - internal-slot: 1.0.5 + hasown: 2.0.0 + internal-slot: 1.0.6 is-array-buffer: 3.0.2 is-callable: 1.2.7 is-negative-zero: 2.0.2 @@ -2904,7 +2842,7 @@ packages: is-string: 1.0.7 is-typed-array: 1.1.12 is-weakref: 1.0.2 - object-inspect: 1.12.3 + object-inspect: 1.13.1 object-keys: 1.1.1 object.assign: 4.1.4 regexp.prototype.flags: 1.5.1 @@ -2918,22 +2856,22 @@ packages: typed-array-byte-offset: 1.0.0 typed-array-length: 1.0.4 unbox-primitive: 1.0.2 - which-typed-array: 1.1.11 + which-typed-array: 1.1.13 dev: true - /es-set-tostringtag@2.0.1: - resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} + /es-set-tostringtag@2.0.2: + resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 - has: 1.0.4 + get-intrinsic: 1.2.2 has-tostringtag: 1.0.0 + hasown: 2.0.0 dev: true - /es-shim-unscopables@1.0.0: - resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} + /es-shim-unscopables@1.0.2: + resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} dependencies: - has: 1.0.4 + hasown: 2.0.0 dev: true /es-to-primitive@1.2.1: @@ -3043,7 +2981,7 @@ packages: array.prototype.flatmap: 1.3.2 debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 - fast-glob: 3.3.1 + fast-glob: 3.3.2 transitivePeerDependencies: - supports-color dev: true @@ -3054,7 +2992,7 @@ packages: eslint: ^7.0.0 || ^8.0.0 typescript: ^4.2.4 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 6.7.5(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) eslint: 8.53.0 tslib: 2.6.2 tsutils: 3.21.0(typescript@4.9.5) @@ -3141,7 +3079,7 @@ packages: optional: true dependencies: '@typescript-eslint/eslint-plugin': 6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.9.1(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) eslint: 8.53.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: @@ -3168,7 +3106,7 @@ packages: hasBin: true dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) - '@eslint-community/regexpp': 4.9.1 + '@eslint-community/regexpp': 4.10.0 '@eslint/eslintrc': 2.1.3 '@eslint/js': 8.53.0 '@humanwhocodes/config-array': 0.11.13 @@ -3213,8 +3151,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.10.0 - acorn-jsx: 5.3.2(acorn@8.10.0) + acorn: 8.11.2 + acorn-jsx: 5.3.2(acorn@8.11.2) eslint-visitor-keys: 3.4.3 dev: true @@ -3315,7 +3253,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': 2.10.1 + '@types/yauzl': 2.10.3 transitivePeerDependencies: - supports-color dev: true @@ -3333,8 +3271,8 @@ packages: resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} dev: true - /fast-glob@3.3.1: - resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} dependencies: '@nodelib/fs.stat': 2.0.5 @@ -3379,7 +3317,7 @@ packages: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flat-cache: 3.1.1 + flat-cache: 3.2.0 dev: true /fill-range@7.0.1: @@ -3427,9 +3365,9 @@ packages: path-exists: 5.0.0 dev: true - /flat-cache@3.1.1: - resolution: {integrity: sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==} - engines: {node: '>=12.0.0'} + /flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} dependencies: flatted: 3.2.9 keyv: 4.5.4 @@ -3480,7 +3418,7 @@ packages: at-least-node: 1.0.0 graceful-fs: 4.2.11 jsonfile: 6.1.0 - universalify: 2.0.0 + universalify: 2.0.1 dev: true /fs.realpath@1.0.0: @@ -3503,9 +3441,9 @@ packages: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 functions-have-names: 1.2.3 dev: true @@ -3522,13 +3460,13 @@ packages: resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} dev: true - /get-intrinsic@1.2.1: - resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==} + /get-intrinsic@1.2.2: + resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==} dependencies: function-bind: 1.1.2 - has: 1.0.4 has-proto: 1.0.1 has-symbols: 1.0.3 + hasown: 2.0.0 dev: true /get-pkg-repo@4.2.1: @@ -3558,8 +3496,8 @@ packages: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 dev: true /get-tsconfig@4.7.2: @@ -3571,7 +3509,7 @@ packages: /getos@3.2.1: resolution: {integrity: sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==} dependencies: - async: 3.2.4 + async: 3.2.5 dev: true /getpass@0.1.7: @@ -3698,7 +3636,7 @@ packages: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.3.1 + fast-glob: 3.3.2 ignore: 5.2.4 merge2: 1.4.1 slash: 3.0.0 @@ -3707,7 +3645,7 @@ packages: /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 dev: true /graceful-fs@4.2.11: @@ -3750,10 +3688,10 @@ packages: engines: {node: '>=8'} dev: true - /has-property-descriptors@1.0.0: - resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} + /has-property-descriptors@1.0.1: + resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 dev: true /has-proto@1.0.1: @@ -3773,9 +3711,11 @@ packages: has-symbols: 1.0.3 dev: true - /has@1.0.4: - resolution: {integrity: sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==} - engines: {node: '>= 0.4.0'} + /hasown@2.0.0: + resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 dev: true /hosted-git-info@2.8.9: @@ -3793,7 +3733,7 @@ packages: resolution: {integrity: sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA==} engines: {node: ^16.14.0 || >=18.0.0} dependencies: - lru-cache: 10.0.1 + lru-cache: 10.0.2 dev: true /html-escaper@2.0.2: @@ -3815,7 +3755,7 @@ packages: dependencies: assert-plus: 1.0.0 jsprim: 2.0.2 - sshpk: 1.17.0 + sshpk: 1.18.0 dev: true /human-signals@1.1.1: @@ -3880,20 +3820,20 @@ packages: engines: {node: '>=10'} dev: true - /internal-slot@1.0.5: - resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} + /internal-slot@1.0.6: + resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 - has: 1.0.4 + get-intrinsic: 1.2.2 + hasown: 2.0.0 side-channel: 1.0.4 dev: true /is-array-buffer@3.0.2: resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-typed-array: 1.1.12 dev: true @@ -3911,7 +3851,7 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: true @@ -3934,10 +3874,10 @@ packages: ci-info: 3.9.0 dev: true - /is-core-module@2.13.0: - resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: - has: 1.0.4 + hasown: 2.0.0 dev: true /is-date-object@1.0.5: @@ -4033,14 +3973,14 @@ packages: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: true /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 dev: true /is-stream@2.0.1: @@ -4085,7 +4025,7 @@ packages: resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} engines: {node: '>= 0.4'} dependencies: - which-typed-array: 1.1.11 + which-typed-array: 1.1.13 dev: true /is-typedarray@1.0.0: @@ -4100,7 +4040,7 @@ packages: /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 dev: true /is-wsl@2.2.0: @@ -4126,8 +4066,8 @@ packages: resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==} dev: true - /istanbul-lib-coverage@3.2.0: - resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} + /istanbul-lib-coverage@3.2.2: + resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} engines: {node: '>=8'} dev: true @@ -4135,7 +4075,7 @@ packages: resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} engines: {node: '>=10'} dependencies: - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 make-dir: 4.0.0 supports-color: 7.2.0 dev: true @@ -4145,7 +4085,7 @@ packages: engines: {node: '>=10'} dependencies: debug: 4.3.4(supports-color@8.1.1) - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 source-map: 0.6.1 transitivePeerDependencies: - supports-color @@ -4239,7 +4179,7 @@ packages: /jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} dependencies: - universalify: 2.0.0 + universalify: 2.0.1 optionalDependencies: graceful-fs: 4.2.11 dev: true @@ -4287,8 +4227,8 @@ packages: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true - /lines-and-columns@2.0.3: - resolution: {integrity: sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==} + /lines-and-columns@2.0.4: + resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true @@ -4404,9 +4344,11 @@ packages: get-func-name: 2.0.2 dev: true - /lru-cache@10.0.1: - resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} + /lru-cache@10.0.2: + resolution: {integrity: sha512-Yj9mA8fPiVgOUpByoTZO5pNrcl5Yk37FcSHsUINpAsaBIEZIuqcCclDZJCVxqQShDsmYX8QG63svJiTbOATZwg==} engines: {node: 14 || >=16.14} + dependencies: + semver: 7.5.4 dev: true /lru-cache@6.0.0: @@ -4468,7 +4410,7 @@ packages: resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} engines: {node: '>=10'} dependencies: - '@types/minimist': 1.2.3 + '@types/minimist': 1.2.5 camelcase-keys: 6.2.2 decamelize-keys: 1.1.1 hard-rejection: 2.1.0 @@ -4556,14 +4498,14 @@ packages: engines: {node: '>=16 || 14 >=14.17'} dev: true - /minisearch@6.1.0: - resolution: {integrity: sha512-PNxA/X8pWk+TiqPbsoIYH0GQ5Di7m6326/lwU/S4mlo4wGQddIcf/V//1f9TB0V4j59b57b+HZxt8h3iMROGvg==} + /minisearch@6.2.0: + resolution: {integrity: sha512-BECkorDF1TY2rGKt9XHdSeP9TP29yUbrAaCh/C03wpyf1vx3uYcP/+8XlMcpTkgoU0rBVnHMAOaP83Rc9Tm+TQ==} dev: true /mlly@1.4.2: resolution: {integrity: sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==} dependencies: - acorn: 8.10.0 + acorn: 8.11.2 pathe: 1.1.1 pkg-types: 1.0.3 ufo: 1.3.1 @@ -4587,8 +4529,8 @@ packages: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true - /nanoid@3.3.6: - resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} + /nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true dev: true @@ -4619,7 +4561,7 @@ packages: engines: {node: '>=10'} dependencies: hosted-git-info: 4.1.0 - is-core-module: 2.13.0 + is-core-module: 2.13.1 semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -4629,7 +4571,7 @@ packages: engines: {node: ^16.14.0 || >=18.0.0} dependencies: hosted-git-info: 7.0.1 - is-core-module: 2.13.0 + is-core-module: 2.13.1 semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -4664,8 +4606,8 @@ packages: path-key: 4.0.0 dev: true - /object-inspect@1.12.3: - resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} dev: true /object-keys@1.1.1: @@ -4677,7 +4619,7 @@ packages: resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 has-symbols: 1.0.3 object-keys: 1.1.1 @@ -4834,14 +4776,14 @@ packages: lines-and-columns: 1.2.4 dev: true - /parse-json@7.1.0: - resolution: {integrity: sha512-ihtdrgbqdONYD156Ap6qTcaGcGdkdAxodO1wLqQ/j7HP1u2sFYppINiq4jyC8F+Nm+4fVufylCV00QmkTHkSUg==} + /parse-json@7.1.1: + resolution: {integrity: sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==} engines: {node: '>=16'} dependencies: '@babel/code-frame': 7.22.13 error-ex: 1.3.2 json-parse-even-better-errors: 3.0.0 - lines-and-columns: 2.0.3 + lines-and-columns: 2.0.4 type-fest: 3.13.1 dev: true @@ -4892,7 +4834,7 @@ packages: resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} engines: {node: '>=16 || 14 >=14.17'} dependencies: - lru-cache: 10.0.1 + lru-cache: 10.0.2 minipass: 7.0.4 dev: true @@ -4966,13 +4908,13 @@ packages: resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} engines: {node: ^10 || ^12 || >=14} dependencies: - nanoid: 3.3.6 + nanoid: 3.3.7 picocolors: 1.0.0 source-map-js: 1.0.2 dev: true - /preact@10.18.1: - resolution: {integrity: sha512-mKUD7RRkQQM6s7Rkmi7IFkoEHjuFqRQUaXamO61E6Nn7vqF/bo7EZCmSyrUnp2UWHw0O7XjZ2eeXis+m7tf4lg==} + /preact@10.19.2: + resolution: {integrity: sha512-UA9DX/OJwv6YwP9Vn7Ti/vF80XL+YA5H2l7BpCtUr3ya8LWHFzpiO5R+N7dN16ujpIxhekRFuOOF82bXX7K/lg==} dev: true /prelude-ls@1.2.1: @@ -5048,8 +4990,8 @@ packages: once: 1.4.0 dev: true - /punycode@2.3.0: - resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} dev: true @@ -5088,7 +5030,7 @@ packages: dependencies: find-up: 6.3.0 read-pkg: 8.1.0 - type-fest: 4.4.0 + type-fest: 4.7.1 dev: true /read-pkg-up@3.0.0: @@ -5121,7 +5063,7 @@ packages: resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} engines: {node: '>=8'} dependencies: - '@types/normalize-package-data': 2.4.2 + '@types/normalize-package-data': 2.4.4 normalize-package-data: 2.5.0 parse-json: 5.2.0 type-fest: 0.6.0 @@ -5131,10 +5073,10 @@ packages: resolution: {integrity: sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==} engines: {node: '>=16'} dependencies: - '@types/normalize-package-data': 2.4.2 + '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.0 - parse-json: 7.1.0 - type-fest: 4.4.0 + parse-json: 7.1.1 + type-fest: 4.7.1 dev: true /readable-stream@2.3.8: @@ -5175,7 +5117,7 @@ packages: resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 set-function-name: 2.0.1 dev: true @@ -5215,7 +5157,7 @@ packages: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true dependencies: - is-core-module: 2.13.0 + is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 dev: true @@ -5283,8 +5225,8 @@ packages: resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} engines: {node: '>=0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 has-symbols: 1.0.3 isarray: 2.0.5 dev: true @@ -5300,8 +5242,8 @@ packages: /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-regex: 1.1.4 dev: true @@ -5320,8 +5262,8 @@ packages: postcss: 8.4.31 dev: true - /search-insights@2.9.0: - resolution: {integrity: sha512-bkWW9nIHOFkLwjQ1xqVaMbjjO5vhP26ERsH9Y3pKr8imthofEFIxlnOabkmGcw6ksRj9jWidcI65vvjJH/nTGg==} + /search-insights@2.10.0: + resolution: {integrity: sha512-pQGrOE56QuTRmq4NzliRZe9rv914hBMBjOviuDliDHoIhmBGoyZRlFsPd4RprGGNC4PKdD2Jz54YN4Cmkb44mA==} dev: true /semver@5.7.2: @@ -5342,13 +5284,23 @@ packages: lru-cache: 6.0.0 dev: true + /set-function-length@1.1.1: + resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.1 + dev: true + /set-function-name@2.0.1: resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} engines: {node: '>= 0.4'} dependencies: define-data-property: 1.1.1 functions-have-names: 1.2.3 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 dev: true /shebang-command@1.2.0: @@ -5391,9 +5343,9 @@ packages: /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 - object-inspect: 1.12.3 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + object-inspect: 1.13.1 dev: true /siginfo@2.0.0: @@ -5497,8 +5449,8 @@ packages: through: 2.3.8 dev: true - /sshpk@1.17.0: - resolution: {integrity: sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==} + /sshpk@1.18.0: + resolution: {integrity: sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==} engines: {node: '>=0.10.0'} hasBin: true dependencies: @@ -5538,8 +5490,8 @@ packages: yargs: 16.2.0 dev: true - /std-env@3.4.3: - resolution: {integrity: sha512-f9aPhy8fYBuMN+sNfakZV18U39PbalgjXG3lLB9WkaYTxijru61wb57V9wxxNthXM5Sd88ETBWi29qLAsHO52Q==} + /std-env@3.5.0: + resolution: {integrity: sha512-JGUEaALvL0Mf6JCfYnJOTcobY+Nc7sG/TemDRBqCA0wEr4DER7zDchaaixTlmOxAjG1uRJmX82EQcxwTQTkqVA==} dev: true /string-width@4.2.3: @@ -5564,34 +5516,34 @@ packages: resolution: {integrity: sha512-DOB27b/2UTTD+4myKUFh+/fXWcu/UDyASIXfg+7VzoCNNGOfWvoyU/x5pvVHr++ztyt/oSYI1BcWBBG/hmlNjA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string.prototype.trim@1.2.8: resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string.prototype.trimend@1.0.7: resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string.prototype.trimstart@1.0.7: resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string_decoder@1.1.1: @@ -5655,7 +5607,7 @@ packages: /strip-literal@1.3.0: resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==} dependencies: - acorn: 8.10.0 + acorn: 8.11.2 dev: true /supports-color@5.5.0: @@ -5800,7 +5752,7 @@ packages: engines: {node: '>=6'} dependencies: psl: 1.9.0 - punycode: 2.3.0 + punycode: 2.3.1 universalify: 0.2.0 url-parse: 1.5.10 dev: true @@ -5905,8 +5857,8 @@ packages: engines: {node: '>=14.16'} dev: true - /type-fest@4.4.0: - resolution: {integrity: sha512-HT3RRs7sTfY22KuPQJkD/XjbTbxgP2Je5HPt6H6JEGvcjHd5Lqru75EbrP3tb4FYjNJ+DjLp+MNQTFQU0mhXNw==} + /type-fest@4.7.1: + resolution: {integrity: sha512-iWr8RUmzAJRfhZugX9O7nZE6pCxDU8CZ3QxsLuTnGcBLJpCaP2ll3s4eMTBoFnU/CeXY/5rfQSuAEsTGJO4y8A==} engines: {node: '>=16'} dev: true @@ -5914,8 +5866,8 @@ packages: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-typed-array: 1.1.12 dev: true @@ -5923,7 +5875,7 @@ packages: resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.12 @@ -5934,7 +5886,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.12 @@ -5943,7 +5895,7 @@ packages: /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 is-typed-array: 1.1.12 dev: true @@ -5987,7 +5939,7 @@ packages: /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-bigints: 1.0.2 has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 @@ -5997,15 +5949,15 @@ packages: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} dev: true - /undici@5.26.3: - resolution: {integrity: sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==} + /undici@5.27.2: + resolution: {integrity: sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==} engines: {node: '>=14.0'} dependencies: - '@fastify/busboy': 2.0.0 + '@fastify/busboy': 2.1.0 dev: true - /universal-user-agent@6.0.0: - resolution: {integrity: sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==} + /universal-user-agent@6.0.1: + resolution: {integrity: sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==} dev: true /universalify@0.2.0: @@ -6013,8 +5965,8 @@ packages: engines: {node: '>= 4.0.0'} dev: true - /universalify@2.0.0: - resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + /universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} dev: true @@ -6026,7 +5978,7 @@ packages: /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: - punycode: 2.3.0 + punycode: 2.3.1 dev: true /url-parse@1.5.10: @@ -6049,8 +6001,8 @@ packages: resolution: {integrity: sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==} engines: {node: '>=10.12.0'} dependencies: - '@jridgewell/trace-mapping': 0.3.19 - '@types/istanbul-lib-coverage': 2.0.4 + '@jridgewell/trace-mapping': 0.3.20 + '@types/istanbul-lib-coverage': 2.0.6 convert-source-map: 2.0.0 dev: true @@ -6067,7 +6019,7 @@ packages: dev: true /verror@1.10.0: - resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==} + resolution: {integrity: sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=} engines: {'0': node >=0.6.0} dependencies: assert-plus: 1.0.0 @@ -6133,20 +6085,20 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.9.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.10.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 - '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.9.0) - '@vitejs/plugin-vue': 4.4.0(vite@4.5.0)(vue@3.3.8) + '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0) + '@vitejs/plugin-vue': 4.4.1(vite@4.5.0)(vue@3.3.8) '@vue/devtools-api': 6.5.1 '@vueuse/core': 10.6.0(vue@3.3.8) - '@vueuse/integrations': 10.5.0(focus-trap@7.5.4)(vue@3.3.8) + '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.8) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 - minisearch: 6.1.0 + minisearch: 6.2.0 shiki: 0.14.5 vite: 4.5.0(@types/node@20.9.0) vue: 3.3.8(typescript@4.9.5) @@ -6209,8 +6161,8 @@ packages: webdriverio: optional: true dependencies: - '@types/chai': 4.3.8 - '@types/chai-subset': 1.3.3 + '@types/chai': 4.3.10 + '@types/chai-subset': 1.3.5 '@types/node': 20.9.0 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 @@ -6218,8 +6170,8 @@ packages: '@vitest/spy': 0.34.6 '@vitest/ui': 0.34.7(vitest@0.34.6) '@vitest/utils': 0.34.6 - acorn: 8.10.0 - acorn-walk: 8.2.0 + acorn: 8.11.2 + acorn-walk: 8.3.0 cac: 6.7.14 chai: 4.3.10 debug: 4.3.4(supports-color@8.1.1) @@ -6227,7 +6179,7 @@ packages: magic-string: 0.30.5 pathe: 1.1.1 picocolors: 1.0.0 - std-env: 3.4.3 + std-env: 3.5.0 strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 @@ -6293,12 +6245,12 @@ packages: is-symbol: 1.0.4 dev: true - /which-typed-array@1.1.11: - resolution: {integrity: sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==} + /which-typed-array@1.1.13: + resolution: {integrity: sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.0 From 77f54ad78f9d7952b3b315f72878267f18ed1e69 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 14 Nov 2023 21:38:24 +0100 Subject: [PATCH 13/98] fix: remove `@internal` from module parent classes (#2548) --- src/internal/module-base.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/internal/module-base.ts b/src/internal/module-base.ts index aceba70306b..000084cbfa6 100644 --- a/src/internal/module-base.ts +++ b/src/internal/module-base.ts @@ -4,8 +4,6 @@ import { bindThisToMemberFunctions } from './bind-this-to-member-functions'; /** * Base class for all modules that use a `SimpleFaker` instance. - * - * @internal */ export abstract class SimpleModuleBase { constructor(protected readonly faker: SimpleFaker) { @@ -15,8 +13,6 @@ export abstract class SimpleModuleBase { /** * Base class for all modules that use a `Faker` instance. - * - * @internal */ export abstract class ModuleBase extends SimpleModuleBase { constructor(protected readonly faker: Faker) { From 1328985f36b9e6670aff7704cb1914fd7a4514d4 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Tue, 14 Nov 2023 22:00:51 +0100 Subject: [PATCH 14/98] chore(release): 8.3.1 (#2549) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e09eb1466cd..667b725e798 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [8.3.1](https://github.com/faker-js/faker/compare/v8.3.0...v8.3.1) (2023-11-14) + + +### Bug Fixes + +* remove `[@internal](https://github.com/internal)` from module parent classes ([#2548](https://github.com/faker-js/faker/issues/2548)) ([77f54ad](https://github.com/faker-js/faker/commit/77f54ad78f9d7952b3b315f72878267f18ed1e69)) + ## [8.3.0](https://github.com/faker-js/faker/compare/v8.2.0...v8.3.0) (2023-11-14) diff --git a/package.json b/package.json index e33788b47d8..6fdd6b8aaf1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@faker-js/faker", - "version": "8.3.0", + "version": "8.3.1", "description": "Generate massive amounts of fake contextual data", "keywords": [ "faker", From d53c7ac708887ebad85ce65be026c6406295bbf6 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:11:27 +0700 Subject: [PATCH 15/98] docs: change `Ecosystem` to `Try it` (#2544) --- docs/.vitepress/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index e8484526a74..6dc31dd6078 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -143,7 +143,7 @@ const config = defineConfig({ link: '/api/', }, { - text: 'Ecosystem', + text: 'Try it', items: [{ text: 'StackBlitz ', link: 'https://fakerjs.dev/new' }], }, { From ba28ab6e59009cceb5b691ddd212e09df22b586e Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sat, 18 Nov 2023 06:48:20 +0700 Subject: [PATCH 16/98] feat(person): add job titles for fr (#2531) --- src/locales/fr/person/index.ts | 2 + src/locales/fr/person/job_title_pattern.ts | 3 ++ src/locales/fr/person/title.ts | 52 ++++++++++++++++++++++ src/locales/fr_BE/person/index.ts | 2 - src/locales/fr_BE/person/title.ts | 22 --------- src/locales/fr_CH/person/index.ts | 2 - src/locales/fr_CH/person/title.ts | 22 --------- test/all-functional.spec.ts | 6 +-- 8 files changed, 60 insertions(+), 51 deletions(-) create mode 100644 src/locales/fr/person/job_title_pattern.ts delete mode 100644 src/locales/fr_BE/person/title.ts delete mode 100644 src/locales/fr_CH/person/title.ts diff --git a/src/locales/fr/person/index.ts b/src/locales/fr/person/index.ts index fd7e10d16df..72bc6c44489 100644 --- a/src/locales/fr/person/index.ts +++ b/src/locales/fr/person/index.ts @@ -6,6 +6,7 @@ import type { PersonDefinition } from '../../..'; import female_first_name from './female_first_name'; import female_prefix from './female_prefix'; import first_name from './first_name'; +import job_title_pattern from './job_title_pattern'; import last_name from './last_name'; import last_name_pattern from './last_name_pattern'; import male_first_name from './male_first_name'; @@ -19,6 +20,7 @@ const person: PersonDefinition = { female_first_name, female_prefix, first_name, + job_title_pattern, last_name, last_name_pattern, male_first_name, diff --git a/src/locales/fr/person/job_title_pattern.ts b/src/locales/fr/person/job_title_pattern.ts new file mode 100644 index 00000000000..17051bdfafe --- /dev/null +++ b/src/locales/fr/person/job_title_pattern.ts @@ -0,0 +1,3 @@ +export default [ + '{{person.jobType}} {{person.jobArea}} {{person.jobDescriptor}}', +]; diff --git a/src/locales/fr/person/title.ts b/src/locales/fr/person/title.ts index 85f235ff3c2..9a657e9a356 100644 --- a/src/locales/fr/person/title.ts +++ b/src/locales/fr/person/title.ts @@ -19,4 +19,56 @@ export default { 'Agent', 'Stagiaire', ], + descriptor: [ + 'central', + 'client', + 'direct', + 'futur', + 'humain', + 'international', + 'interne', + 'mondial', + 'national', + 'principal', + 'régional', + ], + level: [ + 'de configuration', + 'de division', + 'de groupe', + 'de la communication', + 'de la création', + 'de la marque', + 'de la mise en œuvre', + 'de la mobilité', + 'de la qualité', + 'de la réponse', + 'de la responsabilité', + 'de la sécurité', + 'de la tactique', + 'de marque', + 'de paradigme', + 'de programme', + 'de recherche', + 'des applications', + 'des comptes', + 'des directives', + 'des données', + 'des facteurs', + 'des fonctionnalités', + 'des infrastructures', + 'des interactions', + 'des marchés', + 'des métriques', + 'des opérations', + 'des solutions', + 'du marketing', + 'du web', + "de l'assurance", + "de l'identité", + "de l'intégration", + "de l'intranet", + "de l'optimisation", + "de l'utilisabilité", + ], }; diff --git a/src/locales/fr_BE/person/index.ts b/src/locales/fr_BE/person/index.ts index d502ed7890f..7e9203dc3c3 100644 --- a/src/locales/fr_BE/person/index.ts +++ b/src/locales/fr_BE/person/index.ts @@ -14,7 +14,6 @@ import male_prefix from './male_prefix'; import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -import title from './title'; const person: PersonDefinition = { female_first_name, @@ -28,7 +27,6 @@ const person: PersonDefinition = { name: name_, prefix, suffix, - title, }; export default person; diff --git a/src/locales/fr_BE/person/title.ts b/src/locales/fr_BE/person/title.ts deleted file mode 100644 index 85f235ff3c2..00000000000 --- a/src/locales/fr_BE/person/title.ts +++ /dev/null @@ -1,22 +0,0 @@ -export default { - job: [ - 'Superviseur', - 'Executif', - 'Manager', - 'Ingenieur', - 'Specialiste', - 'Directeur', - 'Coordinateur', - 'Administrateur', - 'Architecte', - 'Analyste', - 'Designer', - 'Technicien', - 'Developpeur', - 'Producteur', - 'Consultant', - 'Assistant', - 'Agent', - 'Stagiaire', - ], -}; diff --git a/src/locales/fr_CH/person/index.ts b/src/locales/fr_CH/person/index.ts index fd7e10d16df..e1e0ae596ae 100644 --- a/src/locales/fr_CH/person/index.ts +++ b/src/locales/fr_CH/person/index.ts @@ -13,7 +13,6 @@ import male_prefix from './male_prefix'; import name_ from './name'; import prefix from './prefix'; import sex from './sex'; -import title from './title'; const person: PersonDefinition = { female_first_name, @@ -26,7 +25,6 @@ const person: PersonDefinition = { name: name_, prefix, sex, - title, }; export default person; diff --git a/src/locales/fr_CH/person/title.ts b/src/locales/fr_CH/person/title.ts deleted file mode 100644 index 85f235ff3c2..00000000000 --- a/src/locales/fr_CH/person/title.ts +++ /dev/null @@ -1,22 +0,0 @@ -export default { - job: [ - 'Superviseur', - 'Executif', - 'Manager', - 'Ingenieur', - 'Specialiste', - 'Directeur', - 'Coordinateur', - 'Administrateur', - 'Architecte', - 'Analyste', - 'Designer', - 'Technicien', - 'Developpeur', - 'Producteur', - 'Consultant', - 'Assistant', - 'Agent', - 'Stagiaire', - ], -}; diff --git a/test/all-functional.spec.ts b/test/all-functional.spec.ts index 5718ec4befa..d4b1308ac74 100644 --- a/test/all-functional.spec.ts +++ b/test/all-functional.spec.ts @@ -67,9 +67,9 @@ const BROKEN_LOCALE_METHODS = { person: { prefix: ['az', 'id_ID', 'ru', 'zh_CN', 'zh_TW'], suffix: ['az', 'it', 'mk', 'pt_PT', 'ro_MD', 'ru'], - jobArea: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'fr_SN'], - jobDescriptor: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'fr_SN'], - jobTitle: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'ur', 'fr_SN'], + jobArea: ['ar'], + jobDescriptor: ['ar'], + jobTitle: ['ar', 'ur'], jobType: ['ur'], }, } satisfies { From b8049d171086bce7b46eb617c88f44cfdd019e00 Mon Sep 17 00:00:00 2001 From: Alex Nagelkerke Date: Sat, 18 Nov 2023 12:25:25 +0100 Subject: [PATCH 17/98] fix(finance): correct VG IBAN format (#2552) --- src/modules/finance/iban.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/finance/iban.ts b/src/modules/finance/iban.ts index f37bc7f4cab..8b3f78c44bc 100644 --- a/src/modules/finance/iban.ts +++ b/src/modules/finance/iban.ts @@ -1133,7 +1133,7 @@ const iban: Iban = { total: 24, bban: [ { - type: 'c', + type: 'a', count: 4, }, { From 0ee1c6751ec97e10ca1436d2b100b4acb1ac90ec Mon Sep 17 00:00:00 2001 From: amillwood <78274680+amillwood@users.noreply.github.com> Date: Sun, 19 Nov 2023 03:31:05 -0500 Subject: [PATCH 18/98] =?UTF-8?q?fix(internet):=20username=20method=20to?= =?UTF-8?q?=20return=20value=20that=20always=20includes=E2=80=A6=20(#2506)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Austin Millwood --- src/modules/internet/index.ts | 61 +++++--- test/modules/__snapshots__/git.spec.ts.snap | 54 +++---- .../__snapshots__/internet.spec.ts.snap | 140 +++++++++--------- test/modules/internet.spec.ts | 23 +-- 4 files changed, 149 insertions(+), 129 deletions(-) diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 8cc651a3fd7..bdc84dd6add 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -65,7 +65,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.email() // 'Kassandra4@hotmail.com' - * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne63@yahoo.com' + * faker.internet.email({ firstName: 'Jeanne'}) // 'Jeanne63@yahoo.com' + * faker.internet.email({ firstName: 'Jeanne'}) // 'Jeanne_Smith63@yahoo.com' + * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne.Doe63@yahoo.com' * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe', provider: 'example.fakerjs.dev' }) // 'Jeanne_Doe88@example.fakerjs.dev' * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe', provider: 'example.fakerjs.dev', allowSpecialCharacters: true }) // 'Jeanne%Doe88@example.fakerjs.dev' * @@ -107,7 +109,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.email() // 'Kassandra4@hotmail.com' - * faker.internet.email('Jeanne', 'Doe') // 'Jeanne63@yahoo.com' + * faker.internet.email('Jeanne') // 'Jeanne63@yahoo.com' + * faker.internet.email('Jeanne') // 'Jeanne.Smith63@yahoo.com' + * faker.internet.email('Jeanne', 'Doe') // 'Jeanne_Doe63@yahoo.com' * faker.internet.email('Jeanne', 'Doe', 'example.fakerjs.dev') // 'Jeanne_Doe88@example.fakerjs.dev' * faker.internet.email('Jeanne', 'Doe', 'example.fakerjs.dev', { allowSpecialCharacters: true }) // 'Jeanne%Doe88@example.fakerjs.dev' * @@ -145,7 +149,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.email() // 'Kassandra4@hotmail.com' - * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne63@yahoo.com' + * faker.internet.email({ firstName: 'Jeanne' }) // 'Jeanne63@yahoo.com' + * faker.internet.email({ firstName: 'Jeanne' }) // 'Jeanne.Smith63@yahoo.com' + * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne_Doe63@yahoo.com' * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe', provider: 'example.fakerjs.dev' }) // 'Jeanne_Doe88@example.fakerjs.dev' * faker.internet.email({ firstName: 'Jeanne', lastName: 'Doe', provider: 'example.fakerjs.dev', allowSpecialCharacters: true }) // 'Jeanne%Doe88@example.fakerjs.dev' * @@ -248,8 +254,8 @@ export class InternetModule extends ModuleBase { } const { - firstName = this.faker.person.firstName(), - lastName = legacyLastName ?? this.faker.person.lastName(), + firstName, + lastName = legacyLastName, provider = legacyProvider ?? this.faker.helpers.arrayElement( this.faker.definitions.internet.free_email @@ -295,7 +301,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.exampleEmail() // 'Helmer.Graham23@example.com' - * faker.internet.exampleEmail({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne96@example.net' + * faker.internet.exampleEmail({ firstName: 'Jeanne' }) // 'Jeanne96@example.net' + * faker.internet.exampleEmail({ firstName: 'Jeanne' }) // 'Jeanne.Smith96@example.net' + * faker.internet.exampleEmail({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne_Doe96@example.net' * faker.internet.exampleEmail({ firstName: 'Jeanne', lastName: 'Doe', allowSpecialCharacters: true }) // 'Jeanne%Doe88@example.com' * * @since 3.1.0 @@ -331,7 +339,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.exampleEmail() // 'Helmer.Graham23@example.com' - * faker.internet.exampleEmail('Jeanne', 'Doe') // 'Jeanne96@example.net' + * faker.internet.exampleEmail('Jeanne') // 'Jeanne96@example.net' + * faker.internet.exampleEmail('Jeanne') // 'Jeanne.Smith96@example.net' + * faker.internet.exampleEmail('Jeanne', 'Doe') // 'Jeanne_Doe96@example.net' * faker.internet.exampleEmail('Jeanne', 'Doe', { allowSpecialCharacters: true }) // 'Jeanne%Doe88@example.com' * * @since 3.1.0 @@ -365,7 +375,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.exampleEmail() // 'Helmer.Graham23@example.com' - * faker.internet.exampleEmail({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne96@example.net' + * faker.internet.exampleEmail({ firstName: 'Jeanne' }) // 'Jeanne96@example.net' + * faker.internet.exampleEmail({ firstName: 'Jeanne' }) // 'Jeanne.Smith96@example.net' + * faker.internet.exampleEmail({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne_Doe96@example.net' * faker.internet.exampleEmail({ firstName: 'Jeanne', lastName: 'Doe', allowSpecialCharacters: true }) // 'Jeanne%Doe88@example.com' * * @since 3.1.0 @@ -454,8 +466,8 @@ export class InternetModule extends ModuleBase { } const { - firstName = this.faker.person.firstName(), - lastName = legacyLastName ?? this.faker.person.lastName(), + firstName, + lastName = legacyLastName, allowSpecialCharacters = legacyOptions?.allowSpecialCharacters ?? false, } = options; @@ -485,7 +497,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.userName() // 'Nettie_Zboncak40' - * faker.internet.userName({ firstName: 'Jeanne', lastName: 'Doe'}) // 'Jeanne98' - note surname is not used + * faker.internet.userName({ firstName: 'Jeanne' }) // 'Jeanne98' + * faker.internet.userName({ firstName: 'Jeanne' }) // 'Jeanne.Smith98' + * faker.internet.userName({ firstName: 'Jeanne', lastName: 'Doe'}) // 'Jeanne_Doe98' * faker.internet.userName({ firstName: 'John', lastName: 'Doe' }) // 'John.Doe' * faker.internet.userName({ firstName: 'Hélene', lastName: 'Müller' }) // 'Helene_Muller11' * faker.internet.userName({ firstName: 'Фёдор', lastName: 'Достоевский' }) // 'Fedor.Dostoevskii50' @@ -520,7 +534,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.userName() // 'Nettie_Zboncak40' - * faker.internet.userName('Jeanne', 'Doe') // 'Jeanne98' - note surname is not used + * faker.internet.userName('Jeanne') // 'Jeanne98' + * faker.internet.userName('Jeanne') // 'Jeanne.Smith98' + * faker.internet.userName('Jeanne', 'Doe') // 'Jeanne_Doe98' * faker.internet.userName('John', 'Doe') // 'John.Doe' * faker.internet.userName('Hélene', 'Müller') // 'Helene_Muller11' * faker.internet.userName('Фёдор', 'Достоевский') // 'Fedor.Dostoevskii50' @@ -546,7 +562,9 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.userName() // 'Nettie_Zboncak40' - * faker.internet.userName({ firstName: 'Jeanne', lastName: 'Doe'}) // 'Jeanne98' - note surname is not used + * faker.internet.userName({ firstName: 'Jeanne'}) // 'Jeanne98' + * faker.internet.userName({ firstName: 'Jeanne'}) // 'Jeanne.Smith98' + * faker.internet.userName({ firstName: 'Jeanne', lastName: 'Doe'}) // 'Jeanne_Doe98' * faker.internet.userName({ firstName: 'John', lastName: 'Doe' }) // 'John.Doe' * faker.internet.userName({ firstName: 'Hélene', lastName: 'Müller' }) // 'Helene_Muller11' * faker.internet.userName({ firstName: 'Фёдор', lastName: 'Достоевский' }) // 'Fedor.Dostoevskii50' @@ -608,23 +626,24 @@ export class InternetModule extends ModuleBase { const { firstName = this.faker.person.firstName(), lastName = legacyLastName ?? this.faker.person.lastName(), + lastName: hasLastName = legacyLastName, } = options; let result: string; - switch (this.faker.number.int(2)) { + const strategy = this.faker.number.int(hasLastName ? 1 : 2); + const separator = this.faker.helpers.arrayElement(['.', '_']); + switch (strategy) { case 0: - result = `${firstName}${this.faker.number.int(99)}`; + result = `${firstName}${separator}${lastName}${this.faker.number.int( + 99 + )}`; break; case 1: - result = - firstName + this.faker.helpers.arrayElement(['.', '_']) + lastName; + result = `${firstName}${separator}${lastName}`; break; case 2: default: - result = `${firstName}${this.faker.helpers.arrayElement([ - '.', - '_', - ])}${lastName}${this.faker.number.int(99)}`; + result = `${firstName}${this.faker.number.int(99)}`; break; } diff --git a/test/modules/__snapshots__/git.spec.ts.snap b/test/modules/__snapshots__/git.spec.ts.snap index 9e52bd15e82..2294d6fcc5f 100644 --- a/test/modules/__snapshots__/git.spec.ts.snap +++ b/test/modules/__snapshots__/git.spec.ts.snap @@ -10,28 +10,28 @@ exports[`git > 42 > commitDate > with only string refDate 1`] = `"Tue Dec 31 15: exports[`git > 42 > commitEntry > with only Date refDate 1`] = ` "commit be4abdd39321ad7d3fe01ffce404f4d6db0906bd -Author: Gregg Beahan III -Date: Tue Dec 31 14:49:14 2019 +0100 +Author: Gregg.Beahan9 +Date: Tue Dec 31 00:24:08 2019 +0300 -    parse multi-byte sensor +    connect auxiliary bus " `; exports[`git > 42 > commitEntry > with only number refDate 1`] = ` "commit be4abdd39321ad7d3fe01ffce404f4d6db0906bd -Author: Gregg Beahan III -Date: Tue Dec 31 14:49:14 2019 +0100 +Author: Gregg.Beahan9 +Date: Tue Dec 31 00:24:08 2019 +0300 -    parse multi-byte sensor +    connect auxiliary bus " `; exports[`git > 42 > commitEntry > with only string refDate 1`] = ` "commit be4abdd39321ad7d3fe01ffce404f4d6db0906bd -Author: Gregg Beahan III -Date: Tue Dec 31 14:49:14 2019 +0100 +Author: Gregg.Beahan9 +Date: Tue Dec 31 00:24:08 2019 +0300 -    parse multi-byte sensor +    connect auxiliary bus " `; @@ -53,28 +53,28 @@ exports[`git > 1211 > commitDate > with only string refDate 1`] = `"Tue Dec 31 0 exports[`git > 1211 > commitEntry > with only Date refDate 1`] = ` "commit adb42f0e3f4a973fab0aeefce96dfcf49cd438df -Author: Imani Anderson -Date: Tue Dec 31 10:07:32 2019 -0400 +Author: Imani.Anderson +Date: Tue Dec 31 18:36:59 2019 +0200 -    override wireless interface +    copy digital feed " `; exports[`git > 1211 > commitEntry > with only number refDate 1`] = ` "commit adb42f0e3f4a973fab0aeefce96dfcf49cd438df -Author: Imani Anderson -Date: Tue Dec 31 10:07:32 2019 -0400 +Author: Imani.Anderson +Date: Tue Dec 31 18:36:59 2019 +0200 -    override wireless interface +    copy digital feed " `; exports[`git > 1211 > commitEntry > with only string refDate 1`] = ` "commit adb42f0e3f4a973fab0aeefce96dfcf49cd438df -Author: Imani Anderson -Date: Tue Dec 31 10:07:32 2019 -0400 +Author: Imani.Anderson +Date: Tue Dec 31 18:36:59 2019 +0200 -    override wireless interface +    copy digital feed " `; @@ -96,28 +96,28 @@ exports[`git > 1337 > commitDate > with only string refDate 1`] = `"Tue Dec 31 1 exports[`git > 1337 > commitEntry > with only Date refDate 1`] = ` "commit c346ba075bd57f5a62b82d72af39cbbb07a98cba -Author: Miss Friedrich Krajcik -Date: Tue Dec 31 04:18:56 2019 -0700 +Author: Miss Friedrich Krajcik +Date: Tue Dec 31 02:27:22 2019 +0100 -    reboot haptic capacitor +    reboot neural pixel " `; exports[`git > 1337 > commitEntry > with only number refDate 1`] = ` "commit c346ba075bd57f5a62b82d72af39cbbb07a98cba -Author: Miss Friedrich Krajcik -Date: Tue Dec 31 04:18:56 2019 -0700 +Author: Miss Friedrich Krajcik +Date: Tue Dec 31 02:27:22 2019 +0100 -    reboot haptic capacitor +    reboot neural pixel " `; exports[`git > 1337 > commitEntry > with only string refDate 1`] = ` "commit c346ba075bd57f5a62b82d72af39cbbb07a98cba -Author: Miss Friedrich Krajcik -Date: Tue Dec 31 04:18:56 2019 -0700 +Author: Miss Friedrich Krajcik +Date: Tue Dec 31 02:27:22 2019 +0100 -    reboot haptic capacitor +    reboot neural pixel " `; diff --git a/test/modules/__snapshots__/internet.spec.ts.snap b/test/modules/__snapshots__/internet.spec.ts.snap index c8c6d8bbc36..488dd6a873b 100644 --- a/test/modules/__snapshots__/internet.spec.ts.snap +++ b/test/modules/__snapshots__/internet.spec.ts.snap @@ -38,41 +38,41 @@ exports[`internet > 42 > domainSuffix 1`] = `"info"`; exports[`internet > 42 > domainWord 1`] = `"hasty-sherbet"`; -exports[`internet > 42 > email > noArgs 1`] = `"Garnet_Wiegand59@gmail.com"`; +exports[`internet > 42 > email > noArgs 1`] = `"Peyton59@yahoo.com"`; -exports[`internet > 42 > email > with all options 1`] = `"Jane_Doe@fakerjs.dev"`; +exports[`internet > 42 > email > with all options 1`] = `"Jane_Doe95@fakerjs.dev"`; -exports[`internet > 42 > email > with allowSpecialCharacters option 1`] = `"Garnet$Wiegand59@gmail.com"`; +exports[`internet > 42 > email > with allowSpecialCharacters option 1`] = `"Peyton59@yahoo.com"`; -exports[`internet > 42 > email > with firstName option 1`] = `"Jane73@hotmail.com"`; +exports[`internet > 42 > email > with firstName option 1`] = `"Jane_Wiegand77@yahoo.com"`; -exports[`internet > 42 > email > with lastName option 1`] = `"Garnet.Doe73@hotmail.com"`; +exports[`internet > 42 > email > with lastName option 1`] = `"Peyton.Doe@yahoo.com"`; -exports[`internet > 42 > email > with legacy names 1`] = `"Jane_Doe18@yahoo.com"`; +exports[`internet > 42 > email > with legacy names 1`] = `"Jane_Doe@yahoo.com"`; -exports[`internet > 42 > email > with legacy names and provider 1`] = `"Jane_Doe@fakerjs.dev"`; +exports[`internet > 42 > email > with legacy names and provider 1`] = `"Jane_Doe95@fakerjs.dev"`; -exports[`internet > 42 > email > with legacy provider 1`] = `"Garnet73@fakerjs.dev"`; +exports[`internet > 42 > email > with legacy provider 1`] = `"Garnet_Wiegand77@fakerjs.dev"`; -exports[`internet > 42 > email > with provider option 1`] = `"Garnet73@fakerjs.dev"`; +exports[`internet > 42 > email > with provider option 1`] = `"Garnet_Wiegand77@fakerjs.dev"`; exports[`internet > 42 > emoji > noArgs 1`] = `"🕸️"`; exports[`internet > 42 > emoji > with options 1`] = `"🦔"`; -exports[`internet > 42 > exampleEmail > noArgs 1`] = `"Garnet_Wiegand59@example.org"`; +exports[`internet > 42 > exampleEmail > noArgs 1`] = `"Peyton59@example.com"`; -exports[`internet > 42 > exampleEmail > with all options 1`] = `"Jane_Doe18@example.com"`; +exports[`internet > 42 > exampleEmail > with all options 1`] = `"Jane_Doe@example.com"`; -exports[`internet > 42 > exampleEmail > with allowSpecialCharacters option 1`] = `"Garnet$Wiegand59@example.org"`; +exports[`internet > 42 > exampleEmail > with allowSpecialCharacters option 1`] = `"Peyton59@example.com"`; -exports[`internet > 42 > exampleEmail > with firstName option 1`] = `"Jane73@example.net"`; +exports[`internet > 42 > exampleEmail > with firstName option 1`] = `"Jane_Wiegand77@example.com"`; -exports[`internet > 42 > exampleEmail > with lastName option 1`] = `"Garnet.Doe73@example.net"`; +exports[`internet > 42 > exampleEmail > with lastName option 1`] = `"Peyton.Doe@example.com"`; -exports[`internet > 42 > exampleEmail > with legacy names 1`] = `"Jane_Doe18@example.com"`; +exports[`internet > 42 > exampleEmail > with legacy names 1`] = `"Jane_Doe@example.com"`; -exports[`internet > 42 > exampleEmail > with legacy names and options 1`] = `"Jane_Doe18@example.com"`; +exports[`internet > 42 > exampleEmail > with legacy names and options 1`] = `"Jane_Doe@example.com"`; exports[`internet > 42 > httpMethod 1`] = `"POST"`; @@ -124,23 +124,23 @@ exports[`internet > 42 > url > without slash appended and with http protocol 1`] exports[`internet > 42 > userAgent 1`] = `"Mozilla/5.0 (X11; Linux x86_64; rv:15.1) Gecko/20100101 Firefox/15.1.7"`; -exports[`internet > 42 > userName > noArgs 1`] = `"Garnet73"`; +exports[`internet > 42 > userName > noArgs 1`] = `"Garnet_Wiegand77"`; -exports[`internet > 42 > userName > with Chinese names 1`] = `"hlzp8d_tpv"`; +exports[`internet > 42 > userName > with Chinese names 1`] = `"hlzp8d_tpv95"`; -exports[`internet > 42 > userName > with Cyrillic names 1`] = `"Fedor_Dostoevskii"`; +exports[`internet > 42 > userName > with Cyrillic names 1`] = `"Fedor_Dostoevskii95"`; -exports[`internet > 42 > userName > with Latin names 1`] = `"Jane_Doe"`; +exports[`internet > 42 > userName > with Latin names 1`] = `"Jane_Doe95"`; -exports[`internet > 42 > userName > with accented names 1`] = `"Helene_Muller"`; +exports[`internet > 42 > userName > with accented names 1`] = `"Helene_Muller95"`; -exports[`internet > 42 > userName > with all option 1`] = `"Jane_Doe"`; +exports[`internet > 42 > userName > with all option 1`] = `"Jane_Doe95"`; -exports[`internet > 42 > userName > with firstName option 1`] = `"Jane.Schinner73"`; +exports[`internet > 42 > userName > with firstName option 1`] = `"Jane73"`; -exports[`internet > 42 > userName > with lastName option 1`] = `"Garnet_Doe18"`; +exports[`internet > 42 > userName > with lastName option 1`] = `"Garnet_Doe"`; -exports[`internet > 42 > userName > with legacy names 1`] = `"Jane_Doe"`; +exports[`internet > 42 > userName > with legacy names 1`] = `"Jane_Doe95"`; exports[`internet > 1211 > avatar 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1160.jpg"`; @@ -180,41 +180,41 @@ exports[`internet > 1211 > domainSuffix 1`] = `"org"`; exports[`internet > 1211 > domainWord 1`] = `"vicious-infrastructure"`; -exports[`internet > 1211 > email > noArgs 1`] = `"Tito12@hotmail.com"`; +exports[`internet > 1211 > email > noArgs 1`] = `"Jadyn.Satterfield99@hotmail.com"`; -exports[`internet > 1211 > email > with all options 1`] = `"Jane.Doe89@fakerjs.dev"`; +exports[`internet > 1211 > email > with all options 1`] = `"Jane.Doe@fakerjs.dev"`; -exports[`internet > 1211 > email > with allowSpecialCharacters option 1`] = `"Tito12@hotmail.com"`; +exports[`internet > 1211 > email > with allowSpecialCharacters option 1`] = `"Jadyn^Satterfield99@hotmail.com"`; -exports[`internet > 1211 > email > with firstName option 1`] = `"Jane.Koelpin12@hotmail.com"`; +exports[`internet > 1211 > email > with firstName option 1`] = `"Jane12@hotmail.com"`; -exports[`internet > 1211 > email > with lastName option 1`] = `"Tito_Doe22@yahoo.com"`; +exports[`internet > 1211 > email > with lastName option 1`] = `"Jadyn_Doe@hotmail.com"`; -exports[`internet > 1211 > email > with legacy names 1`] = `"Jane_Doe@hotmail.com"`; +exports[`internet > 1211 > email > with legacy names 1`] = `"Jane_Doe77@hotmail.com"`; -exports[`internet > 1211 > email > with legacy names and provider 1`] = `"Jane.Doe89@fakerjs.dev"`; +exports[`internet > 1211 > email > with legacy names and provider 1`] = `"Jane.Doe@fakerjs.dev"`; -exports[`internet > 1211 > email > with legacy provider 1`] = `"Tito.Trantow12@fakerjs.dev"`; +exports[`internet > 1211 > email > with legacy provider 1`] = `"Tito12@fakerjs.dev"`; -exports[`internet > 1211 > email > with provider option 1`] = `"Tito.Trantow12@fakerjs.dev"`; +exports[`internet > 1211 > email > with provider option 1`] = `"Tito12@fakerjs.dev"`; exports[`internet > 1211 > emoji > noArgs 1`] = `"🇮🇸"`; exports[`internet > 1211 > emoji > with options 1`] = `"🌲"`; -exports[`internet > 1211 > exampleEmail > noArgs 1`] = `"Tito12@example.net"`; +exports[`internet > 1211 > exampleEmail > noArgs 1`] = `"Jadyn.Satterfield99@example.net"`; -exports[`internet > 1211 > exampleEmail > with all options 1`] = `"Jane_Doe@example.net"`; +exports[`internet > 1211 > exampleEmail > with all options 1`] = `"Jane_Doe77@example.net"`; -exports[`internet > 1211 > exampleEmail > with allowSpecialCharacters option 1`] = `"Tito12@example.net"`; +exports[`internet > 1211 > exampleEmail > with allowSpecialCharacters option 1`] = `"Jadyn^Satterfield99@example.net"`; -exports[`internet > 1211 > exampleEmail > with firstName option 1`] = `"Jane.Koelpin12@example.net"`; +exports[`internet > 1211 > exampleEmail > with firstName option 1`] = `"Jane12@example.net"`; -exports[`internet > 1211 > exampleEmail > with lastName option 1`] = `"Tito_Doe22@example.com"`; +exports[`internet > 1211 > exampleEmail > with lastName option 1`] = `"Jadyn_Doe@example.net"`; -exports[`internet > 1211 > exampleEmail > with legacy names 1`] = `"Jane_Doe@example.net"`; +exports[`internet > 1211 > exampleEmail > with legacy names 1`] = `"Jane_Doe77@example.net"`; -exports[`internet > 1211 > exampleEmail > with legacy names and options 1`] = `"Jane_Doe@example.net"`; +exports[`internet > 1211 > exampleEmail > with legacy names and options 1`] = `"Jane_Doe77@example.net"`; exports[`internet > 1211 > httpMethod 1`] = `"PATCH"`; @@ -266,23 +266,23 @@ exports[`internet > 1211 > url > without slash appended and with http protocol 1 exports[`internet > 1211 > userAgent 1`] = `"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.3; Trident/4.0)"`; -exports[`internet > 1211 > userName > noArgs 1`] = `"Tito.Trantow12"`; +exports[`internet > 1211 > userName > noArgs 1`] = `"Tito12"`; -exports[`internet > 1211 > userName > with Chinese names 1`] = `"hlzp8d.tpv89"`; +exports[`internet > 1211 > userName > with Chinese names 1`] = `"hlzp8d.tpv"`; -exports[`internet > 1211 > userName > with Cyrillic names 1`] = `"Fedor.Dostoevskii89"`; +exports[`internet > 1211 > userName > with Cyrillic names 1`] = `"Fedor.Dostoevskii"`; -exports[`internet > 1211 > userName > with Latin names 1`] = `"Jane.Doe89"`; +exports[`internet > 1211 > userName > with Latin names 1`] = `"Jane.Doe"`; -exports[`internet > 1211 > userName > with accented names 1`] = `"Helene.Muller89"`; +exports[`internet > 1211 > userName > with accented names 1`] = `"Helene.Muller"`; -exports[`internet > 1211 > userName > with all option 1`] = `"Jane.Doe89"`; +exports[`internet > 1211 > userName > with all option 1`] = `"Jane.Doe"`; -exports[`internet > 1211 > userName > with firstName option 1`] = `"Jane_Koelpin22"`; +exports[`internet > 1211 > userName > with firstName option 1`] = `"Jane22"`; -exports[`internet > 1211 > userName > with lastName option 1`] = `"Tito_Doe"`; +exports[`internet > 1211 > userName > with lastName option 1`] = `"Tito_Doe77"`; -exports[`internet > 1211 > userName > with legacy names 1`] = `"Jane.Doe89"`; +exports[`internet > 1211 > userName > with legacy names 1`] = `"Jane.Doe"`; exports[`internet > 1337 > avatar 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/327.jpg"`; @@ -322,37 +322,37 @@ exports[`internet > 1337 > domainSuffix 1`] = `"biz"`; exports[`internet > 1337 > domainWord 1`] = `"fair-mile"`; -exports[`internet > 1337 > email > noArgs 1`] = `"Devyn54@gmail.com"`; +exports[`internet > 1337 > email > noArgs 1`] = `"Kellen_Effertz45@gmail.com"`; -exports[`internet > 1337 > email > with all options 1`] = `"Jane56@fakerjs.dev"`; +exports[`internet > 1337 > email > with all options 1`] = `"Jane_Doe15@fakerjs.dev"`; -exports[`internet > 1337 > email > with allowSpecialCharacters option 1`] = `"Devyn54@gmail.com"`; +exports[`internet > 1337 > email > with allowSpecialCharacters option 1`] = `"Kellen_Effertz45@gmail.com"`; -exports[`internet > 1337 > email > with firstName option 1`] = `"Jane27@gmail.com"`; +exports[`internet > 1337 > email > with firstName option 1`] = `"Jane.Cronin54@gmail.com"`; -exports[`internet > 1337 > email > with lastName option 1`] = `"Devyn21@yahoo.com"`; +exports[`internet > 1337 > email > with lastName option 1`] = `"Kellen.Doe27@gmail.com"`; exports[`internet > 1337 > email > with legacy names 1`] = `"Jane.Doe@gmail.com"`; -exports[`internet > 1337 > email > with legacy names and provider 1`] = `"Jane56@fakerjs.dev"`; +exports[`internet > 1337 > email > with legacy names and provider 1`] = `"Jane_Doe15@fakerjs.dev"`; -exports[`internet > 1337 > email > with legacy provider 1`] = `"Devyn27@fakerjs.dev"`; +exports[`internet > 1337 > email > with legacy provider 1`] = `"Devyn.Cronin54@fakerjs.dev"`; -exports[`internet > 1337 > email > with provider option 1`] = `"Devyn27@fakerjs.dev"`; +exports[`internet > 1337 > email > with provider option 1`] = `"Devyn.Cronin54@fakerjs.dev"`; exports[`internet > 1337 > emoji > noArgs 1`] = `"💇🏼‍♀️"`; exports[`internet > 1337 > emoji > with options 1`] = `"🐪"`; -exports[`internet > 1337 > exampleEmail > noArgs 1`] = `"Devyn54@example.org"`; +exports[`internet > 1337 > exampleEmail > noArgs 1`] = `"Kellen_Effertz45@example.org"`; exports[`internet > 1337 > exampleEmail > with all options 1`] = `"Jane&Doe@example.org"`; -exports[`internet > 1337 > exampleEmail > with allowSpecialCharacters option 1`] = `"Devyn54@example.org"`; +exports[`internet > 1337 > exampleEmail > with allowSpecialCharacters option 1`] = `"Kellen_Effertz45@example.org"`; -exports[`internet > 1337 > exampleEmail > with firstName option 1`] = `"Jane27@example.org"`; +exports[`internet > 1337 > exampleEmail > with firstName option 1`] = `"Jane.Cronin54@example.org"`; -exports[`internet > 1337 > exampleEmail > with lastName option 1`] = `"Devyn21@example.com"`; +exports[`internet > 1337 > exampleEmail > with lastName option 1`] = `"Kellen.Doe27@example.org"`; exports[`internet > 1337 > exampleEmail > with legacy names 1`] = `"Jane.Doe@example.org"`; @@ -408,20 +408,20 @@ exports[`internet > 1337 > url > without slash appended and with http protocol 1 exports[`internet > 1337 > userAgent 1`] = `"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7.0; rv:6.2) Gecko/20100101 Firefox/6.2.2"`; -exports[`internet > 1337 > userName > noArgs 1`] = `"Devyn27"`; +exports[`internet > 1337 > userName > noArgs 1`] = `"Devyn.Cronin54"`; -exports[`internet > 1337 > userName > with Chinese names 1`] = `"hlzp8d56"`; +exports[`internet > 1337 > userName > with Chinese names 1`] = `"hlzp8d_tpv15"`; -exports[`internet > 1337 > userName > with Cyrillic names 1`] = `"Fedor56"`; +exports[`internet > 1337 > userName > with Cyrillic names 1`] = `"Fedor_Dostoevskii15"`; -exports[`internet > 1337 > userName > with Latin names 1`] = `"Jane56"`; +exports[`internet > 1337 > userName > with Latin names 1`] = `"Jane_Doe15"`; -exports[`internet > 1337 > userName > with accented names 1`] = `"Helene56"`; +exports[`internet > 1337 > userName > with accented names 1`] = `"Helene_Muller15"`; -exports[`internet > 1337 > userName > with all option 1`] = `"Jane56"`; +exports[`internet > 1337 > userName > with all option 1`] = `"Jane_Doe15"`; -exports[`internet > 1337 > userName > with firstName option 1`] = `"Jane21"`; +exports[`internet > 1337 > userName > with firstName option 1`] = `"Jane.MacGyver27"`; exports[`internet > 1337 > userName > with lastName option 1`] = `"Devyn.Doe"`; -exports[`internet > 1337 > userName > with legacy names 1`] = `"Jane56"`; +exports[`internet > 1337 > userName > with legacy names 1`] = `"Jane_Doe15"`; diff --git a/test/modules/internet.spec.ts b/test/modules/internet.spec.ts index 40518833b7c..be9aa02588e 100644 --- a/test/modules/internet.spec.ts +++ b/test/modules/internet.spec.ts @@ -252,9 +252,8 @@ describe('internet', () => { const [prefix, suffix] = email.split('@'); expect(prefix).includes('Aiden'); - expect(prefix).toMatch( - /^Aiden((\d{1,2})|([._]Harann\d{1,2})|([._](Harann)))/ - ); + expect(prefix).includes('Harann'); + expect(prefix).toMatch(/^Aiden[._]Harann\d*/); expect(faker.definitions.internet.free_email).toContain(suffix); }); @@ -296,9 +295,7 @@ describe('internet', () => { const [prefix, suffix] = email.split('@'); - expect(prefix).toMatch( - /^Mike((\d{1,2})|([.!#$%&'*+-/=?^_`{|}~]Smith\d{1,2})|([.!#$%&'*+-/=?^_`{|}~]Smith))/ - ); + expect(prefix).toMatch(/^Mike[.!#$%&'*+-/=?^_`{|}~]Smith\d*/); expect(faker.definitions.internet.free_email).toContain(suffix); }); }); @@ -344,10 +341,12 @@ describe('internet', () => { expect(email).toSatisfy(validator.isEmail); const [prefix, suffix] = email.split('@'); + expect(email).includes('Aiden'); + expect(email).includes('Harann'); expect(suffix).toMatch(/^example\.(com|net|org)$/); expect(faker.definitions.internet.example_email).toContain(suffix); - expect(prefix).toMatch(/^Aiden([._]Harann)?\d*/); + expect(prefix).toMatch(/^Aiden[._]Harann\d*/); }); it('should return an email with special characters', () => { @@ -365,7 +364,9 @@ describe('internet', () => { expect(suffix).toMatch(/^example\.(com|net|org)$/); expect(faker.definitions.internet.example_email).toContain(suffix); - expect(prefix).toMatch(/^Mike([.!#$%&'*+-/=?^_`{|}~]Smith)?\d*/); + expect(prefix).includes('Mike'); + expect(prefix).includes('Smith'); + expect(prefix).toMatch(/^Mike[.!#$%&'*+-/=?^_`{|}~]Smith\d*/); }); }); @@ -396,9 +397,8 @@ describe('internet', () => { expect(username).toBeTruthy(); expect(username).toBeTypeOf('string'); expect(username).includes('Aiden'); - expect(username).toMatch( - /^Aiden((\d{1,2})|([._]Harann\d{1,2})|([._](Harann)))/ - ); + expect(username).includes('Harann'); + expect(username).toMatch(/^Aiden[._]Harann\d*/); }); it('should strip accents', () => { @@ -407,6 +407,7 @@ describe('internet', () => { lastName: 'Smith', }); expect(username).includes('Adele'); + expect(username).includes('Smith'); }); it('should transliterate Cyrillic', () => { From 9ac8854b021b1fb87cd5cfb9a9a0bf4fee33e0ea Mon Sep 17 00:00:00 2001 From: Shinigami Date: Mon, 20 Nov 2023 09:45:29 +0100 Subject: [PATCH 19/98] chore(deps): update eslint-define-config (#2551) --- .eslintrc.js | 6 ++ package.json | 7 +- pnpm-lock.yaml | 180 ++++++++++++++++++++++++++----------------------- 3 files changed, 107 insertions(+), 86 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4b57462e1d3..4aa087a69ce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,6 +2,12 @@ const { defineConfig } = require('eslint-define-config'); const { readGitignoreFiles } = require('eslint-gitignore'); +/// +/// +/// +/// +/// + module.exports = defineConfig({ ignorePatterns: [ ...readGitignoreFiles(), diff --git a/package.json b/package.json index 6fdd6b8aaf1..b6be4df23e8 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,11 @@ "devDependencies": { "@actions/github": "~6.0.0", "@algolia/client-search": "~4.19.1", + "@eslint-types/deprecation": "2.0.0-1", + "@eslint-types/jsdoc": "~46.9.0", + "@eslint-types/prettier": "5.0.1-1", + "@eslint-types/typescript-eslint": "~6.11.0", + "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.6", "@types/node": "~20.9.0", "@types/sanitize-html": "~2.9.4", @@ -104,7 +109,7 @@ "esbuild": "~0.19.5", "eslint": "~8.53.0", "eslint-config-prettier": "~9.0.0", - "eslint-define-config": "~1.24.1", + "eslint-define-config": "~2.0.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", "eslint-plugin-jsdoc": "~46.9.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 672c33a2193..5df085cbf1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,12 +7,27 @@ devDependencies: '@algolia/client-search': specifier: ~4.19.1 version: 4.19.1 + '@eslint-types/deprecation': + specifier: 2.0.0-1 + version: 2.0.0-1 + '@eslint-types/jsdoc': + specifier: ~46.9.0 + version: 46.9.0 + '@eslint-types/prettier': + specifier: 5.0.1-1 + version: 5.0.1-1 + '@eslint-types/typescript-eslint': + specifier: ~6.11.0 + version: 6.11.0 + '@eslint-types/unicorn': + specifier: ~49.0.0 + version: 49.0.0 '@types/markdown-it': specifier: ~13.0.6 version: 13.0.6 '@types/node': specifier: ~20.9.0 - version: 20.9.0 + version: 20.9.1 '@types/sanitize-html': specifier: ~2.9.4 version: 2.9.4 @@ -36,13 +51,13 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.6.0 - version: 10.6.0(vue@3.3.8) + version: 10.6.1(vue@3.3.8) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: specifier: ~13.5.0 - version: 13.5.0 + version: 13.5.1 esbuild: specifier: ~0.19.5 version: 0.19.5 @@ -53,8 +68,8 @@ devDependencies: specifier: ~9.0.0 version: 9.0.0(eslint@8.53.0) eslint-define-config: - specifier: ~1.24.1 - version: 1.24.1 + specifier: ~2.0.0 + version: 2.0.0 eslint-gitignore: specifier: ~0.1.0 version: 0.1.0(eslint@8.53.0) @@ -111,10 +126,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.0 - version: 4.5.0(@types/node@20.9.0) + version: 4.5.0(@types/node@20.9.1) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.10.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.1)(search-insights@2.11.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -145,10 +160,10 @@ packages: undici: 5.27.2 dev: true - /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0): + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0) '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) transitivePeerDependencies: - '@algolia/client-search' @@ -156,13 +171,13 @@ packages: - search-insights dev: true - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) - search-insights: 2.10.0 + search-insights: 2.11.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch @@ -414,10 +429,10 @@ packages: resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==} dev: true - /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0): + /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0): resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: - '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0) + '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) preact: 10.19.2 transitivePeerDependencies: - '@algolia/client-search' @@ -427,7 +442,7 @@ packages: - search-insights dev: true - /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0): + /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0): resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -444,11 +459,11 @@ packages: search-insights: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.10.0) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0) '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) '@docsearch/css': 3.5.2 algoliasearch: 4.20.0 - search-insights: 2.10.0 + search-insights: 2.11.0 transitivePeerDependencies: - '@algolia/client-search' dev: true @@ -873,6 +888,26 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true + /@eslint-types/deprecation@2.0.0-1: + resolution: {integrity: sha512-bsl7dssIW598hWQBIsnKMHQCguXkjI14117dXVpRhaaGBmzUAJxGpL9ClM36alal6NSbljrxJvzBadINVcWeoQ==} + dev: true + + /@eslint-types/jsdoc@46.9.0: + resolution: {integrity: sha512-8ReQAHsUh5LzuDdrzCOsITR9EYgC99amt2qGyU2fJ8EAC2Q7Wnu+JI70dARzhfzTeOJ904LytLfUieBvIqpE9A==} + dev: true + + /@eslint-types/prettier@5.0.1-1: + resolution: {integrity: sha512-z6B+TnNPZn9GiwfGBgkyE2eK8tnvnzE4Uy/4EkJHB0GJwin8jYD9RMAAwJauKQgUnJ42/Iox6k7BVnHpSbcmBg==} + dev: true + + /@eslint-types/typescript-eslint@6.11.0: + resolution: {integrity: sha512-6IpcTD2brrOtSvvjmHvLHqubrmqj1wFhGWda+lA5fPlPIqhJYccL/mz2yONKQfQdh9kV7xd2tuVq7O2ylZd3iA==} + dev: true + + /@eslint-types/unicorn@49.0.0: + resolution: {integrity: sha512-NfXSZIsPFRD2fwTDZQj8SaXqS/rXjB5foxMraLovyrYGXiQK2y0780drDKYYSVbqvco29QIYoZNmnKTUkzZMvQ==} + dev: true + /@eslint/eslintrc@2.1.3: resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -881,7 +916,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) espree: 9.6.1 globals: 13.23.0 - ignore: 5.2.4 + ignore: 5.3.0 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -1161,8 +1196,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.9.0: - resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} + /@types/node@20.9.1: + resolution: {integrity: sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==} dependencies: undici-types: 5.26.5 dev: true @@ -1201,7 +1236,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.9.0 + '@types/node': 20.9.1 dev: true optional: true @@ -1225,7 +1260,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 natural-compare: 1.4.0 semver: 7.5.4 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1401,14 +1436,14 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.4.1(vite@4.5.0)(vue@3.3.8): - resolution: {integrity: sha512-HCQG8VDFDM7YDAdcj5QI5DvUi+r6xvo9LgvYdk7LSkUNwdpempdB5horkMSZsbdey9Ywsf5aaU8kEPw9M5kREA==} + /@vitejs/plugin-vue@4.5.0(vite@4.5.0)(vue@3.3.8): + resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: ^4.0.0 + vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.0(@types/node@20.9.0) + vite: 4.5.0(@types/node@20.9.1) vue: 3.3.8(typescript@4.9.5) dev: true @@ -1581,18 +1616,6 @@ packages: resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} dev: true - /@vueuse/core@10.6.0(vue@3.3.8): - resolution: {integrity: sha512-+Yee+g9+9BEbvkyGdn4Bf4yZx9EfocAytpV2ZlrlP7xcz+qznLmZIDqDroTvc5vtMkWZicisgEv8dt3+jL+HQg==} - dependencies: - '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.6.0 - '@vueuse/shared': 10.6.0(vue@3.3.8) - vue-demi: 0.14.6(vue@3.3.8) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: true - /@vueuse/core@10.6.1(vue@3.3.8): resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} dependencies: @@ -1655,23 +1678,10 @@ packages: - vue dev: true - /@vueuse/metadata@10.6.0: - resolution: {integrity: sha512-mzKHkHoiK6xVz01VzQjM2l6ofUanEaofgEGPgDHcAzlvOTccPRTIdEuzneOUTYxgfm1vkDikS6rtrEw/NYlaTQ==} - dev: true - /@vueuse/metadata@10.6.1: resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==} dev: true - /@vueuse/shared@10.6.0(vue@3.3.8): - resolution: {integrity: sha512-0t4MVE18sO+/4Gh0jfeOXBTjKeV4606N9kIrDOLPjFl8Rwnlodn+QC5A4LfJuysK7aOsTMjF3KnzNeueaI0xlQ==} - dependencies: - vue-demi: 0.14.6(vue@3.3.8) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: true - /@vueuse/shared@10.6.1(vue@3.3.8): resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} dependencies: @@ -2176,7 +2186,7 @@ packages: dev: true /concat-map@0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: true /concat-stream@2.0.0: @@ -2519,8 +2529,8 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@13.5.0: - resolution: {integrity: sha512-oh6U7h9w8wwHfzNDJQ6wVcAeXu31DlIYlNOBvfd6U4CcB8oe4akawQmH+QJVOMZlM42eBoCne015+svVqdwdRQ==} + /cypress@13.5.1: + resolution: {integrity: sha512-yqLViT0D/lPI8Kkm7ciF/x/DCK/H/DnogdGyiTnQgX4OVR2aM30PtK+kvklTOD1u3TuItiD9wUQAF8EYWtyZug==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -2967,9 +2977,9 @@ packages: eslint: 8.53.0 dev: true - /eslint-define-config@1.24.1: - resolution: {integrity: sha512-o36vBhPSWyIQlHoMqGhhcGmOOm2A2ccBVIdLTG/AWdm9YmjpsLpf+5ntf9LlHR6dduLREgxtGwvwPwSt7vnXJg==} - engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>= 8.6.0'} + /eslint-define-config@2.0.0: + resolution: {integrity: sha512-M8ao9mAE35BGwjZeT8ZlsRA42wcJHWS29Avd0qfeclRXig6uTnGXcaO7UxVyFzUA1VJtxeV/acw4KrhJA3JqxQ==} + engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} dev: true /eslint-gitignore@0.1.0(eslint@8.53.0): @@ -3130,7 +3140,7 @@ packages: glob-parent: 6.0.2 globals: 13.23.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 @@ -3637,7 +3647,7 @@ packages: array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.3.2 - ignore: 5.2.4 + ignore: 5.3.0 merge2: 1.4.1 slash: 3.0.0 dev: true @@ -3777,8 +3787,8 @@ packages: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} dev: true - /ignore@5.2.4: - resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} + /ignore@5.3.0: + resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==} engines: {node: '>= 4'} dev: true @@ -4508,7 +4518,7 @@ packages: acorn: 8.11.2 pathe: 1.1.1 pkg-types: 1.0.3 - ufo: 1.3.1 + ufo: 1.3.2 dev: true /modify-values@1.0.1: @@ -5030,7 +5040,7 @@ packages: dependencies: find-up: 6.3.0 read-pkg: 8.1.0 - type-fest: 4.7.1 + type-fest: 4.8.1 dev: true /read-pkg-up@3.0.0: @@ -5076,7 +5086,7 @@ packages: '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.0 parse-json: 7.1.1 - type-fest: 4.7.1 + type-fest: 4.8.1 dev: true /readable-stream@2.3.8: @@ -5132,7 +5142,7 @@ packages: /request-progress@3.0.0: resolution: {integrity: sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==} dependencies: - throttleit: 1.0.0 + throttleit: 1.0.1 dev: true /require-directory@2.1.1: @@ -5262,8 +5272,8 @@ packages: postcss: 8.4.31 dev: true - /search-insights@2.10.0: - resolution: {integrity: sha512-pQGrOE56QuTRmq4NzliRZe9rv914hBMBjOviuDliDHoIhmBGoyZRlFsPd4RprGGNC4PKdD2Jz54YN4Cmkb44mA==} + /search-insights@2.11.0: + resolution: {integrity: sha512-Uin2J8Bpm3xaZi9Y8QibSys6uJOFZ+REMrf42v20AA3FUDUrshKkMEP6liJbMAHCm71wO6ls4mwAf7a3gFVxLw==} dev: true /semver@5.7.2: @@ -5683,8 +5693,8 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true - /throttleit@1.0.0: - resolution: {integrity: sha512-rkTVqu6IjfQ/6+uNuuc3sZek4CEYxTJom3IktzgdSxcZqdARuebbA/f4QmAxMQIxqq9ZLEUkSYqvuk1I6VKq4g==} + /throttleit@1.0.1: + resolution: {integrity: sha512-vDZpf9Chs9mAdfY046mcPt8fg5QSZr37hEH4TXYBnDF+izxgrbRGUAAaBvIk/fJm9aOFCGFd1EsNg5AZCbnQCQ==} dev: true /through2@2.0.5: @@ -5857,8 +5867,8 @@ packages: engines: {node: '>=14.16'} dev: true - /type-fest@4.7.1: - resolution: {integrity: sha512-iWr8RUmzAJRfhZugX9O7nZE6pCxDU8CZ3QxsLuTnGcBLJpCaP2ll3s4eMTBoFnU/CeXY/5rfQSuAEsTGJO4y8A==} + /type-fest@4.8.1: + resolution: {integrity: sha512-ShaaYnjf+0etG8W/FumARKMjjIToy/haCaTjN2dvcewOSoNqCQzdgG7m2JVOlM5qndGTHjkvsrWZs+k/2Z7E0Q==} engines: {node: '>=16'} dev: true @@ -5924,8 +5934,8 @@ packages: hasBin: true dev: true - /ufo@1.3.1: - resolution: {integrity: sha512-uY/99gMLIOlJPwATcMVYfqDSxUR9//AUcgZMzwfSTJPDKzA1S8mX4VLqa+fiAtveraQUBCz4FFcwVZBGbwBXIw==} + /ufo@1.3.2: + resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==} dev: true /uglify-js@3.17.4: @@ -6019,7 +6029,7 @@ packages: dev: true /verror@1.10.0: - resolution: {integrity: sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=} + resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==} engines: {'0': node >=0.6.0} dependencies: assert-plus: 1.0.0 @@ -6027,7 +6037,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.9.0): + /vite-node@0.34.6(@types/node@20.9.1): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6037,7 +6047,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.9.0) + vite: 4.5.0(@types/node@20.9.1) transitivePeerDependencies: - '@types/node' - less @@ -6049,7 +6059,7 @@ packages: - terser dev: true - /vite@4.5.0(@types/node@20.9.0): + /vite@4.5.0(@types/node@20.9.1): resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6077,7 +6087,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.9.0 + '@types/node': 20.9.1 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6085,22 +6095,22 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.0)(search-insights@2.10.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.1)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 - '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.10.0) - '@vitejs/plugin-vue': 4.4.1(vite@4.5.0)(vue@3.3.8) + '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) + '@vitejs/plugin-vue': 4.5.0(vite@4.5.0)(vue@3.3.8) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.6.0(vue@3.3.8) + '@vueuse/core': 10.6.1(vue@3.3.8) '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.8) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.2.0 shiki: 0.14.5 - vite: 4.5.0(@types/node@20.9.0) + vite: 4.5.0(@types/node@20.9.1) vue: 3.3.8(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' @@ -6163,7 +6173,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.9.0 + '@types/node': 20.9.1 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6183,8 +6193,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.0(@types/node@20.9.0) - vite-node: 0.34.6(@types/node@20.9.0) + vite: 4.5.0(@types/node@20.9.1) + vite-node: 0.34.6(@types/node@20.9.1) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 8f358d5e37d07471ac57d77629306e961264e534 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:27:42 +0100 Subject: [PATCH 20/98] chore(deps): update typescript-eslint to ~6.11.0 (#2554) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 109 +++++++++++-------------------------------------- 2 files changed, 26 insertions(+), 87 deletions(-) diff --git a/package.json b/package.json index b6be4df23e8..408ab05276a 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.4", "@types/semver": "~7.5.5", "@types/validator": "~13.11.6", - "@typescript-eslint/eslint-plugin": "~6.10.0", - "@typescript-eslint/parser": "~6.10.0", + "@typescript-eslint/eslint-plugin": "~6.11.0", + "@typescript-eslint/parser": "~6.11.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5df085cbf1a..2f691c45b93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.6 version: 13.11.6 '@typescript-eslint/eslint-plugin': - specifier: ~6.10.0 - version: 6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5) + specifier: ~6.11.0 + version: 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.10.0 - version: 6.10.0(eslint@8.53.0)(typescript@4.9.5) + specifier: ~6.11.0 + version: 6.11.0(eslint@8.53.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.53.0) eslint-plugin-vitest: specifier: ~0.3.9 - version: 0.3.9(@typescript-eslint/eslint-plugin@6.10.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.9(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1240,8 +1240,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-uoLj4g2OTL8rfUQVx2AFO1hp/zja1wABJq77P6IclQs6I/m9GLrm7jCdgzZkvWdDCQf1uEvoa8s8CupsgWQgVg==} + /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1252,11 +1252,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.10.0(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.10.0 - '@typescript-eslint/type-utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.10.0 + '@typescript-eslint/parser': 6.11.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.11.0 + '@typescript-eslint/type-utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 graphemer: 1.4.0 @@ -1269,8 +1269,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog==} + /@typescript-eslint/parser@6.11.0(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1279,10 +1279,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.10.0 - '@typescript-eslint/types': 6.10.0 - '@typescript-eslint/typescript-estree': 6.10.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.10.0 + '@typescript-eslint/scope-manager': 6.11.0 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 typescript: 4.9.5 @@ -1290,14 +1290,6 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager@6.10.0: - resolution: {integrity: sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.10.0 - '@typescript-eslint/visitor-keys': 6.10.0 - dev: true - /@typescript-eslint/scope-manager@6.11.0: resolution: {integrity: sha512-0A8KoVvIURG4uhxAdjSaxy8RdRE//HztaZdG8KiHLP8WOXSk0vlF7Pvogv+vlJA5Rnjj/wDcFENvDaHb+gKd1A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1306,8 +1298,8 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-wYpPs3hgTFblMYwbYWPT3eZtaDOjbLyIYuqpwuLBBqhLiuvJ+9sEp2gNRJEtR5N/c9G1uTtQQL5AhV0fEPJYcg==} + /@typescript-eslint/type-utils@6.11.0(eslint@8.53.0)(typescript@4.9.5): + resolution: {integrity: sha512-nA4IOXwZtqBjIoYrJcYxLRO+F9ri+leVGoJcMW1uqr4r1Hq7vW5cyWrA43lFbpRvQ9XgNrnfLpIkO3i1emDBIA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1316,8 +1308,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.10.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.10.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.53.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1326,37 +1318,11 @@ packages: - supports-color dev: true - /@typescript-eslint/types@6.10.0: - resolution: {integrity: sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/types@6.11.0: resolution: {integrity: sha512-ZbEzuD4DwEJxwPqhv3QULlRj8KYTAnNsXxmfuUXFCxZmO6CF2gM/y+ugBSAQhrqaJL3M+oe4owdWunaHM6beqA==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.10.0(typescript@4.9.5): - resolution: {integrity: sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 6.10.0 - '@typescript-eslint/visitor-keys': 6.10.0 - debug: 4.3.4(supports-color@8.1.1) - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@4.9.5) - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5): resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1378,25 +1344,6 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@4.9.5): - resolution: {integrity: sha512-v+pJ1/RcVyRc0o4wAGux9x42RHmAjIGzPRo538Z8M1tVx6HOnoQBCX/NoadHQlZeC+QO2yr4nNSFWOoraZCAyg==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.5 - '@typescript-eslint/scope-manager': 6.10.0 - '@typescript-eslint/types': 6.10.0 - '@typescript-eslint/typescript-estree': 6.10.0(typescript@4.9.5) - eslint: 8.53.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - /@typescript-eslint/utils@6.11.0(eslint@8.53.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1416,14 +1363,6 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys@6.10.0: - resolution: {integrity: sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.10.0 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/visitor-keys@6.11.0: resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3075,7 +3014,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.9(@typescript-eslint/eslint-plugin@6.10.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.9(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-ZGrz8dWFlotM5dwrsMLP4VcY5MizwKNV4JTnY0VKdnuCZ+qeEUMHf1qd8kRGQA3tqLvXcV929wt2ANkduq2Pgw==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3088,7 +3027,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) eslint: 8.53.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 71b57bdb3e00144ece93fe9e0252ac601248090c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:42:37 +0000 Subject: [PATCH 21/98] chore(deps): update actions/github-script action to v7 (#2555) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/comment-issue.yml | 4 ++-- .github/workflows/pr.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/comment-issue.yml b/.github/workflows/comment-issue.yml index 4bf1bc2f4fc..045b377a2f0 100644 --- a/.github/workflows/comment-issue.yml +++ b/.github/workflows/comment-issue.yml @@ -13,7 +13,7 @@ jobs: issues: write steps: - name: Add Comment For User Interest - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | github.rest.issues.createComment({ @@ -49,7 +49,7 @@ jobs: }) - name: React to Issue - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | github.rest.reactions.createForIssue({ diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 604befa794e..816f4a0c337 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -53,7 +53,7 @@ jobs: run: pnpm exec tsc .github/workflows/commentCodeGeneration.ts --outDir .github/workflows - name: Comment - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | const script = require('${{ github.workspace }}/.github/workflows/commentCodeGeneration.js') From 96195673448e9b56ea330a1d02ff63374a11ca8b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 14:18:13 +0100 Subject: [PATCH 22/98] chore(deps): update devdependencies (#2553) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 12 +-- pnpm-lock.yaml | 284 ++++++++++++++++++++++++------------------------- 2 files changed, 148 insertions(+), 148 deletions(-) diff --git a/package.json b/package.json index 408ab05276a..0d2bb1c5679 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@eslint-types/typescript-eslint": "~6.11.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.6", - "@types/node": "~20.9.0", + "@types/node": "~20.9.2", "@types/sanitize-html": "~2.9.4", "@types/semver": "~7.5.5", "@types/validator": "~13.11.6", @@ -103,11 +103,11 @@ "@typescript-eslint/parser": "~6.11.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", - "@vueuse/core": "~10.6.0", + "@vueuse/core": "~10.6.1", "conventional-changelog-cli": "~4.1.0", - "cypress": "~13.5.0", - "esbuild": "~0.19.5", - "eslint": "~8.53.0", + "cypress": "~13.5.1", + "esbuild": "~0.19.6", + "eslint": "~8.54.0", "eslint-config-prettier": "~9.0.0", "eslint-define-config": "~2.0.0", "eslint-gitignore": "~0.1.0", @@ -115,7 +115,7 @@ "eslint-plugin-jsdoc": "~46.9.0", "eslint-plugin-prettier": "~5.0.1", "eslint-plugin-unicorn": "~49.0.0", - "eslint-plugin-vitest": "~0.3.9", + "eslint-plugin-vitest": "~0.3.10", "glob": "~10.3.10", "npm-run-all": "~4.1.5", "prettier": "3.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2f691c45b93..7f739bbb03f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.6 version: 13.0.6 '@types/node': - specifier: ~20.9.0 - version: 20.9.1 + specifier: ~20.9.2 + version: 20.9.2 '@types/sanitize-html': specifier: ~2.9.4 version: 2.9.4 @@ -39,10 +39,10 @@ devDependencies: version: 13.11.6 '@typescript-eslint/eslint-plugin': specifier: ~6.11.0 - version: 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5) + version: 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/parser': specifier: ~6.11.0 - version: 6.11.0(eslint@8.53.0)(typescript@4.9.5) + version: 6.11.0(eslint@8.54.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -50,44 +50,44 @@ devDependencies: specifier: ~0.34.7 version: 0.34.7(vitest@0.34.6) '@vueuse/core': - specifier: ~10.6.0 + specifier: ~10.6.1 version: 10.6.1(vue@3.3.8) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: - specifier: ~13.5.0 + specifier: ~13.5.1 version: 13.5.1 esbuild: - specifier: ~0.19.5 - version: 0.19.5 + specifier: ~0.19.6 + version: 0.19.6 eslint: - specifier: ~8.53.0 - version: 8.53.0 + specifier: ~8.54.0 + version: 8.54.0 eslint-config-prettier: specifier: ~9.0.0 - version: 9.0.0(eslint@8.53.0) + version: 9.0.0(eslint@8.54.0) eslint-define-config: specifier: ~2.0.0 version: 2.0.0 eslint-gitignore: specifier: ~0.1.0 - version: 0.1.0(eslint@8.53.0) + version: 0.1.0(eslint@8.54.0) eslint-plugin-deprecation: specifier: ~2.0.0 - version: 2.0.0(eslint@8.53.0)(typescript@4.9.5) + version: 2.0.0(eslint@8.54.0)(typescript@4.9.5) eslint-plugin-jsdoc: specifier: ~46.9.0 - version: 46.9.0(eslint@8.53.0) + version: 46.9.0(eslint@8.54.0) eslint-plugin-prettier: specifier: ~5.0.1 - version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.1.0) + version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.54.0)(prettier@3.1.0) eslint-plugin-unicorn: specifier: ~49.0.0 - version: 49.0.0(eslint@8.53.0) + version: 49.0.0(eslint@8.54.0) eslint-plugin-vitest: - specifier: ~0.3.9 - version: 0.3.9(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6) + specifier: ~0.3.10 + version: 0.3.10(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -126,10 +126,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.0 - version: 4.5.0(@types/node@20.9.1) + version: 4.5.0(@types/node@20.9.2) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.1)(search-insights@2.11.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.2)(search-insights@2.11.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -486,8 +486,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.5: - resolution: {integrity: sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==} + /@esbuild/android-arm64@0.19.6: + resolution: {integrity: sha512-KQ/hbe9SJvIJ4sR+2PcZ41IBV+LPJyYp6V1K1P1xcMRup9iYsBoQn4MzE3mhMLOld27Au2eDcLlIREeKGUXpHQ==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -504,8 +504,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.5: - resolution: {integrity: sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==} + /@esbuild/android-arm@0.19.6: + resolution: {integrity: sha512-muPzBqXJKCbMYoNbb1JpZh/ynl0xS6/+pLjrofcR3Nad82SbsCogYzUE6Aq9QT3cLP0jR/IVK/NHC9b90mSHtg==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -522,8 +522,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.5: - resolution: {integrity: sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==} + /@esbuild/android-x64@0.19.6: + resolution: {integrity: sha512-VVJVZQ7p5BBOKoNxd0Ly3xUM78Y4DyOoFKdkdAe2m11jbh0LEU4bPles4e/72EMl4tapko8o915UalN/5zhspg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -540,8 +540,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.5: - resolution: {integrity: sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==} + /@esbuild/darwin-arm64@0.19.6: + resolution: {integrity: sha512-91LoRp/uZAKx6ESNspL3I46ypwzdqyDLXZH7x2QYCLgtnaU08+AXEbabY2yExIz03/am0DivsTtbdxzGejfXpA==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -558,8 +558,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.5: - resolution: {integrity: sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==} + /@esbuild/darwin-x64@0.19.6: + resolution: {integrity: sha512-QCGHw770ubjBU1J3ZkFJh671MFajGTYMZumPs9E/rqU52md6lIil97BR0CbPq6U+vTh3xnTNDHKRdR8ggHnmxQ==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -576,8 +576,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.5: - resolution: {integrity: sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==} + /@esbuild/freebsd-arm64@0.19.6: + resolution: {integrity: sha512-J53d0jGsDcLzWk9d9SPmlyF+wzVxjXpOH7jVW5ae7PvrDst4kiAz6sX+E8btz0GB6oH12zC+aHRD945jdjF2Vg==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -594,8 +594,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.5: - resolution: {integrity: sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==} + /@esbuild/freebsd-x64@0.19.6: + resolution: {integrity: sha512-hn9qvkjHSIB5Z9JgCCjED6YYVGCNpqB7dEGavBdG6EjBD8S/UcNUIlGcB35NCkMETkdYwfZSvD9VoDJX6VeUVA==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -612,8 +612,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.5: - resolution: {integrity: sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==} + /@esbuild/linux-arm64@0.19.6: + resolution: {integrity: sha512-HQCOrk9XlH3KngASLaBfHpcoYEGUt829A9MyxaI8RMkfRA8SakG6YQEITAuwmtzFdEu5GU4eyhKcpv27dFaOBg==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -630,8 +630,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.5: - resolution: {integrity: sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==} + /@esbuild/linux-arm@0.19.6: + resolution: {integrity: sha512-G8IR5zFgpXad/Zp7gr7ZyTKyqZuThU6z1JjmRyN1vSF8j0bOlGzUwFSMTbctLAdd7QHpeyu0cRiuKrqK1ZTwvQ==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -648,8 +648,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.5: - resolution: {integrity: sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==} + /@esbuild/linux-ia32@0.19.6: + resolution: {integrity: sha512-22eOR08zL/OXkmEhxOfshfOGo8P69k8oKHkwkDrUlcB12S/sw/+COM4PhAPT0cAYW/gpqY2uXp3TpjQVJitz7w==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -666,8 +666,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.5: - resolution: {integrity: sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==} + /@esbuild/linux-loong64@0.19.6: + resolution: {integrity: sha512-82RvaYAh/SUJyjWA8jDpyZCHQjmEggL//sC7F3VKYcBMumQjUL3C5WDl/tJpEiKtt7XrWmgjaLkrk205zfvwTA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -684,8 +684,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.5: - resolution: {integrity: sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==} + /@esbuild/linux-mips64el@0.19.6: + resolution: {integrity: sha512-8tvnwyYJpR618vboIv2l8tK2SuK/RqUIGMfMENkeDGo3hsEIrpGldMGYFcWxWeEILe5Fi72zoXLmhZ7PR23oQA==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -702,8 +702,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.5: - resolution: {integrity: sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==} + /@esbuild/linux-ppc64@0.19.6: + resolution: {integrity: sha512-Qt+D7xiPajxVNk5tQiEJwhmarNnLPdjXAoA5uWMpbfStZB0+YU6a3CtbWYSy+sgAsnyx4IGZjWsTzBzrvg/fMA==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -720,8 +720,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.5: - resolution: {integrity: sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==} + /@esbuild/linux-riscv64@0.19.6: + resolution: {integrity: sha512-lxRdk0iJ9CWYDH1Wpnnnc640ajF4RmQ+w6oHFZmAIYu577meE9Ka/DCtpOrwr9McMY11ocbp4jirgGgCi7Ls/g==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -738,8 +738,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.5: - resolution: {integrity: sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==} + /@esbuild/linux-s390x@0.19.6: + resolution: {integrity: sha512-MopyYV39vnfuykHanRWHGRcRC3AwU7b0QY4TI8ISLfAGfK+tMkXyFuyT1epw/lM0pflQlS53JoD22yN83DHZgA==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -756,8 +756,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.5: - resolution: {integrity: sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==} + /@esbuild/linux-x64@0.19.6: + resolution: {integrity: sha512-UWcieaBzsN8WYbzFF5Jq7QULETPcQvlX7KL4xWGIB54OknXJjBO37sPqk7N82WU13JGWvmDzFBi1weVBajPovg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -774,8 +774,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.5: - resolution: {integrity: sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==} + /@esbuild/netbsd-x64@0.19.6: + resolution: {integrity: sha512-EpWiLX0fzvZn1wxtLxZrEW+oQED9Pwpnh+w4Ffv8ZLuMhUoqR9q9rL4+qHW8F4Mg5oQEKxAoT0G+8JYNqCiR6g==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -792,8 +792,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.5: - resolution: {integrity: sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==} + /@esbuild/openbsd-x64@0.19.6: + resolution: {integrity: sha512-fFqTVEktM1PGs2sLKH4M5mhAVEzGpeZJuasAMRnvDZNCV0Cjvm1Hu35moL2vC0DOrAQjNTvj4zWrol/lwQ8Deg==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -810,8 +810,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.5: - resolution: {integrity: sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==} + /@esbuild/sunos-x64@0.19.6: + resolution: {integrity: sha512-M+XIAnBpaNvaVAhbe3uBXtgWyWynSdlww/JNZws0FlMPSBy+EpatPXNIlKAdtbFVII9OpX91ZfMb17TU3JKTBA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -828,8 +828,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.5: - resolution: {integrity: sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==} + /@esbuild/win32-arm64@0.19.6: + resolution: {integrity: sha512-2DchFXn7vp/B6Tc2eKdTsLzE0ygqKkNUhUBCNtMx2Llk4POIVMUq5rUYjdcedFlGLeRe1uLCpVvCmE+G8XYybA==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -846,8 +846,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.5: - resolution: {integrity: sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==} + /@esbuild/win32-ia32@0.19.6: + resolution: {integrity: sha512-PBo/HPDQllyWdjwAVX+Gl2hH0dfBydL97BAH/grHKC8fubqp02aL4S63otZ25q3sBdINtOBbz1qTZQfXbP4VBg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -864,8 +864,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.5: - resolution: {integrity: sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==} + /@esbuild/win32-x64@0.19.6: + resolution: {integrity: sha512-OE7yIdbDif2kKfrGa+V0vx/B3FJv2L4KnIiLlvtibPyO9UkgO3rzYE0HhpREo2vmJ1Ixq1zwm9/0er+3VOSZJA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -873,13 +873,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.53.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.54.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.53.0 + eslint: 8.54.0 eslint-visitor-keys: 3.4.3 dev: true @@ -925,8 +925,8 @@ packages: - supports-color dev: true - /@eslint/js@8.53.0: - resolution: {integrity: sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==} + /@eslint/js@8.54.0: + resolution: {integrity: sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -1196,8 +1196,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.9.1: - resolution: {integrity: sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==} + /@types/node@20.9.2: + resolution: {integrity: sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==} dependencies: undici-types: 5.26.5 dev: true @@ -1236,11 +1236,11 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.9.1 + '@types/node': 20.9.2 dev: true optional: true - /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@4.9.5): resolution: {integrity: sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1252,13 +1252,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.11.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 6.11.0 - '@typescript-eslint/type-utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.53.0 + eslint: 8.54.0 graphemer: 1.4.0 ignore: 5.3.0 natural-compare: 1.4.0 @@ -1269,7 +1269,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.11.0(eslint@8.53.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.11.0(eslint@8.54.0)(typescript@4.9.5): resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1284,7 +1284,7 @@ packages: '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.53.0 + eslint: 8.54.0 typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1298,7 +1298,7 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/type-utils@6.11.0(eslint@8.53.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.11.0(eslint@8.54.0)(typescript@4.9.5): resolution: {integrity: sha512-nA4IOXwZtqBjIoYrJcYxLRO+F9ri+leVGoJcMW1uqr4r1Hq7vW5cyWrA43lFbpRvQ9XgNrnfLpIkO3i1emDBIA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1309,9 +1309,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.53.0 + eslint: 8.54.0 ts-api-utils: 1.0.3(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: @@ -1344,19 +1344,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.11.0(eslint@8.53.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.11.0(eslint@8.54.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.5 '@typescript-eslint/scope-manager': 6.11.0 '@typescript-eslint/types': 6.11.0 '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - eslint: 8.53.0 + eslint: 8.54.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -1382,7 +1382,7 @@ packages: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.0(@types/node@20.9.1) + vite: 4.5.0(@types/node@20.9.2) vue: 3.3.8(typescript@4.9.5) dev: true @@ -2862,34 +2862,34 @@ packages: '@esbuild/win32-x64': 0.18.20 dev: true - /esbuild@0.19.5: - resolution: {integrity: sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==} + /esbuild@0.19.6: + resolution: {integrity: sha512-Xl7dntjA2OEIvpr9j0DVxxnog2fyTGnyVoQXAMQI6eR3mf9zCQds7VIKUDCotDgE/p4ncTgeRqgX8t5d6oP4Gw==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.19.5 - '@esbuild/android-arm64': 0.19.5 - '@esbuild/android-x64': 0.19.5 - '@esbuild/darwin-arm64': 0.19.5 - '@esbuild/darwin-x64': 0.19.5 - '@esbuild/freebsd-arm64': 0.19.5 - '@esbuild/freebsd-x64': 0.19.5 - '@esbuild/linux-arm': 0.19.5 - '@esbuild/linux-arm64': 0.19.5 - '@esbuild/linux-ia32': 0.19.5 - '@esbuild/linux-loong64': 0.19.5 - '@esbuild/linux-mips64el': 0.19.5 - '@esbuild/linux-ppc64': 0.19.5 - '@esbuild/linux-riscv64': 0.19.5 - '@esbuild/linux-s390x': 0.19.5 - '@esbuild/linux-x64': 0.19.5 - '@esbuild/netbsd-x64': 0.19.5 - '@esbuild/openbsd-x64': 0.19.5 - '@esbuild/sunos-x64': 0.19.5 - '@esbuild/win32-arm64': 0.19.5 - '@esbuild/win32-ia32': 0.19.5 - '@esbuild/win32-x64': 0.19.5 + '@esbuild/android-arm': 0.19.6 + '@esbuild/android-arm64': 0.19.6 + '@esbuild/android-x64': 0.19.6 + '@esbuild/darwin-arm64': 0.19.6 + '@esbuild/darwin-x64': 0.19.6 + '@esbuild/freebsd-arm64': 0.19.6 + '@esbuild/freebsd-x64': 0.19.6 + '@esbuild/linux-arm': 0.19.6 + '@esbuild/linux-arm64': 0.19.6 + '@esbuild/linux-ia32': 0.19.6 + '@esbuild/linux-loong64': 0.19.6 + '@esbuild/linux-mips64el': 0.19.6 + '@esbuild/linux-ppc64': 0.19.6 + '@esbuild/linux-riscv64': 0.19.6 + '@esbuild/linux-s390x': 0.19.6 + '@esbuild/linux-x64': 0.19.6 + '@esbuild/netbsd-x64': 0.19.6 + '@esbuild/openbsd-x64': 0.19.6 + '@esbuild/sunos-x64': 0.19.6 + '@esbuild/win32-arm64': 0.19.6 + '@esbuild/win32-ia32': 0.19.6 + '@esbuild/win32-x64': 0.19.6 dev: true /escalade@3.1.1: @@ -2907,13 +2907,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@9.0.0(eslint@8.53.0): + /eslint-config-prettier@9.0.0(eslint@8.54.0): resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.53.0 + eslint: 8.54.0 dev: true /eslint-define-config@2.0.0: @@ -2921,7 +2921,7 @@ packages: engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} dev: true - /eslint-gitignore@0.1.0(eslint@8.53.0): + /eslint-gitignore@0.1.0(eslint@8.54.0): resolution: {integrity: sha512-VFvY5Wyjuz5xXDC/NeONHzsh4YQNok2Gzg4SftAAuhkbrdHv5CChjfiFyLKhRlgOdCJr5kBquaLXHtuDBTW2/Q==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -2929,20 +2929,20 @@ packages: dependencies: array.prototype.flatmap: 1.3.2 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.53.0 + eslint: 8.54.0 fast-glob: 3.3.2 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-deprecation@2.0.0(eslint@8.53.0)(typescript@4.9.5): + /eslint-plugin-deprecation@2.0.0(eslint@8.54.0)(typescript@4.9.5): resolution: {integrity: sha512-OAm9Ohzbj11/ZFyICyR5N6LbOIvQMp7ZU2zI7Ej0jIc8kiGUERXPNMfw2QqqHD1ZHtjMub3yPZILovYEYucgoQ==} peerDependencies: eslint: ^7.0.0 || ^8.0.0 typescript: ^4.2.4 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) - eslint: 8.53.0 + '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) + eslint: 8.54.0 tslib: 2.6.2 tsutils: 3.21.0(typescript@4.9.5) typescript: 4.9.5 @@ -2950,7 +2950,7 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.9.0(eslint@8.53.0): + /eslint-plugin-jsdoc@46.9.0(eslint@8.54.0): resolution: {integrity: sha512-UQuEtbqLNkPf5Nr/6PPRCtr9xypXY+g8y/Q7gPa0YK7eDhh0y2lWprXRnaYbW7ACgIUvpDKy9X2bZqxtGzBG9Q==} engines: {node: '>=16'} peerDependencies: @@ -2961,7 +2961,7 @@ packages: comment-parser: 1.4.1 debug: 4.3.4(supports-color@8.1.1) escape-string-regexp: 4.0.0 - eslint: 8.53.0 + eslint: 8.54.0 esquery: 1.5.0 is-builtin-module: 3.2.1 semver: 7.5.4 @@ -2970,7 +2970,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.53.0)(prettier@3.1.0): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.54.0)(prettier@3.1.0): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -2984,24 +2984,24 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.53.0 - eslint-config-prettier: 9.0.0(eslint@8.53.0) + eslint: 8.54.0 + eslint-config-prettier: 9.0.0(eslint@8.54.0) prettier: 3.1.0 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true - /eslint-plugin-unicorn@49.0.0(eslint@8.53.0): + /eslint-plugin-unicorn@49.0.0(eslint@8.54.0): resolution: {integrity: sha512-0fHEa/8Pih5cmzFW5L7xMEfUTvI9WKeQtjmKpTUmY+BiFCDxkxrTdnURJOHKykhtwIeyYsxnecbGvDCml++z4Q==} engines: {node: '>=16'} peerDependencies: eslint: '>=8.52.0' dependencies: '@babel/helper-validator-identifier': 7.22.20 - '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) ci-info: 3.9.0 clean-regexp: 1.0.0 - eslint: 8.53.0 + eslint: 8.54.0 esquery: 1.5.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 @@ -3014,8 +3014,8 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.9(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.53.0)(typescript@4.9.5)(vitest@0.34.6): - resolution: {integrity: sha512-ZGrz8dWFlotM5dwrsMLP4VcY5MizwKNV4JTnY0VKdnuCZ+qeEUMHf1qd8kRGQA3tqLvXcV929wt2ANkduq2Pgw==} + /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6): + resolution: {integrity: sha512-08lj4rdhZHYyHk+Py2nJ7SlE6arP8GNfGXl9jVqhe9s5JoZIGiBpIkLGX+VNBiB6vXTn56H6Ant7Koc6XzRjtQ==} engines: {node: 14.x || >= 16} peerDependencies: '@typescript-eslint/eslint-plugin': '*' @@ -3027,9 +3027,9 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.53.0)(typescript@4.9.5) - eslint: 8.53.0 + '@typescript-eslint/eslint-plugin': 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) + eslint: 8.54.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: - supports-color @@ -3049,15 +3049,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.53.0: - resolution: {integrity: sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==} + /eslint@8.54.0: + resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@eslint-community/regexpp': 4.10.0 '@eslint/eslintrc': 2.1.3 - '@eslint/js': 8.53.0 + '@eslint/js': 8.54.0 '@humanwhocodes/config-array': 0.11.13 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -5976,7 +5976,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.9.1): + /vite-node@0.34.6(@types/node@20.9.2): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5986,7 +5986,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.9.1) + vite: 4.5.0(@types/node@20.9.2) transitivePeerDependencies: - '@types/node' - less @@ -5998,7 +5998,7 @@ packages: - terser dev: true - /vite@4.5.0(@types/node@20.9.1): + /vite@4.5.0(@types/node@20.9.2): resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6026,7 +6026,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.9.1 + '@types/node': 20.9.2 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6034,7 +6034,7 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.1)(search-insights@2.11.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.2)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: @@ -6049,7 +6049,7 @@ packages: mark.js: 8.11.1 minisearch: 6.2.0 shiki: 0.14.5 - vite: 4.5.0(@types/node@20.9.1) + vite: 4.5.0(@types/node@20.9.2) vue: 3.3.8(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' @@ -6112,7 +6112,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.9.1 + '@types/node': 20.9.2 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6132,8 +6132,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.0(@types/node@20.9.1) - vite-node: 0.34.6(@types/node@20.9.1) + vite: 4.5.0(@types/node@20.9.2) + vite-node: 0.34.6(@types/node@20.9.2) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 808aa82f3f86a0b25f272c0c1760115a0920b614 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 21 Nov 2023 00:23:16 +0100 Subject: [PATCH 23/98] docs: consistent @see jsdoc tags (#2473) --- src/definitions/finance.ts | 2 +- src/definitions/hacker.ts | 2 +- src/definitions/phone_number.ts | 2 +- src/faker.ts | 4 +- src/modules/company/index.ts | 4 +- src/modules/datatype/index.ts | 19 +++---- src/modules/date/index.ts | 30 +++++------ src/modules/finance/index.ts | 10 ++-- src/modules/helpers/index.ts | 8 +-- src/modules/image/index.ts | 52 +++++++++---------- src/modules/internet/index.ts | 12 ++--- src/modules/location/index.ts | 8 +-- src/modules/number/index.ts | 6 +-- src/modules/person/index.ts | 10 ++-- src/modules/random/index.ts | 14 ++--- src/modules/string/index.ts | 6 +-- src/simple-faker.ts | 8 +-- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 18 +++++++ 18 files changed, 119 insertions(+), 96 deletions(-) diff --git a/src/definitions/finance.ts b/src/definitions/finance.ts index d98edd1a422..c82ac6e85ba 100644 --- a/src/definitions/finance.ts +++ b/src/definitions/finance.ts @@ -13,7 +13,7 @@ export type FinanceDefinition = LocaleEntry<{ * The pattern by (lowercase) issuer name used to generate credit card codes. * `L` will be replaced by the check bit. * - * @see faker.helpers.replaceCreditCardSymbols() + * @see faker.helpers.replaceCreditCardSymbols(): For more information about how the pattern is used. */ credit_card: { [issuer: string]: string[] }; diff --git a/src/definitions/hacker.ts b/src/definitions/hacker.ts index f3630100bd3..a5a2dc89eb9 100644 --- a/src/definitions/hacker.ts +++ b/src/definitions/hacker.ts @@ -29,7 +29,7 @@ export type HackerDefinition = LocaleEntry<{ * May use any of the HackerDefinition keys wrapped in double braces * (e.g. `I'm {{ingverb}} {{adjective}} {{noun}}`). * - * @see faker.helpers.mustache() + * @see faker.helpers.mustache(): For more information about how the phrases are generated. */ phrase: string[]; diff --git a/src/definitions/phone_number.ts b/src/definitions/phone_number.ts index fd6a8baa47e..c6543c85772 100644 --- a/src/definitions/phone_number.ts +++ b/src/definitions/phone_number.ts @@ -10,7 +10,7 @@ export type PhoneNumberDefinition = LocaleEntry<{ * `!` will be replaced by a random digit (2-9). * (e.g. `!##-!##-####` -> 272-285-0453) * - * @see faker.helpers.replaceSymbolWithNumber(format) + * @see faker.helpers.replaceSymbolWithNumber(format): For more information about how the patterns are used. */ formats: string[]; }>; diff --git a/src/faker.ts b/src/faker.ts index e6b5889af36..f43b9c36259 100644 --- a/src/faker.ts +++ b/src/faker.ts @@ -146,7 +146,7 @@ export class Faker extends SimpleFaker { * The locale data to use for this instance. * If an array is provided, the first locale that has a definition for a given property will be used. * - * @see mergeLocales + * @see mergeLocales(): For more information about how the locales are merged. */ locale: LocaleDefinition | LocaleDefinition[]; @@ -218,7 +218,7 @@ export class Faker extends SimpleFaker { * The locale data to use for this instance. * If an array is provided, the first locale that has a definition for a given property will be used. * - * @see mergeLocales + * @see mergeLocales(): For more information about how the locales are merged. */ locale: LocaleDefinition | LocaleDefinition[]; diff --git a/src/modules/company/index.ts b/src/modules/company/index.ts index 14fe0eba491..e0f79e622f8 100644 --- a/src/modules/company/index.ts +++ b/src/modules/company/index.ts @@ -19,7 +19,7 @@ export class CompanyModule extends ModuleBase { /** * Returns an array with possible company name suffixes. * - * @see faker.company.name() + * @see faker.company.name(): For generating a complete company name. * * @example * faker.company.suffixes() // [ 'Inc', 'and Sons', 'LLC', 'Group' ] @@ -55,7 +55,7 @@ export class CompanyModule extends ModuleBase { /** * Returns a random company suffix. * - * @see faker.company.name() + * @see faker.company.name(): For generating a complete company name. * * @example * faker.company.companySuffix() // 'and Sons' diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index ad0b548928f..f46cfc0b80a 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -22,8 +22,8 @@ export class DatatypeModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.number.int() for the default precision of `1` - * @see faker.number.float() for a custom precision + * @see faker.number.int(): For generating a random integer. + * @see faker.number.float(): For generating a random floating-point number. * * @example * faker.datatype.number() // 55422 @@ -85,7 +85,7 @@ export class DatatypeModule extends SimpleModuleBase { * @param options.max Upper bound for generated number. Defaults to `min + 99999`. * @param options.precision Precision of the generated number. Defaults to `0.01`. * - * @see faker.number.float() + * @see faker.number.float(): For the replacement method. * * @example * faker.datatype.float() // 51696.36 @@ -153,8 +153,8 @@ export class DatatypeModule extends SimpleModuleBase { * When not provided or larger than `8640000000000000`, `2100-01-01` is considered * as maximum generated date. Defaults to `4102444800000`. * - * @see faker.date.anytime() - * @see faker.date.between() + * @see faker.date.anytime(): For generating a random date in either the past or future. + * @see faker.date.between(): For generating a random date in between two dates. * * @example * faker.datatype.datetime() // '2089-04-17T18:03:24.956Z' @@ -216,7 +216,7 @@ export class DatatypeModule extends SimpleModuleBase { * @param options Length of the generated string or an options object. * @param options.length Length of the generated string. Max length is `2^20`. Defaults to `10`. * - * @see faker.string.sample() + * @see faker.string.sample(): For the replacement method. * * @example * faker.datatype.string() // 'Zo!.:*e>wR' @@ -257,7 +257,7 @@ export class DatatypeModule extends SimpleModuleBase { /** * Returns a UUID v4 ([Universally Unique Identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier)). * - * @see faker.string.uuid() + * @see faker.string.uuid(): For the replacement method. * * @example * faker.datatype.uuid() // '4136cd0b-d90b-4af7-b485-5d1ded8db252' @@ -334,7 +334,8 @@ export class DatatypeModule extends SimpleModuleBase { * @param options.prefix Prefix for the generated number. Defaults to `'0x'`. * @param options.case Case of the generated number. Defaults to `'mixed'`. * - * @see faker.string.hexadecimal() + * @see faker.string.hexadecimal(): For generating a random hexadecimal string. + * @see faker.number.hex(): For generating a random hexadecimal number. * * @example * faker.datatype.hexadecimal() // '0xB' @@ -464,7 +465,7 @@ export class DatatypeModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.number.bigInt() + * @see faker.number.bigInt(): For the replacement method. * * @example * faker.datatype.bigInt() // 55422n diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index 39c857354b7..9b96e704079 100644 --- a/src/modules/date/index.ts +++ b/src/modules/date/index.ts @@ -38,9 +38,9 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options The optional options object. * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.between() For dates in a specific range. - * @see faker.date.past() For dates explicitly in the past. - * @see faker.date.future() For dates explicitly in the future. + * @see faker.date.between(): For generating dates in a specific range. + * @see faker.date.past(): For generating dates explicitly in the past. + * @see faker.date.future(): For generating dates explicitly in the future. * * @example * faker.date.anytime() // '2022-07-31T01:33:29.567Z' @@ -74,7 +74,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.years The range of years the date may be in the past. Defaults to `1`. * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.recent() + * @see faker.date.recent(): For generating dates in the recent past (days instead of years). * * @example * faker.date.past() // '2021-12-03T05:40:44.408Z' @@ -103,7 +103,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param years The range of years the date may be in the past. Defaults to `1`. * @param refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.recent() + * @see faker.date.recent(): For generating dates in the recent past (days instead of years). * * @example * faker.date.past() // '2021-12-03T05:40:44.408Z' @@ -123,7 +123,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * @param legacyRefDate Deprecated, use `options.refDate` instead. * - * @see faker.date.recent() + * @see faker.date.recent(): For generating dates in the recent past (days instead of years). * * @example * faker.date.past() // '2021-12-03T05:40:44.408Z' @@ -196,7 +196,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.years The range of years the date may be in the future. Defaults to `1`. * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.soon() + * @see faker.date.soon(): For generating dates in the near future (days instead of years). * * @example * faker.date.future() // '2022-11-19T05:52:49.100Z' @@ -225,7 +225,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param years The range of years the date may be in the future. Defaults to `1`. * @param refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.soon() + * @see faker.date.soon(): For generating dates in the near future (days instead of years). * * @example * faker.date.future() // '2022-11-19T05:52:49.100Z' @@ -245,7 +245,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * @param legacyRefDate Deprecated, use `options.refDate` instead. * - * @see faker.date.soon() + * @see faker.date.soon(): For generating dates in the near future (days instead of years). * * @example * faker.date.future() // '2022-11-19T05:52:49.100Z' @@ -590,7 +590,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.days The range of days the date may be in the past. Defaults to `1`. * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.past() + * @see faker.date.past(): For generating dates further back in time (years instead of days). * * @example * faker.date.recent() // '2022-02-04T02:09:35.077Z' @@ -619,7 +619,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param days The range of days the date may be in the past. Defaults to `1`. * @param refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.past() + * @see faker.date.past(): For generating dates further back in time (years instead of days). * * @example * faker.date.recent() // '2022-02-04T02:09:35.077Z' @@ -639,7 +639,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * @param legacyRefDate Deprecated, use `options.refDate` instead. * - * @see faker.date.past() + * @see faker.date.past(): For generating dates further back in time (years instead of days). * * @example * faker.date.recent() // '2022-02-04T02:09:35.077Z' @@ -707,7 +707,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.days The range of days the date may be in the future. Defaults to `1`. * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.future() + * @see faker.date.future(): For generating dates further in the future (years instead of days). * * @example * faker.date.soon() // '2022-02-05T09:55:39.216Z' @@ -736,7 +736,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param days The range of days the date may be in the future. Defaults to `1`. * @param refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * - * @see faker.date.future() + * @see faker.date.future(): For generating dates further in the future (years instead of days). * * @example * faker.date.soon() // '2022-02-05T09:55:39.216Z' @@ -756,7 +756,7 @@ export class SimpleDateModule extends SimpleModuleBase { * @param options.refDate The date to use as reference point for the newly generated date. Defaults to `faker.defaultRefDate()`. * @param legacyRefDate Deprecated, use `options.refDate` instead. * - * @see faker.date.future() + * @see faker.date.future(): For generating dates further in the future (years instead of days). * * @example * faker.date.soon() // '2022-02-05T09:55:39.216Z' diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index 33db26f0003..576ca0dbc92 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -58,7 +58,7 @@ export class FinanceModule extends ModuleBase { * * @param length The length of the account number. Defaults to `8`. * - * @see faker.finance.accountNumber() + * @see faker.finance.accountNumber(): For the replacement method. * * @example * faker.finance.account() // 92842238 @@ -220,7 +220,7 @@ export class FinanceModule extends ModuleBase { * @param parens Whether to use surrounding parenthesis. Defaults to `true`. * @param ellipsis Whether to prefix the numbers with an ellipsis. Defaults to `true`. * - * @see faker.finance.maskedNumber() + * @see faker.finance.maskedNumber(): For the replacement method. * * @example * faker.finance.mask() // '(...9711)' @@ -629,9 +629,9 @@ export class FinanceModule extends ModuleBase { * Returns a random currency object, containing `code`, `name `and `symbol` properties. * * @see - * faker.finance.currencyCode() - * faker.finance.currencyName() - * faker.finance.currencySymbol() + * faker.finance.currencyCode(): For generating specifically the currency code. + * faker.finance.currencyName(): For generating specifically the currency name. + * faker.finance.currencySymbol(): For generating specifically the currency symbol. * * @example * faker.finance.currency() // { code: 'USD', name: 'US Dollar', symbol: '$' } diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 667f3a51d4d..3f121a41233 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -325,7 +325,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { * * @param string The template string to parse. Defaults to `''`. * - * @see faker.helpers.fromRegExp() + * @see faker.helpers.fromRegExp(): For generating a string matching the given regex-like expressions. * * @example * faker.helpers.regexpStyleStringParse() // '' @@ -1292,7 +1292,7 @@ export class HelpersModule extends SimpleHelpersModule { * * @param pattern The pattern string that will get interpolated. * - * @see faker.helpers.mustache() to use custom functions for resolution. + * @see faker.helpers.mustache(): For using custom functions to resolve templates. * * @example * faker.helpers.fake('{{person.lastName}}') // 'Barrows' @@ -1344,7 +1344,7 @@ export class HelpersModule extends SimpleHelpersModule { * * @param patterns The array to select a pattern from, that will then get interpolated. Must not be empty. * - * @see faker.helpers.mustache() to use custom functions for resolution. + * @see faker.helpers.mustache(): For using custom functions to resolve templates. * * @example * faker.helpers.fake(['A: {{person.firstName}}', 'B: {{person.lastName}}']) // 'A: Barry' @@ -1387,7 +1387,7 @@ export class HelpersModule extends SimpleHelpersModule { * * @param pattern The pattern string that will get interpolated. If an array is passed, a random element will be picked and interpolated. * - * @see faker.helpers.mustache() to use custom functions for resolution. + * @see faker.helpers.mustache(): For using custom functions to resolve templates. * * @example * faker.helpers.fake('{{person.lastName}}') // 'Barrows' diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index f5f24711b3c..f2c3c9d0d5d 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -507,8 +507,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.abstract() // 'https://loremflickr.com/640/480/abstract' @@ -539,8 +539,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.animals() // 'https://loremflickr.com/640/480/animals' @@ -571,8 +571,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.business() // 'https://loremflickr.com/640/480/business' @@ -604,8 +604,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.cats() // 'https://loremflickr.com/640/480/cats' @@ -635,8 +635,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.city() // 'https://loremflickr.com/640/480/city' @@ -666,8 +666,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.food() // 'https://loremflickr.com/640/480/food' @@ -697,8 +697,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.nightlife() // 'https://loremflickr.com/640/480/nightlife' @@ -728,8 +728,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.fashion() // 'https://loremflickr.com/640/480/fashion' @@ -759,8 +759,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.people() // 'https://loremflickr.com/640/480/people' @@ -790,8 +790,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.nature() // 'https://loremflickr.com/640/480/nature' @@ -821,8 +821,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.sports() // 'https://loremflickr.com/640/480/sports' @@ -852,8 +852,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.technics() // 'https://loremflickr.com/640/480/technics' @@ -883,8 +883,8 @@ export class ImageModule extends ModuleBase { * @param height The height of the image. Defaults to `480`. * @param randomize Whether to randomize the image or not. Defaults to `false`. * - * @see faker.image.url() - * @see faker.image.urlLoremFlickr() + * @see faker.image.url(): For generating a random image url (has fewer options, uses multiple image providers). + * @see faker.image.urlLoremFlickr(): For generating a random image url from LoremFlickr. * * @example * faker.image.transport() // 'https://loremflickr.com/640/480/transport' diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index bdc84dd6add..8367825f532 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -493,7 +493,7 @@ export class InternetModule extends ModuleBase { * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * - * @see faker.internet.displayName() + * @see faker.internet.displayName(): For generating an Unicode display name. * * @example * faker.internet.userName() // 'Nettie_Zboncak40' @@ -530,7 +530,7 @@ export class InternetModule extends ModuleBase { * @param firstName The optional first name to use. If not specified, a random one will be chosen. * @param lastName The optional last name to use. If not specified, a random one will be chosen. * - * @see faker.internet.displayName() + * @see faker.internet.displayName(): For generating an Unicode display name. * * @example * faker.internet.userName() // 'Nettie_Zboncak40' @@ -558,7 +558,7 @@ export class InternetModule extends ModuleBase { * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param legacyLastName The optional last name to use. If not specified, a random one will be chosen. * - * @see faker.internet.displayName() + * @see faker.internet.displayName(): For generating an Unicode display name. * * @example * faker.internet.userName() // 'Nettie_Zboncak40' @@ -685,7 +685,7 @@ export class InternetModule extends ModuleBase { * @param options.firstName The optional first name to use. If not specified, a random one will be chosen. * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * - * @see faker.internet.userName() + * @see faker.internet.userName(): For generating a plain ASCII username. * * @example * faker.internet.displayName() // 'Nettie_Zboncak40' @@ -720,7 +720,7 @@ export class InternetModule extends ModuleBase { * @param firstName The optional first name to use. If not specified, a random one will be chosen. * @param lastName The optional last name to use. If not specified, a random one will be chosen. * - * @see faker.internet.userName() + * @see faker.internet.userName(): For generating a plain ASCII username. * * @example * faker.internet.displayName() // 'Nettie_Zboncak40' @@ -746,7 +746,7 @@ export class InternetModule extends ModuleBase { * @param options.lastName The optional last name to use. If not specified, a random one will be chosen. * @param legacyLastName The optional last name to use. If not specified, a random one will be chosen. * - * @see faker.internet.userName() + * @see faker.internet.userName(): For generating a plain ASCII username. * * @example * faker.internet.displayName() // 'Nettie_Zboncak40' diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 1c20d713456..e7bde32e1a6 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -25,7 +25,7 @@ export class LocationModule extends ModuleBase { * By default, a random format is used from the locale zip formats. * This won't be used if the state option is specified. * - * @see faker.helpers.replaceSymbols() + * @see faker.helpers.replaceSymbols(): For more information about how the pattern is used. * * @example * faker.location.zipCode() // '17839' @@ -89,7 +89,7 @@ export class LocationModule extends ModuleBase { * @param options.state The abbreviation of the state to generate the zip code for. * If not specified, a random zip code is generated according to the locale's zip format. * - * @see faker.location.zipCode() + * @see faker.location.zipCode(): For the replacement method. * * @example * fakerEN_US.location.zipCodeByState("AK") // '99595' @@ -145,7 +145,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random city name from a list of real cities for the locale. * - * @see faker.location.city() + * @see faker.location.city(): For the replacement method. * * @example * faker.location.cityName() // 'San Rafael' @@ -203,7 +203,7 @@ export class LocationModule extends ModuleBase { /** * Returns a random localized street name. * - * @see faker.location.street() + * @see faker.location.street(): For the replacement method. * * @example * fakerDE.location.streetName() // 'Cavill Avenue' diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index de32af254ef..a20a0040fdf 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -26,7 +26,7 @@ export class NumberModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.string.numeric() If you would like to generate a `string` of digits with a given length (range). + * @see faker.string.numeric(): For generating a `string` of digits with a given length (range). * * @example * faker.number.int() // 2900970162509863 @@ -170,7 +170,7 @@ export class NumberModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.string.binary() If you would like to generate a `binary string` with a given length (range). + * @see faker.string.binary(): For generating a `binary string` with a given length (range). * * @example * faker.number.binary() // '1' @@ -219,7 +219,7 @@ export class NumberModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.string.octal() If you would like to generate an `octal string` with a given length (range). + * @see faker.string.octal(): For generating an `octal string` with a given length (range). * * @example * faker.number.octal() // '5' diff --git a/src/modules/person/index.ts b/src/modules/person/index.ts index 0c5f79c37ce..6c5a42dfe02 100644 --- a/src/modules/person/index.ts +++ b/src/modules/person/index.ts @@ -261,7 +261,7 @@ export class PersonModule extends ModuleBase { /** * Returns a random gender. * - * @see faker.person.sex() if you would like to generate binary-gender value + * @see faker.person.sex(): For generating a binary-gender value. * * @example * faker.person.gender() // 'Trans*Man' @@ -280,7 +280,8 @@ export class PersonModule extends ModuleBase { * Output of this method is localised, so it should not be used to fill the parameter `sex` * available in some other modules for example `faker.person.firstName()`. * - * @see faker.person.gender() if you would like to generate gender related values. + * @see faker.person.gender(): For generating a gender related value. + * @see faker.person.sexType(): For generating a sex value to be used as a parameter. * * @example * faker.person.sex() // 'female' @@ -292,7 +293,10 @@ export class PersonModule extends ModuleBase { } /** - * Returns a random sex type. + * Returns a random sex type. The `SexType` is intended to be used in parameters and conditions. + * + * @see faker.person.gender(): For generating a gender related value in forms. + * @see faker.person.sex(): For generating a binary-gender value in forms. * * @example * faker.person.sexType() // Sex.Female diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 474e8ca61a4..371c810ec52 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -18,8 +18,8 @@ export class RandomModule extends ModuleBase { /** * Returns a random word. * - * @see faker.lorem.word() - * @see faker.word.sample() + * @see faker.lorem.word(): For generating a random placeholder word. + * @see faker.word.sample(): For generating a random real word. * * @example * faker.random.word() // 'Seamless' @@ -157,8 +157,8 @@ export class RandomModule extends ModuleBase { * @param count.min The minimum number of words. Defaults to `1`. * @param count.max The maximum number of words. Defaults to `3`. * - * @see faker.lorem.words() - * @see faker.word.words() + * @see faker.lorem.words(): For generating a sequence of random placeholder words. + * @see faker.word.words(): For generating a sequence of random real words. * * @example * faker.random.words() // 'neural' @@ -220,7 +220,7 @@ export class RandomModule extends ModuleBase { * @param options.casing The casing of the characters. Defaults to `'mixed'`. * @param options.bannedChars An array with characters to exclude. Defaults to `[]`. * - * @see faker.string.alpha() + * @see faker.string.alpha(): For the replacement method. * * @example * faker.random.alpha() // 'b' @@ -280,7 +280,7 @@ export class RandomModule extends ModuleBase { * @param options.casing The casing of the characters. Defaults to `'lower'`. * @param options.bannedChars An array of characters and digits which should be banned in the generated string. Defaults to `[]`. * - * @see faker.string.alphanumeric() + * @see faker.string.alphanumeric(): For the replacement method. * * @example * faker.random.alphaNumeric() // '2' @@ -329,7 +329,7 @@ export class RandomModule extends ModuleBase { * @param options.allowLeadingZeros Whether leading zeros are allowed or not. Defaults to `true`. * @param options.bannedDigits An array of digits which should be banned in the generated string. Defaults to `[]`. * - * @see faker.string.numeric() + * @see faker.string.numeric(): For the replacement method. * * @example * faker.random.numeric() // '2' diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index e841e29db1b..4240a6f13a5 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -338,7 +338,7 @@ export class StringModule extends SimpleModuleBase { * @param options.length The number or range of characters to generate after the prefix. Defaults to `1`. * @param options.prefix Prefix for the generated number. Defaults to `'0b'`. * - * @see faker.number.binary() If you would like to generate a `binary number` (within a range). + * @see faker.number.binary(): For generating a binary number (within a range). * * @example * faker.string.binary() // '0b1' @@ -390,7 +390,7 @@ export class StringModule extends SimpleModuleBase { * @param options.length The number or range of characters to generate after the prefix. Defaults to `1`. * @param options.prefix Prefix for the generated number. Defaults to `'0o'`. * - * @see faker.number.octal() If you would like to generate an `octal number` (within a range). + * @see faker.number.octal(): For generating an octal number (within a range). * * @example * faker.string.octal() // '0o3' @@ -543,7 +543,7 @@ export class StringModule extends SimpleModuleBase { * @param options.allowLeadingZeros Whether leading zeros are allowed or not. Defaults to `true`. * @param options.exclude An array of digits which should be excluded in the generated string. Defaults to `[]`. * - * @see faker.number.int() If you would like to generate a `number` (within a range). + * @see faker.number.int(): For generating a number (within a range). * * @example * faker.string.numeric() // '2' diff --git a/src/simple-faker.ts b/src/simple-faker.ts index 9dae635813b..b6fb3475bde 100644 --- a/src/simple-faker.ts +++ b/src/simple-faker.ts @@ -43,7 +43,7 @@ export class SimpleFaker { * Defaults to `() => new Date()`. * * @see [Reproducible Results](https://fakerjs.dev/guide/usage.html#reproducible-results) - * @see faker.seed() for reproducible results. + * @see faker.seed(): For generating reproducible values. * * @example * faker.seed(1234); @@ -131,7 +131,7 @@ export class SimpleFaker { * @returns The seed that was set. * * @see [Reproducible Results](https://fakerjs.dev/guide/usage.html#reproducible-results) - * @see faker.setDefaultRefDate() when generating relative dates. + * @see faker.setDefaultRefDate(): For generating reproducible relative dates. * * @example * // Consistent values for tests: @@ -166,7 +166,7 @@ export class SimpleFaker { * @returns The seed array that was set. * * @see [Reproducible Results](https://fakerjs.dev/guide/usage.html#reproducible-results) - * @see faker.setDefaultRefDate() when generating relative dates. + * @see faker.setDefaultRefDate(): For generating reproducible relative dates. * * @example * // Consistent values for tests: @@ -201,7 +201,7 @@ export class SimpleFaker { * @returns The seed that was set. * * @see [Reproducible Results](https://fakerjs.dev/guide/usage.html#reproducible-results) - * @see faker.setDefaultRefDate() when generating relative dates. + * @see faker.setDefaultRefDate(): For generating reproducible dates. * * @example * // Consistent values for tests (using a number): diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 29a487a51ae..efb1919bf35 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -274,6 +274,24 @@ describe('verify JSDoc tags', () => { expect(link, 'Expect method reference to contain ()').toContain( ')' ); + expect( + link, + "Expect method reference to have a ': ' after the parenthesis" + ).toContain('): '); + expect( + link, + 'Expect method reference to have a description starting with a capital letter' + ).toMatch(/\): [A-Z]/); + expect( + link, + 'Expect method reference to start with a standard description phrase' + ).toMatch( + /\): (?:For generating |For more information about |For using |For the replacement method)/ + ); + expect( + link, + 'Expect method reference to have a description ending with a dot' + ).toMatch(/\.$/); expect(allowedReferences).toContain(link.replace(/\(.*/, '')); } } From aff0f8022d30a132a6945efac44c22688b5fb5b8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:39:38 +0100 Subject: [PATCH 24/98] chore(deps): update typescript-eslint to ~6.12.0 (#2556) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- .eslintrc.js | 5 ++- package.json | 6 +-- pnpm-lock.yaml | 117 +++++++++++++++++++++++++++++++++++++------------ 3 files changed, 96 insertions(+), 32 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4aa087a69ce..a4484d52187 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -106,7 +106,10 @@ module.exports = defineConfig({ 'error', { allowNumber: true, allowBoolean: true }, ], - '@typescript-eslint/switch-exhaustiveness-check': 'error', + '@typescript-eslint/switch-exhaustiveness-check': [ + 'error', + { requireDefaultForNonUnion: true }, + ], '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation diff --git a/package.json b/package.json index 0d2bb1c5679..a0df05738e1 100644 --- a/package.json +++ b/package.json @@ -92,15 +92,15 @@ "@eslint-types/deprecation": "2.0.0-1", "@eslint-types/jsdoc": "~46.9.0", "@eslint-types/prettier": "5.0.1-1", - "@eslint-types/typescript-eslint": "~6.11.0", + "@eslint-types/typescript-eslint": "~6.12.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.6", "@types/node": "~20.9.2", "@types/sanitize-html": "~2.9.4", "@types/semver": "~7.5.5", "@types/validator": "~13.11.6", - "@typescript-eslint/eslint-plugin": "~6.11.0", - "@typescript-eslint/parser": "~6.11.0", + "@typescript-eslint/eslint-plugin": "~6.12.0", + "@typescript-eslint/parser": "~6.12.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7f739bbb03f..fdda6adc0a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,8 +17,8 @@ devDependencies: specifier: 5.0.1-1 version: 5.0.1-1 '@eslint-types/typescript-eslint': - specifier: ~6.11.0 - version: 6.11.0 + specifier: ~6.12.0 + version: 6.12.0 '@eslint-types/unicorn': specifier: ~49.0.0 version: 49.0.0 @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.6 version: 13.11.6 '@typescript-eslint/eslint-plugin': - specifier: ~6.11.0 - version: 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@4.9.5) + specifier: ~6.12.0 + version: 6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.11.0 - version: 6.11.0(eslint@8.54.0)(typescript@4.9.5) + specifier: ~6.12.0 + version: 6.12.0(eslint@8.54.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.54.0) eslint-plugin-vitest: specifier: ~0.3.10 - version: 0.3.10(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.10(@typescript-eslint/eslint-plugin@6.12.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -900,8 +900,8 @@ packages: resolution: {integrity: sha512-z6B+TnNPZn9GiwfGBgkyE2eK8tnvnzE4Uy/4EkJHB0GJwin8jYD9RMAAwJauKQgUnJ42/Iox6k7BVnHpSbcmBg==} dev: true - /@eslint-types/typescript-eslint@6.11.0: - resolution: {integrity: sha512-6IpcTD2brrOtSvvjmHvLHqubrmqj1wFhGWda+lA5fPlPIqhJYccL/mz2yONKQfQdh9kV7xd2tuVq7O2ylZd3iA==} + /@eslint-types/typescript-eslint@6.12.0: + resolution: {integrity: sha512-N8cbOYjyFl2BFgDhDgHhTGpgiMkFg0CoITG5hdBm9ZGmcEgUvFBnHvHG7qJl3qVEmFnoKUdfSAcr7MRb2/Jxvw==} dev: true /@eslint-types/unicorn@49.0.0: @@ -1240,8 +1240,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w==} + /@typescript-eslint/eslint-plugin@6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1252,11 +1252,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.11.0 - '@typescript-eslint/type-utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.11.0 + '@typescript-eslint/parser': 6.12.0(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.12.0 + '@typescript-eslint/type-utils': 6.12.0(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.12.0(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.12.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.54.0 graphemer: 1.4.0 @@ -1269,8 +1269,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.11.0(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==} + /@typescript-eslint/parser@6.12.0(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1279,10 +1279,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.11.0 - '@typescript-eslint/types': 6.11.0 - '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.11.0 + '@typescript-eslint/scope-manager': 6.12.0 + '@typescript-eslint/types': 6.12.0 + '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.12.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.54.0 typescript: 4.9.5 @@ -1298,8 +1298,16 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/type-utils@6.11.0(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-nA4IOXwZtqBjIoYrJcYxLRO+F9ri+leVGoJcMW1uqr4r1Hq7vW5cyWrA43lFbpRvQ9XgNrnfLpIkO3i1emDBIA==} + /@typescript-eslint/scope-manager@6.12.0: + resolution: {integrity: sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.12.0 + '@typescript-eslint/visitor-keys': 6.12.0 + dev: true + + /@typescript-eslint/type-utils@6.12.0(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1308,8 +1316,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.12.0(eslint@8.54.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.54.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1323,6 +1331,11 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true + /@typescript-eslint/types@6.12.0: + resolution: {integrity: sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5): resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1344,6 +1357,27 @@ packages: - supports-color dev: true + /@typescript-eslint/typescript-estree@6.12.0(typescript@4.9.5): + resolution: {integrity: sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.12.0 + '@typescript-eslint/visitor-keys': 6.12.0 + debug: 4.3.4(supports-color@8.1.1) + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/utils@6.11.0(eslint@8.54.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1363,6 +1397,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.12.0(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.5 + '@typescript-eslint/scope-manager': 6.12.0 + '@typescript-eslint/types': 6.12.0 + '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) + eslint: 8.54.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@6.11.0: resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1371,6 +1424,14 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@typescript-eslint/visitor-keys@6.12.0: + resolution: {integrity: sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.12.0 + eslint-visitor-keys: 3.4.3 + dev: true + /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true @@ -3014,7 +3075,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.11.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.12.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-08lj4rdhZHYyHk+Py2nJ7SlE6arP8GNfGXl9jVqhe9s5JoZIGiBpIkLGX+VNBiB6vXTn56H6Ant7Koc6XzRjtQ==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3027,7 +3088,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) eslint: 8.54.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 9b00fe9f7353df50c67966141a5f024ec9b95208 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 23 Nov 2023 20:03:32 +0100 Subject: [PATCH 25/98] infra(unicorn): prefer-code-point (#2509) --- .eslintrc.js | 1 - src/modules/finance/iban.ts | 2 +- src/modules/helpers/index.ts | 20 +++++++++++--------- src/modules/internet/index.ts | 8 +++++--- src/modules/string/index.ts | 2 +- test/modules/internet.spec.ts | 8 ++++++++ 6 files changed, 26 insertions(+), 15 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a4484d52187..8458f6d2899 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -60,7 +60,6 @@ module.exports = defineConfig({ 'unicorn/no-object-as-default-parameter': 'off', 'unicorn/no-useless-switch-case': 'off', 'unicorn/numeric-separators-style': 'off', - 'unicorn/prefer-code-point': 'off', 'unicorn/prefer-export-from': 'off', 'unicorn/prefer-string-slice': 'off', 'unicorn/prevent-abbreviations': 'off', diff --git a/src/modules/finance/iban.ts b/src/modules/finance/iban.ts index 8b3f78c44bc..d639404cf9d 100644 --- a/src/modules/finance/iban.ts +++ b/src/modules/finance/iban.ts @@ -1408,7 +1408,7 @@ const iban: Iban = { pattern100: ['001', '002', '003', '004', '005', '006', '007', '008', '009'], toDigitString: (str) => str.replace(/[A-Z]/gi, (match) => - String(match.toUpperCase().charCodeAt(0) - 55) + String((match.toUpperCase().codePointAt(0) ?? Number.NaN) - 55) ), }; diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 3f121a41233..aaf0e231a0b 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -458,7 +458,9 @@ export class SimpleHelpersModule extends SimpleModuleBase { while (range != null) { if (range[0].includes('-')) { // handle ranges - const rangeMinMax = range[0].split('-').map((x) => x.charCodeAt(0)); + const rangeMinMax = range[0] + .split('-') + .map((x) => x.codePointAt(0) ?? Number.NaN); min = rangeMinMax[0]; max = rangeMinMax[1]; // throw error if min larger than max @@ -469,12 +471,12 @@ export class SimpleHelpersModule extends SimpleModuleBase { for (let i = min; i <= max; i++) { if ( isCaseInsensitive && - Number.isNaN(Number(String.fromCharCode(i))) + Number.isNaN(Number(String.fromCodePoint(i))) ) { - const ch = String.fromCharCode(i); + const ch = String.fromCodePoint(i); rangeCodes.push( - ch.toUpperCase().charCodeAt(0), - ch.toLowerCase().charCodeAt(0) + ch.toUpperCase().codePointAt(0) ?? Number.NaN, + ch.toLowerCase().codePointAt(0) ?? Number.NaN ); } else { rangeCodes.push(i); @@ -484,11 +486,11 @@ export class SimpleHelpersModule extends SimpleModuleBase { // handle non-ranges if (isCaseInsensitive && Number.isNaN(Number(range[0]))) { rangeCodes.push( - range[0].toUpperCase().charCodeAt(0), - range[0].toLowerCase().charCodeAt(0) + range[0].toUpperCase().codePointAt(0) ?? Number.NaN, + range[0].toLowerCase().codePointAt(0) ?? Number.NaN ); } else { - rangeCodes.push(range[0].charCodeAt(0)); + rangeCodes.push(range[0].codePointAt(0) ?? Number.NaN); } } @@ -540,7 +542,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { } const generatedString = this.multiple( - () => String.fromCharCode(this.arrayElement(rangeCodes)), + () => String.fromCodePoint(this.arrayElement(rangeCodes)), { count: repetitions } ).join(''); diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 8367825f532..395266fb588 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -660,13 +660,15 @@ export class InternetModule extends ModuleBase { return charMapping[char]; } - if (char.charCodeAt(0) < 0x80) { + const charCode = char.codePointAt(0) ?? Number.NaN; + + if (charCode < 0x80) { // Keep ASCII characters return char; } // Final fallback return the Unicode char code value for Chinese, Japanese, Korean etc, base-36 encoded - return char.charCodeAt(0).toString(36); + return charCode.toString(36); }) .join(''); result = result.toString().replace(/'/g, ''); @@ -1495,7 +1497,7 @@ export class InternetModule extends ModuleBase { } const n = this.faker.number.int(94) + 33; - let char = String.fromCharCode(n); + let char = String.fromCodePoint(n); if (memorable) { char = char.toLowerCase(); } diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index 4240a6f13a5..6428153d5aa 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -674,7 +674,7 @@ export class StringModule extends SimpleModuleBase { let returnString = ''; while (returnString.length < length) { - returnString += String.fromCharCode( + returnString += String.fromCodePoint( this.faker.number.int(charCodeOption) ); } diff --git a/test/modules/internet.spec.ts b/test/modules/internet.spec.ts index be9aa02588e..e4c08b92591 100644 --- a/test/modules/internet.spec.ts +++ b/test/modules/internet.spec.ts @@ -422,6 +422,14 @@ describe('internet', () => { const username = faker.internet.userName('大羽', '陳'); expect(username).includes('hlzp8d'); }); + + it('should provide a fallback special unicode characters', () => { + const username = faker.internet.userName({ + firstName: '🐼', + lastName: '❤️', + }); + expect(username).includes('2qt8'); + }); }); describe('displayName()', () => { From c2b952347e1f952cf379807a3c456fed65075d11 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 23 Nov 2023 20:10:07 +0100 Subject: [PATCH 26/98] refactor: improve groupBy (#2532) --- scripts/apidoc/writer.ts | 13 +++++------ src/internal/group-by.ts | 41 +++++++++++++++++++++++++++++----- test/internal/group-by.spec.ts | 41 ++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 13 deletions(-) create mode 100644 test/internal/group-by.spec.ts diff --git a/scripts/apidoc/writer.ts b/scripts/apidoc/writer.ts index 23586230414..67bf1d7a729 100644 --- a/scripts/apidoc/writer.ts +++ b/scripts/apidoc/writer.ts @@ -169,14 +169,13 @@ function writeApiDocsModuleData( * @param pages The pages to write into the index. */ export async function writeApiPagesIndex(pages: Page[]): Promise { - const pagesByCategory = groupBy(pages, (page) => page.category); + const pagesByCategory: Record = groupBy( + pages, + (page) => page.category, + ({ text, link }) => ({ text, link }) + ); const pageTree = Object.entries(pagesByCategory).flatMap( - ([category, items]): DefaultTheme.SidebarItem[] => { - const cleanedItems = items.map(({ text, link }) => ({ text, link })); - return category - ? [{ text: category, items: cleanedItems }] - : cleanedItems; - } + ([category, items]) => (category ? [{ text: category, items }] : items) ); // Write api-pages.ts diff --git a/src/internal/group-by.ts b/src/internal/group-by.ts index ff3242c9ebb..1fc86e8c607 100644 --- a/src/internal/group-by.ts +++ b/src/internal/group-by.ts @@ -4,21 +4,50 @@ * @internal * * @param values The values to group. - * @param keyFunction The function to get the key from the value. + * @param keyMapper The function to get the key from the value. */ export function groupBy( values: ReadonlyArray, - keyFunction: (value: TValue) => string | number -): Record { - const result: Record = {}; + keyMapper: (value: TValue) => string | number +): Record; +/** + * Groups the values by the key function and maps the values. + * + * @internal + * + * @param values The values to group. + * @param keyMapper The function to get the key from the value. + * @param valueMapper The function to get the value from the value. + */ +export function groupBy( + values: ReadonlyArray, + keyMapper: (value: TOriginalValue) => string | number, + valueMapper: (value: TOriginalValue) => TMappedValue +): Record; +/** + * Groups the values by the key function and maps the values. + * + * @internal + * + * @param values The values to group. + * @param keyMapper The function to get the key from the value. + * @param valueMapper The function to map the value. + */ +export function groupBy( + values: ReadonlyArray, + keyMapper: (value: TOriginalValue) => string | number, + valueMapper: (value: TOriginalValue) => TMappedValue = (value) => + value as unknown as TMappedValue +): Record { + const result: Record = {}; for (const value of values) { - const key = keyFunction(value); + const key = keyMapper(value); if (result[key] === undefined) { result[key] = []; } - result[key].push(value); + result[key].push(valueMapper(value)); } return result; diff --git a/test/internal/group-by.spec.ts b/test/internal/group-by.spec.ts new file mode 100644 index 00000000000..4f186e3dd2c --- /dev/null +++ b/test/internal/group-by.spec.ts @@ -0,0 +1,41 @@ +import { describe, expect, it } from 'vitest'; +import { groupBy } from '../../src/internal/group-by'; + +describe('groupBy()', () => { + it('should group values by key', () => { + const values = [ + { id: 1, name: 'John' }, + { id: 2, name: 'Jane' }, + { id: 3, name: 'John' }, + ]; + + const result = groupBy(values, ({ name }) => name); + + expect(result).toEqual({ + John: [ + { id: 1, name: 'John' }, + { id: 3, name: 'John' }, + ], + Jane: [{ id: 2, name: 'Jane' }], + }); + }); + + it('should group by key and map values', () => { + const values = [ + { id: 1, name: 'John' }, + { id: 2, name: 'Jane' }, + { id: 3, name: 'John' }, + ]; + + const result = groupBy( + values, + ({ name }) => name, + ({ id }) => id + ); + + expect(result).toEqual({ + John: [1, 3], + Jane: [2], + }); + }); +}); From 5525b55cc47fa97b55de52fccff7ab51633e639a Mon Sep 17 00:00:00 2001 From: CoolPlayLin Date: Sat, 25 Nov 2023 19:20:47 +0800 Subject: [PATCH 27/98] fix(locale): incomplete airline names in zh_CN (#2558) --- src/locales/zh_CN/airline/airline.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/locales/zh_CN/airline/airline.ts b/src/locales/zh_CN/airline/airline.ts index 9ffcc7ea32b..0105f88a000 100644 --- a/src/locales/zh_CN/airline/airline.ts +++ b/src/locales/zh_CN/airline/airline.ts @@ -1,8 +1,8 @@ export default [ { name: '爱琴海航空公司', iataCode: 'A3' }, { name: '俄罗斯航空公司', iataCode: 'SU' }, - { name: '阿根廷航空', iataCode: 'AR' }, - { name: '墨西哥国际航空', iataCode: 'AM' }, + { name: '阿根廷航空公司', iataCode: 'AR' }, + { name: '墨西哥国际航空公司', iataCode: 'AM' }, { name: '阿尔及利亚航空公司', iataCode: 'AH' }, { name: '阿拉伯航空公司', iataCode: 'G9' }, { name: '加拿大航空公司', iataCode: 'AC' }, @@ -27,7 +27,7 @@ export default [ { name: '韩亚航空公司', iataCode: 'OZ' }, { name: '哥伦比亚航空公司', iataCode: 'AV' }, { name: '巴西蔚蓝航空公司', iataCode: 'AD' }, - { name: '蓝色航空', iataCode: 'ZF' }, + { name: '蓝色航空公司', iataCode: 'ZF' }, { name: '北京首都航空公司', iataCode: 'JD' }, { name: '玻利维亚航空公司', iataCode: 'OB' }, { name: '英国航空公司', iataCode: 'BA' }, From 3c5ceec96d59c4e6c17fdf6e9ffc785a5fb92056 Mon Sep 17 00:00:00 2001 From: Suyash Gulati Date: Mon, 27 Nov 2023 00:04:38 +0530 Subject: [PATCH 28/98] refactor(helper): deprecate replaceSymbolWithNumber (#2557) --- src/modules/helpers/index.ts | 63 +++++++++++++++++++++++++++++------- src/modules/phone/index.ts | 3 +- 2 files changed, 53 insertions(+), 13 deletions(-) diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index aaf0e231a0b..9a681da9641 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -158,6 +158,45 @@ function legacyRegexpStringParse( return string; } +/** + * Parses the given string symbol by symbol and replaces the placeholders with digits (`0` - `9`). + * `!` will be replaced by digits >=2 (`2` - `9`). + * + * Note: This method will be removed in v9. + * + * @internal + * + * @param faker The Faker instance to use. + * @param string The template string to parse. Defaults to `''`. + * @param symbol The symbol to replace with digits. Defaults to `'#'`. + * + * @example + * legacyReplaceSymbolWithNumber(faker) // '' + * legacyReplaceSymbolWithNumber(faker, '#####') // '04812' + * legacyReplaceSymbolWithNumber(faker, '!####') // '27378' + * legacyReplaceSymbolWithNumber(faker, 'Your pin is: !####') // '29841' + * + * @since 8.4.0 + */ +export function legacyReplaceSymbolWithNumber( + faker: SimpleFaker, + string: string = '', + symbol: string = '#' +): string { + let str = ''; + for (let i = 0; i < string.length; i++) { + if (string.charAt(i) === symbol) { + str += faker.number.int(9); + } else if (string.charAt(i) === '!') { + str += faker.number.int({ min: 2, max: 9 }); + } else { + str += string.charAt(i); + } + } + + return str; +} + /** * Module with various helper methods providing basic (seed-dependent) operations useful for implementing faker methods (without methods requiring localized data). */ @@ -198,6 +237,8 @@ export class SimpleHelpersModule extends SimpleModuleBase { * @param string The template string to parse. Defaults to `''`. * @param symbol The symbol to replace with digits. Defaults to `'#'`. * + * @see faker.string.numeric(): For the replacement method. + * * @example * faker.helpers.replaceSymbolWithNumber() // '' * faker.helpers.replaceSymbolWithNumber('#####') // '04812' @@ -205,20 +246,18 @@ export class SimpleHelpersModule extends SimpleModuleBase { * faker.helpers.replaceSymbolWithNumber('Your pin is: !####') // '29841' * * @since 2.0.1 + * + * @deprecated Use `faker.string.numeric()` instead. Example: `value.replace(/#+/g, (m) => faker.string.numeric(m.length));` */ replaceSymbolWithNumber(string: string = '', symbol: string = '#'): string { - let str = ''; - for (let i = 0; i < string.length; i++) { - if (string.charAt(i) === symbol) { - str += this.faker.number.int(9); - } else if (string.charAt(i) === '!') { - str += this.faker.number.int({ min: 2, max: 9 }); - } else { - str += string.charAt(i); - } - } + deprecated({ + deprecated: 'faker.helpers.replaceSymbolWithNumber', + proposed: 'string.replace(/#+/g, (m) => faker.string.numeric(m.length))', + since: '8.4', + until: '9.0', + }); - return str; + return legacyReplaceSymbolWithNumber(this.faker, string, symbol); } /** @@ -309,7 +348,7 @@ export class SimpleHelpersModule extends SimpleModuleBase { // default values required for calling method without arguments string = legacyRegexpStringParse(this.faker, string); // replace [4-9] with a random number in range etc... - string = this.replaceSymbolWithNumber(string, symbol); // replace ### with random numbers + string = legacyReplaceSymbolWithNumber(this.faker, string, symbol); // replace ### with random numbers const checkNum = luhnCheckValue(string); return string.replace('L', String(checkNum)); diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts index 6747e35d10c..833938d71fc 100644 --- a/src/modules/phone/index.ts +++ b/src/modules/phone/index.ts @@ -1,5 +1,6 @@ import { deprecated } from '../../internal/deprecated'; import { ModuleBase } from '../../internal/module-base'; +import { legacyReplaceSymbolWithNumber } from '../helpers'; /** * Module to generate phone-related data. @@ -68,7 +69,7 @@ export class PhoneModule extends ModuleBase { this.faker.helpers.arrayElement( this.faker.definitions.phone_number.formats ); - return this.faker.helpers.replaceSymbolWithNumber(format); + return legacyReplaceSymbolWithNumber(this.faker, format); } /** From 5e0f4f7dd1497e80c2e725a7bee3887abaab25a7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:04:06 +0100 Subject: [PATCH 29/98] chore(deps): update devdependencies (#2561) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 16 +-- pnpm-lock.yaml | 354 ++++++++++++++++++++++++------------------------- 2 files changed, 185 insertions(+), 185 deletions(-) diff --git a/package.json b/package.json index a0df05738e1..5e0de3cd33f 100644 --- a/package.json +++ b/package.json @@ -94,19 +94,19 @@ "@eslint-types/prettier": "5.0.1-1", "@eslint-types/typescript-eslint": "~6.12.0", "@eslint-types/unicorn": "~49.0.0", - "@types/markdown-it": "~13.0.6", - "@types/node": "~20.9.2", - "@types/sanitize-html": "~2.9.4", - "@types/semver": "~7.5.5", - "@types/validator": "~13.11.6", + "@types/markdown-it": "~13.0.7", + "@types/node": "~20.10.0", + "@types/sanitize-html": "~2.9.5", + "@types/semver": "~7.5.6", + "@types/validator": "~13.11.7", "@typescript-eslint/eslint-plugin": "~6.12.0", "@typescript-eslint/parser": "~6.12.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.6.1", "conventional-changelog-cli": "~4.1.0", - "cypress": "~13.5.1", - "esbuild": "~0.19.6", + "cypress": "~13.6.0", + "esbuild": "~0.19.8", "eslint": "~8.54.0", "eslint-config-prettier": "~9.0.0", "eslint-define-config": "~2.0.0", @@ -131,7 +131,7 @@ "vite": "~4.5.0", "vitepress": "1.0.0-beta.7", "vitest": "~0.34.6", - "vue": "~3.3.8" + "vue": "~3.3.9" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fdda6adc0a7..5ad13cc710e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,20 +23,20 @@ devDependencies: specifier: ~49.0.0 version: 49.0.0 '@types/markdown-it': - specifier: ~13.0.6 - version: 13.0.6 + specifier: ~13.0.7 + version: 13.0.7 '@types/node': - specifier: ~20.9.2 - version: 20.9.2 + specifier: ~20.10.0 + version: 20.10.0 '@types/sanitize-html': - specifier: ~2.9.4 - version: 2.9.4 + specifier: ~2.9.5 + version: 2.9.5 '@types/semver': - specifier: ~7.5.5 - version: 7.5.5 + specifier: ~7.5.6 + version: 7.5.6 '@types/validator': - specifier: ~13.11.6 - version: 13.11.6 + specifier: ~13.11.7 + version: 13.11.7 '@typescript-eslint/eslint-plugin': specifier: ~6.12.0 version: 6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5) @@ -51,16 +51,16 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.6.1 - version: 10.6.1(vue@3.3.8) + version: 10.6.1(vue@3.3.9) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: - specifier: ~13.5.1 - version: 13.5.1 + specifier: ~13.6.0 + version: 13.6.0 esbuild: - specifier: ~0.19.6 - version: 0.19.6 + specifier: ~0.19.8 + version: 0.19.8 eslint: specifier: ~8.54.0 version: 8.54.0 @@ -126,16 +126,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.0 - version: 4.5.0(@types/node@20.9.2) + version: 4.5.0(@types/node@20.10.0) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.2)(search-insights@2.11.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.0)(search-insights@2.11.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.3.8 - version: 3.3.8(typescript@4.9.5) + specifier: ~3.3.9 + version: 3.3.9(typescript@4.9.5) packages: @@ -486,8 +486,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.6: - resolution: {integrity: sha512-KQ/hbe9SJvIJ4sR+2PcZ41IBV+LPJyYp6V1K1P1xcMRup9iYsBoQn4MzE3mhMLOld27Au2eDcLlIREeKGUXpHQ==} + /@esbuild/android-arm64@0.19.8: + resolution: {integrity: sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLECj6FhDzk1cF9WHMVwrtA==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -504,8 +504,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.6: - resolution: {integrity: sha512-muPzBqXJKCbMYoNbb1JpZh/ynl0xS6/+pLjrofcR3Nad82SbsCogYzUE6Aq9QT3cLP0jR/IVK/NHC9b90mSHtg==} + /@esbuild/android-arm@0.19.8: + resolution: {integrity: sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvLBax+VKTPlpnx+sPicOA==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -522,8 +522,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.6: - resolution: {integrity: sha512-VVJVZQ7p5BBOKoNxd0Ly3xUM78Y4DyOoFKdkdAe2m11jbh0LEU4bPles4e/72EMl4tapko8o915UalN/5zhspg==} + /@esbuild/android-x64@0.19.8: + resolution: {integrity: sha512-rdqqYfRIn4jWOp+lzQttYMa2Xar3OK9Yt2fhOhzFXqg0rVWEfSclJvZq5fZslnz6ypHvVf3CT7qyf0A5pM682A==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -540,8 +540,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.6: - resolution: {integrity: sha512-91LoRp/uZAKx6ESNspL3I46ypwzdqyDLXZH7x2QYCLgtnaU08+AXEbabY2yExIz03/am0DivsTtbdxzGejfXpA==} + /@esbuild/darwin-arm64@0.19.8: + resolution: {integrity: sha512-RQw9DemMbIq35Bprbboyf8SmOr4UXsRVxJ97LgB55VKKeJOOdvsIPy0nFyF2l8U+h4PtBx/1kRf0BelOYCiQcw==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -558,8 +558,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.6: - resolution: {integrity: sha512-QCGHw770ubjBU1J3ZkFJh671MFajGTYMZumPs9E/rqU52md6lIil97BR0CbPq6U+vTh3xnTNDHKRdR8ggHnmxQ==} + /@esbuild/darwin-x64@0.19.8: + resolution: {integrity: sha512-3sur80OT9YdeZwIVgERAysAbwncom7b4bCI2XKLjMfPymTud7e/oY4y+ci1XVp5TfQp/bppn7xLw1n/oSQY3/Q==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -576,8 +576,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.6: - resolution: {integrity: sha512-J53d0jGsDcLzWk9d9SPmlyF+wzVxjXpOH7jVW5ae7PvrDst4kiAz6sX+E8btz0GB6oH12zC+aHRD945jdjF2Vg==} + /@esbuild/freebsd-arm64@0.19.8: + resolution: {integrity: sha512-WAnPJSDattvS/XtPCTj1tPoTxERjcTpH6HsMr6ujTT+X6rylVe8ggxk8pVxzf5U1wh5sPODpawNicF5ta/9Tmw==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -594,8 +594,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.6: - resolution: {integrity: sha512-hn9qvkjHSIB5Z9JgCCjED6YYVGCNpqB7dEGavBdG6EjBD8S/UcNUIlGcB35NCkMETkdYwfZSvD9VoDJX6VeUVA==} + /@esbuild/freebsd-x64@0.19.8: + resolution: {integrity: sha512-ICvZyOplIjmmhjd6mxi+zxSdpPTKFfyPPQMQTK/w+8eNK6WV01AjIztJALDtwNNfFhfZLux0tZLC+U9nSyA5Zg==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -612,8 +612,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.6: - resolution: {integrity: sha512-HQCOrk9XlH3KngASLaBfHpcoYEGUt829A9MyxaI8RMkfRA8SakG6YQEITAuwmtzFdEu5GU4eyhKcpv27dFaOBg==} + /@esbuild/linux-arm64@0.19.8: + resolution: {integrity: sha512-z1zMZivxDLHWnyGOctT9JP70h0beY54xDDDJt4VpTX+iwA77IFsE1vCXWmprajJGa+ZYSqkSbRQ4eyLCpCmiCQ==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -630,8 +630,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.6: - resolution: {integrity: sha512-G8IR5zFgpXad/Zp7gr7ZyTKyqZuThU6z1JjmRyN1vSF8j0bOlGzUwFSMTbctLAdd7QHpeyu0cRiuKrqK1ZTwvQ==} + /@esbuild/linux-arm@0.19.8: + resolution: {integrity: sha512-H4vmI5PYqSvosPaTJuEppU9oz1dq2A7Mr2vyg5TF9Ga+3+MGgBdGzcyBP7qK9MrwFQZlvNyJrvz6GuCaj3OukQ==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -648,8 +648,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.6: - resolution: {integrity: sha512-22eOR08zL/OXkmEhxOfshfOGo8P69k8oKHkwkDrUlcB12S/sw/+COM4PhAPT0cAYW/gpqY2uXp3TpjQVJitz7w==} + /@esbuild/linux-ia32@0.19.8: + resolution: {integrity: sha512-1a8suQiFJmZz1khm/rDglOc8lavtzEMRo0v6WhPgxkrjcU0LkHj+TwBrALwoz/OtMExvsqbbMI0ChyelKabSvQ==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -666,8 +666,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.6: - resolution: {integrity: sha512-82RvaYAh/SUJyjWA8jDpyZCHQjmEggL//sC7F3VKYcBMumQjUL3C5WDl/tJpEiKtt7XrWmgjaLkrk205zfvwTA==} + /@esbuild/linux-loong64@0.19.8: + resolution: {integrity: sha512-fHZWS2JJxnXt1uYJsDv9+b60WCc2RlvVAy1F76qOLtXRO+H4mjt3Tr6MJ5l7Q78X8KgCFudnTuiQRBhULUyBKQ==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -684,8 +684,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.6: - resolution: {integrity: sha512-8tvnwyYJpR618vboIv2l8tK2SuK/RqUIGMfMENkeDGo3hsEIrpGldMGYFcWxWeEILe5Fi72zoXLmhZ7PR23oQA==} + /@esbuild/linux-mips64el@0.19.8: + resolution: {integrity: sha512-Wy/z0EL5qZYLX66dVnEg9riiwls5IYnziwuju2oUiuxVc+/edvqXa04qNtbrs0Ukatg5HEzqT94Zs7J207dN5Q==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -702,8 +702,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.6: - resolution: {integrity: sha512-Qt+D7xiPajxVNk5tQiEJwhmarNnLPdjXAoA5uWMpbfStZB0+YU6a3CtbWYSy+sgAsnyx4IGZjWsTzBzrvg/fMA==} + /@esbuild/linux-ppc64@0.19.8: + resolution: {integrity: sha512-ETaW6245wK23YIEufhMQ3HSeHO7NgsLx8gygBVldRHKhOlD1oNeNy/P67mIh1zPn2Hr2HLieQrt6tWrVwuqrxg==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -720,8 +720,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.6: - resolution: {integrity: sha512-lxRdk0iJ9CWYDH1Wpnnnc640ajF4RmQ+w6oHFZmAIYu577meE9Ka/DCtpOrwr9McMY11ocbp4jirgGgCi7Ls/g==} + /@esbuild/linux-riscv64@0.19.8: + resolution: {integrity: sha512-T2DRQk55SgoleTP+DtPlMrxi/5r9AeFgkhkZ/B0ap99zmxtxdOixOMI570VjdRCs9pE4Wdkz7JYrsPvsl7eESg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -738,8 +738,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.6: - resolution: {integrity: sha512-MopyYV39vnfuykHanRWHGRcRC3AwU7b0QY4TI8ISLfAGfK+tMkXyFuyT1epw/lM0pflQlS53JoD22yN83DHZgA==} + /@esbuild/linux-s390x@0.19.8: + resolution: {integrity: sha512-NPxbdmmo3Bk7mbNeHmcCd7R7fptJaczPYBaELk6NcXxy7HLNyWwCyDJ/Xx+/YcNH7Im5dHdx9gZ5xIwyliQCbg==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -756,8 +756,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.6: - resolution: {integrity: sha512-UWcieaBzsN8WYbzFF5Jq7QULETPcQvlX7KL4xWGIB54OknXJjBO37sPqk7N82WU13JGWvmDzFBi1weVBajPovg==} + /@esbuild/linux-x64@0.19.8: + resolution: {integrity: sha512-lytMAVOM3b1gPypL2TRmZ5rnXl7+6IIk8uB3eLsV1JwcizuolblXRrc5ShPrO9ls/b+RTp+E6gbsuLWHWi2zGg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -774,8 +774,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.6: - resolution: {integrity: sha512-EpWiLX0fzvZn1wxtLxZrEW+oQED9Pwpnh+w4Ffv8ZLuMhUoqR9q9rL4+qHW8F4Mg5oQEKxAoT0G+8JYNqCiR6g==} + /@esbuild/netbsd-x64@0.19.8: + resolution: {integrity: sha512-hvWVo2VsXz/8NVt1UhLzxwAfo5sioj92uo0bCfLibB0xlOmimU/DeAEsQILlBQvkhrGjamP0/el5HU76HAitGw==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -792,8 +792,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.6: - resolution: {integrity: sha512-fFqTVEktM1PGs2sLKH4M5mhAVEzGpeZJuasAMRnvDZNCV0Cjvm1Hu35moL2vC0DOrAQjNTvj4zWrol/lwQ8Deg==} + /@esbuild/openbsd-x64@0.19.8: + resolution: {integrity: sha512-/7Y7u77rdvmGTxR83PgaSvSBJCC2L3Kb1M/+dmSIvRvQPXXCuC97QAwMugBNG0yGcbEGfFBH7ojPzAOxfGNkwQ==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -810,8 +810,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.6: - resolution: {integrity: sha512-M+XIAnBpaNvaVAhbe3uBXtgWyWynSdlww/JNZws0FlMPSBy+EpatPXNIlKAdtbFVII9OpX91ZfMb17TU3JKTBA==} + /@esbuild/sunos-x64@0.19.8: + resolution: {integrity: sha512-9Lc4s7Oi98GqFA4HzA/W2JHIYfnXbUYgekUP/Sm4BG9sfLjyv6GKKHKKVs83SMicBF2JwAX6A1PuOLMqpD001w==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -828,8 +828,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.6: - resolution: {integrity: sha512-2DchFXn7vp/B6Tc2eKdTsLzE0ygqKkNUhUBCNtMx2Llk4POIVMUq5rUYjdcedFlGLeRe1uLCpVvCmE+G8XYybA==} + /@esbuild/win32-arm64@0.19.8: + resolution: {integrity: sha512-rq6WzBGjSzihI9deW3fC2Gqiak68+b7qo5/3kmB6Gvbh/NYPA0sJhrnp7wgV4bNwjqM+R2AApXGxMO7ZoGhIJg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -846,8 +846,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.6: - resolution: {integrity: sha512-PBo/HPDQllyWdjwAVX+Gl2hH0dfBydL97BAH/grHKC8fubqp02aL4S63otZ25q3sBdINtOBbz1qTZQfXbP4VBg==} + /@esbuild/win32-ia32@0.19.8: + resolution: {integrity: sha512-AIAbverbg5jMvJznYiGhrd3sumfwWs8572mIJL5NQjJa06P8KfCPWZQ0NwZbPQnbQi9OWSZhFVSUWjjIrn4hSw==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -864,8 +864,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.6: - resolution: {integrity: sha512-OE7yIdbDif2kKfrGa+V0vx/B3FJv2L4KnIiLlvtibPyO9UkgO3rzYE0HhpREo2vmJ1Ixq1zwm9/0er+3VOSZJA==} + /@esbuild/win32-x64@0.19.8: + resolution: {integrity: sha512-bfZ0cQ1uZs2PqpulNL5j/3w+GDhP36k1K5c38QdQg+Swy51jFZWWeIkteNsufkQxp986wnqRRsb/bHbY1WQ7TA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1175,8 +1175,8 @@ packages: resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==} dev: true - /@types/markdown-it@13.0.6: - resolution: {integrity: sha512-0VqpvusJn1/lwRegCxcHVdmLfF+wIsprsKMC9xW8UPcTxhFcQtoN/fBU1zMe8pH7D/RuueMh2CaBaNv+GrLqTw==} + /@types/markdown-it@13.0.7: + resolution: {integrity: sha512-U/CBi2YUUcTHBt5tjO2r5QV/x0Po6nsYwQU4Y04fBS6vfoImaiZ6f8bi3CjTCxBPQSO1LMyUqkByzi8AidyxfA==} dependencies: '@types/linkify-it': 3.0.5 '@types/mdurl': 1.0.5 @@ -1196,8 +1196,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.9.2: - resolution: {integrity: sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==} + /@types/node@20.10.0: + resolution: {integrity: sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==} dependencies: undici-types: 5.26.5 dev: true @@ -1206,14 +1206,14 @@ packages: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: true - /@types/sanitize-html@2.9.4: - resolution: {integrity: sha512-Ym4hjmAFxF/eux7nW2yDPAj2o9RYh0vP/9V5ECoHtgJ/O9nPGslUd20CMn6WatRMlFVfjMTg3lMcWq8YyO6QnA==} + /@types/sanitize-html@2.9.5: + resolution: {integrity: sha512-2Sr1vd8Dw+ypsg/oDDfZ57OMSG2Befs+l2CMyCC5bVSK3CpE7lTB2aNlbbWzazgVA+Qqfuholwom6x/mWd1qmw==} dependencies: htmlparser2: 8.0.2 dev: true - /@types/semver@7.5.5: - resolution: {integrity: sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==} + /@types/semver@7.5.6: + resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} dev: true /@types/sinonjs__fake-timers@8.1.1: @@ -1224,8 +1224,8 @@ packages: resolution: {integrity: sha512-m04Om5Gz6kbjUwAQ7XJJQ30OdEFsSmAVsvn4NYwcTRyMVpKKa1aPuESw1n2CxS5fYkOQv3nHgDKeNa8e76fUkw==} dev: true - /@types/validator@13.11.6: - resolution: {integrity: sha512-HUgHujPhKuNzgNXBRZKYexwoG+gHKU+tnfPqjWXFghZAnn73JElicMkuSKJyLGr9JgyA8IgK7fj88IyA9rwYeQ==} + /@types/validator@13.11.7: + resolution: {integrity: sha512-q0JomTsJ2I5Mv7dhHhQLGjMvX0JJm5dyZ1DXQySIUzU1UlwzB8bt+R6+LODUbz0UDIOvEzGc28tk27gBJw2N8Q==} dev: true /@types/web-bluetooth@0.0.20: @@ -1236,7 +1236,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.9.2 + '@types/node': 20.10.0 dev: true optional: true @@ -1386,7 +1386,7 @@ packages: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@types/json-schema': 7.0.15 - '@types/semver': 7.5.5 + '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.11.0 '@typescript-eslint/types': 6.11.0 '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) @@ -1405,7 +1405,7 @@ packages: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@types/json-schema': 7.0.15 - '@types/semver': 7.5.5 + '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.12.0 '@typescript-eslint/types': 6.12.0 '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) @@ -1436,15 +1436,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.5.0(vite@4.5.0)(vue@3.3.8): + /@vitejs/plugin-vue@4.5.0(vite@4.5.0)(vue@3.3.9): resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.0(@types/node@20.9.2) - vue: 3.3.8(typescript@4.9.5) + vite: 4.5.0(@types/node@20.10.0) + vue: 3.3.9(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1529,106 +1529,106 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.3.8: - resolution: {integrity: sha512-hN/NNBUECw8SusQvDSqqcVv6gWq8L6iAktUR0UF3vGu2OhzRqcOiAno0FmBJWwxhYEXRlQJT5XnoKsVq1WZx4g==} + /@vue/compiler-core@3.3.9: + resolution: {integrity: sha512-+/Lf68Vr/nFBA6ol4xOtJrW+BQWv3QWKfRwGSm70jtXwfhZNF4R/eRgyVJYoxFRhdCTk/F6g99BP0ffPgZihfQ==} dependencies: '@babel/parser': 7.23.3 - '@vue/shared': 3.3.8 + '@vue/shared': 3.3.9 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.3.8: - resolution: {integrity: sha512-+PPtv+p/nWDd0AvJu3w8HS0RIm/C6VGBIRe24b9hSyNWOAPEUosFZ5diwawwP8ip5sJ8n0Pe87TNNNHnvjs0FQ==} + /@vue/compiler-dom@3.3.9: + resolution: {integrity: sha512-nfWubTtLXuT4iBeDSZ5J3m218MjOy42Vp2pmKVuBKo2/BLcrFUX8nCSr/bKRFiJ32R8qbdnnnBgRn9AdU5v0Sg==} dependencies: - '@vue/compiler-core': 3.3.8 - '@vue/shared': 3.3.8 + '@vue/compiler-core': 3.3.9 + '@vue/shared': 3.3.9 dev: true - /@vue/compiler-sfc@3.3.8: - resolution: {integrity: sha512-WMzbUrlTjfYF8joyT84HfwwXo+8WPALuPxhy+BZ6R4Aafls+jDBnSz8PDz60uFhuqFbl3HxRfxvDzrUf3THwpA==} + /@vue/compiler-sfc@3.3.9: + resolution: {integrity: sha512-wy0CNc8z4ihoDzjASCOCsQuzW0A/HP27+0MDSSICMjVIFzk/rFViezkR3dzH+miS2NDEz8ywMdbjO5ylhOLI2A==} dependencies: '@babel/parser': 7.23.3 - '@vue/compiler-core': 3.3.8 - '@vue/compiler-dom': 3.3.8 - '@vue/compiler-ssr': 3.3.8 - '@vue/reactivity-transform': 3.3.8 - '@vue/shared': 3.3.8 + '@vue/compiler-core': 3.3.9 + '@vue/compiler-dom': 3.3.9 + '@vue/compiler-ssr': 3.3.9 + '@vue/reactivity-transform': 3.3.9 + '@vue/shared': 3.3.9 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.31 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.3.8: - resolution: {integrity: sha512-hXCqQL/15kMVDBuoBYpUnSYT8doDNwsjvm3jTefnXr+ytn294ySnT8NlsFHmTgKNjwpuFy7XVV8yTeLtNl/P6w==} + /@vue/compiler-ssr@3.3.9: + resolution: {integrity: sha512-NO5oobAw78R0G4SODY5A502MGnDNiDjf6qvhn7zD7TJGc8XDeIEw4fg6JU705jZ/YhuokBKz0A5a/FL/XZU73g==} dependencies: - '@vue/compiler-dom': 3.3.8 - '@vue/shared': 3.3.8 + '@vue/compiler-dom': 3.3.9 + '@vue/shared': 3.3.9 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity-transform@3.3.8: - resolution: {integrity: sha512-49CvBzmZNtcHua0XJ7GdGifM8GOXoUMOX4dD40Y5DxI3R8OUhMlvf2nvgUAcPxaXiV5MQQ1Nwy09ADpnLQUqRw==} + /@vue/reactivity-transform@3.3.9: + resolution: {integrity: sha512-HnUFm7Ry6dFa4Lp63DAxTixUp8opMtQr6RxQCpDI1vlh12rkGIeYqMvJtK+IKyEfEOa2I9oCkD1mmsPdaGpdVg==} dependencies: '@babel/parser': 7.23.3 - '@vue/compiler-core': 3.3.8 - '@vue/shared': 3.3.8 + '@vue/compiler-core': 3.3.9 + '@vue/shared': 3.3.9 estree-walker: 2.0.2 magic-string: 0.30.5 dev: true - /@vue/reactivity@3.3.8: - resolution: {integrity: sha512-ctLWitmFBu6mtddPyOKpHg8+5ahouoTCRtmAHZAXmolDtuZXfjL2T3OJ6DL6ezBPQB1SmMnpzjiWjCiMYmpIuw==} + /@vue/reactivity@3.3.9: + resolution: {integrity: sha512-VmpIqlNp+aYDg2X0xQhJqHx9YguOmz2UxuUJDckBdQCNkipJvfk9yA75woLWElCa0Jtyec3lAAt49GO0izsphw==} dependencies: - '@vue/shared': 3.3.8 + '@vue/shared': 3.3.9 dev: true - /@vue/runtime-core@3.3.8: - resolution: {integrity: sha512-qurzOlb6q26KWQ/8IShHkMDOuJkQnQcTIp1sdP4I9MbCf9FJeGVRXJFr2mF+6bXh/3Zjr9TDgURXrsCr9bfjUw==} + /@vue/runtime-core@3.3.9: + resolution: {integrity: sha512-xxaG9KvPm3GTRuM4ZyU8Tc+pMVzcu6eeoSRQJ9IE7NmCcClW6z4B3Ij6L4EDl80sxe/arTtQ6YmgiO4UZqRc+w==} dependencies: - '@vue/reactivity': 3.3.8 - '@vue/shared': 3.3.8 + '@vue/reactivity': 3.3.9 + '@vue/shared': 3.3.9 dev: true - /@vue/runtime-dom@3.3.8: - resolution: {integrity: sha512-Noy5yM5UIf9UeFoowBVgghyGGPIDPy1Qlqt0yVsUdAVbqI8eeMSsTqBtauaEoT2UFXUk5S64aWVNJN4MJ2vRdA==} + /@vue/runtime-dom@3.3.9: + resolution: {integrity: sha512-e7LIfcxYSWbV6BK1wQv9qJyxprC75EvSqF/kQKe6bdZEDNValzeRXEVgiX7AHI6hZ59HA4h7WT5CGvm69vzJTQ==} dependencies: - '@vue/runtime-core': 3.3.8 - '@vue/shared': 3.3.8 + '@vue/runtime-core': 3.3.9 + '@vue/shared': 3.3.9 csstype: 3.1.2 dev: true - /@vue/server-renderer@3.3.8(vue@3.3.8): - resolution: {integrity: sha512-zVCUw7RFskvPuNlPn/8xISbrf0zTWsTSdYTsUTN1ERGGZGVnRxM2QZ3x1OR32+vwkkCm0IW6HmJ49IsPm7ilLg==} + /@vue/server-renderer@3.3.9(vue@3.3.9): + resolution: {integrity: sha512-w0zT/s5l3Oa3ZjtLW88eO4uV6AQFqU8X5GOgzq7SkQQu6vVr+8tfm+OI2kDBplS/W/XgCBuFXiPw6T5EdwXP0A==} peerDependencies: - vue: 3.3.8 + vue: 3.3.9 dependencies: - '@vue/compiler-ssr': 3.3.8 - '@vue/shared': 3.3.8 - vue: 3.3.8(typescript@4.9.5) + '@vue/compiler-ssr': 3.3.9 + '@vue/shared': 3.3.9 + vue: 3.3.9(typescript@4.9.5) dev: true - /@vue/shared@3.3.8: - resolution: {integrity: sha512-8PGwybFwM4x8pcfgqEQFy70NaQxASvOC5DJwLQfpArw1UDfUXrJkdxD3BhVTMS+0Lef/TU7YO0Jvr0jJY8T+mw==} + /@vue/shared@3.3.9: + resolution: {integrity: sha512-ZE0VTIR0LmYgeyhurPTpy4KzKsuDyQbMSdM49eKkMnT5X4VfFBLysMzjIZhLEFQYjjOVVfbvUDHckwjDFiO2eA==} dev: true - /@vueuse/core@10.6.1(vue@3.3.8): + /@vueuse/core@10.6.1(vue@3.3.9): resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.6.1 - '@vueuse/shared': 10.6.1(vue@3.3.8) - vue-demi: 0.14.6(vue@3.3.8) + '@vueuse/shared': 10.6.1(vue@3.3.9) + vue-demi: 0.14.6(vue@3.3.9) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.8): + /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.9): resolution: {integrity: sha512-mPDupuofMJ4DPmtX/FfP1MajmWRzYDv8WSaTCo8LQ5kFznjWgmUQ16ApjYqgMquqffNY6+IRMdMgosLDRZOSZA==} peerDependencies: async-validator: '*' @@ -1669,10 +1669,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.6.1(vue@3.3.8) - '@vueuse/shared': 10.6.1(vue@3.3.8) + '@vueuse/core': 10.6.1(vue@3.3.9) + '@vueuse/shared': 10.6.1(vue@3.3.9) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.3.8) + vue-demi: 0.14.6(vue@3.3.9) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1682,10 +1682,10 @@ packages: resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==} dev: true - /@vueuse/shared@10.6.1(vue@3.3.8): + /@vueuse/shared@10.6.1(vue@3.3.9): resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} dependencies: - vue-demi: 0.14.6(vue@3.3.8) + vue-demi: 0.14.6(vue@3.3.9) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2529,8 +2529,8 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@13.5.1: - resolution: {integrity: sha512-yqLViT0D/lPI8Kkm7ciF/x/DCK/H/DnogdGyiTnQgX4OVR2aM30PtK+kvklTOD1u3TuItiD9wUQAF8EYWtyZug==} + /cypress@13.6.0: + resolution: {integrity: sha512-quIsnFmtj4dBUEJYU4OH0H12bABJpSujvWexC24Ju1gTlKMJbeT6tTO0vh7WNfiBPPjoIXLN+OUqVtiKFs6SGw==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -2923,34 +2923,34 @@ packages: '@esbuild/win32-x64': 0.18.20 dev: true - /esbuild@0.19.6: - resolution: {integrity: sha512-Xl7dntjA2OEIvpr9j0DVxxnog2fyTGnyVoQXAMQI6eR3mf9zCQds7VIKUDCotDgE/p4ncTgeRqgX8t5d6oP4Gw==} + /esbuild@0.19.8: + resolution: {integrity: sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.19.6 - '@esbuild/android-arm64': 0.19.6 - '@esbuild/android-x64': 0.19.6 - '@esbuild/darwin-arm64': 0.19.6 - '@esbuild/darwin-x64': 0.19.6 - '@esbuild/freebsd-arm64': 0.19.6 - '@esbuild/freebsd-x64': 0.19.6 - '@esbuild/linux-arm': 0.19.6 - '@esbuild/linux-arm64': 0.19.6 - '@esbuild/linux-ia32': 0.19.6 - '@esbuild/linux-loong64': 0.19.6 - '@esbuild/linux-mips64el': 0.19.6 - '@esbuild/linux-ppc64': 0.19.6 - '@esbuild/linux-riscv64': 0.19.6 - '@esbuild/linux-s390x': 0.19.6 - '@esbuild/linux-x64': 0.19.6 - '@esbuild/netbsd-x64': 0.19.6 - '@esbuild/openbsd-x64': 0.19.6 - '@esbuild/sunos-x64': 0.19.6 - '@esbuild/win32-arm64': 0.19.6 - '@esbuild/win32-ia32': 0.19.6 - '@esbuild/win32-x64': 0.19.6 + '@esbuild/android-arm': 0.19.8 + '@esbuild/android-arm64': 0.19.8 + '@esbuild/android-x64': 0.19.8 + '@esbuild/darwin-arm64': 0.19.8 + '@esbuild/darwin-x64': 0.19.8 + '@esbuild/freebsd-arm64': 0.19.8 + '@esbuild/freebsd-x64': 0.19.8 + '@esbuild/linux-arm': 0.19.8 + '@esbuild/linux-arm64': 0.19.8 + '@esbuild/linux-ia32': 0.19.8 + '@esbuild/linux-loong64': 0.19.8 + '@esbuild/linux-mips64el': 0.19.8 + '@esbuild/linux-ppc64': 0.19.8 + '@esbuild/linux-riscv64': 0.19.8 + '@esbuild/linux-s390x': 0.19.8 + '@esbuild/linux-x64': 0.19.8 + '@esbuild/netbsd-x64': 0.19.8 + '@esbuild/openbsd-x64': 0.19.8 + '@esbuild/sunos-x64': 0.19.8 + '@esbuild/win32-arm64': 0.19.8 + '@esbuild/win32-ia32': 0.19.8 + '@esbuild/win32-x64': 0.19.8 dev: true /escalade@3.1.1: @@ -6037,7 +6037,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.9.2): + /vite-node@0.34.6(@types/node@20.10.0): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6047,7 +6047,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.9.2) + vite: 4.5.0(@types/node@20.10.0) transitivePeerDependencies: - '@types/node' - less @@ -6059,7 +6059,7 @@ packages: - terser dev: true - /vite@4.5.0(@types/node@20.9.2): + /vite@4.5.0(@types/node@20.10.0): resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6087,7 +6087,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.9.2 + '@types/node': 20.10.0 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6095,23 +6095,23 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.9.2)(search-insights@2.11.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.0)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) - '@vitejs/plugin-vue': 4.5.0(vite@4.5.0)(vue@3.3.8) + '@vitejs/plugin-vue': 4.5.0(vite@4.5.0)(vue@3.3.9) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.6.1(vue@3.3.8) - '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.8) + '@vueuse/core': 10.6.1(vue@3.3.9) + '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.9) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.2.0 shiki: 0.14.5 - vite: 4.5.0(@types/node@20.9.2) - vue: 3.3.8(typescript@4.9.5) + vite: 4.5.0(@types/node@20.10.0) + vue: 3.3.9(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6173,7 +6173,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.9.2 + '@types/node': 20.10.0 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6193,8 +6193,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.0(@types/node@20.9.2) - vite-node: 0.34.6(@types/node@20.9.2) + vite: 4.5.0(@types/node@20.10.0) + vite-node: 0.34.6(@types/node@20.10.0) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6214,7 +6214,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.3.8): + /vue-demi@0.14.6(vue@3.3.9): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6226,22 +6226,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.3.8(typescript@4.9.5) + vue: 3.3.9(typescript@4.9.5) dev: true - /vue@3.3.8(typescript@4.9.5): - resolution: {integrity: sha512-5VSX/3DabBikOXMsxzlW8JyfeLKlG9mzqnWgLQLty88vdZL7ZJgrdgBOmrArwxiLtmS+lNNpPcBYqrhE6TQW5w==} + /vue@3.3.9(typescript@4.9.5): + resolution: {integrity: sha512-sy5sLCTR8m6tvUk1/ijri3Yqzgpdsmxgj6n6yl7GXXCXqVbmW2RCXe9atE4cEI6Iv7L89v5f35fZRRr5dChP9w==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.3.8 - '@vue/compiler-sfc': 3.3.8 - '@vue/runtime-dom': 3.3.8 - '@vue/server-renderer': 3.3.8(vue@3.3.8) - '@vue/shared': 3.3.8 + '@vue/compiler-dom': 3.3.9 + '@vue/compiler-sfc': 3.3.9 + '@vue/runtime-dom': 3.3.9 + '@vue/server-renderer': 3.3.9(vue@3.3.9) + '@vue/shared': 3.3.9 typescript: 4.9.5 dev: true From 2eca5bc06c5f53efe9fe495577cd930620453794 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 1 Dec 2023 18:10:05 +0100 Subject: [PATCH 30/98] test(mersenne): add tests for value ranges (#2470) --- src/internal/mersenne.ts | 2 +- .../__snapshots__/mersenne.spec.ts.snap | 0 test/internal/mersenne-test-utils.ts | 17 +++ test/internal/mersenne.spec.ts | 136 ++++++++++++++++++ test/mersenne.spec.ts | 57 -------- test/modules/number.spec.ts | 37 ++++- 6 files changed, 190 insertions(+), 59 deletions(-) rename test/{ => internal}/__snapshots__/mersenne.spec.ts.snap (100%) create mode 100644 test/internal/mersenne-test-utils.ts create mode 100644 test/internal/mersenne.spec.ts delete mode 100644 test/mersenne.spec.ts diff --git a/src/internal/mersenne.ts b/src/internal/mersenne.ts index 6be5825d32c..2372e364d78 100644 --- a/src/internal/mersenne.ts +++ b/src/internal/mersenne.ts @@ -73,7 +73,7 @@ import type { Randomizer } from '../randomizer'; * * @internal */ -class MersenneTwister19937 { +export class MersenneTwister19937 { private readonly N = 624; private readonly M = 397; private readonly MATRIX_A = 0x9908b0df; // constant vector a diff --git a/test/__snapshots__/mersenne.spec.ts.snap b/test/internal/__snapshots__/mersenne.spec.ts.snap similarity index 100% rename from test/__snapshots__/mersenne.spec.ts.snap rename to test/internal/__snapshots__/mersenne.spec.ts.snap diff --git a/test/internal/mersenne-test-utils.ts b/test/internal/mersenne-test-utils.ts new file mode 100644 index 00000000000..ee7a43da455 --- /dev/null +++ b/test/internal/mersenne-test-utils.ts @@ -0,0 +1,17 @@ +// Moved to a separate file to avoid importing the tests + +/** + * The maximum value that can be returned by `MersenneTwister19937.genrandReal2()`. + * This is the max possible value with 32 bits of precision that is less than 1. + */ +export const TWISTER_32CO_MAX_VALUE = 0.9999999997671694; +/** + * The maximum value that can be returned by `MersenneTwister19937.genrandRes53()`. + * This is the max possible value with 53 bits of precision that is less than 1. + */ +export const TWISTER_53CO_MAX_VALUE = 0.9999999999999999; +// Re-exported because the value might change in the future +/** + * The maximum value that can be returned by `next()`. + */ +export const MERSENNE_MAX_VALUE = TWISTER_32CO_MAX_VALUE; diff --git a/test/internal/mersenne.spec.ts b/test/internal/mersenne.spec.ts new file mode 100644 index 00000000000..bbee050258f --- /dev/null +++ b/test/internal/mersenne.spec.ts @@ -0,0 +1,136 @@ +import { beforeAll, beforeEach, describe, expect, it } from 'vitest'; +import { + generateMersenne32Randomizer, + MersenneTwister19937, +} from '../../src/internal/mersenne'; +import type { Randomizer } from '../../src/randomizer'; +import { seededRuns } from '../support/seeded-runs'; +import { times } from '../support/times'; +import { + MERSENNE_MAX_VALUE, + TWISTER_32CO_MAX_VALUE, + TWISTER_53CO_MAX_VALUE, +} from './mersenne-test-utils'; + +const NON_SEEDED_BASED_RUN = 25; + +function newTwister( + seed: number = Math.random() * Number.MAX_SAFE_INTEGER +): MersenneTwister19937 { + const twister = new MersenneTwister19937(); + twister.initGenrand(seed); + return twister; +} + +describe('MersenneTwister19937', () => { + describe('genrandInt32()', () => { + it('should be able to return 0', () => { + const twister = newTwister(257678572); + + // There is no single value seed that can produce 0 in the first call + for (let i = 0; i < 5; i++) { + twister.genrandInt32(); + } + + const actual = twister.genrandInt32(); + expect(actual).toBe(0); + }); + + it('should be able to return 2^32-1', () => { + const twister = newTwister(2855577693); + const actual = twister.genrandInt32(); + expect(actual).toBe(2 ** 32 - 1); + }); + }); + + describe('genrandReal2()', () => { + it('should be able to return 0', () => { + const twister = newTwister(); + // shortcut to return minimal value + // the test above shows that it is possible to return 0 + twister.genrandInt32 = () => 0; + const actual = twister.genrandReal2(); + expect(actual).toBe(0); + }); + + it('should be able to return almost 1', () => { + const twister = newTwister(); + // shortcut to return maximal value + // the test above shows that it is possible to return 2^32-1 + twister.genrandInt32 = () => 2 ** 32 - 1; + const actual = twister.genrandReal2(); + expect(actual).toBe(TWISTER_32CO_MAX_VALUE); + }); + }); + + describe('genrandRes53()', () => { + it('should be able to return 0', () => { + const twister = newTwister(); + // shortcut to return minimal value + // the test above shows that it is possible to return 0 + twister.genrandInt32 = () => 0; + const actual = twister.genrandRes53(); + expect(actual).toBe(0); + }); + + it('should be able to return almost 1', () => { + const twister = newTwister(); + // shortcut to return maximal value + // the test above shows that it is possible to return 2^32-1 + twister.genrandInt32 = () => 2 ** 32 - 1; + const actual = twister.genrandRes53(); + expect(actual).toBe(TWISTER_53CO_MAX_VALUE); + }); + }); +}); + +describe('generateMersenne32Randomizer()', () => { + const randomizer: Randomizer = generateMersenne32Randomizer(); + + it('should return a result matching the interface', () => { + expect(randomizer).toBeDefined(); + expect(randomizer).toBeTypeOf('object'); + expect(randomizer.next).toBeTypeOf('function'); + expect(randomizer.seed).toBeTypeOf('function'); + }); + + describe.each( + [...seededRuns, ...seededRuns.map((v) => [v, 1, 2])].map((v) => [v]) + )('seed: %j', (seed) => { + beforeEach(() => { + randomizer.seed(seed); + }); + + it('should return deterministic value for next()', () => { + const actual = randomizer.next(); + + expect(actual).toMatchSnapshot(); + }); + }); + + function randomSeed(): number { + return Math.ceil(Math.random() * 1_000_000_000); + } + + // Create and log-back the seed for debug purposes + describe.each( + times(NON_SEEDED_BASED_RUN).flatMap(() => [ + [randomSeed()], + [[randomSeed(), randomSeed()]], + ]) + )('random seeded tests %j', (seed) => { + beforeAll(() => { + randomizer.seed(seed); + }); + + describe('next', () => { + it('should return random number from interval [0, 1)', () => { + const actual = randomizer.next(); + + expect(actual).toBeGreaterThanOrEqual(0); + expect(actual).toBeLessThanOrEqual(MERSENNE_MAX_VALUE); + expect(actual).toBeLessThan(1); + }); + }); + }); +}); diff --git a/test/mersenne.spec.ts b/test/mersenne.spec.ts deleted file mode 100644 index 6c7d5a18579..00000000000 --- a/test/mersenne.spec.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { beforeAll, beforeEach, describe, expect, it } from 'vitest'; -import { generateMersenne32Randomizer } from '../src/internal/mersenne'; -import type { Randomizer } from '../src/randomizer'; -import { seededRuns } from './support/seeded-runs'; -import { times } from './support/times'; - -const NON_SEEDED_BASED_RUN = 25; - -describe('generateMersenne32Randomizer()', () => { - const randomizer: Randomizer = generateMersenne32Randomizer(); - - it('should return a result matching the interface', () => { - expect(randomizer).toBeDefined(); - expect(randomizer).toBeTypeOf('object'); - expect(randomizer.next).toBeTypeOf('function'); - expect(randomizer.seed).toBeTypeOf('function'); - }); - - describe.each( - [...seededRuns, ...seededRuns.map((v) => [v, 1, 2])].map((v) => [v]) - )('seed: %j', (seed) => { - beforeEach(() => { - randomizer.seed(seed); - }); - - it('should return deterministic value for next()', () => { - const actual = randomizer.next(); - - expect(actual).toMatchSnapshot(); - }); - }); - - function randomSeed(): number { - return Math.ceil(Math.random() * 1_000_000_000); - } - - // Create and log-back the seed for debug purposes - describe.each( - times(NON_SEEDED_BASED_RUN).flatMap(() => [ - [randomSeed()], - [[randomSeed(), randomSeed()]], - ]) - )('random seeded tests %j', (seed) => { - beforeAll(() => { - randomizer.seed(seed); - }); - - describe('next', () => { - it('should return random number from interval [0, 1)', () => { - const actual = randomizer.next(); - - expect(actual).toBeGreaterThanOrEqual(0); - expect(actual).toBeLessThan(1); - }); - }); - }); -}); diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 66018ee61bd..699200b22f4 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -1,6 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../../src'; +import { faker, FakerError, SimpleFaker } from '../../src'; +import { MERSENNE_MAX_VALUE } from '../internal/mersenne-test-utils'; import { seededTests } from '../support/seeded-runs'; describe('number', () => { @@ -507,4 +508,38 @@ describe('number', () => { }); }); }); + + describe('value range tests', () => { + const customFaker = new SimpleFaker(); + // @ts-expect-error: access private member field + const randomizer = customFaker._randomizer; + describe('int', () => { + it('should be able to return 0', () => { + randomizer.next = () => 0; + const actual = customFaker.number.int(); + expect(actual).toBe(0); + }); + + // TODO @ST-DDT 2023-10-12: This requires a randomizer with 53 bits of precision + it.todo('should be able to return MAX_SAFE_INTEGER', () => { + randomizer.next = () => MERSENNE_MAX_VALUE; + const actual = customFaker.number.int(); + expect(actual).toBe(Number.MAX_SAFE_INTEGER); + }); + }); + + describe('float', () => { + it('should be able to return 0', () => { + randomizer.next = () => 0; + const actual = customFaker.number.float(); + expect(actual).toBe(0); + }); + + it('should be able to return almost 1', () => { + randomizer.next = () => MERSENNE_MAX_VALUE; + const actual = customFaker.number.float(); + expect(actual).toBe(MERSENNE_MAX_VALUE); + }); + }); + }); }); From 9dd57d742d736de0a5cf75aa8ef1ebb2460afd19 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 1 Dec 2023 18:19:40 +0100 Subject: [PATCH 31/98] chore(helpers): fix examples on internal functions (#2559) --- src/modules/helpers/index.ts | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 9a681da9641..26de107dc2e 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -9,7 +9,7 @@ import * as uniqueExec from './unique'; /** * Returns a number based on given RegEx-based quantifier symbol or quantifier values. * - * @param faker Faker instance + * @param faker The Faker instance to use. * @param quantifierSymbol Quantifier symbols can be either of these: `?`, `*`, `+`. * @param quantifierMin Quantifier minimum value. If given without a maximum, this will be used as the quantifier value. * @param quantifierMax Quantifier maximum value. Will randomly get a value between the minimum and maximum if both are provided. @@ -17,9 +17,9 @@ import * as uniqueExec from './unique'; * @returns a random number based on the given quantifier parameters. * * @example - * getRepetitionsBasedOnQuantifierParameters(this.faker, '*', null, null) // 3 - * getRepetitionsBasedOnQuantifierParameters(this.faker, null, 10, null) // 10 - * getRepetitionsBasedOnQuantifierParameters(this.faker, null, 5, 8) // 6 + * getRepetitionsBasedOnQuantifierParameters(faker, '*', null, null) // 3 + * getRepetitionsBasedOnQuantifierParameters(faker, null, 10, null) // 10 + * getRepetitionsBasedOnQuantifierParameters(faker, null, 5, 8) // 6 * * @since 8.0.0 */ @@ -73,7 +73,9 @@ function getRepetitionsBasedOnQuantifierParameters( } /** - * Replaces the regex like expressions in the given string with matching values. Note: This method will be removed in v9. + * Replaces the regex like expressions in the given string with matching values. + * + * Note: This method will be removed in v9. * * Supported patterns: * - `.{times}` => Repeat the character exactly `times` times. @@ -82,15 +84,15 @@ function getRepetitionsBasedOnQuantifierParameters( * * @internal * - * @param faker A Faker instance. + * @param faker The Faker instance to use. * @param string The template string to parse. * * @example - * faker.helpers.legacyRegexpStringParse() // '' - * faker.helpers.legacyRegexpStringParse('#{5}') // '#####' - * faker.helpers.legacyRegexpStringParse('#{2,9}') // '#######' - * faker.helpers.legacyRegexpStringParse('[500-15000]') // '8375' - * faker.helpers.legacyRegexpStringParse('#{3}test[1-5]') // '###test3' + * legacyRegexpStringParse(faker) // '' + * legacyRegexpStringParse(faker, '#{5}') // '#####' + * legacyRegexpStringParse(faker, '#{2,9}') // '#######' + * legacyRegexpStringParse(faker, '[500-15000]') // '8375' + * legacyRegexpStringParse(faker, '#{3}test[1-5]') // '###test3' * * @since 5.0.0 */ From 505f659e4359a39b6e7949209071ba663b751151 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 3 Dec 2023 01:07:39 +0100 Subject: [PATCH 32/98] docs: check and improve handling of duplicate tags (#2444) --- scripts/apidoc/typedoc.ts | 44 +++++++++-- src/modules/helpers/index.ts | 4 +- .../__snapshots__/signature.spec.ts.snap | 73 ++++++++++++------- test/scripts/apidoc/signature.example.ts | 14 +++- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 1 + 5 files changed, 99 insertions(+), 37 deletions(-) diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 12b474b0435..a795efa27c2 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -219,7 +219,40 @@ export function extractTagContent( reflection?: CommentHolder, tagProcessor: (tag: CommentTag) => string[] = joinTagContent ): string[] { - return reflection?.comment?.getTags(tag).flatMap(tagProcessor) ?? []; + const tags = + reflection?.comment + ?.getTags(tag) + .flatMap(tagProcessor) + .map((tag) => tag.trim()) ?? []; + if (tags.some((tag) => tag.length === 0)) { + throw new Error(`Expected non-empty ${tag} tag.`); + } + + return tags; +} + +/** + * Extracts the text (md) from a single jsdoc tag. + * + * @param tag The tag to extract the text from. + * @param reflection The reflection to extract the text from. + * @param tagProcessor The function used to extract the text from the tag. + * + * @throws If there are multiple tags of that type. + */ +function extractSingleTagContent( + tag: `@${string}`, + reflection?: CommentHolder, + tagProcessor: (tag: CommentTag) => string[] = joinTagContent +): string | undefined { + const tags = extractTagContent(tag, reflection, tagProcessor); + if (tags.length === 0) { + return undefined; + } else if (tags.length === 1) { + return tags[0]; + } + + throw new Error(`Expected 1 ${tag} tag, but got ${tags.length}.`); } /** @@ -358,8 +391,7 @@ export function joinTagParts(parts?: CommentDisplayPart[]): string | undefined { export function extractDeprecated( reflection?: CommentHolder ): string | undefined { - const deprecated = extractTagContent('@deprecated', reflection).join().trim(); - return deprecated.length === 0 ? undefined : deprecated; + return extractSingleTagContent('@deprecated', reflection); } /** @@ -370,8 +402,8 @@ export function extractDeprecated( * @returns The message explaining the conditions when this method throws. Or `undefined` if it does not throw. */ export function extractThrows(reflection?: CommentHolder): string | undefined { - const throws = extractTagContent('@throws', reflection).join().trim(); - return throws.length === 0 ? undefined : throws; + const content = extractTagContent('@throws', reflection).join('\n'); + return content.length === 0 ? undefined : content; } /** @@ -382,5 +414,5 @@ export function extractThrows(reflection?: CommentHolder): string | undefined { * @returns The contents of the `@since` tag. */ export function extractSince(reflection: CommentHolder): string { - return extractTagContent('@since', reflection).join().trim(); + return extractSingleTagContent('@since', reflection) || MISSING_DESCRIPTION; } diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 26de107dc2e..6e993c8412c 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -417,8 +417,8 @@ export class SimpleHelpersModule extends SimpleModuleBase { * * @param pattern The template string/RegExp to generate a matching string for. * - * @throws If min value is more than max value in quantifier. e.g. `#{10,5}` - * @throws If invalid quantifier symbol is passed in. + * @throws If min value is more than max value in quantifier, e.g. `#{10,5}`. + * @throws If an invalid quantifier symbol is passed in. * * @example * faker.helpers.fromRegExp('#{5}') // '#####' diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index 12e7df29bb5..84365003a9d 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -42,8 +42,8 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` ], "returns": "T", "seeAlsos": [], - "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L367", + "since": "Missing", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L377", "throws": undefined, } `; @@ -67,7 +67,7 @@ exports[`signature > analyzeSignature() > defaultBooleanParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L105", "throws": undefined, } @@ -84,6 +84,7 @@ exports[`signature > analyzeSignature() > expected and actual methods are equal "methodWithExample", "methodWithMultipleSeeMarkers", "methodWithMultipleSeeMarkersAndBackticks", + "methodWithMultipleThrows", "methodWithSinceMarker", "methodWithThrows", "multiParamMethod", @@ -118,7 +119,7 @@ exports[`signature > analyzeSignature() > functionParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L125", "throws": undefined, } @@ -178,7 +179,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` ], "returns": "string", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L159", "throws": undefined, } @@ -198,7 +199,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = ` "seeAlsos": [ "test.apidoc.methodWithExample()", ], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L287", "throws": undefined, } @@ -250,8 +251,8 @@ exports[`signature > analyzeSignature() > methodWithDeprecatedOption 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L308", + "since": "Missing", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L318", "throws": undefined, } `; @@ -268,7 +269,7 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "parameters": [], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L276", "throws": undefined, } @@ -288,8 +289,8 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "test.apidoc.methodWithExample()", "test.apidoc.methodWithDeprecated()", ], - "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L335", + "since": "Missing", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L345", "throws": undefined, } `; @@ -308,12 +309,30 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "test.apidoc.methodWithExample() with parameter foo.", "test.apidoc.methodWithDeprecated() with parameter bar and baz.", ], - "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L345", + "since": "Missing", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L355", "throws": undefined, } `; +exports[`signature > analyzeSignature() > methodWithMultipleThrows 1`] = ` +{ + "deprecated": undefined, + "description": "

Test with multiple throws.

+", + "examples": "
ts
methodWithMultipleThrows(): number
+
", + "name": "methodWithMultipleThrows", + "parameters": [], + "returns": "number", + "seeAlsos": [], + "since": "Missing", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L306", + "throws": "First error case. +Another error case.", +} +`; + exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` { "deprecated": undefined, @@ -326,7 +345,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "returns": "number", "seeAlsos": [], "since": "1.0.0", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L354", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L364", "throws": undefined, } `; @@ -334,7 +353,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` exports[`signature > analyzeSignature() > methodWithThrows 1`] = ` { "deprecated": undefined, - "description": "

Test with throws

+ "description": "

Test with throws.

", "examples": "
ts
methodWithThrows(): number
", @@ -342,9 +361,9 @@ exports[`signature > analyzeSignature() > methodWithThrows 1`] = ` "parameters": [], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L296", - "throws": "a Faker error", + "throws": "Everytime.", } `; @@ -381,7 +400,7 @@ exports[`signature > analyzeSignature() > multiParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L116", "throws": undefined, } @@ -398,7 +417,7 @@ exports[`signature > analyzeSignature() > noParamMethod 1`] = ` "parameters": [], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L78", "throws": undefined, } @@ -423,7 +442,7 @@ exports[`signature > analyzeSignature() > optionalStringParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L96", "throws": undefined, } @@ -491,7 +510,7 @@ It also has a more complex description.

], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L226", "throws": undefined, } @@ -530,7 +549,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L262", "throws": undefined, } @@ -596,7 +615,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L196", "throws": undefined, } @@ -635,7 +654,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`] ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L244", "throws": undefined, } @@ -660,7 +679,7 @@ exports[`signature > analyzeSignature() > recordParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L182", "throws": undefined, } @@ -685,7 +704,7 @@ exports[`signature > analyzeSignature() > requiredNumberParamMethod 1`] = ` ], "returns": "number", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L87", "throws": undefined, } @@ -742,7 +761,7 @@ exports[`signature > analyzeSignature() > stringUnionParamMethod 1`] = ` ], "returns": "string", "seeAlsos": [], - "since": "", + "since": "Missing", "sourcePath": "test/scripts/apidoc/signature.example.ts#L138", "throws": undefined, } diff --git a/test/scripts/apidoc/signature.example.ts b/test/scripts/apidoc/signature.example.ts index 724f687d3a6..2f62057bc01 100644 --- a/test/scripts/apidoc/signature.example.ts +++ b/test/scripts/apidoc/signature.example.ts @@ -289,14 +289,24 @@ export class SignatureTest { } /** - * Test with throws + * Test with throws. * - * @throws a Faker error + * @throws Everytime. */ methodWithThrows(): number { throw new FakerError('Test error'); } + /** + * Test with multiple throws. + * + * @throws First error case. + * @throws Another error case. + */ + methodWithMultipleThrows(): number { + throw new FakerError('Another test error'); + } + /** * Test with deprecated option. * diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index efb1919bf35..76865c16e80 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -300,6 +300,7 @@ describe('verify JSDoc tags', () => { it('verify @since tag', () => { const since = extractSince(signature); expect(since, '@since to be present').toBeTruthy(); + expect(since).not.toBe(MISSING_DESCRIPTION); expect(since, '@since to be a valid semver').toSatisfy( validator.isSemVer ); From 9459f2dd0066500d7e6994d6d96d0952a795d509 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Mon, 4 Dec 2023 08:21:09 +0100 Subject: [PATCH 33/98] docs: add missing throw descriptions in JSDocs (#2560) --- src/modules/datatype/index.ts | 6 +++++- src/modules/number/index.ts | 17 ++++++++++++----- test/modules/datatype.spec.ts | 23 +++++++++++++++++++++++ test/modules/number.spec.ts | 26 +++++++++++++++++++++++++- 4 files changed, 65 insertions(+), 7 deletions(-) diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index f46cfc0b80a..b8830610548 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -20,7 +20,8 @@ export class DatatypeModule extends SimpleModuleBase { * @param options.max Upper bound for generated number. Defaults to `min + 99999`. * @param options.precision Precision of the generated number. Defaults to `1`. * - * @throws When options define `max < min`. + * @throws When `min` is greater than `max`. + * @throws When `precision` is negative. * * @see faker.number.int(): For generating a random integer. * @see faker.number.float(): For generating a random floating-point number. @@ -85,6 +86,9 @@ export class DatatypeModule extends SimpleModuleBase { * @param options.max Upper bound for generated number. Defaults to `min + 99999`. * @param options.precision Precision of the generated number. Defaults to `0.01`. * + * @throws When `min` is greater than `max`. + * @throws When `precision` is negative. + * * @see faker.number.float(): For the replacement method. * * @example diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index a20a0040fdf..91d987771e0 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -24,7 +24,8 @@ export class NumberModule extends SimpleModuleBase { * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `Number.MAX_SAFE_INTEGER`. * - * @throws When options define `max < min`. + * @throws When `min` is greater than `max`. + * @throws When there are no integers between `min` and `max`. * * @see faker.string.numeric(): For generating a `string` of digits with a given length (range). * @@ -93,6 +94,9 @@ export class NumberModule extends SimpleModuleBase { * @param options.precision Precision of the generated number, for example `0.01` will round to 2 decimal points. * If precision is passed, the upper bound is inclusive. * + * @throws When `min` is greater than `max`. + * @throws When `precision` is negative. + * * @example * faker.number.float() // 0.5688541042618454 * faker.number.float(3) // 2.367973240558058 @@ -168,7 +172,8 @@ export class NumberModule extends SimpleModuleBase { * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `1`. * - * @throws When options define `max < min`. + * @throws When `min` is greater than `max`. + * @throws When there are no integers between `min` and `max`. * * @see faker.string.binary(): For generating a `binary string` with a given length (range). * @@ -217,7 +222,8 @@ export class NumberModule extends SimpleModuleBase { * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `7`. * - * @throws When options define `max < min`. + * @throws When `min` is greater than `max`. + * @throws When there are no integers between `min` and `max`. * * @see faker.string.octal(): For generating an `octal string` with a given length (range). * @@ -266,7 +272,8 @@ export class NumberModule extends SimpleModuleBase { * @param options.min Lower bound for generated number. Defaults to `0`. * @param options.max Upper bound for generated number. Defaults to `15`. * - * @throws When options define `max < min`. + * @throws When `min` is greater than `max`. + * @throws When there are no integers between `min` and `max`. * * @example * faker.number.hex() // 'b' @@ -313,7 +320,7 @@ export class NumberModule extends SimpleModuleBase { * @param options.min Lower bound for generated bigint. Defaults to `0n`. * @param options.max Upper bound for generated bigint. Defaults to `min + 999999999999999n`. * - * @throws When options define `max < min`. + * @throws When `min` is greater than `max`. * * @example * faker.number.bigInt() // 55422n diff --git a/test/modules/datatype.spec.ts b/test/modules/datatype.spec.ts index b4d154f4e0b..3d65797d780 100644 --- a/test/modules/datatype.spec.ts +++ b/test/modules/datatype.spec.ts @@ -232,6 +232,12 @@ describe('datatype', () => { new FakerError(`Max ${max} should be greater than min ${min}.`) ); }); + + it('should throw when precision is negative', () => { + expect(() => { + faker.datatype.number({ precision: -0.01 }); + }).toThrow(new FakerError('Precision should be greater than 0.')); + }); }); describe('float', () => { @@ -306,6 +312,23 @@ describe('datatype', () => { expect(opts.min).toBe(min); expect(opts.max).toBe(max); }); + + it('should throw when min > max', () => { + const min = 10; + const max = 9; + + expect(() => { + faker.datatype.number({ min, max }); + }).toThrow( + new FakerError(`Max ${max} should be greater than min ${min}.`) + ); + }); + + it('should throw when precision is negative', () => { + expect(() => { + faker.datatype.float({ precision: -0.01 }); + }).toThrow(new FakerError('Precision should be greater than 0.')); + }); }); describe('datetime', () => { diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 699200b22f4..97061d56ffe 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -305,7 +305,7 @@ describe('number', () => { return [...str].every((char) => char === '0' || char === '1'); } - it('enerates single binary character when no additional argument was provided', () => { + it('generates single binary character when no additional argument was provided', () => { const binary = faker.number.binary(); expect(binary).toBeTypeOf('string'); @@ -345,6 +345,14 @@ describe('number', () => { new FakerError(`Max ${max} should be greater than min ${min}.`) ); }); + + it('should throw when there is no integer between min and max', () => { + expect(() => { + faker.number.binary({ min: 2.1, max: 2.9 }); + }).toThrow( + new FakerError(`No integer value between 2.1 and 2.9 found.`) + ); + }); }); describe('octal', () => { @@ -388,6 +396,14 @@ describe('number', () => { new FakerError(`Max ${max} should be greater than min ${min}.`) ); }); + + it('should throw when there is no integer between min and max', () => { + expect(() => { + faker.number.octal({ min: 2.1, max: 2.9 }); + }).toThrow( + new FakerError(`No integer value between 2.1 and 2.9 found.`) + ); + }); }); describe('hex', () => { @@ -428,6 +444,14 @@ describe('number', () => { new FakerError(`Max ${max} should be greater than min ${min}.`) ); }); + + it('should throw when there is no integer between min and max', () => { + expect(() => { + faker.number.hex({ min: 2.1, max: 2.9 }); + }).toThrow( + new FakerError(`No integer value between 2.1 and 2.9 found.`) + ); + }); }); describe('bigInt', () => { From 4a3c26350c3e588825abb01b636bdf7d5fa16f7a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:18:45 +0100 Subject: [PATCH 34/98] chore(deps): update typescript-eslint to ~6.13.1 (#2566) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 84 +++++++++++++++++++++++++------------------------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index 5e0de3cd33f..6985ee29116 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", - "@typescript-eslint/eslint-plugin": "~6.12.0", - "@typescript-eslint/parser": "~6.12.0", + "@typescript-eslint/eslint-plugin": "~6.13.1", + "@typescript-eslint/parser": "~6.13.1", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ad13cc710e..78ffad9a954 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.7 version: 13.11.7 '@typescript-eslint/eslint-plugin': - specifier: ~6.12.0 - version: 6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5) + specifier: ~6.13.1 + version: 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.12.0 - version: 6.12.0(eslint@8.54.0)(typescript@4.9.5) + specifier: ~6.13.1 + version: 6.13.1(eslint@8.54.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.54.0) eslint-plugin-vitest: specifier: ~0.3.10 - version: 0.3.10(@typescript-eslint/eslint-plugin@6.12.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1240,8 +1240,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==} + /@typescript-eslint/eslint-plugin@6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-5bQDGkXaxD46bPvQt08BUz9YSaO4S0fB1LB5JHQuXTfkGPI3+UUeS387C/e9jRie5GqT8u5kFTrMvAjtX4O5kA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1252,11 +1252,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.12.0(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.12.0 - '@typescript-eslint/type-utils': 6.12.0(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.12.0(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.12.0 + '@typescript-eslint/parser': 6.13.1(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.13.1 + '@typescript-eslint/type-utils': 6.13.1(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.1(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.13.1 debug: 4.3.4(supports-color@8.1.1) eslint: 8.54.0 graphemer: 1.4.0 @@ -1269,8 +1269,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.12.0(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==} + /@typescript-eslint/parser@6.13.1(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-fs2XOhWCzRhqMmQf0eicLa/CWSaYss2feXsy7xBD/pLyWke/jCIVc2s1ikEAtSW7ina1HNhv7kONoEfVNEcdDQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1279,10 +1279,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.12.0 - '@typescript-eslint/types': 6.12.0 - '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.12.0 + '@typescript-eslint/scope-manager': 6.13.1 + '@typescript-eslint/types': 6.13.1 + '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.13.1 debug: 4.3.4(supports-color@8.1.1) eslint: 8.54.0 typescript: 4.9.5 @@ -1298,16 +1298,16 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/scope-manager@6.12.0: - resolution: {integrity: sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw==} + /@typescript-eslint/scope-manager@6.13.1: + resolution: {integrity: sha512-BW0kJ7ceiKi56GbT2KKzZzN+nDxzQK2DS6x0PiSMPjciPgd/JRQGMibyaN2cPt2cAvuoH0oNvn2fwonHI+4QUQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.12.0 - '@typescript-eslint/visitor-keys': 6.12.0 + '@typescript-eslint/types': 6.13.1 + '@typescript-eslint/visitor-keys': 6.13.1 dev: true - /@typescript-eslint/type-utils@6.12.0(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==} + /@typescript-eslint/type-utils@6.13.1(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-A2qPlgpxx2v//3meMqQyB1qqTg1h1dJvzca7TugM3Yc2USDY+fsRBiojAEo92HO7f5hW5mjAUF6qobOPzlBCBQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1316,8 +1316,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.12.0(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.1(eslint@8.54.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.54.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1331,8 +1331,8 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.12.0: - resolution: {integrity: sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q==} + /@typescript-eslint/types@6.13.1: + resolution: {integrity: sha512-gjeEskSmiEKKFIbnhDXUyiqVma1gRCQNbVZ1C8q7Zjcxh3WZMbzWVfGE9rHfWd1msQtPS0BVD9Jz9jded44eKg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1357,8 +1357,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.12.0(typescript@4.9.5): - resolution: {integrity: sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw==} + /@typescript-eslint/typescript-estree@6.13.1(typescript@4.9.5): + resolution: {integrity: sha512-sBLQsvOC0Q7LGcUHO5qpG1HxRgePbT6wwqOiGLpR8uOJvPJbfs0mW3jPA3ujsDvfiVwVlWUDESNXv44KtINkUQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1366,8 +1366,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.12.0 - '@typescript-eslint/visitor-keys': 6.12.0 + '@typescript-eslint/types': 6.13.1 + '@typescript-eslint/visitor-keys': 6.13.1 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1397,8 +1397,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.12.0(eslint@8.54.0)(typescript@4.9.5): - resolution: {integrity: sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==} + /@typescript-eslint/utils@6.13.1(eslint@8.54.0)(typescript@4.9.5): + resolution: {integrity: sha512-ouPn/zVoan92JgAegesTXDB/oUp6BP1v8WpfYcqh649ejNc9Qv+B4FF2Ff626kO1xg0wWwwG48lAJ4JuesgdOw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1406,9 +1406,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.12.0 - '@typescript-eslint/types': 6.12.0 - '@typescript-eslint/typescript-estree': 6.12.0(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.13.1 + '@typescript-eslint/types': 6.13.1 + '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) eslint: 8.54.0 semver: 7.5.4 transitivePeerDependencies: @@ -1424,11 +1424,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.12.0: - resolution: {integrity: sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw==} + /@typescript-eslint/visitor-keys@6.13.1: + resolution: {integrity: sha512-NDhQUy2tg6XGNBGDRm1XybOHSia8mcXmlbKWoQP+nm1BIIMxa55shyJfZkHpEBN62KNPLrocSM2PdPcaLgDKMQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.12.0 + '@typescript-eslint/types': 6.13.1 eslint-visitor-keys: 3.4.3 dev: true @@ -3075,7 +3075,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.12.0)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-08lj4rdhZHYyHk+Py2nJ7SlE6arP8GNfGXl9jVqhe9s5JoZIGiBpIkLGX+VNBiB6vXTn56H6Ant7Koc6XzRjtQ==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3088,7 +3088,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.12.0(@typescript-eslint/parser@6.12.0)(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.54.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) eslint: 8.54.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 7ad9f2098a1e9f0edb65bb1ca052bd7a0becfcc9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:38:53 +0100 Subject: [PATCH 35/98] chore(deps): update devdependencies (#2565) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 12 +- pnpm-lock.yaml | 340 +++++++++++++++++++++++++++---------------------- 2 files changed, 193 insertions(+), 159 deletions(-) diff --git a/package.json b/package.json index 6985ee29116..79737266b39 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@eslint-types/typescript-eslint": "~6.12.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.10.0", + "@types/node": "~20.10.3", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", @@ -103,12 +103,12 @@ "@typescript-eslint/parser": "~6.13.1", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", - "@vueuse/core": "~10.6.1", + "@vueuse/core": "~10.7.0", "conventional-changelog-cli": "~4.1.0", "cypress": "~13.6.0", "esbuild": "~0.19.8", - "eslint": "~8.54.0", - "eslint-config-prettier": "~9.0.0", + "eslint": "~8.55.0", + "eslint-config-prettier": "~9.1.0", "eslint-define-config": "~2.0.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", @@ -128,10 +128,10 @@ "typedoc": "~0.24.8", "typescript": "~4.9.5", "validator": "~13.11.0", - "vite": "~4.5.0", + "vite": "~4.5.1", "vitepress": "1.0.0-beta.7", "vitest": "~0.34.6", - "vue": "~3.3.9" + "vue": "~3.3.10" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 78ffad9a954..6165c75c664 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.10.0 - version: 20.10.0 + specifier: ~20.10.3 + version: 20.10.3 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -39,10 +39,10 @@ devDependencies: version: 13.11.7 '@typescript-eslint/eslint-plugin': specifier: ~6.13.1 - version: 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.54.0)(typescript@4.9.5) + version: 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/parser': specifier: ~6.13.1 - version: 6.13.1(eslint@8.54.0)(typescript@4.9.5) + version: 6.13.1(eslint@8.55.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -50,8 +50,8 @@ devDependencies: specifier: ~0.34.7 version: 0.34.7(vitest@0.34.6) '@vueuse/core': - specifier: ~10.6.1 - version: 10.6.1(vue@3.3.9) + specifier: ~10.7.0 + version: 10.7.0(vue@3.3.10) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 @@ -62,32 +62,32 @@ devDependencies: specifier: ~0.19.8 version: 0.19.8 eslint: - specifier: ~8.54.0 - version: 8.54.0 + specifier: ~8.55.0 + version: 8.55.0 eslint-config-prettier: - specifier: ~9.0.0 - version: 9.0.0(eslint@8.54.0) + specifier: ~9.1.0 + version: 9.1.0(eslint@8.55.0) eslint-define-config: specifier: ~2.0.0 version: 2.0.0 eslint-gitignore: specifier: ~0.1.0 - version: 0.1.0(eslint@8.54.0) + version: 0.1.0(eslint@8.55.0) eslint-plugin-deprecation: specifier: ~2.0.0 - version: 2.0.0(eslint@8.54.0)(typescript@4.9.5) + version: 2.0.0(eslint@8.55.0)(typescript@4.9.5) eslint-plugin-jsdoc: specifier: ~46.9.0 - version: 46.9.0(eslint@8.54.0) + version: 46.9.0(eslint@8.55.0) eslint-plugin-prettier: specifier: ~5.0.1 - version: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.54.0)(prettier@3.1.0) + version: 5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.0) eslint-plugin-unicorn: specifier: ~49.0.0 - version: 49.0.0(eslint@8.54.0) + version: 49.0.0(eslint@8.55.0) eslint-plugin-vitest: specifier: ~0.3.10 - version: 0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -125,17 +125,17 @@ devDependencies: specifier: ~13.11.0 version: 13.11.0 vite: - specifier: ~4.5.0 - version: 4.5.0(@types/node@20.10.0) + specifier: ~4.5.1 + version: 4.5.1(@types/node@20.10.3) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.0)(search-insights@2.11.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.3)(search-insights@2.11.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.3.9 - version: 3.3.9(typescript@4.9.5) + specifier: ~3.3.10 + version: 3.3.10(typescript@4.9.5) packages: @@ -364,8 +364,8 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/parser@7.23.3: - resolution: {integrity: sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==} + /@babel/parser@7.23.5: + resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: @@ -873,13 +873,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.54.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.55.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.54.0 + eslint: 8.55.0 eslint-visitor-keys: 3.4.3 dev: true @@ -908,8 +908,8 @@ packages: resolution: {integrity: sha512-NfXSZIsPFRD2fwTDZQj8SaXqS/rXjB5foxMraLovyrYGXiQK2y0780drDKYYSVbqvco29QIYoZNmnKTUkzZMvQ==} dev: true - /@eslint/eslintrc@2.1.3: - resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==} + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 @@ -925,8 +925,8 @@ packages: - supports-color dev: true - /@eslint/js@8.54.0: - resolution: {integrity: sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==} + /@eslint/js@8.55.0: + resolution: {integrity: sha512-qQfo2mxH5yVom1kacMtZZJFVdW+E70mqHMJvVg6WTLo+VBuQJ4TojZlfWBjK0ve5BdEeNAVxOsl/nvNMpJOaJA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -1196,8 +1196,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.10.0: - resolution: {integrity: sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==} + /@types/node@20.10.3: + resolution: {integrity: sha512-XJavIpZqiXID5Yxnxv3RUDKTN5b81ddNC3ecsA0SoFXz/QU8OGBwZGMomiq0zw+uuqbL/krztv/DINAQ/EV4gg==} dependencies: undici-types: 5.26.5 dev: true @@ -1236,11 +1236,11 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.0 + '@types/node': 20.10.3 dev: true optional: true - /@typescript-eslint/eslint-plugin@6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.54.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-5bQDGkXaxD46bPvQt08BUz9YSaO4S0fB1LB5JHQuXTfkGPI3+UUeS387C/e9jRie5GqT8u5kFTrMvAjtX4O5kA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1252,13 +1252,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.13.1(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.13.1(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 6.13.1 - '@typescript-eslint/type-utils': 6.13.1(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.1(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.13.1(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.1(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.13.1 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.54.0 + eslint: 8.55.0 graphemer: 1.4.0 ignore: 5.3.0 natural-compare: 1.4.0 @@ -1269,7 +1269,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.13.1(eslint@8.54.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.13.1(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-fs2XOhWCzRhqMmQf0eicLa/CWSaYss2feXsy7xBD/pLyWke/jCIVc2s1ikEAtSW7ina1HNhv7kONoEfVNEcdDQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1284,7 +1284,7 @@ packages: '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.13.1 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.54.0 + eslint: 8.55.0 typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1306,7 +1306,7 @@ packages: '@typescript-eslint/visitor-keys': 6.13.1 dev: true - /@typescript-eslint/type-utils@6.13.1(eslint@8.54.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.13.1(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-A2qPlgpxx2v//3meMqQyB1qqTg1h1dJvzca7TugM3Yc2USDY+fsRBiojAEo92HO7f5hW5mjAUF6qobOPzlBCBQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1317,9 +1317,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.1(eslint@8.54.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.1(eslint@8.55.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.54.0 + eslint: 8.55.0 ts-api-utils: 1.0.3(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: @@ -1378,38 +1378,38 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.11.0(eslint@8.54.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.11.0(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.11.0 '@typescript-eslint/types': 6.11.0 '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - eslint: 8.54.0 + eslint: 8.55.0 semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/utils@6.13.1(eslint@8.54.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.13.1(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-ouPn/zVoan92JgAegesTXDB/oUp6BP1v8WpfYcqh649ejNc9Qv+B4FF2Ff626kO1xg0wWwwG48lAJ4JuesgdOw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.13.1 '@typescript-eslint/types': 6.13.1 '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) - eslint: 8.54.0 + eslint: 8.55.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -1436,15 +1436,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.5.0(vite@4.5.0)(vue@3.3.9): + /@vitejs/plugin-vue@4.5.0(vite@4.5.1)(vue@3.3.10): resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.0(@types/node@20.10.0) - vue: 3.3.9(typescript@4.9.5) + vite: 4.5.1(@types/node@20.10.3) + vue: 3.3.10(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1529,106 +1529,118 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.3.9: - resolution: {integrity: sha512-+/Lf68Vr/nFBA6ol4xOtJrW+BQWv3QWKfRwGSm70jtXwfhZNF4R/eRgyVJYoxFRhdCTk/F6g99BP0ffPgZihfQ==} + /@vue/compiler-core@3.3.10: + resolution: {integrity: sha512-doe0hODR1+i1menPkRzJ5MNR6G+9uiZHIknK3Zn5OcIztu6GGw7u0XUzf3AgB8h/dfsZC9eouzoLo3c3+N/cVA==} dependencies: - '@babel/parser': 7.23.3 - '@vue/shared': 3.3.9 + '@babel/parser': 7.23.5 + '@vue/shared': 3.3.10 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.3.9: - resolution: {integrity: sha512-nfWubTtLXuT4iBeDSZ5J3m218MjOy42Vp2pmKVuBKo2/BLcrFUX8nCSr/bKRFiJ32R8qbdnnnBgRn9AdU5v0Sg==} + /@vue/compiler-dom@3.3.10: + resolution: {integrity: sha512-NCrqF5fm10GXZIK0GrEAauBqdy+F2LZRt3yNHzrYjpYBuRssQbuPLtSnSNjyR9luHKkWSH8we5LMB3g+4z2HvA==} dependencies: - '@vue/compiler-core': 3.3.9 - '@vue/shared': 3.3.9 + '@vue/compiler-core': 3.3.10 + '@vue/shared': 3.3.10 dev: true - /@vue/compiler-sfc@3.3.9: - resolution: {integrity: sha512-wy0CNc8z4ihoDzjASCOCsQuzW0A/HP27+0MDSSICMjVIFzk/rFViezkR3dzH+miS2NDEz8ywMdbjO5ylhOLI2A==} + /@vue/compiler-sfc@3.3.10: + resolution: {integrity: sha512-xpcTe7Rw7QefOTRFFTlcfzozccvjM40dT45JtrE3onGm/jBLZ0JhpKu3jkV7rbDFLeeagR/5RlJ2Y9SvyS0lAg==} dependencies: - '@babel/parser': 7.23.3 - '@vue/compiler-core': 3.3.9 - '@vue/compiler-dom': 3.3.9 - '@vue/compiler-ssr': 3.3.9 - '@vue/reactivity-transform': 3.3.9 - '@vue/shared': 3.3.9 + '@babel/parser': 7.23.5 + '@vue/compiler-core': 3.3.10 + '@vue/compiler-dom': 3.3.10 + '@vue/compiler-ssr': 3.3.10 + '@vue/reactivity-transform': 3.3.10 + '@vue/shared': 3.3.10 estree-walker: 2.0.2 magic-string: 0.30.5 - postcss: 8.4.31 + postcss: 8.4.32 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.3.9: - resolution: {integrity: sha512-NO5oobAw78R0G4SODY5A502MGnDNiDjf6qvhn7zD7TJGc8XDeIEw4fg6JU705jZ/YhuokBKz0A5a/FL/XZU73g==} + /@vue/compiler-ssr@3.3.10: + resolution: {integrity: sha512-12iM4jA4GEbskwXMmPcskK5wImc2ohKm408+o9iox3tfN9qua8xL0THIZtoe9OJHnXP4eOWZpgCAAThEveNlqQ==} dependencies: - '@vue/compiler-dom': 3.3.9 - '@vue/shared': 3.3.9 + '@vue/compiler-dom': 3.3.10 + '@vue/shared': 3.3.10 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity-transform@3.3.9: - resolution: {integrity: sha512-HnUFm7Ry6dFa4Lp63DAxTixUp8opMtQr6RxQCpDI1vlh12rkGIeYqMvJtK+IKyEfEOa2I9oCkD1mmsPdaGpdVg==} + /@vue/reactivity-transform@3.3.10: + resolution: {integrity: sha512-0xBdk+CKHWT+Gev8oZ63Tc0qFfj935YZx+UAynlutnrDZ4diFCVFMWixn65HzjE3S1iJppWOo6Tt1OzASH7VEg==} dependencies: - '@babel/parser': 7.23.3 - '@vue/compiler-core': 3.3.9 - '@vue/shared': 3.3.9 + '@babel/parser': 7.23.5 + '@vue/compiler-core': 3.3.10 + '@vue/shared': 3.3.10 estree-walker: 2.0.2 magic-string: 0.30.5 dev: true - /@vue/reactivity@3.3.9: - resolution: {integrity: sha512-VmpIqlNp+aYDg2X0xQhJqHx9YguOmz2UxuUJDckBdQCNkipJvfk9yA75woLWElCa0Jtyec3lAAt49GO0izsphw==} + /@vue/reactivity@3.3.10: + resolution: {integrity: sha512-H5Z7rOY/JLO+e5a6/FEXaQ1TMuOvY4LDVgT+/+HKubEAgs9qeeZ+NhADSeEtrNQeiKLDuzeKc8v0CUFpB6Pqgw==} dependencies: - '@vue/shared': 3.3.9 + '@vue/shared': 3.3.10 dev: true - /@vue/runtime-core@3.3.9: - resolution: {integrity: sha512-xxaG9KvPm3GTRuM4ZyU8Tc+pMVzcu6eeoSRQJ9IE7NmCcClW6z4B3Ij6L4EDl80sxe/arTtQ6YmgiO4UZqRc+w==} + /@vue/runtime-core@3.3.10: + resolution: {integrity: sha512-DZ0v31oTN4YHX9JEU5VW1LoIVgFovWgIVb30bWn9DG9a7oA415idcwsRNNajqTx8HQJyOaWfRKoyuP2P2TYIag==} dependencies: - '@vue/reactivity': 3.3.9 - '@vue/shared': 3.3.9 + '@vue/reactivity': 3.3.10 + '@vue/shared': 3.3.10 dev: true - /@vue/runtime-dom@3.3.9: - resolution: {integrity: sha512-e7LIfcxYSWbV6BK1wQv9qJyxprC75EvSqF/kQKe6bdZEDNValzeRXEVgiX7AHI6hZ59HA4h7WT5CGvm69vzJTQ==} + /@vue/runtime-dom@3.3.10: + resolution: {integrity: sha512-c/jKb3ny05KJcYk0j1m7Wbhrxq7mZYr06GhKykDMNRRR9S+/dGT8KpHuNQjv3/8U4JshfkAk6TpecPD3B21Ijw==} dependencies: - '@vue/runtime-core': 3.3.9 - '@vue/shared': 3.3.9 + '@vue/runtime-core': 3.3.10 + '@vue/shared': 3.3.10 csstype: 3.1.2 dev: true - /@vue/server-renderer@3.3.9(vue@3.3.9): - resolution: {integrity: sha512-w0zT/s5l3Oa3ZjtLW88eO4uV6AQFqU8X5GOgzq7SkQQu6vVr+8tfm+OI2kDBplS/W/XgCBuFXiPw6T5EdwXP0A==} + /@vue/server-renderer@3.3.10(vue@3.3.10): + resolution: {integrity: sha512-0i6ww3sBV3SKlF3YTjSVqKQ74xialMbjVYGy7cOTi7Imd8ediE7t72SK3qnvhrTAhOvlQhq6Bk6nFPdXxe0sAg==} peerDependencies: - vue: 3.3.9 + vue: 3.3.10 dependencies: - '@vue/compiler-ssr': 3.3.9 - '@vue/shared': 3.3.9 - vue: 3.3.9(typescript@4.9.5) + '@vue/compiler-ssr': 3.3.10 + '@vue/shared': 3.3.10 + vue: 3.3.10(typescript@4.9.5) dev: true - /@vue/shared@3.3.9: - resolution: {integrity: sha512-ZE0VTIR0LmYgeyhurPTpy4KzKsuDyQbMSdM49eKkMnT5X4VfFBLysMzjIZhLEFQYjjOVVfbvUDHckwjDFiO2eA==} + /@vue/shared@3.3.10: + resolution: {integrity: sha512-2y3Y2J1a3RhFa0WisHvACJR2ncvWiVHcP8t0Inxo+NKz+8RKO4ZV8eZgCxRgQoA6ITfV12L4E6POOL9HOU5nqw==} dev: true - /@vueuse/core@10.6.1(vue@3.3.9): + /@vueuse/core@10.6.1(vue@3.3.10): resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.6.1 - '@vueuse/shared': 10.6.1(vue@3.3.9) - vue-demi: 0.14.6(vue@3.3.9) + '@vueuse/shared': 10.6.1(vue@3.3.10) + vue-demi: 0.14.6(vue@3.3.10) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + + /@vueuse/core@10.7.0(vue@3.3.10): + resolution: {integrity: sha512-4EUDESCHtwu44ZWK3Gc/hZUVhVo/ysvdtwocB5vcauSV4B7NiGY5972WnsojB3vRNdxvAt7kzJWE2h9h7C9d5w==} + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 10.7.0 + '@vueuse/shared': 10.7.0(vue@3.3.10) + vue-demi: 0.14.6(vue@3.3.10) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.9): + /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.10): resolution: {integrity: sha512-mPDupuofMJ4DPmtX/FfP1MajmWRzYDv8WSaTCo8LQ5kFznjWgmUQ16ApjYqgMquqffNY6+IRMdMgosLDRZOSZA==} peerDependencies: async-validator: '*' @@ -1669,10 +1681,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.6.1(vue@3.3.9) - '@vueuse/shared': 10.6.1(vue@3.3.9) + '@vueuse/core': 10.6.1(vue@3.3.10) + '@vueuse/shared': 10.6.1(vue@3.3.10) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.3.9) + vue-demi: 0.14.6(vue@3.3.10) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1682,10 +1694,23 @@ packages: resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==} dev: true - /@vueuse/shared@10.6.1(vue@3.3.9): + /@vueuse/metadata@10.7.0: + resolution: {integrity: sha512-GlaH7tKP2iBCZ3bHNZ6b0cl9g0CJK8lttkBNUX156gWvNYhTKEtbweWLm9rxCPIiwzYcr/5xML6T8ZUEt+DkvA==} + dev: true + + /@vueuse/shared@10.6.1(vue@3.3.10): resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} dependencies: - vue-demi: 0.14.6(vue@3.3.9) + vue-demi: 0.14.6(vue@3.3.10) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + + /@vueuse/shared@10.7.0(vue@3.3.10): + resolution: {integrity: sha512-kc00uV6CiaTdc3i1CDC4a3lBxzaBE9AgYNtFN87B5OOscqeWElj/uza8qVDmk7/U8JbqoONLbtqiLJ5LGRuqlw==} + dependencies: + vue-demi: 0.14.6(vue@3.3.10) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2968,13 +2993,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@9.0.0(eslint@8.54.0): - resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} + /eslint-config-prettier@9.1.0(eslint@8.55.0): + resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.54.0 + eslint: 8.55.0 dev: true /eslint-define-config@2.0.0: @@ -2982,7 +3007,7 @@ packages: engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} dev: true - /eslint-gitignore@0.1.0(eslint@8.54.0): + /eslint-gitignore@0.1.0(eslint@8.55.0): resolution: {integrity: sha512-VFvY5Wyjuz5xXDC/NeONHzsh4YQNok2Gzg4SftAAuhkbrdHv5CChjfiFyLKhRlgOdCJr5kBquaLXHtuDBTW2/Q==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -2990,20 +3015,20 @@ packages: dependencies: array.prototype.flatmap: 1.3.2 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.54.0 + eslint: 8.55.0 fast-glob: 3.3.2 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-deprecation@2.0.0(eslint@8.54.0)(typescript@4.9.5): + /eslint-plugin-deprecation@2.0.0(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-OAm9Ohzbj11/ZFyICyR5N6LbOIvQMp7ZU2zI7Ej0jIc8kiGUERXPNMfw2QqqHD1ZHtjMub3yPZILovYEYucgoQ==} peerDependencies: eslint: ^7.0.0 || ^8.0.0 typescript: ^4.2.4 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) - eslint: 8.54.0 + '@typescript-eslint/utils': 6.11.0(eslint@8.55.0)(typescript@4.9.5) + eslint: 8.55.0 tslib: 2.6.2 tsutils: 3.21.0(typescript@4.9.5) typescript: 4.9.5 @@ -3011,7 +3036,7 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.9.0(eslint@8.54.0): + /eslint-plugin-jsdoc@46.9.0(eslint@8.55.0): resolution: {integrity: sha512-UQuEtbqLNkPf5Nr/6PPRCtr9xypXY+g8y/Q7gPa0YK7eDhh0y2lWprXRnaYbW7ACgIUvpDKy9X2bZqxtGzBG9Q==} engines: {node: '>=16'} peerDependencies: @@ -3022,7 +3047,7 @@ packages: comment-parser: 1.4.1 debug: 4.3.4(supports-color@8.1.1) escape-string-regexp: 4.0.0 - eslint: 8.54.0 + eslint: 8.55.0 esquery: 1.5.0 is-builtin-module: 3.2.1 semver: 7.5.4 @@ -3031,7 +3056,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.54.0)(prettier@3.1.0): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.0): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3045,24 +3070,24 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.54.0 - eslint-config-prettier: 9.0.0(eslint@8.54.0) + eslint: 8.55.0 + eslint-config-prettier: 9.1.0(eslint@8.55.0) prettier: 3.1.0 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true - /eslint-plugin-unicorn@49.0.0(eslint@8.54.0): + /eslint-plugin-unicorn@49.0.0(eslint@8.55.0): resolution: {integrity: sha512-0fHEa/8Pih5cmzFW5L7xMEfUTvI9WKeQtjmKpTUmY+BiFCDxkxrTdnURJOHKykhtwIeyYsxnecbGvDCml++z4Q==} engines: {node: '>=16'} peerDependencies: eslint: '>=8.52.0' dependencies: '@babel/helper-validator-identifier': 7.22.20 - '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) ci-info: 3.9.0 clean-regexp: 1.0.0 - eslint: 8.54.0 + eslint: 8.55.0 esquery: 1.5.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 @@ -3075,7 +3100,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.54.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-08lj4rdhZHYyHk+Py2nJ7SlE6arP8GNfGXl9jVqhe9s5JoZIGiBpIkLGX+VNBiB6vXTn56H6Ant7Koc6XzRjtQ==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3088,9 +3113,9 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.54.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@4.9.5) - eslint: 8.54.0 + '@typescript-eslint/eslint-plugin': 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.11.0(eslint@8.55.0)(typescript@4.9.5) + eslint: 8.55.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: - supports-color @@ -3110,15 +3135,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.54.0: - resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==} + /eslint@8.55.0: + resolution: {integrity: sha512-iyUUAM0PCKj5QpwGfmCAG9XXbZCWsqP/eWAWrG/W0umvjuLRBECwSFdt+rCntju0xEH7teIABPwXpahftIaTdA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) '@eslint-community/regexpp': 4.10.0 - '@eslint/eslintrc': 2.1.3 - '@eslint/js': 8.54.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.55.0 '@humanwhocodes/config-array': 0.11.13 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -4923,6 +4948,15 @@ packages: source-map-js: 1.0.2 dev: true + /postcss@8.4.32: + resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + /preact@10.19.2: resolution: {integrity: sha512-UA9DX/OJwv6YwP9Vn7Ti/vF80XL+YA5H2l7BpCtUr3ya8LWHFzpiO5R+N7dN16ujpIxhekRFuOOF82bXX7K/lg==} dev: true @@ -6037,7 +6071,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.10.0): + /vite-node@0.34.6(@types/node@20.10.3): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6047,7 +6081,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.10.0) + vite: 4.5.1(@types/node@20.10.3) transitivePeerDependencies: - '@types/node' - less @@ -6059,8 +6093,8 @@ packages: - terser dev: true - /vite@4.5.0(@types/node@20.10.0): - resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} + /vite@4.5.1(@types/node@20.10.3): + resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -6087,7 +6121,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.0 + '@types/node': 20.10.3 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6095,23 +6129,23 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.0)(search-insights@2.11.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.3)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) - '@vitejs/plugin-vue': 4.5.0(vite@4.5.0)(vue@3.3.9) + '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.10) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.6.1(vue@3.3.9) - '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.9) + '@vueuse/core': 10.7.0(vue@3.3.10) + '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.10) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.2.0 shiki: 0.14.5 - vite: 4.5.0(@types/node@20.10.0) - vue: 3.3.9(typescript@4.9.5) + vite: 4.5.1(@types/node@20.10.3) + vue: 3.3.10(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6173,7 +6207,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.10.0 + '@types/node': 20.10.3 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6193,8 +6227,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.0(@types/node@20.10.0) - vite-node: 0.34.6(@types/node@20.10.0) + vite: 4.5.1(@types/node@20.10.3) + vite-node: 0.34.6(@types/node@20.10.3) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6214,7 +6248,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.3.9): + /vue-demi@0.14.6(vue@3.3.10): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6226,22 +6260,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.3.9(typescript@4.9.5) + vue: 3.3.10(typescript@4.9.5) dev: true - /vue@3.3.9(typescript@4.9.5): - resolution: {integrity: sha512-sy5sLCTR8m6tvUk1/ijri3Yqzgpdsmxgj6n6yl7GXXCXqVbmW2RCXe9atE4cEI6Iv7L89v5f35fZRRr5dChP9w==} + /vue@3.3.10(typescript@4.9.5): + resolution: {integrity: sha512-zg6SIXZdTBwiqCw/1p+m04VyHjLfwtjwz8N57sPaBhEex31ND0RYECVOC1YrRwMRmxFf5T1dabl6SGUbMKKuVw==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.3.9 - '@vue/compiler-sfc': 3.3.9 - '@vue/runtime-dom': 3.3.9 - '@vue/server-renderer': 3.3.9(vue@3.3.9) - '@vue/shared': 3.3.9 + '@vue/compiler-dom': 3.3.10 + '@vue/compiler-sfc': 3.3.10 + '@vue/runtime-dom': 3.3.10 + '@vue/server-renderer': 3.3.10(vue@3.3.10) + '@vue/shared': 3.3.10 typescript: 4.9.5 dev: true From bb1a9cf651c0c17dc90dd5a0fc38091aa4f8d0a5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 09:26:18 +0100 Subject: [PATCH 36/98] chore(deps): update dependency prettier to v3.1.1 (#2570) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 79737266b39..2095380b7df 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "eslint-plugin-vitest": "~0.3.10", "glob": "~10.3.10", "npm-run-all": "~4.1.5", - "prettier": "3.1.0", + "prettier": "3.1.1", "prettier-plugin-organize-imports": "~3.2.4", "rimraf": "~5.0.5", "sanitize-html": "~2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6165c75c664..7c71972cf23 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,7 +81,7 @@ devDependencies: version: 46.9.0(eslint@8.55.0) eslint-plugin-prettier: specifier: ~5.0.1 - version: 5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.0) + version: 5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.1) eslint-plugin-unicorn: specifier: ~49.0.0 version: 49.0.0(eslint@8.55.0) @@ -95,11 +95,11 @@ devDependencies: specifier: ~4.1.5 version: 4.1.5 prettier: - specifier: 3.1.0 - version: 3.1.0 + specifier: 3.1.1 + version: 3.1.1 prettier-plugin-organize-imports: specifier: ~3.2.4 - version: 3.2.4(prettier@3.1.0)(typescript@4.9.5) + version: 3.2.4(prettier@3.1.1)(typescript@4.9.5) rimraf: specifier: ~5.0.5 version: 5.0.5 @@ -3056,7 +3056,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.0): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.1): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3072,7 +3072,7 @@ packages: dependencies: eslint: 8.55.0 eslint-config-prettier: 9.1.0(eslint@8.55.0) - prettier: 3.1.0 + prettier: 3.1.1 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -4973,7 +4973,7 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.4(prettier@3.1.0)(typescript@4.9.5): + /prettier-plugin-organize-imports@3.2.4(prettier@3.1.1)(typescript@4.9.5): resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4986,12 +4986,12 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.1.0 + prettier: 3.1.1 typescript: 4.9.5 dev: true - /prettier@3.1.0: - resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} + /prettier@3.1.1: + resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==} engines: {node: '>=14'} hasBin: true dev: true From 1a673819062376234a32b51cee203a3f7e1c20d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:06:19 +0100 Subject: [PATCH 37/98] chore(deps): update typescript-eslint to ~6.13.2 (#2572) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 84 +++++++++++++++++++++++++------------------------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index 2095380b7df..e2154d6033e 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", - "@typescript-eslint/eslint-plugin": "~6.13.1", - "@typescript-eslint/parser": "~6.13.1", + "@typescript-eslint/eslint-plugin": "~6.13.2", + "@typescript-eslint/parser": "~6.13.2", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c71972cf23..aff6765e609 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.7 version: 13.11.7 '@typescript-eslint/eslint-plugin': - specifier: ~6.13.1 - version: 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.55.0)(typescript@4.9.5) + specifier: ~6.13.2 + version: 6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.13.1 - version: 6.13.1(eslint@8.55.0)(typescript@4.9.5) + specifier: ~6.13.2 + version: 6.13.2(eslint@8.55.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.55.0) eslint-plugin-vitest: specifier: ~0.3.10 - version: 0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.10(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1240,8 +1240,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-5bQDGkXaxD46bPvQt08BUz9YSaO4S0fB1LB5JHQuXTfkGPI3+UUeS387C/e9jRie5GqT8u5kFTrMvAjtX4O5kA==} + /@typescript-eslint/eslint-plugin@6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1252,11 +1252,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.13.1(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.13.1 - '@typescript-eslint/type-utils': 6.13.1(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.1(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.13.1 + '@typescript-eslint/parser': 6.13.2(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.13.2 + '@typescript-eslint/type-utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.13.2 debug: 4.3.4(supports-color@8.1.1) eslint: 8.55.0 graphemer: 1.4.0 @@ -1269,8 +1269,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.13.1(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-fs2XOhWCzRhqMmQf0eicLa/CWSaYss2feXsy7xBD/pLyWke/jCIVc2s1ikEAtSW7ina1HNhv7kONoEfVNEcdDQ==} + /@typescript-eslint/parser@6.13.2(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1279,10 +1279,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.13.1 - '@typescript-eslint/types': 6.13.1 - '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.13.1 + '@typescript-eslint/scope-manager': 6.13.2 + '@typescript-eslint/types': 6.13.2 + '@typescript-eslint/typescript-estree': 6.13.2(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.13.2 debug: 4.3.4(supports-color@8.1.1) eslint: 8.55.0 typescript: 4.9.5 @@ -1298,16 +1298,16 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/scope-manager@6.13.1: - resolution: {integrity: sha512-BW0kJ7ceiKi56GbT2KKzZzN+nDxzQK2DS6x0PiSMPjciPgd/JRQGMibyaN2cPt2cAvuoH0oNvn2fwonHI+4QUQ==} + /@typescript-eslint/scope-manager@6.13.2: + resolution: {integrity: sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.13.1 - '@typescript-eslint/visitor-keys': 6.13.1 + '@typescript-eslint/types': 6.13.2 + '@typescript-eslint/visitor-keys': 6.13.2 dev: true - /@typescript-eslint/type-utils@6.13.1(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-A2qPlgpxx2v//3meMqQyB1qqTg1h1dJvzca7TugM3Yc2USDY+fsRBiojAEo92HO7f5hW5mjAUF6qobOPzlBCBQ==} + /@typescript-eslint/type-utils@6.13.2(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1316,8 +1316,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.1(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.13.2(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.55.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1331,8 +1331,8 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.13.1: - resolution: {integrity: sha512-gjeEskSmiEKKFIbnhDXUyiqVma1gRCQNbVZ1C8q7Zjcxh3WZMbzWVfGE9rHfWd1msQtPS0BVD9Jz9jded44eKg==} + /@typescript-eslint/types@6.13.2: + resolution: {integrity: sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1357,8 +1357,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.13.1(typescript@4.9.5): - resolution: {integrity: sha512-sBLQsvOC0Q7LGcUHO5qpG1HxRgePbT6wwqOiGLpR8uOJvPJbfs0mW3jPA3ujsDvfiVwVlWUDESNXv44KtINkUQ==} + /@typescript-eslint/typescript-estree@6.13.2(typescript@4.9.5): + resolution: {integrity: sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1366,8 +1366,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.13.1 - '@typescript-eslint/visitor-keys': 6.13.1 + '@typescript-eslint/types': 6.13.2 + '@typescript-eslint/visitor-keys': 6.13.2 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1397,8 +1397,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.13.1(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-ouPn/zVoan92JgAegesTXDB/oUp6BP1v8WpfYcqh649ejNc9Qv+B4FF2Ff626kO1xg0wWwwG48lAJ4JuesgdOw==} + /@typescript-eslint/utils@6.13.2(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1406,9 +1406,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.13.1 - '@typescript-eslint/types': 6.13.1 - '@typescript-eslint/typescript-estree': 6.13.1(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.13.2 + '@typescript-eslint/types': 6.13.2 + '@typescript-eslint/typescript-estree': 6.13.2(typescript@4.9.5) eslint: 8.55.0 semver: 7.5.4 transitivePeerDependencies: @@ -1424,11 +1424,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.13.1: - resolution: {integrity: sha512-NDhQUy2tg6XGNBGDRm1XybOHSia8mcXmlbKWoQP+nm1BIIMxa55shyJfZkHpEBN62KNPLrocSM2PdPcaLgDKMQ==} + /@typescript-eslint/visitor-keys@6.13.2: + resolution: {integrity: sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.13.1 + '@typescript-eslint/types': 6.13.2 eslint-visitor-keys: 3.4.3 dev: true @@ -3100,7 +3100,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.13.1)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-08lj4rdhZHYyHk+Py2nJ7SlE6arP8GNfGXl9jVqhe9s5JoZIGiBpIkLGX+VNBiB6vXTn56H6Ant7Koc6XzRjtQ==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3113,7 +3113,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.13.1(@typescript-eslint/parser@6.13.1)(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.11.0(eslint@8.55.0)(typescript@4.9.5) eslint: 8.55.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 60dcfe7c6454327740d2253ed283deb59d420462 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:33:28 +0100 Subject: [PATCH 38/98] chore(deps): update devdependencies (#2571) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 10 +- pnpm-lock.yaml | 340 ++++++++++++++++++++++++------------------------- 2 files changed, 175 insertions(+), 175 deletions(-) diff --git a/package.json b/package.json index e2154d6033e..3c75f323e4b 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@eslint-types/typescript-eslint": "~6.12.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.10.3", + "@types/node": "~20.10.4", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", @@ -105,8 +105,8 @@ "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.0", "conventional-changelog-cli": "~4.1.0", - "cypress": "~13.6.0", - "esbuild": "~0.19.8", + "cypress": "~13.6.1", + "esbuild": "~0.19.9", "eslint": "~8.55.0", "eslint-config-prettier": "~9.1.0", "eslint-define-config": "~2.0.0", @@ -115,7 +115,7 @@ "eslint-plugin-jsdoc": "~46.9.0", "eslint-plugin-prettier": "~5.0.1", "eslint-plugin-unicorn": "~49.0.0", - "eslint-plugin-vitest": "~0.3.10", + "eslint-plugin-vitest": "~0.3.15", "glob": "~10.3.10", "npm-run-all": "~4.1.5", "prettier": "3.1.1", @@ -131,7 +131,7 @@ "vite": "~4.5.1", "vitepress": "1.0.0-beta.7", "vitest": "~0.34.6", - "vue": "~3.3.10" + "vue": "~3.3.11" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aff6765e609..425285261d0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.10.3 - version: 20.10.3 + specifier: ~20.10.4 + version: 20.10.4 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -51,16 +51,16 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.7.0 - version: 10.7.0(vue@3.3.10) + version: 10.7.0(vue@3.3.11) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: - specifier: ~13.6.0 - version: 13.6.0 + specifier: ~13.6.1 + version: 13.6.1 esbuild: - specifier: ~0.19.8 - version: 0.19.8 + specifier: ~0.19.9 + version: 0.19.9 eslint: specifier: ~8.55.0 version: 8.55.0 @@ -86,8 +86,8 @@ devDependencies: specifier: ~49.0.0 version: 49.0.0(eslint@8.55.0) eslint-plugin-vitest: - specifier: ~0.3.10 - version: 0.3.10(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) + specifier: ~0.3.15 + version: 0.3.15(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -126,16 +126,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.1 - version: 4.5.1(@types/node@20.10.3) + version: 4.5.1(@types/node@20.10.4) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.3)(search-insights@2.11.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.4)(search-insights@2.11.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.3.10 - version: 3.3.10(typescript@4.9.5) + specifier: ~3.3.11 + version: 3.3.11(typescript@4.9.5) packages: @@ -486,8 +486,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.8: - resolution: {integrity: sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLECj6FhDzk1cF9WHMVwrtA==} + /@esbuild/android-arm64@0.19.9: + resolution: {integrity: sha512-q4cR+6ZD0938R19MyEW3jEsMzbb/1rulLXiNAJQADD/XYp7pT+rOS5JGxvpRW8dFDEfjW4wLgC/3FXIw4zYglQ==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -504,8 +504,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.8: - resolution: {integrity: sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvLBax+VKTPlpnx+sPicOA==} + /@esbuild/android-arm@0.19.9: + resolution: {integrity: sha512-jkYjjq7SdsWuNI6b5quymW0oC83NN5FdRPuCbs9HZ02mfVdAP8B8eeqLSYU3gb6OJEaY5CQabtTFbqBf26H3GA==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -522,8 +522,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.8: - resolution: {integrity: sha512-rdqqYfRIn4jWOp+lzQttYMa2Xar3OK9Yt2fhOhzFXqg0rVWEfSclJvZq5fZslnz6ypHvVf3CT7qyf0A5pM682A==} + /@esbuild/android-x64@0.19.9: + resolution: {integrity: sha512-KOqoPntWAH6ZxDwx1D6mRntIgZh9KodzgNOy5Ebt9ghzffOk9X2c1sPwtM9P+0eXbefnDhqYfkh5PLP5ULtWFA==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -540,8 +540,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.8: - resolution: {integrity: sha512-RQw9DemMbIq35Bprbboyf8SmOr4UXsRVxJ97LgB55VKKeJOOdvsIPy0nFyF2l8U+h4PtBx/1kRf0BelOYCiQcw==} + /@esbuild/darwin-arm64@0.19.9: + resolution: {integrity: sha512-KBJ9S0AFyLVx2E5D8W0vExqRW01WqRtczUZ8NRu+Pi+87opZn5tL4Y0xT0mA4FtHctd0ZgwNoN639fUUGlNIWw==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -558,8 +558,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.8: - resolution: {integrity: sha512-3sur80OT9YdeZwIVgERAysAbwncom7b4bCI2XKLjMfPymTud7e/oY4y+ci1XVp5TfQp/bppn7xLw1n/oSQY3/Q==} + /@esbuild/darwin-x64@0.19.9: + resolution: {integrity: sha512-vE0VotmNTQaTdX0Q9dOHmMTao6ObjyPm58CHZr1UK7qpNleQyxlFlNCaHsHx6Uqv86VgPmR4o2wdNq3dP1qyDQ==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -576,8 +576,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.8: - resolution: {integrity: sha512-WAnPJSDattvS/XtPCTj1tPoTxERjcTpH6HsMr6ujTT+X6rylVe8ggxk8pVxzf5U1wh5sPODpawNicF5ta/9Tmw==} + /@esbuild/freebsd-arm64@0.19.9: + resolution: {integrity: sha512-uFQyd/o1IjiEk3rUHSwUKkqZwqdvuD8GevWF065eqgYfexcVkxh+IJgwTaGZVu59XczZGcN/YMh9uF1fWD8j1g==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -594,8 +594,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.8: - resolution: {integrity: sha512-ICvZyOplIjmmhjd6mxi+zxSdpPTKFfyPPQMQTK/w+8eNK6WV01AjIztJALDtwNNfFhfZLux0tZLC+U9nSyA5Zg==} + /@esbuild/freebsd-x64@0.19.9: + resolution: {integrity: sha512-WMLgWAtkdTbTu1AWacY7uoj/YtHthgqrqhf1OaEWnZb7PQgpt8eaA/F3LkV0E6K/Lc0cUr/uaVP/49iE4M4asA==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -612,8 +612,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.8: - resolution: {integrity: sha512-z1zMZivxDLHWnyGOctT9JP70h0beY54xDDDJt4VpTX+iwA77IFsE1vCXWmprajJGa+ZYSqkSbRQ4eyLCpCmiCQ==} + /@esbuild/linux-arm64@0.19.9: + resolution: {integrity: sha512-PiPblfe1BjK7WDAKR1Cr9O7VVPqVNpwFcPWgfn4xu0eMemzRp442hXyzF/fSwgrufI66FpHOEJk0yYdPInsmyQ==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -630,8 +630,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.8: - resolution: {integrity: sha512-H4vmI5PYqSvosPaTJuEppU9oz1dq2A7Mr2vyg5TF9Ga+3+MGgBdGzcyBP7qK9MrwFQZlvNyJrvz6GuCaj3OukQ==} + /@esbuild/linux-arm@0.19.9: + resolution: {integrity: sha512-C/ChPohUYoyUaqn1h17m/6yt6OB14hbXvT8EgM1ZWaiiTYz7nWZR0SYmMnB5BzQA4GXl3BgBO1l8MYqL/He3qw==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -648,8 +648,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.8: - resolution: {integrity: sha512-1a8suQiFJmZz1khm/rDglOc8lavtzEMRo0v6WhPgxkrjcU0LkHj+TwBrALwoz/OtMExvsqbbMI0ChyelKabSvQ==} + /@esbuild/linux-ia32@0.19.9: + resolution: {integrity: sha512-f37i/0zE0MjDxijkPSQw1CO/7C27Eojqb+r3BbHVxMLkj8GCa78TrBZzvPyA/FNLUMzP3eyHCVkAopkKVja+6Q==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -666,8 +666,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.8: - resolution: {integrity: sha512-fHZWS2JJxnXt1uYJsDv9+b60WCc2RlvVAy1F76qOLtXRO+H4mjt3Tr6MJ5l7Q78X8KgCFudnTuiQRBhULUyBKQ==} + /@esbuild/linux-loong64@0.19.9: + resolution: {integrity: sha512-t6mN147pUIf3t6wUt3FeumoOTPfmv9Cc6DQlsVBpB7eCpLOqQDyWBP1ymXn1lDw4fNUSb/gBcKAmvTP49oIkaA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -684,8 +684,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.8: - resolution: {integrity: sha512-Wy/z0EL5qZYLX66dVnEg9riiwls5IYnziwuju2oUiuxVc+/edvqXa04qNtbrs0Ukatg5HEzqT94Zs7J207dN5Q==} + /@esbuild/linux-mips64el@0.19.9: + resolution: {integrity: sha512-jg9fujJTNTQBuDXdmAg1eeJUL4Jds7BklOTkkH80ZgQIoCTdQrDaHYgbFZyeTq8zbY+axgptncko3v9p5hLZtw==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -702,8 +702,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.8: - resolution: {integrity: sha512-ETaW6245wK23YIEufhMQ3HSeHO7NgsLx8gygBVldRHKhOlD1oNeNy/P67mIh1zPn2Hr2HLieQrt6tWrVwuqrxg==} + /@esbuild/linux-ppc64@0.19.9: + resolution: {integrity: sha512-tkV0xUX0pUUgY4ha7z5BbDS85uI7ABw3V1d0RNTii7E9lbmV8Z37Pup2tsLV46SQWzjOeyDi1Q7Wx2+QM8WaCQ==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -720,8 +720,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.8: - resolution: {integrity: sha512-T2DRQk55SgoleTP+DtPlMrxi/5r9AeFgkhkZ/B0ap99zmxtxdOixOMI570VjdRCs9pE4Wdkz7JYrsPvsl7eESg==} + /@esbuild/linux-riscv64@0.19.9: + resolution: {integrity: sha512-DfLp8dj91cufgPZDXr9p3FoR++m3ZJ6uIXsXrIvJdOjXVREtXuQCjfMfvmc3LScAVmLjcfloyVtpn43D56JFHg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -738,8 +738,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.8: - resolution: {integrity: sha512-NPxbdmmo3Bk7mbNeHmcCd7R7fptJaczPYBaELk6NcXxy7HLNyWwCyDJ/Xx+/YcNH7Im5dHdx9gZ5xIwyliQCbg==} + /@esbuild/linux-s390x@0.19.9: + resolution: {integrity: sha512-zHbglfEdC88KMgCWpOl/zc6dDYJvWGLiUtmPRsr1OgCViu3z5GncvNVdf+6/56O2Ca8jUU+t1BW261V6kp8qdw==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -756,8 +756,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.8: - resolution: {integrity: sha512-lytMAVOM3b1gPypL2TRmZ5rnXl7+6IIk8uB3eLsV1JwcizuolblXRrc5ShPrO9ls/b+RTp+E6gbsuLWHWi2zGg==} + /@esbuild/linux-x64@0.19.9: + resolution: {integrity: sha512-JUjpystGFFmNrEHQnIVG8hKwvA2DN5o7RqiO1CVX8EN/F/gkCjkUMgVn6hzScpwnJtl2mPR6I9XV1oW8k9O+0A==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -774,8 +774,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.8: - resolution: {integrity: sha512-hvWVo2VsXz/8NVt1UhLzxwAfo5sioj92uo0bCfLibB0xlOmimU/DeAEsQILlBQvkhrGjamP0/el5HU76HAitGw==} + /@esbuild/netbsd-x64@0.19.9: + resolution: {integrity: sha512-GThgZPAwOBOsheA2RUlW5UeroRfESwMq/guy8uEe3wJlAOjpOXuSevLRd70NZ37ZrpO6RHGHgEHvPg1h3S1Jug==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -792,8 +792,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.8: - resolution: {integrity: sha512-/7Y7u77rdvmGTxR83PgaSvSBJCC2L3Kb1M/+dmSIvRvQPXXCuC97QAwMugBNG0yGcbEGfFBH7ojPzAOxfGNkwQ==} + /@esbuild/openbsd-x64@0.19.9: + resolution: {integrity: sha512-Ki6PlzppaFVbLnD8PtlVQfsYw4S9n3eQl87cqgeIw+O3sRr9IghpfSKY62mggdt1yCSZ8QWvTZ9jo9fjDSg9uw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -810,8 +810,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.8: - resolution: {integrity: sha512-9Lc4s7Oi98GqFA4HzA/W2JHIYfnXbUYgekUP/Sm4BG9sfLjyv6GKKHKKVs83SMicBF2JwAX6A1PuOLMqpD001w==} + /@esbuild/sunos-x64@0.19.9: + resolution: {integrity: sha512-MLHj7k9hWh4y1ddkBpvRj2b9NCBhfgBt3VpWbHQnXRedVun/hC7sIyTGDGTfsGuXo4ebik2+3ShjcPbhtFwWDw==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -828,8 +828,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.8: - resolution: {integrity: sha512-rq6WzBGjSzihI9deW3fC2Gqiak68+b7qo5/3kmB6Gvbh/NYPA0sJhrnp7wgV4bNwjqM+R2AApXGxMO7ZoGhIJg==} + /@esbuild/win32-arm64@0.19.9: + resolution: {integrity: sha512-GQoa6OrQ8G08guMFgeXPH7yE/8Dt0IfOGWJSfSH4uafwdC7rWwrfE6P9N8AtPGIjUzdo2+7bN8Xo3qC578olhg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -846,8 +846,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.8: - resolution: {integrity: sha512-AIAbverbg5jMvJznYiGhrd3sumfwWs8572mIJL5NQjJa06P8KfCPWZQ0NwZbPQnbQi9OWSZhFVSUWjjIrn4hSw==} + /@esbuild/win32-ia32@0.19.9: + resolution: {integrity: sha512-UOozV7Ntykvr5tSOlGCrqU3NBr3d8JqPes0QWN2WOXfvkWVGRajC+Ym0/Wj88fUgecUCLDdJPDF0Nna2UK3Qtg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -864,8 +864,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.8: - resolution: {integrity: sha512-bfZ0cQ1uZs2PqpulNL5j/3w+GDhP36k1K5c38QdQg+Swy51jFZWWeIkteNsufkQxp986wnqRRsb/bHbY1WQ7TA==} + /@esbuild/win32-x64@0.19.9: + resolution: {integrity: sha512-oxoQgglOP7RH6iasDrhY+R/3cHrfwIDvRlT4CGChflq6twk8iENeVvMJjmvBb94Ik1Z+93iGO27err7w6l54GQ==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1196,8 +1196,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.10.3: - resolution: {integrity: sha512-XJavIpZqiXID5Yxnxv3RUDKTN5b81ddNC3ecsA0SoFXz/QU8OGBwZGMomiq0zw+uuqbL/krztv/DINAQ/EV4gg==} + /@types/node@20.10.4: + resolution: {integrity: sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==} dependencies: undici-types: 5.26.5 dev: true @@ -1236,7 +1236,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.3 + '@types/node': 20.10.4 dev: true optional: true @@ -1436,15 +1436,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.5.0(vite@4.5.1)(vue@3.3.10): + /@vitejs/plugin-vue@4.5.0(vite@4.5.1)(vue@3.3.11): resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.1(@types/node@20.10.3) - vue: 3.3.10(typescript@4.9.5) + vite: 4.5.1(@types/node@20.10.4) + vue: 3.3.11(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1529,118 +1529,118 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.3.10: - resolution: {integrity: sha512-doe0hODR1+i1menPkRzJ5MNR6G+9uiZHIknK3Zn5OcIztu6GGw7u0XUzf3AgB8h/dfsZC9eouzoLo3c3+N/cVA==} + /@vue/compiler-core@3.3.11: + resolution: {integrity: sha512-h97/TGWBilnLuRaj58sxNrsUU66fwdRKLOLQ9N/5iNDfp+DZhYH9Obhe0bXxhedl8fjAgpRANpiZfbgWyruQ0w==} dependencies: '@babel/parser': 7.23.5 - '@vue/shared': 3.3.10 + '@vue/shared': 3.3.11 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.3.10: - resolution: {integrity: sha512-NCrqF5fm10GXZIK0GrEAauBqdy+F2LZRt3yNHzrYjpYBuRssQbuPLtSnSNjyR9luHKkWSH8we5LMB3g+4z2HvA==} + /@vue/compiler-dom@3.3.11: + resolution: {integrity: sha512-zoAiUIqSKqAJ81WhfPXYmFGwDRuO+loqLxvXmfUdR5fOitPoUiIeFI9cTTyv9MU5O1+ZZglJVTusWzy+wfk5hw==} dependencies: - '@vue/compiler-core': 3.3.10 - '@vue/shared': 3.3.10 + '@vue/compiler-core': 3.3.11 + '@vue/shared': 3.3.11 dev: true - /@vue/compiler-sfc@3.3.10: - resolution: {integrity: sha512-xpcTe7Rw7QefOTRFFTlcfzozccvjM40dT45JtrE3onGm/jBLZ0JhpKu3jkV7rbDFLeeagR/5RlJ2Y9SvyS0lAg==} + /@vue/compiler-sfc@3.3.11: + resolution: {integrity: sha512-U4iqPlHO0KQeK1mrsxCN0vZzw43/lL8POxgpzcJweopmqtoYy9nljJzWDIQS3EfjiYhfdtdk9Gtgz7MRXnz3GA==} dependencies: '@babel/parser': 7.23.5 - '@vue/compiler-core': 3.3.10 - '@vue/compiler-dom': 3.3.10 - '@vue/compiler-ssr': 3.3.10 - '@vue/reactivity-transform': 3.3.10 - '@vue/shared': 3.3.10 + '@vue/compiler-core': 3.3.11 + '@vue/compiler-dom': 3.3.11 + '@vue/compiler-ssr': 3.3.11 + '@vue/reactivity-transform': 3.3.11 + '@vue/shared': 3.3.11 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.32 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.3.10: - resolution: {integrity: sha512-12iM4jA4GEbskwXMmPcskK5wImc2ohKm408+o9iox3tfN9qua8xL0THIZtoe9OJHnXP4eOWZpgCAAThEveNlqQ==} + /@vue/compiler-ssr@3.3.11: + resolution: {integrity: sha512-Zd66ZwMvndxRTgVPdo+muV4Rv9n9DwQ4SSgWWKWkPFebHQfVYRrVjeygmmDmPewsHyznCNvJ2P2d6iOOhdv8Qg==} dependencies: - '@vue/compiler-dom': 3.3.10 - '@vue/shared': 3.3.10 + '@vue/compiler-dom': 3.3.11 + '@vue/shared': 3.3.11 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity-transform@3.3.10: - resolution: {integrity: sha512-0xBdk+CKHWT+Gev8oZ63Tc0qFfj935YZx+UAynlutnrDZ4diFCVFMWixn65HzjE3S1iJppWOo6Tt1OzASH7VEg==} + /@vue/reactivity-transform@3.3.11: + resolution: {integrity: sha512-fPGjH0wqJo68A0wQ1k158utDq/cRyZNlFoxGwNScE28aUFOKFEnCBsvyD8jHn+0kd0UKVpuGuaZEQ6r9FJRqCg==} dependencies: '@babel/parser': 7.23.5 - '@vue/compiler-core': 3.3.10 - '@vue/shared': 3.3.10 + '@vue/compiler-core': 3.3.11 + '@vue/shared': 3.3.11 estree-walker: 2.0.2 magic-string: 0.30.5 dev: true - /@vue/reactivity@3.3.10: - resolution: {integrity: sha512-H5Z7rOY/JLO+e5a6/FEXaQ1TMuOvY4LDVgT+/+HKubEAgs9qeeZ+NhADSeEtrNQeiKLDuzeKc8v0CUFpB6Pqgw==} + /@vue/reactivity@3.3.11: + resolution: {integrity: sha512-D5tcw091f0nuu+hXq5XANofD0OXnBmaRqMYl5B3fCR+mX+cXJIGNw/VNawBqkjLNWETrFW0i+xH9NvDbTPVh7g==} dependencies: - '@vue/shared': 3.3.10 + '@vue/shared': 3.3.11 dev: true - /@vue/runtime-core@3.3.10: - resolution: {integrity: sha512-DZ0v31oTN4YHX9JEU5VW1LoIVgFovWgIVb30bWn9DG9a7oA415idcwsRNNajqTx8HQJyOaWfRKoyuP2P2TYIag==} + /@vue/runtime-core@3.3.11: + resolution: {integrity: sha512-g9ztHGwEbS5RyWaOpXuyIVFTschclnwhqEbdy5AwGhYOgc7m/q3NFwr50MirZwTTzX55JY8pSkeib9BX04NIpw==} dependencies: - '@vue/reactivity': 3.3.10 - '@vue/shared': 3.3.10 + '@vue/reactivity': 3.3.11 + '@vue/shared': 3.3.11 dev: true - /@vue/runtime-dom@3.3.10: - resolution: {integrity: sha512-c/jKb3ny05KJcYk0j1m7Wbhrxq7mZYr06GhKykDMNRRR9S+/dGT8KpHuNQjv3/8U4JshfkAk6TpecPD3B21Ijw==} + /@vue/runtime-dom@3.3.11: + resolution: {integrity: sha512-OlhtV1PVpbgk+I2zl+Y5rQtDNcCDs12rsRg71XwaA2/Rbllw6mBLMi57VOn8G0AjOJ4Mdb4k56V37+g8ukShpQ==} dependencies: - '@vue/runtime-core': 3.3.10 - '@vue/shared': 3.3.10 + '@vue/runtime-core': 3.3.11 + '@vue/shared': 3.3.11 csstype: 3.1.2 dev: true - /@vue/server-renderer@3.3.10(vue@3.3.10): - resolution: {integrity: sha512-0i6ww3sBV3SKlF3YTjSVqKQ74xialMbjVYGy7cOTi7Imd8ediE7t72SK3qnvhrTAhOvlQhq6Bk6nFPdXxe0sAg==} + /@vue/server-renderer@3.3.11(vue@3.3.11): + resolution: {integrity: sha512-AIWk0VwwxCAm4wqtJyxBylRTXSy1wCLOKbWxHaHiu14wjsNYtiRCSgVuqEPVuDpErOlRdNnuRgipQfXRLjLN5A==} peerDependencies: - vue: 3.3.10 + vue: 3.3.11 dependencies: - '@vue/compiler-ssr': 3.3.10 - '@vue/shared': 3.3.10 - vue: 3.3.10(typescript@4.9.5) + '@vue/compiler-ssr': 3.3.11 + '@vue/shared': 3.3.11 + vue: 3.3.11(typescript@4.9.5) dev: true - /@vue/shared@3.3.10: - resolution: {integrity: sha512-2y3Y2J1a3RhFa0WisHvACJR2ncvWiVHcP8t0Inxo+NKz+8RKO4ZV8eZgCxRgQoA6ITfV12L4E6POOL9HOU5nqw==} + /@vue/shared@3.3.11: + resolution: {integrity: sha512-u2G8ZQ9IhMWTMXaWqZycnK4UthG1fA238CD+DP4Dm4WJi5hdUKKLg0RMRaRpDPNMdkTwIDkp7WtD0Rd9BH9fLw==} dev: true - /@vueuse/core@10.6.1(vue@3.3.10): + /@vueuse/core@10.6.1(vue@3.3.11): resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.6.1 - '@vueuse/shared': 10.6.1(vue@3.3.10) - vue-demi: 0.14.6(vue@3.3.10) + '@vueuse/shared': 10.6.1(vue@3.3.11) + vue-demi: 0.14.6(vue@3.3.11) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/core@10.7.0(vue@3.3.10): + /@vueuse/core@10.7.0(vue@3.3.11): resolution: {integrity: sha512-4EUDESCHtwu44ZWK3Gc/hZUVhVo/ysvdtwocB5vcauSV4B7NiGY5972WnsojB3vRNdxvAt7kzJWE2h9h7C9d5w==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.0 - '@vueuse/shared': 10.7.0(vue@3.3.10) - vue-demi: 0.14.6(vue@3.3.10) + '@vueuse/shared': 10.7.0(vue@3.3.11) + vue-demi: 0.14.6(vue@3.3.11) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.10): + /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.11): resolution: {integrity: sha512-mPDupuofMJ4DPmtX/FfP1MajmWRzYDv8WSaTCo8LQ5kFznjWgmUQ16ApjYqgMquqffNY6+IRMdMgosLDRZOSZA==} peerDependencies: async-validator: '*' @@ -1681,10 +1681,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.6.1(vue@3.3.10) - '@vueuse/shared': 10.6.1(vue@3.3.10) + '@vueuse/core': 10.6.1(vue@3.3.11) + '@vueuse/shared': 10.6.1(vue@3.3.11) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.3.10) + vue-demi: 0.14.6(vue@3.3.11) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1698,19 +1698,19 @@ packages: resolution: {integrity: sha512-GlaH7tKP2iBCZ3bHNZ6b0cl9g0CJK8lttkBNUX156gWvNYhTKEtbweWLm9rxCPIiwzYcr/5xML6T8ZUEt+DkvA==} dev: true - /@vueuse/shared@10.6.1(vue@3.3.10): + /@vueuse/shared@10.6.1(vue@3.3.11): resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} dependencies: - vue-demi: 0.14.6(vue@3.3.10) + vue-demi: 0.14.6(vue@3.3.11) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/shared@10.7.0(vue@3.3.10): + /@vueuse/shared@10.7.0(vue@3.3.11): resolution: {integrity: sha512-kc00uV6CiaTdc3i1CDC4a3lBxzaBE9AgYNtFN87B5OOscqeWElj/uza8qVDmk7/U8JbqoONLbtqiLJ5LGRuqlw==} dependencies: - vue-demi: 0.14.6(vue@3.3.10) + vue-demi: 0.14.6(vue@3.3.11) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2554,8 +2554,8 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@13.6.0: - resolution: {integrity: sha512-quIsnFmtj4dBUEJYU4OH0H12bABJpSujvWexC24Ju1gTlKMJbeT6tTO0vh7WNfiBPPjoIXLN+OUqVtiKFs6SGw==} + /cypress@13.6.1: + resolution: {integrity: sha512-k1Wl5PQcA/4UoTffYKKaxA0FJKwg8yenYNYRzLt11CUR0Kln+h7Udne6mdU1cUIdXBDTVZWtmiUjzqGs7/pEpw==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -2948,34 +2948,34 @@ packages: '@esbuild/win32-x64': 0.18.20 dev: true - /esbuild@0.19.8: - resolution: {integrity: sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w==} + /esbuild@0.19.9: + resolution: {integrity: sha512-U9CHtKSy+EpPsEBa+/A2gMs/h3ylBC0H0KSqIg7tpztHerLi6nrrcoUJAkNCEPumx8yJ+Byic4BVwHgRbN0TBg==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.19.8 - '@esbuild/android-arm64': 0.19.8 - '@esbuild/android-x64': 0.19.8 - '@esbuild/darwin-arm64': 0.19.8 - '@esbuild/darwin-x64': 0.19.8 - '@esbuild/freebsd-arm64': 0.19.8 - '@esbuild/freebsd-x64': 0.19.8 - '@esbuild/linux-arm': 0.19.8 - '@esbuild/linux-arm64': 0.19.8 - '@esbuild/linux-ia32': 0.19.8 - '@esbuild/linux-loong64': 0.19.8 - '@esbuild/linux-mips64el': 0.19.8 - '@esbuild/linux-ppc64': 0.19.8 - '@esbuild/linux-riscv64': 0.19.8 - '@esbuild/linux-s390x': 0.19.8 - '@esbuild/linux-x64': 0.19.8 - '@esbuild/netbsd-x64': 0.19.8 - '@esbuild/openbsd-x64': 0.19.8 - '@esbuild/sunos-x64': 0.19.8 - '@esbuild/win32-arm64': 0.19.8 - '@esbuild/win32-ia32': 0.19.8 - '@esbuild/win32-x64': 0.19.8 + '@esbuild/android-arm': 0.19.9 + '@esbuild/android-arm64': 0.19.9 + '@esbuild/android-x64': 0.19.9 + '@esbuild/darwin-arm64': 0.19.9 + '@esbuild/darwin-x64': 0.19.9 + '@esbuild/freebsd-arm64': 0.19.9 + '@esbuild/freebsd-x64': 0.19.9 + '@esbuild/linux-arm': 0.19.9 + '@esbuild/linux-arm64': 0.19.9 + '@esbuild/linux-ia32': 0.19.9 + '@esbuild/linux-loong64': 0.19.9 + '@esbuild/linux-mips64el': 0.19.9 + '@esbuild/linux-ppc64': 0.19.9 + '@esbuild/linux-riscv64': 0.19.9 + '@esbuild/linux-s390x': 0.19.9 + '@esbuild/linux-x64': 0.19.9 + '@esbuild/netbsd-x64': 0.19.9 + '@esbuild/openbsd-x64': 0.19.9 + '@esbuild/sunos-x64': 0.19.9 + '@esbuild/win32-arm64': 0.19.9 + '@esbuild/win32-ia32': 0.19.9 + '@esbuild/win32-x64': 0.19.9 dev: true /escalade@3.1.1: @@ -3100,9 +3100,9 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.10(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): - resolution: {integrity: sha512-08lj4rdhZHYyHk+Py2nJ7SlE6arP8GNfGXl9jVqhe9s5JoZIGiBpIkLGX+VNBiB6vXTn56H6Ant7Koc6XzRjtQ==} - engines: {node: 14.x || >= 16} + /eslint-plugin-vitest@0.3.15(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): + resolution: {integrity: sha512-ZUUd9ARKR3p0W7zoWg0irmQW9aM+SlJYZOoFOBemmgwQIHLxtdRLodQGP48nYf8jLdCGFDQqPyaltQQKsa9UMw==} + engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': '*' eslint: '>=8.0.0' @@ -3114,7 +3114,7 @@ packages: optional: true dependencies: '@typescript-eslint/eslint-plugin': 6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.11.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) eslint: 8.55.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: @@ -6071,7 +6071,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.10.3): + /vite-node@0.34.6(@types/node@20.10.4): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6081,7 +6081,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.1(@types/node@20.10.3) + vite: 4.5.1(@types/node@20.10.4) transitivePeerDependencies: - '@types/node' - less @@ -6093,7 +6093,7 @@ packages: - terser dev: true - /vite@4.5.1(@types/node@20.10.3): + /vite@4.5.1(@types/node@20.10.4): resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6121,7 +6121,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.3 + '@types/node': 20.10.4 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6129,23 +6129,23 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.3)(search-insights@2.11.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.4)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) - '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.10) + '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.11) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.0(vue@3.3.10) - '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.10) + '@vueuse/core': 10.7.0(vue@3.3.11) + '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.11) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.2.0 shiki: 0.14.5 - vite: 4.5.1(@types/node@20.10.3) - vue: 3.3.10(typescript@4.9.5) + vite: 4.5.1(@types/node@20.10.4) + vue: 3.3.11(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6207,7 +6207,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.10.3 + '@types/node': 20.10.4 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6227,8 +6227,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.1(@types/node@20.10.3) - vite-node: 0.34.6(@types/node@20.10.3) + vite: 4.5.1(@types/node@20.10.4) + vite-node: 0.34.6(@types/node@20.10.4) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6248,7 +6248,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.3.10): + /vue-demi@0.14.6(vue@3.3.11): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6260,22 +6260,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.3.10(typescript@4.9.5) + vue: 3.3.11(typescript@4.9.5) dev: true - /vue@3.3.10(typescript@4.9.5): - resolution: {integrity: sha512-zg6SIXZdTBwiqCw/1p+m04VyHjLfwtjwz8N57sPaBhEex31ND0RYECVOC1YrRwMRmxFf5T1dabl6SGUbMKKuVw==} + /vue@3.3.11(typescript@4.9.5): + resolution: {integrity: sha512-d4oBctG92CRO1cQfVBZp6WJAs0n8AK4Xf5fNjQCBeKCvMI1efGQ5E3Alt1slFJS9fZuPcFoiAiqFvQlv1X7t/w==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.3.10 - '@vue/compiler-sfc': 3.3.10 - '@vue/runtime-dom': 3.3.10 - '@vue/server-renderer': 3.3.10(vue@3.3.10) - '@vue/shared': 3.3.10 + '@vue/compiler-dom': 3.3.11 + '@vue/compiler-sfc': 3.3.11 + '@vue/runtime-dom': 3.3.11 + '@vue/server-renderer': 3.3.11(vue@3.3.11) + '@vue/shared': 3.3.11 typescript: 4.9.5 dev: true From 1631115a6a9846c50473fe60ea5bdb7ce9d04084 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 11 Dec 2023 19:42:59 +0100 Subject: [PATCH 39/98] infra(tsconfig): noImplicitAny (#2562) --- .prettierrc.d.ts | 4 ++++ scripts/apidoc/typedoc.ts | 3 ++- scripts/generate-locales.ts | 22 +++++++++------------- src/internal/keys.ts | 13 +++++++++++++ test/all-functional.spec.ts | 10 +++++----- test/faker.spec.ts | 3 ++- test/locale-imports.spec.ts | 9 +++++---- test/modules/helpers.spec.ts | 8 +++++--- test/modules/image.spec.ts | 2 +- test/simple-faker.spec.ts | 7 +++---- tsconfig.build.json | 1 - tsconfig.json | 3 --- 12 files changed, 49 insertions(+), 36 deletions(-) create mode 100644 .prettierrc.d.ts create mode 100644 src/internal/keys.ts diff --git a/.prettierrc.d.ts b/.prettierrc.d.ts new file mode 100644 index 00000000000..806a7063dff --- /dev/null +++ b/.prettierrc.d.ts @@ -0,0 +1,4 @@ +import type { Options } from 'prettier'; + +declare const options: Options; +export = options; diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index a795efa27c2..1e548c14906 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -88,7 +88,8 @@ export function selectApiModules( .getChildrenByKind(ReflectionKind.Class) .filter( (module) => - faker[extractModuleFieldName(module)] != null || includeTestModules + faker[extractModuleFieldName(module) as keyof typeof faker] != null || + includeTestModules ); } diff --git a/scripts/generate-locales.ts b/scripts/generate-locales.ts index ebc06670124..4228cc91b3b 100644 --- a/scripts/generate-locales.ts +++ b/scripts/generate-locales.ts @@ -23,10 +23,9 @@ import { } from 'node:fs'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import type { Options } from 'prettier'; -import { format } from 'prettier'; -import options from '../.prettierrc.js'; import type { LocaleDefinition, MetadataDefinition } from '../src/definitions'; +import { keys } from '../src/internal/keys'; +import { formatMarkdown, formatTypescript } from './apidoc/format'; // Constants @@ -78,9 +77,6 @@ const definitionsTypes: DefinitionType = { word: 'WordDefinition', }; -const prettierTsOptions: Options = { ...options, parser: 'typescript' }; -const prettierMdOptions: Options = { ...options, parser: 'markdown' }; - const scriptCommand = 'pnpm run generate:locales'; const autoGeneratedCommentHeader = `/* @@ -154,7 +150,7 @@ async function generateLocaleFile(locale: string): Promise { }); `; - content = await format(content, prettierTsOptions); + content = await formatTypescript(content); writeFileSync(resolve(pathLocale, `${locale}.ts`), content); } @@ -195,7 +191,7 @@ async function generateLocalesIndexFile( writeFileSync( resolve(path, 'index.ts'), - await format(content.join('\n'), prettierTsOptions) + await formatTypescript(content.join('\n')) ); } @@ -301,7 +297,7 @@ async function normalizeLocaleFile(filePath: string, definitionKey: string) { } const result = {} as T; - for (const key of Object.keys(localeData)) { + for (const key of keys(localeData)) { result[key] = normalizeDataRecursive(localeData[key]); } @@ -367,7 +363,7 @@ async function normalizeLocaleFile(filePath: string, definitionKey: string) { // In the long term we should probably define a whether we want those in the files at all. const newContent = fileContentPreData + JSON.stringify(localeData); - writeFileSync(filePath, await format(newContent, prettierTsOptions)); + writeFileSync(filePath, await formatTypescript(newContent)); } // Start of actual logic @@ -444,7 +440,7 @@ async function main(): Promise { } as const; `; - localeIndexContent = await format(localeIndexContent, prettierTsOptions); + localeIndexContent = await formatTypescript(localeIndexContent); writeFileSync(pathLocaleIndex, localeIndexContent); // src/locales/index.ts @@ -455,12 +451,12 @@ async function main(): Promise { ${localesIndexExports} `; - localesIndexContent = await format(localesIndexContent, prettierTsOptions); + localesIndexContent = await formatTypescript(localesIndexContent); writeFileSync(pathLocalesIndex, localesIndexContent); // docs/guide/localization.md - localizationLocales = await format(localizationLocales, prettierMdOptions); + localizationLocales = await formatMarkdown(localizationLocales); let localizationContent = readFileSync(pathDocsGuideLocalization, 'utf8'); localizationContent = localizationContent.replace( diff --git a/src/internal/keys.ts b/src/internal/keys.ts new file mode 100644 index 00000000000..d67d32e7d82 --- /dev/null +++ b/src/internal/keys.ts @@ -0,0 +1,13 @@ +/** + * Specialized version of `Object.keys()` which preserves the type information of the keys. + * + * Please note that the type information might be inaccurate for subtypes of the argument type + * and thus should only be used to cover the property access of the object. + * + * @internal + * + * @param obj The object to get the keys of. + */ +export function keys(obj: T): Array { + return Object.keys(obj) as Array; +} diff --git a/test/all-functional.spec.ts b/test/all-functional.spec.ts index d4b1308ac74..a883da7d2a4 100644 --- a/test/all-functional.spec.ts +++ b/test/all-functional.spec.ts @@ -1,6 +1,7 @@ import { describe, expect, it } from 'vitest'; import type { allLocales, Faker, RandomModule } from '../src'; import { allFakers, fakerEN } from '../src'; +import { keys } from '../src/internal/keys'; const IGNORED_MODULES = new Set([ 'rawDefinitions', @@ -35,11 +36,7 @@ function isTestableModule(moduleName: string): moduleName is keyof Faker { } function getMethodNamesOf(module: object): string[] { - return Object.keys(module).filter(isMethodOf(module)); -} - -function isMethodOf(module: object): (method: string) => boolean { - return (method: string) => typeof module[method] === 'function'; + return keys(module).filter((method) => typeof module[method] === 'function'); } type SkipConfig = Partial< @@ -81,6 +78,7 @@ function isWorkingLocaleForMethod( method: string, locale: string ): boolean { + // @ts-expect-error: We don't have types for the dynamic access const broken = BROKEN_LOCALE_METHODS[module]?.[method] ?? []; return broken !== '*' && !broken.includes(locale); } @@ -104,6 +102,7 @@ describe('BROKEN_LOCALE_METHODS test', () => { it('should not contain obsolete configuration (methods)', () => { const existingMethods = modules[module]; const configuredMethods = Object.keys( + // @ts-expect-error: We don't have types for the dynamic access // eslint-disable-next-line @typescript-eslint/no-unsafe-argument BROKEN_LOCALE_METHODS[module] ?? {} ); @@ -129,6 +128,7 @@ describe('functional tests', () => { const testAssertion = () => { // TODO @ST-DDT 2022-03-28: Use random seed once there are no more failures faker.seed(1); + // @ts-expect-error: We don't have types for the dynamic access const result = faker[module][meth](); if (meth === 'boolean') { diff --git a/test/faker.spec.ts b/test/faker.spec.ts index a098d89856e..bf1bfafc4dc 100644 --- a/test/faker.spec.ts +++ b/test/faker.spec.ts @@ -2,6 +2,7 @@ import type { SpyInstance } from 'vitest'; import { describe, expect, it, vi } from 'vitest'; import { faker, Faker } from '../src'; import { FakerError } from '../src/errors/faker-error'; +import { keys } from '../src/internal/keys'; describe('faker', () => { it('should throw error if no locales passed', () => { @@ -13,7 +14,7 @@ describe('faker', () => { }); it('should not log anything on startup', () => { - const spies: SpyInstance[] = Object.keys(console) + const spies: SpyInstance[] = keys(console) .filter((key) => typeof console[key] === 'function') .map((methodName) => vi.spyOn(console, methodName as keyof typeof console) diff --git a/test/locale-imports.spec.ts b/test/locale-imports.spec.ts index 999a7223437..1d7dc4751f1 100644 --- a/test/locale-imports.spec.ts +++ b/test/locale-imports.spec.ts @@ -1,8 +1,9 @@ import { describe, expect, it } from 'vitest'; import type { Faker } from '../src'; import { allLocales } from '../src'; +import { keys } from '../src/internal/keys'; -describe.each(Object.keys(allLocales))('locale imports', (locale) => { +describe.each(keys(allLocales))('locale imports', (locale) => { it(`should be possible to directly require('@faker-js/faker/locale/${locale}')`, () => { // eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module const { faker } = require(`../dist/cjs/locale/${locale}`) as { @@ -12,7 +13,7 @@ describe.each(Object.keys(allLocales))('locale imports', (locale) => { expect(faker).toBeDefined(); expect(faker.string.alpha()).toBeTypeOf('string'); expect(faker.definitions.metadata.title).toBe( - allLocales[locale].metadata.title + allLocales[locale].metadata?.title ); }); @@ -24,12 +25,12 @@ describe.each(Object.keys(allLocales))('locale imports', (locale) => { expect(faker).toBeDefined(); expect(faker.string.alpha()).toBeTypeOf('string'); expect(faker.definitions.metadata.title).toBe( - allLocales[locale].metadata.title + allLocales[locale].metadata?.title ); }); it('should have complete metadata values', () => { - const metadata = allLocales[locale].metadata; + const metadata = allLocales[locale].metadata ?? {}; expect(metadata.title).toBeTypeOf('string'); expect(metadata.code).toBeTypeOf('string'); expect(metadata.code).toEqual(locale); diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 766d06502c4..1a1db9c5ae2 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1,6 +1,7 @@ import { describe, expect, it } from 'vitest'; import { faker, FakerError } from '../../src'; import { luhnCheck } from '../../src/modules/helpers/luhn-check'; +import type { RecordKey } from '../../src/modules/helpers/unique'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; import './../vitest-extensions'; @@ -1295,8 +1296,9 @@ Try adjusting maxTime or maxRetries parameters for faker.helpers.unique().`) const maxTime = 49; const maxRetries = 49; const currentIterations = 0; - const exclude = []; - const compare = (obj, key) => (obj[key] === undefined ? -1 : 0); + const exclude: string[] = []; + const compare = (obj: Record, key: RecordKey) => + obj[key] === undefined ? -1 : 0; const options = { startTime, @@ -1318,7 +1320,7 @@ Try adjusting maxTime or maxRetries parameters for faker.helpers.unique().`) }); it('should be possible to pass a user-specific store', () => { - const store = {}; + const store: Record = {}; const method = () => 'with conflict: 0'; diff --git a/test/modules/image.spec.ts b/test/modules/image.spec.ts index 938799efc72..004905e7d7f 100644 --- a/test/modules/image.spec.ts +++ b/test/modules/image.spec.ts @@ -257,7 +257,7 @@ describe('image', () => { 'objects', 'people', 'technology', - ]; + ] satisfies Array; describe.each(categories)(`%s()`, (category) => { it(`should return a random ${category} image url`, () => { diff --git a/test/simple-faker.spec.ts b/test/simple-faker.spec.ts index 899bcafedfa..ec1247cf474 100644 --- a/test/simple-faker.spec.ts +++ b/test/simple-faker.spec.ts @@ -1,14 +1,13 @@ import type { SpyInstance } from 'vitest'; import { describe, expect, it, vi } from 'vitest'; import { SimpleFaker, simpleFaker } from '../src'; +import { keys } from '../src/internal/keys'; describe('simpleFaker', () => { it('should not log anything on startup', () => { - const spies: SpyInstance[] = Object.keys(console) + const spies: SpyInstance[] = keys(console) .filter((key) => typeof console[key] === 'function') - .map((methodName) => - vi.spyOn(console, methodName as keyof typeof console) - ); + .map((methodName) => vi.spyOn(console, methodName)); // eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module -- Using import() requires types being build but the CI / TS-Check runs without them. require('..').simpleFaker; diff --git a/tsconfig.build.json b/tsconfig.build.json index aa1bfb29830..ce2dcfba1a7 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -8,7 +8,6 @@ "outDir": "dist/types", // This negates what is set in the extended tsconfig.json - "noImplicitAny": true, "skipLibCheck": false, "allowSyntheticDefaultImports": false, "resolveJsonModule": false diff --git a/tsconfig.json b/tsconfig.json index da5cd4e6926..a290fc07b56 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,9 +8,6 @@ "declaration": true, "stripInternal": true, - // We need to disable these for now, and need to tackle them in another PR - "noImplicitAny": false, - // These are configs specifically for !build and have to be reverted in the tsconfig.build.json "skipLibCheck": true, "allowSyntheticDefaultImports": true, From 8013fa0404ceea2636544606beba8c996add7d57 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Tue, 12 Dec 2023 17:50:24 -0500 Subject: [PATCH 40/98] docs: clarify that location.state refers to ISO 3166-2 (#2574) --- src/modules/location/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index e7bde32e1a6..6d15741dc7e 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -372,6 +372,9 @@ export class LocationModule extends ModuleBase { /** * Returns a random localized state, or other equivalent first-level administrative entity for the locale's country such as a province or region. + * Generally, these are the ISO 3166-2 subdivisions for a country. + * If a locale doesn't correspond to one specific country, the method may return ISO 3166-2 subdivisions from one or more countries that uses that language. For example, the `ar` locale includes subdivisions from Arabic-speaking countries, such as Tunisia, Algeria, Syria, Lebanon, etc. + * For historical compatibility reasons, the default `en` locale only includes states in the United States (identical to `en_US`). However, you can use other English locales, such as `en_IN`, `en_GB`, and `en_AU`, if needed. * * @param options An options object. * @param options.abbreviated If true this will return abbreviated first-level administrative entity names. From 8996a7430b9bdc3a86cc2d972c4f743a301cc5c6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:02:18 +0100 Subject: [PATCH 41/98] chore(deps): update typescript-eslint to ~6.14.0 (#2583) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 109 ++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 87 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 3c75f323e4b..21ad8b5f711 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", - "@typescript-eslint/eslint-plugin": "~6.13.2", - "@typescript-eslint/parser": "~6.13.2", + "@typescript-eslint/eslint-plugin": "~6.14.0", + "@typescript-eslint/parser": "~6.14.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 425285261d0..18156cbf811 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.7 version: 13.11.7 '@typescript-eslint/eslint-plugin': - specifier: ~6.13.2 - version: 6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5) + specifier: ~6.14.0 + version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.13.2 - version: 6.13.2(eslint@8.55.0)(typescript@4.9.5) + specifier: ~6.14.0 + version: 6.14.0(eslint@8.55.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.55.0) eslint-plugin-vitest: specifier: ~0.3.15 - version: 0.3.15(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.15(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1240,8 +1240,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==} + /@typescript-eslint/eslint-plugin@6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1252,11 +1252,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.13.2(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.13.2 - '@typescript-eslint/type-utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.13.2 + '@typescript-eslint/parser': 6.14.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.14.0 + '@typescript-eslint/type-utils': 6.14.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.14.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.14.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.55.0 graphemer: 1.4.0 @@ -1269,8 +1269,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.13.2(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==} + /@typescript-eslint/parser@6.14.0(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1279,10 +1279,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.13.2 - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/typescript-estree': 6.13.2(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.13.2 + '@typescript-eslint/scope-manager': 6.14.0 + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.14.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.55.0 typescript: 4.9.5 @@ -1306,8 +1306,16 @@ packages: '@typescript-eslint/visitor-keys': 6.13.2 dev: true - /@typescript-eslint/type-utils@6.13.2(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==} + /@typescript-eslint/scope-manager@6.14.0: + resolution: {integrity: sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/visitor-keys': 6.14.0 + dev: true + + /@typescript-eslint/type-utils@6.14.0(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1316,8 +1324,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.13.2(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.14.0(eslint@8.55.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.55.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1336,6 +1344,11 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true + /@typescript-eslint/types@6.14.0: + resolution: {integrity: sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5): resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1378,6 +1391,27 @@ packages: - supports-color dev: true + /@typescript-eslint/typescript-estree@6.14.0(typescript@4.9.5): + resolution: {integrity: sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/visitor-keys': 6.14.0 + debug: 4.3.4(supports-color@8.1.1) + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/utils@6.11.0(eslint@8.55.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1416,6 +1450,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.14.0(eslint@8.55.0)(typescript@4.9.5): + resolution: {integrity: sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.6 + '@typescript-eslint/scope-manager': 6.14.0 + '@typescript-eslint/types': 6.14.0 + '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) + eslint: 8.55.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@6.11.0: resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1432,6 +1485,14 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@typescript-eslint/visitor-keys@6.14.0: + resolution: {integrity: sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.14.0 + eslint-visitor-keys: 3.4.3 + dev: true + /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true @@ -3100,7 +3161,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.15(@typescript-eslint/eslint-plugin@6.13.2)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.15(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-ZUUd9ARKR3p0W7zoWg0irmQW9aM+SlJYZOoFOBemmgwQIHLxtdRLodQGP48nYf8jLdCGFDQqPyaltQQKsa9UMw==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3113,7 +3174,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.55.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) eslint: 8.55.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 3649b89e928873d26d2791e1bf7f4979af083e9b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:08:11 +0100 Subject: [PATCH 42/98] chore(deps): update devdependencies (#2582) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 14 +- pnpm-lock.yaml | 526 ++++++++++++++++++++++--------------------------- 2 files changed, 248 insertions(+), 292 deletions(-) diff --git a/package.json b/package.json index 21ad8b5f711..491e8899087 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@eslint-types/typescript-eslint": "~6.12.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.10.4", + "@types/node": "~20.10.5", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", @@ -106,16 +106,16 @@ "@vueuse/core": "~10.7.0", "conventional-changelog-cli": "~4.1.0", "cypress": "~13.6.1", - "esbuild": "~0.19.9", - "eslint": "~8.55.0", + "esbuild": "~0.19.10", + "eslint": "~8.56.0", "eslint-config-prettier": "~9.1.0", "eslint-define-config": "~2.0.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", - "eslint-plugin-jsdoc": "~46.9.0", - "eslint-plugin-prettier": "~5.0.1", + "eslint-plugin-jsdoc": "~46.9.1", + "eslint-plugin-prettier": "~5.1.0", "eslint-plugin-unicorn": "~49.0.0", - "eslint-plugin-vitest": "~0.3.15", + "eslint-plugin-vitest": "~0.3.18", "glob": "~10.3.10", "npm-run-all": "~4.1.5", "prettier": "3.1.1", @@ -131,7 +131,7 @@ "vite": "~4.5.1", "vitepress": "1.0.0-beta.7", "vitest": "~0.34.6", - "vue": "~3.3.11" + "vue": "~3.3.13" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18156cbf811..e2b25ee225e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.10.4 - version: 20.10.4 + specifier: ~20.10.5 + version: 20.10.5 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -39,10 +39,10 @@ devDependencies: version: 13.11.7 '@typescript-eslint/eslint-plugin': specifier: ~6.14.0 - version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.55.0)(typescript@4.9.5) + version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/parser': specifier: ~6.14.0 - version: 6.14.0(eslint@8.55.0)(typescript@4.9.5) + version: 6.14.0(eslint@8.56.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -51,7 +51,7 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.7.0 - version: 10.7.0(vue@3.3.11) + version: 10.7.0(vue@3.3.13) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 @@ -59,35 +59,35 @@ devDependencies: specifier: ~13.6.1 version: 13.6.1 esbuild: - specifier: ~0.19.9 - version: 0.19.9 + specifier: ~0.19.10 + version: 0.19.10 eslint: - specifier: ~8.55.0 - version: 8.55.0 + specifier: ~8.56.0 + version: 8.56.0 eslint-config-prettier: specifier: ~9.1.0 - version: 9.1.0(eslint@8.55.0) + version: 9.1.0(eslint@8.56.0) eslint-define-config: specifier: ~2.0.0 version: 2.0.0 eslint-gitignore: specifier: ~0.1.0 - version: 0.1.0(eslint@8.55.0) + version: 0.1.0(eslint@8.56.0) eslint-plugin-deprecation: specifier: ~2.0.0 - version: 2.0.0(eslint@8.55.0)(typescript@4.9.5) + version: 2.0.0(eslint@8.56.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~46.9.0 - version: 46.9.0(eslint@8.55.0) + specifier: ~46.9.1 + version: 46.9.1(eslint@8.56.0) eslint-plugin-prettier: - specifier: ~5.0.1 - version: 5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.1) + specifier: ~5.1.0 + version: 5.1.0(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1) eslint-plugin-unicorn: specifier: ~49.0.0 - version: 49.0.0(eslint@8.55.0) + version: 49.0.0(eslint@8.56.0) eslint-plugin-vitest: - specifier: ~0.3.15 - version: 0.3.15(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6) + specifier: ~0.3.18 + version: 0.3.18(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -126,16 +126,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.1 - version: 4.5.1(@types/node@20.10.4) + version: 4.5.1(@types/node@20.10.5) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.4)(search-insights@2.11.0)(typescript@4.9.5) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.5)(search-insights@2.11.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.3.11 - version: 3.3.11(typescript@4.9.5) + specifier: ~3.3.13 + version: 3.3.13(typescript@4.9.5) packages: @@ -477,6 +477,15 @@ packages: jsdoc-type-pratt-parser: 4.0.0 dev: true + /@esbuild/aix-ppc64@0.19.10: + resolution: {integrity: sha512-Q+mk96KJ+FZ30h9fsJl+67IjNJm3x2eX+GBWGmocAKgzp27cowCOOqSdscX80s0SpdFXZnIv/+1xD1EctFx96Q==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-arm64@0.18.20: resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} engines: {node: '>=12'} @@ -486,8 +495,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.9: - resolution: {integrity: sha512-q4cR+6ZD0938R19MyEW3jEsMzbb/1rulLXiNAJQADD/XYp7pT+rOS5JGxvpRW8dFDEfjW4wLgC/3FXIw4zYglQ==} + /@esbuild/android-arm64@0.19.10: + resolution: {integrity: sha512-1X4CClKhDgC3by7k8aOWZeBXQX8dHT5QAMCAQDArCLaYfkppoARvh0fit3X2Qs+MXDngKcHv6XXyQCpY0hkK1Q==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -504,8 +513,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.9: - resolution: {integrity: sha512-jkYjjq7SdsWuNI6b5quymW0oC83NN5FdRPuCbs9HZ02mfVdAP8B8eeqLSYU3gb6OJEaY5CQabtTFbqBf26H3GA==} + /@esbuild/android-arm@0.19.10: + resolution: {integrity: sha512-7W0bK7qfkw1fc2viBfrtAEkDKHatYfHzr/jKAHNr9BvkYDXPcC6bodtm8AyLJNNuqClLNaeTLuwURt4PRT9d7w==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -522,8 +531,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.9: - resolution: {integrity: sha512-KOqoPntWAH6ZxDwx1D6mRntIgZh9KodzgNOy5Ebt9ghzffOk9X2c1sPwtM9P+0eXbefnDhqYfkh5PLP5ULtWFA==} + /@esbuild/android-x64@0.19.10: + resolution: {integrity: sha512-O/nO/g+/7NlitUxETkUv/IvADKuZXyH4BHf/g/7laqKC4i/7whLpB0gvpPc2zpF0q9Q6FXS3TS75QHac9MvVWw==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -540,8 +549,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.9: - resolution: {integrity: sha512-KBJ9S0AFyLVx2E5D8W0vExqRW01WqRtczUZ8NRu+Pi+87opZn5tL4Y0xT0mA4FtHctd0ZgwNoN639fUUGlNIWw==} + /@esbuild/darwin-arm64@0.19.10: + resolution: {integrity: sha512-YSRRs2zOpwypck+6GL3wGXx2gNP7DXzetmo5pHXLrY/VIMsS59yKfjPizQ4lLt5vEI80M41gjm2BxrGZ5U+VMA==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -558,8 +567,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.9: - resolution: {integrity: sha512-vE0VotmNTQaTdX0Q9dOHmMTao6ObjyPm58CHZr1UK7qpNleQyxlFlNCaHsHx6Uqv86VgPmR4o2wdNq3dP1qyDQ==} + /@esbuild/darwin-x64@0.19.10: + resolution: {integrity: sha512-alfGtT+IEICKtNE54hbvPg13xGBe4GkVxyGWtzr+yHO7HIiRJppPDhOKq3zstTcVf8msXb/t4eavW3jCDpMSmA==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -576,8 +585,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.9: - resolution: {integrity: sha512-uFQyd/o1IjiEk3rUHSwUKkqZwqdvuD8GevWF065eqgYfexcVkxh+IJgwTaGZVu59XczZGcN/YMh9uF1fWD8j1g==} + /@esbuild/freebsd-arm64@0.19.10: + resolution: {integrity: sha512-dMtk1wc7FSH8CCkE854GyGuNKCewlh+7heYP/sclpOG6Cectzk14qdUIY5CrKDbkA/OczXq9WesqnPl09mj5dg==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -594,8 +603,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.9: - resolution: {integrity: sha512-WMLgWAtkdTbTu1AWacY7uoj/YtHthgqrqhf1OaEWnZb7PQgpt8eaA/F3LkV0E6K/Lc0cUr/uaVP/49iE4M4asA==} + /@esbuild/freebsd-x64@0.19.10: + resolution: {integrity: sha512-G5UPPspryHu1T3uX8WiOEUa6q6OlQh6gNl4CO4Iw5PS+Kg5bVggVFehzXBJY6X6RSOMS8iXDv2330VzaObm4Ag==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -612,8 +621,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.9: - resolution: {integrity: sha512-PiPblfe1BjK7WDAKR1Cr9O7VVPqVNpwFcPWgfn4xu0eMemzRp442hXyzF/fSwgrufI66FpHOEJk0yYdPInsmyQ==} + /@esbuild/linux-arm64@0.19.10: + resolution: {integrity: sha512-QxaouHWZ+2KWEj7cGJmvTIHVALfhpGxo3WLmlYfJ+dA5fJB6lDEIg+oe/0//FuyVHuS3l79/wyBxbHr0NgtxJQ==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -630,8 +639,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.9: - resolution: {integrity: sha512-C/ChPohUYoyUaqn1h17m/6yt6OB14hbXvT8EgM1ZWaiiTYz7nWZR0SYmMnB5BzQA4GXl3BgBO1l8MYqL/He3qw==} + /@esbuild/linux-arm@0.19.10: + resolution: {integrity: sha512-j6gUW5aAaPgD416Hk9FHxn27On28H4eVI9rJ4az7oCGTFW48+LcgNDBN+9f8rKZz7EEowo889CPKyeaD0iw9Kg==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -648,8 +657,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.9: - resolution: {integrity: sha512-f37i/0zE0MjDxijkPSQw1CO/7C27Eojqb+r3BbHVxMLkj8GCa78TrBZzvPyA/FNLUMzP3eyHCVkAopkKVja+6Q==} + /@esbuild/linux-ia32@0.19.10: + resolution: {integrity: sha512-4ub1YwXxYjj9h1UIZs2hYbnTZBtenPw5NfXCRgEkGb0b6OJ2gpkMvDqRDYIDRjRdWSe/TBiZltm3Y3Q8SN1xNg==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -666,8 +675,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.9: - resolution: {integrity: sha512-t6mN147pUIf3t6wUt3FeumoOTPfmv9Cc6DQlsVBpB7eCpLOqQDyWBP1ymXn1lDw4fNUSb/gBcKAmvTP49oIkaA==} + /@esbuild/linux-loong64@0.19.10: + resolution: {integrity: sha512-lo3I9k+mbEKoxtoIbM0yC/MZ1i2wM0cIeOejlVdZ3D86LAcFXFRdeuZmh91QJvUTW51bOK5W2BznGNIl4+mDaA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -684,8 +693,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.9: - resolution: {integrity: sha512-jg9fujJTNTQBuDXdmAg1eeJUL4Jds7BklOTkkH80ZgQIoCTdQrDaHYgbFZyeTq8zbY+axgptncko3v9p5hLZtw==} + /@esbuild/linux-mips64el@0.19.10: + resolution: {integrity: sha512-J4gH3zhHNbdZN0Bcr1QUGVNkHTdpijgx5VMxeetSk6ntdt+vR1DqGmHxQYHRmNb77tP6GVvD+K0NyO4xjd7y4A==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -702,8 +711,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.9: - resolution: {integrity: sha512-tkV0xUX0pUUgY4ha7z5BbDS85uI7ABw3V1d0RNTii7E9lbmV8Z37Pup2tsLV46SQWzjOeyDi1Q7Wx2+QM8WaCQ==} + /@esbuild/linux-ppc64@0.19.10: + resolution: {integrity: sha512-tgT/7u+QhV6ge8wFMzaklOY7KqiyitgT1AUHMApau32ZlvTB/+efeCtMk4eXS+uEymYK249JsoiklZN64xt6oQ==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -720,8 +729,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.9: - resolution: {integrity: sha512-DfLp8dj91cufgPZDXr9p3FoR++m3ZJ6uIXsXrIvJdOjXVREtXuQCjfMfvmc3LScAVmLjcfloyVtpn43D56JFHg==} + /@esbuild/linux-riscv64@0.19.10: + resolution: {integrity: sha512-0f/spw0PfBMZBNqtKe5FLzBDGo0SKZKvMl5PHYQr3+eiSscfJ96XEknCe+JoOayybWUFQbcJTrk946i3j9uYZA==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -738,8 +747,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.9: - resolution: {integrity: sha512-zHbglfEdC88KMgCWpOl/zc6dDYJvWGLiUtmPRsr1OgCViu3z5GncvNVdf+6/56O2Ca8jUU+t1BW261V6kp8qdw==} + /@esbuild/linux-s390x@0.19.10: + resolution: {integrity: sha512-pZFe0OeskMHzHa9U38g+z8Yx5FNCLFtUnJtQMpwhS+r4S566aK2ci3t4NCP4tjt6d5j5uo4h7tExZMjeKoehAA==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -756,8 +765,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.9: - resolution: {integrity: sha512-JUjpystGFFmNrEHQnIVG8hKwvA2DN5o7RqiO1CVX8EN/F/gkCjkUMgVn6hzScpwnJtl2mPR6I9XV1oW8k9O+0A==} + /@esbuild/linux-x64@0.19.10: + resolution: {integrity: sha512-SpYNEqg/6pZYoc+1zLCjVOYvxfZVZj6w0KROZ3Fje/QrM3nfvT2llI+wmKSrWuX6wmZeTapbarvuNNK/qepSgA==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -774,8 +783,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.9: - resolution: {integrity: sha512-GThgZPAwOBOsheA2RUlW5UeroRfESwMq/guy8uEe3wJlAOjpOXuSevLRd70NZ37ZrpO6RHGHgEHvPg1h3S1Jug==} + /@esbuild/netbsd-x64@0.19.10: + resolution: {integrity: sha512-ACbZ0vXy9zksNArWlk2c38NdKg25+L9pr/mVaj9SUq6lHZu/35nx2xnQVRGLrC1KKQqJKRIB0q8GspiHI3J80Q==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -792,8 +801,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.9: - resolution: {integrity: sha512-Ki6PlzppaFVbLnD8PtlVQfsYw4S9n3eQl87cqgeIw+O3sRr9IghpfSKY62mggdt1yCSZ8QWvTZ9jo9fjDSg9uw==} + /@esbuild/openbsd-x64@0.19.10: + resolution: {integrity: sha512-PxcgvjdSjtgPMiPQrM3pwSaG4kGphP+bLSb+cihuP0LYdZv1epbAIecHVl5sD3npkfYBZ0ZnOjR878I7MdJDFg==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -810,8 +819,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.9: - resolution: {integrity: sha512-MLHj7k9hWh4y1ddkBpvRj2b9NCBhfgBt3VpWbHQnXRedVun/hC7sIyTGDGTfsGuXo4ebik2+3ShjcPbhtFwWDw==} + /@esbuild/sunos-x64@0.19.10: + resolution: {integrity: sha512-ZkIOtrRL8SEJjr+VHjmW0znkPs+oJXhlJbNwfI37rvgeMtk3sxOQevXPXjmAPZPigVTncvFqLMd+uV0IBSEzqA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -828,8 +837,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.9: - resolution: {integrity: sha512-GQoa6OrQ8G08guMFgeXPH7yE/8Dt0IfOGWJSfSH4uafwdC7rWwrfE6P9N8AtPGIjUzdo2+7bN8Xo3qC578olhg==} + /@esbuild/win32-arm64@0.19.10: + resolution: {integrity: sha512-+Sa4oTDbpBfGpl3Hn3XiUe4f8TU2JF7aX8cOfqFYMMjXp6ma6NJDztl5FDG8Ezx0OjwGikIHw+iA54YLDNNVfw==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -846,8 +855,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.9: - resolution: {integrity: sha512-UOozV7Ntykvr5tSOlGCrqU3NBr3d8JqPes0QWN2WOXfvkWVGRajC+Ym0/Wj88fUgecUCLDdJPDF0Nna2UK3Qtg==} + /@esbuild/win32-ia32@0.19.10: + resolution: {integrity: sha512-EOGVLK1oWMBXgfttJdPHDTiivYSjX6jDNaATeNOaCOFEVcfMjtbx7WVQwPSE1eIfCp/CaSF2nSrDtzc4I9f8TQ==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -864,8 +873,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.9: - resolution: {integrity: sha512-oxoQgglOP7RH6iasDrhY+R/3cHrfwIDvRlT4CGChflq6twk8iENeVvMJjmvBb94Ik1Z+93iGO27err7w6l54GQ==} + /@esbuild/win32-x64@0.19.10: + resolution: {integrity: sha512-whqLG6Sc70AbU73fFYvuYzaE4MNMBIlR1Y/IrUeOXFrWHxBEjjbZaQ3IXIQS8wJdAzue2GwYZCjOrgrU1oUHoA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -873,13 +882,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.55.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.56.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.55.0 + eslint: 8.56.0 eslint-visitor-keys: 3.4.3 dev: true @@ -925,8 +934,8 @@ packages: - supports-color dev: true - /@eslint/js@8.55.0: - resolution: {integrity: sha512-qQfo2mxH5yVom1kacMtZZJFVdW+E70mqHMJvVg6WTLo+VBuQJ4TojZlfWBjK0ve5BdEeNAVxOsl/nvNMpJOaJA==} + /@eslint/js@8.56.0: + resolution: {integrity: sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -1196,8 +1205,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.10.4: - resolution: {integrity: sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==} + /@types/node@20.10.5: + resolution: {integrity: sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==} dependencies: undici-types: 5.26.5 dev: true @@ -1236,11 +1245,11 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.4 + '@types/node': 20.10.5 dev: true optional: true - /@typescript-eslint/eslint-plugin@6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.55.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1252,13 +1261,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.14.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.14.0(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/type-utils': 6.14.0(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.14.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.14.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.55.0 + eslint: 8.56.0 graphemer: 1.4.0 ignore: 5.3.0 natural-compare: 1.4.0 @@ -1269,7 +1278,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.14.0(eslint@8.55.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.14.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1284,7 +1293,7 @@ packages: '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.14.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.55.0 + eslint: 8.56.0 typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1298,14 +1307,6 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/scope-manager@6.13.2: - resolution: {integrity: sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/visitor-keys': 6.13.2 - dev: true - /@typescript-eslint/scope-manager@6.14.0: resolution: {integrity: sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1314,7 +1315,7 @@ packages: '@typescript-eslint/visitor-keys': 6.14.0 dev: true - /@typescript-eslint/type-utils@6.14.0(eslint@8.55.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.14.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1325,9 +1326,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.14.0(eslint@8.55.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.55.0 + eslint: 8.56.0 ts-api-utils: 1.0.3(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: @@ -1339,11 +1340,6 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.13.2: - resolution: {integrity: sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/types@6.14.0: resolution: {integrity: sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1370,27 +1366,6 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.13.2(typescript@4.9.5): - resolution: {integrity: sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/visitor-keys': 6.13.2 - debug: 4.3.4(supports-color@8.1.1) - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@4.9.5) - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/typescript-estree@6.14.0(typescript@4.9.5): resolution: {integrity: sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1412,57 +1387,38 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.11.0(eslint@8.55.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.11.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.11.0 '@typescript-eslint/types': 6.11.0 '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - eslint: 8.55.0 + eslint: 8.56.0 semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/utils@6.13.2(eslint@8.55.0)(typescript@4.9.5): - resolution: {integrity: sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.13.2 - '@typescript-eslint/types': 6.13.2 - '@typescript-eslint/typescript-estree': 6.13.2(typescript@4.9.5) - eslint: 8.55.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - - /@typescript-eslint/utils@6.14.0(eslint@8.55.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.14.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 6.14.0 '@typescript-eslint/types': 6.14.0 '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) - eslint: 8.55.0 + eslint: 8.56.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -1477,14 +1433,6 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.13.2: - resolution: {integrity: sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.13.2 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/visitor-keys@6.14.0: resolution: {integrity: sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1497,15 +1445,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.5.0(vite@4.5.1)(vue@3.3.11): + /@vitejs/plugin-vue@4.5.0(vite@4.5.1)(vue@3.3.13): resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.1(@types/node@20.10.4) - vue: 3.3.11(typescript@4.9.5) + vite: 4.5.1(@types/node@20.10.5) + vue: 3.3.13(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1590,118 +1538,118 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.3.11: - resolution: {integrity: sha512-h97/TGWBilnLuRaj58sxNrsUU66fwdRKLOLQ9N/5iNDfp+DZhYH9Obhe0bXxhedl8fjAgpRANpiZfbgWyruQ0w==} + /@vue/compiler-core@3.3.13: + resolution: {integrity: sha512-bwi9HShGu7uaZLOErZgsH2+ojsEdsjerbf2cMXPwmvcgZfVPZ2BVZzCVnwZBxTAYd6Mzbmf6izcUNDkWnBBQ6A==} dependencies: '@babel/parser': 7.23.5 - '@vue/shared': 3.3.11 + '@vue/shared': 3.3.13 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.3.11: - resolution: {integrity: sha512-zoAiUIqSKqAJ81WhfPXYmFGwDRuO+loqLxvXmfUdR5fOitPoUiIeFI9cTTyv9MU5O1+ZZglJVTusWzy+wfk5hw==} + /@vue/compiler-dom@3.3.13: + resolution: {integrity: sha512-EYRDpbLadGtNL0Gph+HoKiYqXLqZ0xSSpR5Dvnu/Ep7ggaCbjRDIus1MMxTS2Qm0koXED4xSlvTZaTnI8cYAsw==} dependencies: - '@vue/compiler-core': 3.3.11 - '@vue/shared': 3.3.11 + '@vue/compiler-core': 3.3.13 + '@vue/shared': 3.3.13 dev: true - /@vue/compiler-sfc@3.3.11: - resolution: {integrity: sha512-U4iqPlHO0KQeK1mrsxCN0vZzw43/lL8POxgpzcJweopmqtoYy9nljJzWDIQS3EfjiYhfdtdk9Gtgz7MRXnz3GA==} + /@vue/compiler-sfc@3.3.13: + resolution: {integrity: sha512-DQVmHEy/EKIgggvnGRLx21hSqnr1smUS9Aq8tfxiiot8UR0/pXKHN9k78/qQ7etyQTFj5em5nruODON7dBeumw==} dependencies: '@babel/parser': 7.23.5 - '@vue/compiler-core': 3.3.11 - '@vue/compiler-dom': 3.3.11 - '@vue/compiler-ssr': 3.3.11 - '@vue/reactivity-transform': 3.3.11 - '@vue/shared': 3.3.11 + '@vue/compiler-core': 3.3.13 + '@vue/compiler-dom': 3.3.13 + '@vue/compiler-ssr': 3.3.13 + '@vue/reactivity-transform': 3.3.13 + '@vue/shared': 3.3.13 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.32 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.3.11: - resolution: {integrity: sha512-Zd66ZwMvndxRTgVPdo+muV4Rv9n9DwQ4SSgWWKWkPFebHQfVYRrVjeygmmDmPewsHyznCNvJ2P2d6iOOhdv8Qg==} + /@vue/compiler-ssr@3.3.13: + resolution: {integrity: sha512-d/P3bCeUGmkJNS1QUZSAvoCIW4fkOKK3l2deE7zrp0ypJEy+En2AcypIkqvcFQOcw3F0zt2VfMvNsA9JmExTaw==} dependencies: - '@vue/compiler-dom': 3.3.11 - '@vue/shared': 3.3.11 + '@vue/compiler-dom': 3.3.13 + '@vue/shared': 3.3.13 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity-transform@3.3.11: - resolution: {integrity: sha512-fPGjH0wqJo68A0wQ1k158utDq/cRyZNlFoxGwNScE28aUFOKFEnCBsvyD8jHn+0kd0UKVpuGuaZEQ6r9FJRqCg==} + /@vue/reactivity-transform@3.3.13: + resolution: {integrity: sha512-oWnydGH0bBauhXvh5KXUy61xr9gKaMbtsMHk40IK9M4gMuKPJ342tKFarY0eQ6jef8906m35q37wwA8DMZOm5Q==} dependencies: '@babel/parser': 7.23.5 - '@vue/compiler-core': 3.3.11 - '@vue/shared': 3.3.11 + '@vue/compiler-core': 3.3.13 + '@vue/shared': 3.3.13 estree-walker: 2.0.2 magic-string: 0.30.5 dev: true - /@vue/reactivity@3.3.11: - resolution: {integrity: sha512-D5tcw091f0nuu+hXq5XANofD0OXnBmaRqMYl5B3fCR+mX+cXJIGNw/VNawBqkjLNWETrFW0i+xH9NvDbTPVh7g==} + /@vue/reactivity@3.3.13: + resolution: {integrity: sha512-fjzCxceMahHhi4AxUBzQqqVhuA21RJ0COaWTbIBl1PruGW1CeY97louZzLi4smpYx+CHfFPPU/CS8NybbGvPKQ==} dependencies: - '@vue/shared': 3.3.11 + '@vue/shared': 3.3.13 dev: true - /@vue/runtime-core@3.3.11: - resolution: {integrity: sha512-g9ztHGwEbS5RyWaOpXuyIVFTschclnwhqEbdy5AwGhYOgc7m/q3NFwr50MirZwTTzX55JY8pSkeib9BX04NIpw==} + /@vue/runtime-core@3.3.13: + resolution: {integrity: sha512-1TzA5TvGuh2zUwMJgdfvrBABWZ7y8kBwBhm7BXk8rvdx2SsgcGfz2ruv2GzuGZNvL1aKnK8CQMV/jFOrxNQUMA==} dependencies: - '@vue/reactivity': 3.3.11 - '@vue/shared': 3.3.11 + '@vue/reactivity': 3.3.13 + '@vue/shared': 3.3.13 dev: true - /@vue/runtime-dom@3.3.11: - resolution: {integrity: sha512-OlhtV1PVpbgk+I2zl+Y5rQtDNcCDs12rsRg71XwaA2/Rbllw6mBLMi57VOn8G0AjOJ4Mdb4k56V37+g8ukShpQ==} + /@vue/runtime-dom@3.3.13: + resolution: {integrity: sha512-JJkpE8R/hJKXqVTgUoODwS5wqKtOsmJPEqmp90PDVGygtJ4C0PtOkcEYXwhiVEmef6xeXcIlrT3Yo5aQ4qkHhQ==} dependencies: - '@vue/runtime-core': 3.3.11 - '@vue/shared': 3.3.11 - csstype: 3.1.2 + '@vue/runtime-core': 3.3.13 + '@vue/shared': 3.3.13 + csstype: 3.1.3 dev: true - /@vue/server-renderer@3.3.11(vue@3.3.11): - resolution: {integrity: sha512-AIWk0VwwxCAm4wqtJyxBylRTXSy1wCLOKbWxHaHiu14wjsNYtiRCSgVuqEPVuDpErOlRdNnuRgipQfXRLjLN5A==} + /@vue/server-renderer@3.3.13(vue@3.3.13): + resolution: {integrity: sha512-vSnN+nuf6iSqTL3Qgx/9A+BT+0Zf/VJOgF5uMZrKjYPs38GMYyAU1coDyBNHauehXDaP+zl73VhwWv0vBRBHcg==} peerDependencies: - vue: 3.3.11 + vue: 3.3.13 dependencies: - '@vue/compiler-ssr': 3.3.11 - '@vue/shared': 3.3.11 - vue: 3.3.11(typescript@4.9.5) + '@vue/compiler-ssr': 3.3.13 + '@vue/shared': 3.3.13 + vue: 3.3.13(typescript@4.9.5) dev: true - /@vue/shared@3.3.11: - resolution: {integrity: sha512-u2G8ZQ9IhMWTMXaWqZycnK4UthG1fA238CD+DP4Dm4WJi5hdUKKLg0RMRaRpDPNMdkTwIDkp7WtD0Rd9BH9fLw==} + /@vue/shared@3.3.13: + resolution: {integrity: sha512-/zYUwiHD8j7gKx2argXEMCUXVST6q/21DFU0sTfNX0URJroCe3b1UF6vLJ3lQDfLNIiiRl2ONp7Nh5UVWS6QnA==} dev: true - /@vueuse/core@10.6.1(vue@3.3.11): + /@vueuse/core@10.6.1(vue@3.3.13): resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.6.1 - '@vueuse/shared': 10.6.1(vue@3.3.11) - vue-demi: 0.14.6(vue@3.3.11) + '@vueuse/shared': 10.6.1(vue@3.3.13) + vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/core@10.7.0(vue@3.3.11): + /@vueuse/core@10.7.0(vue@3.3.13): resolution: {integrity: sha512-4EUDESCHtwu44ZWK3Gc/hZUVhVo/ysvdtwocB5vcauSV4B7NiGY5972WnsojB3vRNdxvAt7kzJWE2h9h7C9d5w==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.0 - '@vueuse/shared': 10.7.0(vue@3.3.11) - vue-demi: 0.14.6(vue@3.3.11) + '@vueuse/shared': 10.7.0(vue@3.3.13) + vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.11): + /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.13): resolution: {integrity: sha512-mPDupuofMJ4DPmtX/FfP1MajmWRzYDv8WSaTCo8LQ5kFznjWgmUQ16ApjYqgMquqffNY6+IRMdMgosLDRZOSZA==} peerDependencies: async-validator: '*' @@ -1742,10 +1690,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.6.1(vue@3.3.11) - '@vueuse/shared': 10.6.1(vue@3.3.11) + '@vueuse/core': 10.6.1(vue@3.3.13) + '@vueuse/shared': 10.6.1(vue@3.3.13) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.3.11) + vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1759,19 +1707,19 @@ packages: resolution: {integrity: sha512-GlaH7tKP2iBCZ3bHNZ6b0cl9g0CJK8lttkBNUX156gWvNYhTKEtbweWLm9rxCPIiwzYcr/5xML6T8ZUEt+DkvA==} dev: true - /@vueuse/shared@10.6.1(vue@3.3.11): + /@vueuse/shared@10.6.1(vue@3.3.13): resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} dependencies: - vue-demi: 0.14.6(vue@3.3.11) + vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/shared@10.7.0(vue@3.3.11): + /@vueuse/shared@10.7.0(vue@3.3.13): resolution: {integrity: sha512-kc00uV6CiaTdc3i1CDC4a3lBxzaBE9AgYNtFN87B5OOscqeWElj/uza8qVDmk7/U8JbqoONLbtqiLJ5LGRuqlw==} dependencies: - vue-demi: 0.14.6(vue@3.3.11) + vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2611,8 +2559,8 @@ packages: which: 2.0.2 dev: true - /csstype@3.1.2: - resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + /csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} dev: true /cypress@13.6.1: @@ -3009,34 +2957,35 @@ packages: '@esbuild/win32-x64': 0.18.20 dev: true - /esbuild@0.19.9: - resolution: {integrity: sha512-U9CHtKSy+EpPsEBa+/A2gMs/h3ylBC0H0KSqIg7tpztHerLi6nrrcoUJAkNCEPumx8yJ+Byic4BVwHgRbN0TBg==} + /esbuild@0.19.10: + resolution: {integrity: sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.19.9 - '@esbuild/android-arm64': 0.19.9 - '@esbuild/android-x64': 0.19.9 - '@esbuild/darwin-arm64': 0.19.9 - '@esbuild/darwin-x64': 0.19.9 - '@esbuild/freebsd-arm64': 0.19.9 - '@esbuild/freebsd-x64': 0.19.9 - '@esbuild/linux-arm': 0.19.9 - '@esbuild/linux-arm64': 0.19.9 - '@esbuild/linux-ia32': 0.19.9 - '@esbuild/linux-loong64': 0.19.9 - '@esbuild/linux-mips64el': 0.19.9 - '@esbuild/linux-ppc64': 0.19.9 - '@esbuild/linux-riscv64': 0.19.9 - '@esbuild/linux-s390x': 0.19.9 - '@esbuild/linux-x64': 0.19.9 - '@esbuild/netbsd-x64': 0.19.9 - '@esbuild/openbsd-x64': 0.19.9 - '@esbuild/sunos-x64': 0.19.9 - '@esbuild/win32-arm64': 0.19.9 - '@esbuild/win32-ia32': 0.19.9 - '@esbuild/win32-x64': 0.19.9 + '@esbuild/aix-ppc64': 0.19.10 + '@esbuild/android-arm': 0.19.10 + '@esbuild/android-arm64': 0.19.10 + '@esbuild/android-x64': 0.19.10 + '@esbuild/darwin-arm64': 0.19.10 + '@esbuild/darwin-x64': 0.19.10 + '@esbuild/freebsd-arm64': 0.19.10 + '@esbuild/freebsd-x64': 0.19.10 + '@esbuild/linux-arm': 0.19.10 + '@esbuild/linux-arm64': 0.19.10 + '@esbuild/linux-ia32': 0.19.10 + '@esbuild/linux-loong64': 0.19.10 + '@esbuild/linux-mips64el': 0.19.10 + '@esbuild/linux-ppc64': 0.19.10 + '@esbuild/linux-riscv64': 0.19.10 + '@esbuild/linux-s390x': 0.19.10 + '@esbuild/linux-x64': 0.19.10 + '@esbuild/netbsd-x64': 0.19.10 + '@esbuild/openbsd-x64': 0.19.10 + '@esbuild/sunos-x64': 0.19.10 + '@esbuild/win32-arm64': 0.19.10 + '@esbuild/win32-ia32': 0.19.10 + '@esbuild/win32-x64': 0.19.10 dev: true /escalade@3.1.1: @@ -3054,13 +3003,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@9.1.0(eslint@8.55.0): + /eslint-config-prettier@9.1.0(eslint@8.56.0): resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.55.0 + eslint: 8.56.0 dev: true /eslint-define-config@2.0.0: @@ -3068,7 +3017,7 @@ packages: engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} dev: true - /eslint-gitignore@0.1.0(eslint@8.55.0): + /eslint-gitignore@0.1.0(eslint@8.56.0): resolution: {integrity: sha512-VFvY5Wyjuz5xXDC/NeONHzsh4YQNok2Gzg4SftAAuhkbrdHv5CChjfiFyLKhRlgOdCJr5kBquaLXHtuDBTW2/Q==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -3076,20 +3025,20 @@ packages: dependencies: array.prototype.flatmap: 1.3.2 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.55.0 + eslint: 8.56.0 fast-glob: 3.3.2 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-deprecation@2.0.0(eslint@8.55.0)(typescript@4.9.5): + /eslint-plugin-deprecation@2.0.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-OAm9Ohzbj11/ZFyICyR5N6LbOIvQMp7ZU2zI7Ej0jIc8kiGUERXPNMfw2QqqHD1ZHtjMub3yPZILovYEYucgoQ==} peerDependencies: eslint: ^7.0.0 || ^8.0.0 typescript: ^4.2.4 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 6.11.0(eslint@8.55.0)(typescript@4.9.5) - eslint: 8.55.0 + '@typescript-eslint/utils': 6.11.0(eslint@8.56.0)(typescript@4.9.5) + eslint: 8.56.0 tslib: 2.6.2 tsutils: 3.21.0(typescript@4.9.5) typescript: 4.9.5 @@ -3097,8 +3046,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.9.0(eslint@8.55.0): - resolution: {integrity: sha512-UQuEtbqLNkPf5Nr/6PPRCtr9xypXY+g8y/Q7gPa0YK7eDhh0y2lWprXRnaYbW7ACgIUvpDKy9X2bZqxtGzBG9Q==} + /eslint-plugin-jsdoc@46.9.1(eslint@8.56.0): + resolution: {integrity: sha512-11Ox5LCl2wY7gGkp9UOyew70o9qvii1daAH+h/MFobRVRNcy7sVlH+jm0HQdgcvcru6285GvpjpUyoa051j03Q==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -3108,17 +3057,17 @@ packages: comment-parser: 1.4.1 debug: 4.3.4(supports-color@8.1.1) escape-string-regexp: 4.0.0 - eslint: 8.55.0 + eslint: 8.56.0 esquery: 1.5.0 is-builtin-module: 3.2.1 semver: 7.5.4 - spdx-expression-parse: 3.0.1 + spdx-expression-parse: 4.0.0 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.1.0)(eslint@8.55.0)(prettier@3.1.1): - resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} + /eslint-plugin-prettier@5.1.0(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1): + resolution: {integrity: sha512-hQc+2zbnMeXcIkg+pKZtVa+3Yqx4WY7SMkn1PLZ4VbBEU7jJIpVn9347P8BBhTbz6ne85aXvQf30kvexcqBeWw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: '@types/eslint': '>=8.0.0' @@ -3131,24 +3080,24 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.55.0 - eslint-config-prettier: 9.1.0(eslint@8.55.0) + eslint: 8.56.0 + eslint-config-prettier: 9.1.0(eslint@8.56.0) prettier: 3.1.1 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true - /eslint-plugin-unicorn@49.0.0(eslint@8.55.0): + /eslint-plugin-unicorn@49.0.0(eslint@8.56.0): resolution: {integrity: sha512-0fHEa/8Pih5cmzFW5L7xMEfUTvI9WKeQtjmKpTUmY+BiFCDxkxrTdnURJOHKykhtwIeyYsxnecbGvDCml++z4Q==} engines: {node: '>=16'} peerDependencies: eslint: '>=8.52.0' dependencies: '@babel/helper-validator-identifier': 7.22.20 - '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) ci-info: 3.9.0 clean-regexp: 1.0.0 - eslint: 8.55.0 + eslint: 8.56.0 esquery: 1.5.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 @@ -3161,8 +3110,8 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.15(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.55.0)(typescript@4.9.5)(vitest@0.34.6): - resolution: {integrity: sha512-ZUUd9ARKR3p0W7zoWg0irmQW9aM+SlJYZOoFOBemmgwQIHLxtdRLodQGP48nYf8jLdCGFDQqPyaltQQKsa9UMw==} + /eslint-plugin-vitest@0.3.18(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + resolution: {integrity: sha512-IJzs6BpA//wkNxo5845uPIMOIp4j76MiKiagJ3hD6a2DemrktdpB7mmTjU0EeFuq14NXFoO1wN8Fwrx2VxWBRA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': '*' @@ -3174,9 +3123,9 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.55.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.13.2(eslint@8.55.0)(typescript@4.9.5) - eslint: 8.55.0 + '@typescript-eslint/eslint-plugin': 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) + eslint: 8.56.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: - supports-color @@ -3196,15 +3145,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.55.0: - resolution: {integrity: sha512-iyUUAM0PCKj5QpwGfmCAG9XXbZCWsqP/eWAWrG/W0umvjuLRBECwSFdt+rCntju0xEH7teIABPwXpahftIaTdA==} + /eslint@8.56.0: + resolution: {integrity: sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.55.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@eslint-community/regexpp': 4.10.0 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.55.0 + '@eslint/js': 8.56.0 '@humanwhocodes/config-array': 0.11.13 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -5533,6 +5482,13 @@ packages: spdx-license-ids: 3.0.16 dev: true + /spdx-expression-parse@4.0.0: + resolution: {integrity: sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==} + dependencies: + spdx-exceptions: 2.3.0 + spdx-license-ids: 3.0.16 + dev: true + /spdx-license-ids@3.0.16: resolution: {integrity: sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==} dev: true @@ -6132,7 +6088,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.10.4): + /vite-node@0.34.6(@types/node@20.10.5): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6142,7 +6098,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.1(@types/node@20.10.4) + vite: 4.5.1(@types/node@20.10.5) transitivePeerDependencies: - '@types/node' - less @@ -6154,7 +6110,7 @@ packages: - terser dev: true - /vite@4.5.1(@types/node@20.10.4): + /vite@4.5.1(@types/node@20.10.5): resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6182,7 +6138,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.4 + '@types/node': 20.10.5 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6190,23 +6146,23 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.4)(search-insights@2.11.0)(typescript@4.9.5): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.5)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) - '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.11) + '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.13) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.0(vue@3.3.11) - '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.11) + '@vueuse/core': 10.7.0(vue@3.3.13) + '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.13) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.2.0 shiki: 0.14.5 - vite: 4.5.1(@types/node@20.10.4) - vue: 3.3.11(typescript@4.9.5) + vite: 4.5.1(@types/node@20.10.5) + vue: 3.3.13(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6268,7 +6224,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.10.4 + '@types/node': 20.10.5 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6288,8 +6244,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.1(@types/node@20.10.4) - vite-node: 0.34.6(@types/node@20.10.4) + vite: 4.5.1(@types/node@20.10.5) + vite-node: 0.34.6(@types/node@20.10.5) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6309,7 +6265,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.3.11): + /vue-demi@0.14.6(vue@3.3.13): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6321,22 +6277,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.3.11(typescript@4.9.5) + vue: 3.3.13(typescript@4.9.5) dev: true - /vue@3.3.11(typescript@4.9.5): - resolution: {integrity: sha512-d4oBctG92CRO1cQfVBZp6WJAs0n8AK4Xf5fNjQCBeKCvMI1efGQ5E3Alt1slFJS9fZuPcFoiAiqFvQlv1X7t/w==} + /vue@3.3.13(typescript@4.9.5): + resolution: {integrity: sha512-LDnUpQvDgsfc0u/YgtAgTMXJlJQqjkxW1PVcOnJA5cshPleULDjHi7U45pl2VJYazSSvLH8UKcid/kzH8I0a0Q==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.3.11 - '@vue/compiler-sfc': 3.3.11 - '@vue/runtime-dom': 3.3.11 - '@vue/server-renderer': 3.3.11(vue@3.3.11) - '@vue/shared': 3.3.11 + '@vue/compiler-dom': 3.3.13 + '@vue/compiler-sfc': 3.3.13 + '@vue/runtime-dom': 3.3.13 + '@vue/server-renderer': 3.3.13(vue@3.3.13) + '@vue/shared': 3.3.13 typescript: 4.9.5 dev: true From c209030a660422a17f73d6f0b307af14507bd56d Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 21 Dec 2023 22:13:06 +0100 Subject: [PATCH 43/98] chore(eslint): prefer-exponentiation-operator (#2585) --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 8458f6d2899..f4bb960d373 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -35,6 +35,7 @@ module.exports = defineConfig({ eqeqeq: ['error', 'always', { null: 'ignore' }], 'no-else-return': 'error', 'no-restricted-globals': ['error', 'Intl'], + 'prefer-exponentiation-operator': 'error', 'prefer-template': 'error', 'unicorn/no-nested-ternary': 'off', // incompatible with prettier From 24482a30042eec5b553b30d60985e89fd69a8660 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 25 Dec 2023 01:51:33 +0100 Subject: [PATCH 44/98] feat(helpers): add support for complex intermediate types (#2550) --- src/modules/helpers/eval.ts | 229 ++++++++++++++++++ src/modules/helpers/index.ts | 60 +---- .../modules/__snapshots__/person.spec.ts.snap | 2 +- test/modules/helpers-eval.spec.ts | 162 +++++++++++++ test/modules/helpers.spec.ts | 37 +-- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 5 +- 6 files changed, 420 insertions(+), 75 deletions(-) create mode 100644 src/modules/helpers/eval.ts create mode 100644 test/modules/helpers-eval.spec.ts diff --git a/src/modules/helpers/eval.ts b/src/modules/helpers/eval.ts new file mode 100644 index 00000000000..033c5d35d80 --- /dev/null +++ b/src/modules/helpers/eval.ts @@ -0,0 +1,229 @@ +import { FakerError } from '../../errors/faker-error'; +import type { Faker } from '../../faker'; + +const REGEX_DOT_OR_BRACKET = /\.|\(/; + +/** + * Resolves the given expression and returns its result. This method should only be used when using serialized expressions. + * + * This method is useful if you have to build a random string from a static, non-executable source + * (e.g. string coming from a developer, stored in a database or a file). + * + * It tries to resolve the expression on the given/default entrypoints: + * + * ```js + * const firstName = fakeEval('person.firstName', faker); + * const firstName2 = fakeEval('person.first_name', faker); + * ``` + * + * Is equivalent to: + * + * ```js + * const firstName = faker.person.firstName(); + * const firstName2 = faker.helpers.arrayElement(faker.rawDefinitions.person.first_name); + * ``` + * + * You can provide parameters as well. At first, they will be parsed as json, + * and if that isn't possible, it will fall back to string: + * + * ```js + * const message = fakeEval('phone.number(+!# !## #### #####!)', faker); + * ``` + * + * It is also possible to use multiple parameters (comma separated). + * + * ```js + * const pin = fakeEval('string.numeric(4, {"allowLeadingZeros": true})', faker); + * ``` + * + * This method can resolve expressions with varying depths (dot separated parts). + * + * ```ts + * const airlineModule = fakeEval('airline', faker); // AirlineModule + * const airlineObject = fakeEval('airline.airline', faker); // { name: 'Etihad Airways', iataCode: 'EY' } + * const airlineCode = fakeEval('airline.airline.iataCode', faker); // 'EY' + * const airlineName = fakeEval('airline.airline().name', faker); // 'Etihad Airways' + * const airlineMethodName = fakeEval('airline.airline.name', faker); // 'bound airline' + * ``` + * + * It is NOT possible to access any values not passed as entrypoints. + * + * This method will never return arrays, as it will pick a random element from them instead. + * + * @param expression The expression to evaluate on the entrypoints. + * @param faker The faker instance to resolve array elements. + * @param entrypoints The entrypoints to use when evaluating the expression. + * + * @see faker.helpers.fake() If you wish to have a string with multiple expressions. + * + * @example + * fakeEval('person.lastName', faker) // 'Barrows' + * fakeEval('helpers.arrayElement(["heads", "tails"])', faker) // 'tails' + * fakeEval('number.int(9999)', faker) // 4834 + * + * @since 8.4.0 + */ +export function fakeEval( + expression: string, + faker: Faker, + entrypoints: ReadonlyArray = [faker, faker.rawDefinitions] +): unknown { + if (expression.length === 0) { + throw new FakerError('Eval expression cannot be empty.'); + } + + if (entrypoints.length === 0) { + throw new FakerError('Eval entrypoints cannot be empty.'); + } + + let current = entrypoints; + let remaining = expression; + do { + let index: number; + if (remaining.startsWith('(')) { + [index, current] = evalProcessFunction(remaining, current); + } else { + [index, current] = evalProcessExpression(remaining, current); + } + + remaining = remaining.substring(index); + + // Remove garbage and resolve array values + current = current + .filter((value) => value != null) + .map((value): unknown => + Array.isArray(value) ? faker.helpers.arrayElement(value) : value + ); + } while (remaining.length > 0 && current.length > 0); + + if (current.length === 0) { + throw new FakerError(`Cannot resolve expression '${expression}'`); + } + + const value = current[0]; + return typeof value === 'function' ? value() : value; +} + +/** + * Evaluates a function call and returns the new read index and the mapped results. + * + * @param input The input string to parse. + * @param entrypoints The entrypoints to attempt the call on. + */ +function evalProcessFunction( + input: string, + entrypoints: ReadonlyArray +): [continueIndex: number, mapped: unknown[]] { + const [index, params] = findParams(input); + const nextChar = input[index + 1]; + switch (nextChar) { + case '.': + case '(': + case undefined: + break; // valid + default: + throw new FakerError( + `Expected dot ('.'), open parenthesis ('('), or nothing after function call but got '${nextChar}'` + ); + } + + return [ + index + (nextChar === '.' ? 2 : 1), // one for the closing bracket, one for the dot + entrypoints.map((entrypoint): unknown => + // TODO @ST-DDT 2023-12-11: Replace in v9 + // typeof entrypoint === 'function' ? entrypoint(...params) : undefined + typeof entrypoint === 'function' ? entrypoint(...params) : entrypoint + ), + ]; +} + +/** + * Tries to find the parameters of a function call. + * + * @param input The input string to parse. + */ +function findParams(input: string): [continueIndex: number, params: unknown[]] { + let index = input.indexOf(')', 1); + if (index === -1) { + throw new FakerError(`Missing closing parenthesis in '${input}'`); + } + + while (index !== -1) { + const params = input.substring(1, index); + try { + // assuming that the params are valid JSON + return [index, JSON.parse(`[${params}]`) as unknown[]]; + } catch { + if (!params.includes("'") && !params.includes('"')) { + try { + // assuming that the params are a single unquoted string + return [index, JSON.parse(`["${params}"]`) as unknown[]]; + } catch { + // try again with the next index + } + } + } + + index = input.indexOf(')', index + 1); + } + + index = input.lastIndexOf(')'); + const params = input.substring(1, index); + return [index, [params]]; +} + +/** + * Processes one expression part and returns the new read index and the mapped results. + * + * @param input The input string to parse. + * @param entrypoints The entrypoints to resolve on. + */ +function evalProcessExpression( + input: string, + entrypoints: ReadonlyArray +): [continueIndex: number, mapped: unknown[]] { + const result = REGEX_DOT_OR_BRACKET.exec(input); + const dotMatch = (result?.[0] ?? '') === '.'; + const index = result?.index ?? input.length; + const key = input.substring(0, index); + if (key.length === 0) { + throw new FakerError(`Expression parts cannot be empty in '${input}'`); + } + + const next = input[index + 1]; + if (dotMatch && (next == null || next === '.' || next === '(')) { + throw new FakerError(`Found dot without property name in '${input}'`); + } + + return [ + index + (dotMatch ? 1 : 0), + entrypoints.map((entrypoint) => resolveProperty(entrypoint, key)), + ]; +} + +/** + * Resolves the given property on the given entrypoint. + * + * @param entrypoint The entrypoint to resolve the property on. + * @param key The property name to resolve. + */ +function resolveProperty(entrypoint: unknown, key: string): unknown { + switch (typeof entrypoint) { + case 'function': { + try { + entrypoint = entrypoint(); + } catch { + return undefined; + } + + return entrypoint?.[key as keyof typeof entrypoint]; + } + + case 'object': { + return entrypoint?.[key as keyof typeof entrypoint]; + } + + default: + return undefined; + } +} diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 6e993c8412c..edc00ea9a01 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -2,6 +2,7 @@ import type { Faker, SimpleFaker } from '../..'; import { FakerError } from '../../errors/faker-error'; import { deprecated } from '../../internal/deprecated'; import { SimpleModuleBase } from '../../internal/module-base'; +import { fakeEval } from './eval'; import { luhnCheckValue } from './luhn-check'; import type { RecordKey } from './unique'; import * as uniqueExec from './unique'; @@ -1460,66 +1461,15 @@ export class HelpersModule extends SimpleHelpersModule { // extract method name from between the {{ }} that we found // for example: {{person.firstName}} const token = pattern.substring(start + 2, end + 2); - let method = token.replace('}}', '').replace('{{', ''); - - // extract method parameters - const regExp = /\(([^)]*)\)/; - const matches = regExp.exec(method); - let parameters = ''; - if (matches) { - method = method.replace(regExp, ''); - parameters = matches[1]; - } - - // split the method into module and function - const parts = method.split('.'); - - let currentModuleOrMethod: unknown = this.faker; - let currentDefinitions: unknown = this.faker.rawDefinitions; - - // Search for the requested method or definition - for (const part of parts) { - currentModuleOrMethod = - currentModuleOrMethod?.[part as keyof typeof currentModuleOrMethod]; - currentDefinitions = - currentDefinitions?.[part as keyof typeof currentDefinitions]; - } - - // Make method executable - let fn: (...args: unknown[]) => unknown; - if (typeof currentModuleOrMethod === 'function') { - fn = currentModuleOrMethod as (args?: unknown) => unknown; - } else if (Array.isArray(currentDefinitions)) { - fn = () => - this.faker.helpers.arrayElement(currentDefinitions as unknown[]); - } else { - throw new FakerError(`Invalid module method or definition: ${method} -- faker.${method} is not a function -- faker.definitions.${method} is not an array`); - } - - // assign the function from the module.function namespace - fn = fn.bind(this); - - // If parameters are populated here, they are always going to be of string type - // since we might actually be dealing with an object or array, - // we always attempt to the parse the incoming parameters into JSON - let params: unknown[]; - // Note: we experience a small performance hit here due to JSON.parse try / catch - // If anyone actually needs to optimize this specific code path, please open a support issue on github - try { - params = JSON.parse(`[${parameters}]`); - } catch { - // since JSON.parse threw an error, assume parameters was actually a string - params = [parameters]; - } + const method = token.replace('}}', '').replace('{{', ''); - const result = String(fn(...params)); + const result = fakeEval(method, this.faker); + const stringified = String(result); // Replace the found tag with the returned fake value // We cannot use string.replace here because the result might contain evaluated characters const res = - pattern.substring(0, start) + result + pattern.substring(end + 2); + pattern.substring(0, start) + stringified + pattern.substring(end + 2); // return the response recursively until we are done finding all tags return this.fake(res); diff --git a/test/modules/__snapshots__/person.spec.ts.snap b/test/modules/__snapshots__/person.spec.ts.snap index 6f3e0963034..a85f4ccb62e 100644 --- a/test/modules/__snapshots__/person.spec.ts.snap +++ b/test/modules/__snapshots__/person.spec.ts.snap @@ -50,7 +50,7 @@ exports[`person > 42 > suffix > with sex 1`] = `"III"`; exports[`person > 42 > zodiacSign 1`] = `"Gemini"`; -exports[`person > 1211 > bio 1`] = `"infrastructure supporter, photographer 🙆‍♀️"`; +exports[`person > 1211 > bio 1`] = `"teletype lover, dreamer 👄"`; exports[`person > 1211 > firstName > noArgs 1`] = `"Tito"`; diff --git a/test/modules/helpers-eval.spec.ts b/test/modules/helpers-eval.spec.ts new file mode 100644 index 00000000000..40612c37312 --- /dev/null +++ b/test/modules/helpers-eval.spec.ts @@ -0,0 +1,162 @@ +import { describe, expect, it, vi } from 'vitest'; +import { faker, FakerError } from '../../src'; +import { fakeEval } from '../../src/modules/helpers/eval'; + +describe('fakeEval()', () => { + it('does not allow empty string input', () => { + expect(() => fakeEval('', faker)).toThrowError( + new FakerError('Eval expression cannot be empty.') + ); + }); + + it('does not allow empty entrypoints', () => { + expect(() => fakeEval('foobar', faker, [])).toThrowError( + new FakerError('Eval entrypoints cannot be empty.') + ); + }); + + it('supports single pattern part invocations', () => { + const actual = fakeEval('string', faker); + expect(actual).toBeTypeOf('object'); + expect(actual).toBe(faker.string); + }); + + it('supports simple method calls', () => { + const spy = vi.spyOn(faker.string, 'numeric'); + const actual = fakeEval('string.numeric', faker); + expect(spy).toHaveBeenCalledWith(); + expect(actual).toBeTypeOf('string'); + expect(actual).toMatch(/^\d$/); + }); + + it('supports method calls without arguments', () => { + const spy = vi.spyOn(faker.string, 'numeric'); + const actual = fakeEval('string.numeric()', faker); + expect(spy).toHaveBeenCalledWith(); + expect(actual).toBeTypeOf('string'); + expect(actual).toMatch(/^\d$/); + }); + + it('supports method calls with simple arguments', () => { + const spy = vi.spyOn(faker.string, 'numeric'); + const actual = fakeEval('string.numeric(5)', faker); + expect(spy).toHaveBeenCalledWith(5); + expect(actual).toBeTypeOf('string'); + expect(actual).toMatch(/^\d{5}$/); + }); + + it('supports method calls with complex arguments', () => { + const spy = vi.spyOn(faker.string, 'numeric'); + const actual = fakeEval( + 'string.numeric({ "length": 5, "allowLeadingZeros": true, "exclude": ["5"] })', + faker + ); + expect(spy).toHaveBeenCalledWith({ + length: 5, + allowLeadingZeros: true, + exclude: ['5'], + }); + expect(actual).toBeTypeOf('string'); + expect(actual).toMatch(/^[0-46-9]{5}$/); + }); + + it('supports method calls with multiple arguments', () => { + const spy = vi.spyOn(faker.helpers, 'mustache'); + const actual = fakeEval( + 'helpers.mustache("{{foo}}", { "foo": "bar" })', + faker + ); + expect(spy).toHaveBeenCalledWith('{{foo}}', { foo: 'bar' }); + expect(actual).toBeTypeOf('string'); + expect(actual).toBe('bar'); + }); + + it('supports method calls with unquoted string argument', () => { + const spy = vi.spyOn(faker.helpers, 'slugify'); + const actual = fakeEval('helpers.slugify(This Works)', faker); + expect(spy).toHaveBeenCalledWith('This Works'); + expect(actual).toBeTypeOf('string'); + expect(actual).toBe('This-Works'); + }); + + it('supports method calls with wrongly quoted argument', () => { + const spy = vi.spyOn(faker.helpers, 'slugify'); + const actual = fakeEval("helpers.slugify('')", faker); + expect(spy).toHaveBeenCalledWith("''"); + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('should be able to return empty strings', () => { + const actual = fakeEval('string.alphanumeric(0)', faker); + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('supports returning complex objects', () => { + const actual = fakeEval('airline.airline', faker); + expect(actual).toBeTypeOf('object'); + expect(faker.definitions.airline.airline).toContain(actual); + }); + + it('supports patterns after a function call', () => { + const actual = fakeEval('airline.airline().name', faker); + expect(actual).toBeTypeOf('string'); + expect(faker.definitions.airline.airline.map(({ name }) => name)).toContain( + actual + ); // function().name + }); + + it('supports patterns after a function reference', () => { + const actual = fakeEval('airline.airline.iataCode', faker); + expect(actual).toBeTypeOf('string'); + expect( + faker.definitions.airline.airline.map(({ iataCode }) => iataCode) + ).toContain(actual); + }); + + it('requires a dot after a function call', () => { + expect(() => fakeEval('airline.airline()iataCode', faker)).toThrowError( + new FakerError( + "Expected dot ('.'), open parenthesis ('('), or nothing after function call but got 'i'" + ) + ); + }); + + it('requires a function for parameters', () => { + // TODO @ST-DDT 2023-12-11: Replace in v9 + // expect(faker.definitions.person.first_name).toBeDefined(); + //expect(() => fakeEval('person.first_name()', faker)).toThrow( + // new FakerError(`Cannot resolve expression 'person.first_name'`) + // ); + const actual = fakeEval('person.first_name()', faker); + expect(faker.definitions.person.first_name).toContain(actual); + }); + + it('requires a valid expression (missing value)', () => { + expect(() => fakeEval('foo.bar', faker)).toThrow( + new FakerError(`Cannot resolve expression 'foo.bar'`) + ); + }); + + it('requires a valid expression (trailing dot)', () => { + expect(() => fakeEval('airline.airline.', faker)).toThrowError( + new FakerError("Found dot without property name in 'airline.'") + ); + expect(() => fakeEval('airline.airline.()', faker)).toThrowError( + new FakerError("Found dot without property name in 'airline.()'") + ); + expect(() => fakeEval('airline.airline.().iataCode', faker)).toThrowError( + new FakerError("Found dot without property name in 'airline.().iataCode'") + ); + }); + + it('requires a valid expression (unclosed parenthesis)', () => { + expect(() => fakeEval('airline.airline(', faker)).toThrowError( + new FakerError("Missing closing parenthesis in '('") + ); + expect(() => fakeEval('airline.airline(.iataCode', faker)).toThrowError( + new FakerError("Missing closing parenthesis in '(.iataCode'") + ); + }); +}); diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 1a1db9c5ae2..1b9ba3aeff5 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1027,34 +1027,35 @@ describe('helpers', () => { it('does not allow invalid module name', () => { expect(() => faker.helpers.fake('{{foo.bar}}')).toThrow( - new FakerError(`Invalid module method or definition: foo.bar -- faker.foo.bar is not a function -- faker.definitions.foo.bar is not an array`) + new FakerError(`Cannot resolve expression 'foo.bar'`) ); }); - it('does not allow missing method name', () => { - expect(() => faker.helpers.fake('{{location}}')).toThrow( - new FakerError(`Invalid module method or definition: location -- faker.location is not a function -- faker.definitions.location is not an array`) - ); + it('does allow missing method name', () => { + const actual = faker.helpers.fake('{{location}}'); + expect(actual).toBe('[object Object]'); }); it('does not allow invalid method name', () => { expect(() => faker.helpers.fake('{{location.foo}}')).toThrow( - new FakerError(`Invalid module method or definition: location.foo -- faker.location.foo is not a function -- faker.definitions.location.foo is not an array`) + new FakerError(`Cannot resolve expression 'location.foo'`) ); }); - it('does not allow invalid definitions data', () => { - expect(() => faker.helpers.fake('{{finance.credit_card}}')).toThrow( - new FakerError(`Invalid module method or definition: finance.credit_card -- faker.finance.credit_card is not a function -- faker.definitions.finance.credit_card is not an array`) - ); + it('should support complex data', () => { + const actual = faker.helpers.fake('{{science.unit}}'); + expect(actual).toBe('[object Object]'); + }); + + it('should support resolving a value in a complex object', () => { + const complex = faker.helpers.fake('{{airline.airline}}'); + expect(complex).toBe('[object Object]'); + + const actual = faker.helpers.fake('{{airline.airline.iataCode}}'); + expect(actual).toBeTypeOf('string'); + expect( + faker.definitions.airline.airline.map(({ iataCode }) => iataCode) + ).toContain(actual); }); it('should be able to return empty strings', () => { diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 76865c16e80..89afc225368 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -236,7 +236,10 @@ describe('verify JSDoc tags', () => { false ); if (paramDefault) { - if (/^{.*}$/.test(paramDefault)) { + if ( + /^{.*}$/.test(paramDefault) || + paramDefault.includes('\n') + ) { expect(commentDefault).toBeUndefined(); } else { expect( From 39c715d916d69e83795932260f1681df3241db91 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Thu, 28 Dec 2023 01:46:55 +0700 Subject: [PATCH 45/98] fix(number): improve float generation for precisions of form 10^-n (#2581) --- src/modules/number/index.ts | 7 +++- .../__snapshots__/finance.spec.ts.snap | 16 ++++---- .../__snapshots__/location.spec.ts.snap | 4 +- test/modules/number.spec.ts | 38 ++++++++++++++----- 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index 91d987771e0..4becb3480d4 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -150,7 +150,12 @@ export class NumberModule extends SimpleModuleBase { throw new FakerError(`Precision should be greater than 0.`); } - const factor = 1 / precision; + const logPrecision = Math.log10(precision); + // Workaround to get integer values for the inverse of all precisions of the form 10^-n + const factor = + precision < 1 && Number.isInteger(logPrecision) + ? 10 ** -logPrecision + : 1 / precision; const int = this.int({ min: min * factor, max: max * factor, diff --git a/test/modules/__snapshots__/finance.spec.ts.snap b/test/modules/__snapshots__/finance.spec.ts.snap index 324aad22bf9..b2478f58ea4 100644 --- a/test/modules/__snapshots__/finance.spec.ts.snap +++ b/test/modules/__snapshots__/finance.spec.ts.snap @@ -24,13 +24,13 @@ exports[`finance > 42 > amount > with min and max option 1`] = `"24.98"`; exports[`finance > 42 > amount > with min option 1`] = `"380.79"`; -exports[`finance > 42 > amount > with min, leagcy max, leagcy dec and leagcy symbol 1`] = `"$24.98161"`; +exports[`finance > 42 > amount > with min, leagcy max, leagcy dec and leagcy symbol 1`] = `"$24.98160"`; -exports[`finance > 42 > amount > with min, max and dec option 1`] = `"24.98161"`; +exports[`finance > 42 > amount > with min, max and dec option 1`] = `"24.98160"`; -exports[`finance > 42 > amount > with min, max, dec and symbol option 1`] = `"#24.98161"`; +exports[`finance > 42 > amount > with min, max, dec and symbol option 1`] = `"#24.98160"`; -exports[`finance > 42 > amount > with min, max, dec, symbol and autoFormat option 1`] = `"#24.98161"`; +exports[`finance > 42 > amount > with min, max, dec, symbol and autoFormat option 1`] = `"#24.98160"`; exports[`finance > 42 > bic > noArgs 1`] = `"UYETSCLLG53"`; @@ -244,13 +244,13 @@ exports[`finance > 1337 > amount > with min and max option 1`] = `"20.48"`; exports[`finance > 1337 > amount > with min option 1`] = `"269.40"`; -exports[`finance > 1337 > amount > with min, leagcy max, leagcy dec and leagcy symbol 1`] = `"$20.48099"`; +exports[`finance > 1337 > amount > with min, leagcy max, leagcy dec and leagcy symbol 1`] = `"$20.48098"`; -exports[`finance > 1337 > amount > with min, max and dec option 1`] = `"20.48099"`; +exports[`finance > 1337 > amount > with min, max and dec option 1`] = `"20.48098"`; -exports[`finance > 1337 > amount > with min, max, dec and symbol option 1`] = `"#20.48099"`; +exports[`finance > 1337 > amount > with min, max, dec and symbol option 1`] = `"#20.48098"`; -exports[`finance > 1337 > amount > with min, max, dec, symbol and autoFormat option 1`] = `"#20.48099"`; +exports[`finance > 1337 > amount > with min, max, dec, symbol and autoFormat option 1`] = `"#20.48098"`; exports[`finance > 1337 > bic > noArgs 1`] = `"OEFHLYG18IL"`; diff --git a/test/modules/__snapshots__/location.spec.ts.snap b/test/modules/__snapshots__/location.spec.ts.snap index cfdc45f4b98..b4e2586b184 100644 --- a/test/modules/__snapshots__/location.spec.ts.snap +++ b/test/modules/__snapshots__/location.spec.ts.snap @@ -74,7 +74,7 @@ exports[`location > 42 > longitude > with precision option 1`] = `-45.1655588485 exports[`location > 42 > nearbyGPSCoordinate > near origin 1`] = ` [ - 0.08140632875358443, + 0.08140632875358447, -0.08093642792425726, ] `; @@ -234,7 +234,7 @@ exports[`location > 1211 > longitude > with precision option 1`] = `154.26725534 exports[`location > 1211 > nearbyGPSCoordinate > near origin 1`] = ` [ - -0.02872111236834616, + -0.02872111236834621, 0.05959024752564801, ] `; diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 97061d56ffe..81a1e992c72 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest'; import { faker, FakerError, SimpleFaker } from '../../src'; import { MERSENNE_MAX_VALUE } from '../internal/mersenne-test-utils'; import { seededTests } from '../support/seeded-runs'; +import { times } from './../support/times'; describe('number', () => { seededTests(faker, 'number', (t) => { @@ -259,17 +260,36 @@ describe('number', () => { expect(results).toEqual([0, 0.4, 0.8, 1.2, 1.6]); }); - it('provides numbers with an exact precision', () => { - for (let i = 0; i < 100; i++) { - const actual = faker.number.float({ - min: 0.5, - max: 0.99, - precision: 0.01, - }); - expect(actual).toBe(Number(actual.toFixed(2))); - } + it('provides numbers with a given precision of 0.2', () => { + const results = [ + ...new Set( + Array.from({ length: 50 }, () => + faker.number.float({ + min: 0, + max: 0.4, + precision: 0.2, + }) + ) + ), + ].sort(); + + expect(results).toEqual([0, 0.2, 0.4]); }); + it.each(times(18))( + `provides numbers with an exact precision of 10^-%d`, + (exponent) => { + for (let i = 0; i < 100; i++) { + const actual = faker.number.float({ + min: 0.5, + max: 0.99, + precision: 10 ** -exponent, + }); + expect(actual).toBe(Number(actual.toFixed(exponent))); + } + } + ); + it('throws an error for precision 0', () => { expect(() => faker.number.float({ precision: 0 })).toThrow( new FakerError('Precision should be greater than 0.') From 293f12741acb188fd8c7d9d6b3dc2dd9b52d4214 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 20:40:08 +0000 Subject: [PATCH 46/98] chore(deps): update devdependencies (#2587) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 16 +-- pnpm-lock.yaml | 331 ++++++++++++++++--------------------------------- 2 files changed, 116 insertions(+), 231 deletions(-) diff --git a/package.json b/package.json index 491e8899087..48cd1a1d907 100644 --- a/package.json +++ b/package.json @@ -90,9 +90,9 @@ "@actions/github": "~6.0.0", "@algolia/client-search": "~4.19.1", "@eslint-types/deprecation": "2.0.0-1", - "@eslint-types/jsdoc": "~46.9.0", - "@eslint-types/prettier": "5.0.1-1", - "@eslint-types/typescript-eslint": "~6.12.0", + "@eslint-types/jsdoc": "~46.9.1", + "@eslint-types/prettier": "5.1.2", + "@eslint-types/typescript-eslint": "~6.16.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", "@types/node": "~20.10.5", @@ -103,19 +103,19 @@ "@typescript-eslint/parser": "~6.14.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", - "@vueuse/core": "~10.7.0", + "@vueuse/core": "~10.7.1", "conventional-changelog-cli": "~4.1.0", - "cypress": "~13.6.1", + "cypress": "~13.6.2", "esbuild": "~0.19.10", "eslint": "~8.56.0", "eslint-config-prettier": "~9.1.0", - "eslint-define-config": "~2.0.0", + "eslint-define-config": "~2.1.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", "eslint-plugin-jsdoc": "~46.9.1", - "eslint-plugin-prettier": "~5.1.0", + "eslint-plugin-prettier": "~5.1.2", "eslint-plugin-unicorn": "~49.0.0", - "eslint-plugin-vitest": "~0.3.18", + "eslint-plugin-vitest": "~0.3.20", "glob": "~10.3.10", "npm-run-all": "~4.1.5", "prettier": "3.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e2b25ee225e..dc902d131cb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,14 +11,14 @@ devDependencies: specifier: 2.0.0-1 version: 2.0.0-1 '@eslint-types/jsdoc': - specifier: ~46.9.0 - version: 46.9.0 + specifier: ~46.9.1 + version: 46.9.1 '@eslint-types/prettier': - specifier: 5.0.1-1 - version: 5.0.1-1 + specifier: 5.1.2 + version: 5.1.2 '@eslint-types/typescript-eslint': - specifier: ~6.12.0 - version: 6.12.0 + specifier: ~6.16.0 + version: 6.16.0 '@eslint-types/unicorn': specifier: ~49.0.0 version: 49.0.0 @@ -50,14 +50,14 @@ devDependencies: specifier: ~0.34.7 version: 0.34.7(vitest@0.34.6) '@vueuse/core': - specifier: ~10.7.0 - version: 10.7.0(vue@3.3.13) + specifier: ~10.7.1 + version: 10.7.1(vue@3.3.13) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: - specifier: ~13.6.1 - version: 13.6.1 + specifier: ~13.6.2 + version: 13.6.2 esbuild: specifier: ~0.19.10 version: 0.19.10 @@ -68,8 +68,8 @@ devDependencies: specifier: ~9.1.0 version: 9.1.0(eslint@8.56.0) eslint-define-config: - specifier: ~2.0.0 - version: 2.0.0 + specifier: ~2.1.0 + version: 2.1.0 eslint-gitignore: specifier: ~0.1.0 version: 0.1.0(eslint@8.56.0) @@ -80,14 +80,14 @@ devDependencies: specifier: ~46.9.1 version: 46.9.1(eslint@8.56.0) eslint-plugin-prettier: - specifier: ~5.1.0 - version: 5.1.0(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1) + specifier: ~5.1.2 + version: 5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1) eslint-plugin-unicorn: specifier: ~49.0.0 version: 49.0.0(eslint@8.56.0) eslint-plugin-vitest: - specifier: ~0.3.18 - version: 0.3.18(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + specifier: ~0.3.20 + version: 0.3.20(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -901,16 +901,16 @@ packages: resolution: {integrity: sha512-bsl7dssIW598hWQBIsnKMHQCguXkjI14117dXVpRhaaGBmzUAJxGpL9ClM36alal6NSbljrxJvzBadINVcWeoQ==} dev: true - /@eslint-types/jsdoc@46.9.0: - resolution: {integrity: sha512-8ReQAHsUh5LzuDdrzCOsITR9EYgC99amt2qGyU2fJ8EAC2Q7Wnu+JI70dARzhfzTeOJ904LytLfUieBvIqpE9A==} + /@eslint-types/jsdoc@46.9.1: + resolution: {integrity: sha512-oKH2l8HALyZ3bQzSecoWYsJSgdTLILAYlY8dprNBg3LzUZtnfcq0P8ixDmE7UdMCujGAmmGtmgYbzmUDRxSkzg==} dev: true - /@eslint-types/prettier@5.0.1-1: - resolution: {integrity: sha512-z6B+TnNPZn9GiwfGBgkyE2eK8tnvnzE4Uy/4EkJHB0GJwin8jYD9RMAAwJauKQgUnJ42/Iox6k7BVnHpSbcmBg==} + /@eslint-types/prettier@5.1.2: + resolution: {integrity: sha512-C81jbseWJUUjGAwmX7dwNSAen8Uq6il1+6uW5vyr/rOTNezU8BvZRo+wP1lw8gsjFhG1AQ4eqXhnLE9e2tv9kQ==} dev: true - /@eslint-types/typescript-eslint@6.12.0: - resolution: {integrity: sha512-N8cbOYjyFl2BFgDhDgHhTGpgiMkFg0CoITG5hdBm9ZGmcEgUvFBnHvHG7qJl3qVEmFnoKUdfSAcr7MRb2/Jxvw==} + /@eslint-types/typescript-eslint@6.16.0: + resolution: {integrity: sha512-gLmHCSeeNtHfWJtAO5pBr4hD0aV60GyPDKJQm2JxlBJBoytJoKezan4Ak7FE9BsewaB+W3JQwsllspirHbHKLw==} dev: true /@eslint-types/unicorn@49.0.0: @@ -1142,16 +1142,9 @@ packages: dev: true optional: true - /@pkgr/utils@2.4.2: - resolution: {integrity: sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==} + /@pkgr/core@0.1.0: + resolution: {integrity: sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - dependencies: - cross-spawn: 7.0.3 - fast-glob: 3.3.2 - is-glob: 4.0.3 - open: 9.1.0 - picocolors: 1.0.0 - tslib: 2.6.2 dev: true /@polka/url@1.0.0-next.23: @@ -1315,6 +1308,14 @@ packages: '@typescript-eslint/visitor-keys': 6.14.0 dev: true + /@typescript-eslint/scope-manager@6.16.0: + resolution: {integrity: sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.16.0 + '@typescript-eslint/visitor-keys': 6.16.0 + dev: true + /@typescript-eslint/type-utils@6.14.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1345,6 +1346,11 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true + /@typescript-eslint/types@6.16.0: + resolution: {integrity: sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5): resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1387,6 +1393,28 @@ packages: - supports-color dev: true + /@typescript-eslint/typescript-estree@6.16.0(typescript@4.9.5): + resolution: {integrity: sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.16.0 + '@typescript-eslint/visitor-keys': 6.16.0 + debug: 4.3.4(supports-color@8.1.1) + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/utils@6.11.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1425,6 +1453,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.16.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.6 + '@typescript-eslint/scope-manager': 6.16.0 + '@typescript-eslint/types': 6.16.0 + '@typescript-eslint/typescript-estree': 6.16.0(typescript@4.9.5) + eslint: 8.56.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@6.11.0: resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1441,6 +1488,14 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@typescript-eslint/visitor-keys@6.16.0: + resolution: {integrity: sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.16.0 + eslint-visitor-keys: 3.4.3 + dev: true + /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true @@ -1637,12 +1692,12 @@ packages: - vue dev: true - /@vueuse/core@10.7.0(vue@3.3.13): - resolution: {integrity: sha512-4EUDESCHtwu44ZWK3Gc/hZUVhVo/ysvdtwocB5vcauSV4B7NiGY5972WnsojB3vRNdxvAt7kzJWE2h9h7C9d5w==} + /@vueuse/core@10.7.1(vue@3.3.13): + resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} dependencies: '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.7.0 - '@vueuse/shared': 10.7.0(vue@3.3.13) + '@vueuse/metadata': 10.7.1 + '@vueuse/shared': 10.7.1(vue@3.3.13) vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: - '@vue/composition-api' @@ -1703,8 +1758,8 @@ packages: resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==} dev: true - /@vueuse/metadata@10.7.0: - resolution: {integrity: sha512-GlaH7tKP2iBCZ3bHNZ6b0cl9g0CJK8lttkBNUX156gWvNYhTKEtbweWLm9rxCPIiwzYcr/5xML6T8ZUEt+DkvA==} + /@vueuse/metadata@10.7.1: + resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==} dev: true /@vueuse/shared@10.6.1(vue@3.3.13): @@ -1716,8 +1771,8 @@ packages: - vue dev: true - /@vueuse/shared@10.7.0(vue@3.3.13): - resolution: {integrity: sha512-kc00uV6CiaTdc3i1CDC4a3lBxzaBE9AgYNtFN87B5OOscqeWElj/uza8qVDmk7/U8JbqoONLbtqiLJ5LGRuqlw==} + /@vueuse/shared@10.7.1(vue@3.3.13): + resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} dependencies: vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: @@ -1963,11 +2018,6 @@ packages: resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==} dev: true - /big-integer@1.6.51: - resolution: {integrity: sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==} - engines: {node: '>=0.6'} - dev: true - /blob-util@2.0.2: resolution: {integrity: sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ==} dev: true @@ -1980,13 +2030,6 @@ packages: resolution: {integrity: sha512-a7tP5+0Mw3YlUJcGAKUqIBkYYGlYxk2fnCasq/FUph1hadxlTRjF+gAcZksxANnaMnALjxEddmSi/H3OR8ugcQ==} dev: true - /bplist-parser@0.2.0: - resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==} - engines: {node: '>= 5.10.0'} - dependencies: - big-integer: 1.6.51 - dev: true - /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: @@ -2027,13 +2070,6 @@ packages: engines: {node: '>=6'} dev: true - /bundle-name@3.0.0: - resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==} - engines: {node: '>=12'} - dependencies: - run-applescript: 5.0.0 - dev: true - /cac@6.7.14: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} @@ -2563,8 +2599,8 @@ packages: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} dev: true - /cypress@13.6.1: - resolution: {integrity: sha512-k1Wl5PQcA/4UoTffYKKaxA0FJKwg8yenYNYRzLt11CUR0Kln+h7Udne6mdU1cUIdXBDTVZWtmiUjzqGs7/pEpw==} + /cypress@13.6.2: + resolution: {integrity: sha512-TW3bGdPU4BrfvMQYv1z3oMqj71YI4AlgJgnrycicmPZAXtvywVFZW9DAToshO65D97rCWfG/kqMFsYB6Kp91gQ==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -2693,24 +2729,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /default-browser-id@3.0.0: - resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==} - engines: {node: '>=12'} - dependencies: - bplist-parser: 0.2.0 - untildify: 4.0.0 - dev: true - - /default-browser@4.0.0: - resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==} - engines: {node: '>=14.16'} - dependencies: - bundle-name: 3.0.0 - default-browser-id: 3.0.0 - execa: 7.2.0 - titleize: 3.0.0 - dev: true - /define-data-property@1.1.1: resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} engines: {node: '>= 0.4'} @@ -2720,11 +2738,6 @@ packages: has-property-descriptors: 1.0.1 dev: true - /define-lazy-prop@3.0.0: - resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} - engines: {node: '>=12'} - dev: true - /define-properties@1.2.1: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} @@ -3012,8 +3025,8 @@ packages: eslint: 8.56.0 dev: true - /eslint-define-config@2.0.0: - resolution: {integrity: sha512-M8ao9mAE35BGwjZeT8ZlsRA42wcJHWS29Avd0qfeclRXig6uTnGXcaO7UxVyFzUA1VJtxeV/acw4KrhJA3JqxQ==} + /eslint-define-config@2.1.0: + resolution: {integrity: sha512-QUp6pM9pjKEVannNAbSJNeRuYwW3LshejfyBBpjeMGaJjaDUpVps4C6KVR8R7dWZnD3i0synmrE36znjTkJvdQ==} engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} dev: true @@ -3066,8 +3079,8 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.1.0(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1): - resolution: {integrity: sha512-hQc+2zbnMeXcIkg+pKZtVa+3Yqx4WY7SMkn1PLZ4VbBEU7jJIpVn9347P8BBhTbz6ne85aXvQf30kvexcqBeWw==} + /eslint-plugin-prettier@5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1): + resolution: {integrity: sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: '@types/eslint': '>=8.0.0' @@ -3084,7 +3097,7 @@ packages: eslint-config-prettier: 9.1.0(eslint@8.56.0) prettier: 3.1.1 prettier-linter-helpers: 1.0.0 - synckit: 0.8.5 + synckit: 0.8.8 dev: true /eslint-plugin-unicorn@49.0.0(eslint@8.56.0): @@ -3110,8 +3123,8 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.18(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): - resolution: {integrity: sha512-IJzs6BpA//wkNxo5845uPIMOIp4j76MiKiagJ3hD6a2DemrktdpB7mmTjU0EeFuq14NXFoO1wN8Fwrx2VxWBRA==} + /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + resolution: {integrity: sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': '*' @@ -3124,7 +3137,7 @@ packages: optional: true dependencies: '@typescript-eslint/eslint-plugin': 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: @@ -3248,36 +3261,6 @@ packages: strip-final-newline: 2.0.0 dev: true - /execa@5.1.1: - resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} - engines: {node: '>=10'} - dependencies: - cross-spawn: 7.0.3 - get-stream: 6.0.1 - human-signals: 2.1.0 - is-stream: 2.0.1 - merge-stream: 2.0.0 - npm-run-path: 4.0.1 - onetime: 5.1.2 - signal-exit: 3.0.7 - strip-final-newline: 2.0.0 - dev: true - - /execa@7.2.0: - resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==} - engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} - dependencies: - cross-spawn: 7.0.3 - get-stream: 6.0.1 - human-signals: 4.3.1 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.1.0 - onetime: 6.0.0 - signal-exit: 3.0.7 - strip-final-newline: 3.0.0 - dev: true - /executable@4.1.1: resolution: {integrity: sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==} engines: {node: '>=4'} @@ -3532,11 +3515,6 @@ packages: pump: 3.0.0 dev: true - /get-stream@6.0.1: - resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} - engines: {node: '>=10'} - dev: true - /get-symbol-description@1.0.0: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} @@ -3808,16 +3786,6 @@ packages: engines: {node: '>=8.12.0'} dev: true - /human-signals@2.1.0: - resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} - engines: {node: '>=10.17.0'} - dev: true - - /human-signals@4.3.1: - resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==} - engines: {node: '>=14.18.0'} - dev: true - /ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} dev: true @@ -3932,18 +3900,6 @@ packages: has-tostringtag: 1.0.0 dev: true - /is-docker@2.2.1: - resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} - engines: {node: '>=8'} - hasBin: true - dev: true - - /is-docker@3.0.0: - resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - hasBin: true - dev: true - /is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -3961,14 +3917,6 @@ packages: is-extglob: 2.1.1 dev: true - /is-inside-container@1.0.0: - resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} - engines: {node: '>=14.16'} - hasBin: true - dependencies: - is-docker: 3.0.0 - dev: true - /is-installed-globally@0.4.0: resolution: {integrity: sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==} engines: {node: '>=10'} @@ -4033,11 +3981,6 @@ packages: engines: {node: '>=8'} dev: true - /is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dev: true - /is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} @@ -4088,13 +4031,6 @@ packages: call-bind: 1.0.5 dev: true - /is-wsl@2.2.0: - resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} - engines: {node: '>=8'} - dependencies: - is-docker: 2.2.1 - dev: true - /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} dev: true @@ -4502,11 +4438,6 @@ packages: engines: {node: '>=6'} dev: true - /mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - dev: true - /min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -4644,13 +4575,6 @@ packages: path-key: 3.1.1 dev: true - /npm-run-path@5.1.0: - resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - path-key: 4.0.0 - dev: true - /object-inspect@1.13.1: resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} dev: true @@ -4683,23 +4607,6 @@ packages: mimic-fn: 2.1.0 dev: true - /onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - dependencies: - mimic-fn: 4.0.0 - dev: true - - /open@9.1.0: - resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==} - engines: {node: '>=14.16'} - dependencies: - default-browser: 4.0.0 - define-lazy-prop: 3.0.0 - is-inside-container: 1.0.0 - is-wsl: 2.2.0 - dev: true - /optionator@0.9.3: resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'} @@ -4866,11 +4773,6 @@ packages: engines: {node: '>=8'} dev: true - /path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - dev: true - /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true @@ -5256,13 +5158,6 @@ packages: fsevents: 2.3.3 dev: true - /run-applescript@5.0.0: - resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==} - engines: {node: '>=12'} - dependencies: - execa: 5.1.1 - dev: true - /run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} dependencies: @@ -5648,11 +5543,6 @@ packages: engines: {node: '>=6'} dev: true - /strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - dev: true - /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -5697,11 +5587,11 @@ packages: engines: {node: '>= 0.4'} dev: true - /synckit@0.8.5: - resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==} + /synckit@0.8.8: + resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==} engines: {node: ^14.18.0 || >=16.0.0} dependencies: - '@pkgr/utils': 2.4.2 + '@pkgr/core': 0.1.0 tslib: 2.6.2 dev: true @@ -5779,11 +5669,6 @@ packages: engines: {node: '>=14.0.0'} dev: true - /titleize@3.0.0: - resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==} - engines: {node: '>=12'} - dev: true - /tmp@0.2.1: resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==} engines: {node: '>=8.17.0'} @@ -6154,7 +6039,7 @@ packages: '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.13) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.0(vue@3.3.13) + '@vueuse/core': 10.7.1(vue@3.3.13) '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.13) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.4 From 1fc1bcc5d4d5ac842156cbc00901649dc4c2f624 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 28 Dec 2023 15:27:37 +0100 Subject: [PATCH 47/98] chore(typescript-eslint): no-useless-template-literals (#2589) --- src/modules/commerce/index.ts | 2 +- src/modules/lorem/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/commerce/index.ts b/src/modules/commerce/index.ts index 425bc8483e9..6750299bafc 100644 --- a/src/modules/commerce/index.ts +++ b/src/modules/commerce/index.ts @@ -283,7 +283,7 @@ export class CommerceModule extends ModuleBase { const { dec = 2, max = 1000, min = 1, symbol = '' } = options; if (min < 0 || max < 0) { - return `${symbol}${0.0}`; + return `${symbol}0`; } // TODO @Shinigami92 2022-11-24: https://github.com/faker-js/faker/issues/350 diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index ca71afdf7fd..1f9ba026327 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -327,7 +327,7 @@ export class LoremModule extends ModuleBase { const method = this.faker.helpers.arrayElement(methods); - return `${this[method]()}`; + return this[method](); } /** From 945acc151f01d87613cb5c13fd3841b982428254 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 15:41:18 +0100 Subject: [PATCH 48/98] chore(deps): update typescript-eslint to ~6.16.0 (#2588) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 109 +++++++++++-------------------------------------- 2 files changed, 26 insertions(+), 87 deletions(-) diff --git a/package.json b/package.json index 48cd1a1d907..f8b053b0b6e 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", - "@typescript-eslint/eslint-plugin": "~6.14.0", - "@typescript-eslint/parser": "~6.14.0", + "@typescript-eslint/eslint-plugin": "~6.16.0", + "@typescript-eslint/parser": "~6.16.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc902d131cb..2de3cd3ba70 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.7 version: 13.11.7 '@typescript-eslint/eslint-plugin': - specifier: ~6.14.0 - version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.16.0 + version: 6.16.0(@typescript-eslint/parser@6.16.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.14.0 - version: 6.14.0(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.16.0 + version: 6.16.0(eslint@8.56.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.20 - version: 0.3.20(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.20(@typescript-eslint/eslint-plugin@6.16.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1242,8 +1242,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==} + /@typescript-eslint/eslint-plugin@6.16.0(@typescript-eslint/parser@6.16.0)(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1254,11 +1254,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.14.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/type-utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.14.0 + '@typescript-eslint/parser': 6.16.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.16.0 + '@typescript-eslint/type-utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.16.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 graphemer: 1.4.0 @@ -1271,8 +1271,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.14.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==} + /@typescript-eslint/parser@6.16.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1281,10 +1281,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.14.0 + '@typescript-eslint/scope-manager': 6.16.0 + '@typescript-eslint/types': 6.16.0 + '@typescript-eslint/typescript-estree': 6.16.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.16.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 typescript: 4.9.5 @@ -1300,14 +1300,6 @@ packages: '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/scope-manager@6.14.0: - resolution: {integrity: sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/visitor-keys': 6.14.0 - dev: true - /@typescript-eslint/scope-manager@6.16.0: resolution: {integrity: sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1316,8 +1308,8 @@ packages: '@typescript-eslint/visitor-keys': 6.16.0 dev: true - /@typescript-eslint/type-utils@6.14.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==} + /@typescript-eslint/type-utils@6.16.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1326,8 +1318,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.14.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.16.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1341,11 +1333,6 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.14.0: - resolution: {integrity: sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/types@6.16.0: resolution: {integrity: sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1372,27 +1359,6 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.14.0(typescript@4.9.5): - resolution: {integrity: sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/visitor-keys': 6.14.0 - debug: 4.3.4(supports-color@8.1.1) - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@4.9.5) - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/typescript-estree@6.16.0(typescript@4.9.5): resolution: {integrity: sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1434,25 +1400,6 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.14.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.14.0 - '@typescript-eslint/types': 6.14.0 - '@typescript-eslint/typescript-estree': 6.14.0(typescript@4.9.5) - eslint: 8.56.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - /@typescript-eslint/utils@6.16.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1480,14 +1427,6 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.14.0: - resolution: {integrity: sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.14.0 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/visitor-keys@6.16.0: resolution: {integrity: sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3123,7 +3062,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.14.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.16.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3136,7 +3075,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.16.0(@typescript-eslint/parser@6.16.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 vitest: 0.34.6(@vitest/ui@0.34.7) From a87602b3c45b1f7903460adfd6268c65c8669682 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:50:43 +0100 Subject: [PATCH 49/98] chore(deps): update doc-dependencies (#2301) --- docs/.vitepress/config.ts | 9 +- docs/.vitepress/theme/index.css | 4 +- docs/api/ApiIndex.vue | 6 +- package.json | 6 +- pnpm-lock.yaml | 763 +++++++++--------- scripts/apidoc.ts | 6 +- scripts/apidoc/generate.ts | 2 +- scripts/apidoc/typedoc.ts | 24 +- .../apidoc/__snapshots__/module.spec.ts.snap | 2 +- .../__snapshots__/signature.spec.ts.snap | 116 +-- test/scripts/apidoc/module.spec.ts | 7 +- test/scripts/apidoc/signature.debug.ts | 3 +- test/scripts/apidoc/signature.spec.ts | 7 +- test/scripts/apidoc/utils.ts | 24 +- test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 182 ++--- vite.config.ts | 21 + 16 files changed, 633 insertions(+), 549 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 6dc31dd6078..cdb0ae9e62c 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,5 +1,5 @@ -import { defineConfig } from 'vitepress'; -import { DefaultTheme } from 'vitepress/theme'; +import type { UserConfig } from 'vitepress'; +import type { DefaultTheme } from 'vitepress/theme'; import { apiPages } from './api-pages'; import { currentVersion, oldVersions, versionBannerInfix } from './versions'; @@ -55,7 +55,8 @@ function extendSideNav(current: SidebarItem): SidebarItem[] { return links; } -const config = defineConfig({ +// TODO @Shinigami92 2023-12-28: reuse `defineConfig` from vitepress, when we can go esm-only +const config: UserConfig = { title: 'Faker', description, @@ -259,7 +260,7 @@ const config = defineConfig({ __BANNER__: versionBannerInfix ?? false, }, }, -}); +}; if (versionBannerInfix) { config.head?.push([ diff --git a/docs/.vitepress/theme/index.css b/docs/.vitepress/theme/index.css index f6981bb9eaf..0d8e1853738 100644 --- a/docs/.vitepress/theme/index.css +++ b/docs/.vitepress/theme/index.css @@ -15,6 +15,6 @@ table td ul li { } .VPHero .action:not(:last-child) a.VPButton.alt { - border-color: var(--vp-button-brand-border) !important; - color: var(--vp-button-brand-border) !important; + border-color: var(--vp-button-brand-bg) !important; + color: var(--vp-button-brand-text) !important; } diff --git a/docs/api/ApiIndex.vue b/docs/api/ApiIndex.vue index 7ef64a802dc..3d2130cd83e 100644 --- a/docs/api/ApiIndex.vue +++ b/docs/api/ApiIndex.vue @@ -120,7 +120,7 @@ h2 { h3 { letter-spacing: -0.01em; - color: var(--vp-c-green); + color: var(--vp-c-brand-1); font-size: 18px; margin-bottom: 1em; transition: color 0.5s; @@ -147,7 +147,7 @@ h3 { } .api-groups ul a:hover { - color: var(--vp-c-green); + color: var(--vp-c-brand-1); transition: none; } @@ -181,7 +181,7 @@ h3 { } .api-filter:focus { - border-color: var(--vp-c-green-light); + border-color: var(--vp-c-brand-2); } .no-match { diff --git a/package.json b/package.json index f8b053b0b6e..fd099531d1d 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ }, "devDependencies": { "@actions/github": "~6.0.0", - "@algolia/client-search": "~4.19.1", + "@algolia/client-search": "~4.22.0", "@eslint-types/deprecation": "2.0.0-1", "@eslint-types/jsdoc": "~46.9.1", "@eslint-types/prettier": "5.1.2", @@ -125,11 +125,11 @@ "semver": "~7.5.4", "standard-version": "~9.5.0", "tsx": "~3.13.0", - "typedoc": "~0.24.8", + "typedoc": "~0.25.4", "typescript": "~4.9.5", "validator": "~13.11.0", "vite": "~4.5.1", - "vitepress": "1.0.0-beta.7", + "vitepress": "1.0.0-rc.29", "vitest": "~0.34.6", "vue": "~3.3.13" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2de3cd3ba70..63ccc1c5ca6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,8 +5,8 @@ devDependencies: specifier: ~6.0.0 version: 6.0.0 '@algolia/client-search': - specifier: ~4.19.1 - version: 4.19.1 + specifier: ~4.22.0 + version: 4.22.0 '@eslint-types/deprecation': specifier: 2.0.0-1 version: 2.0.0-1 @@ -116,8 +116,8 @@ devDependencies: specifier: ~3.13.0 version: 3.13.0 typedoc: - specifier: ~0.24.8 - version: 0.24.8(typescript@4.9.5) + specifier: ~0.25.4 + version: 0.25.4(typescript@4.9.5) typescript: specifier: ~4.9.5 version: 4.9.5 @@ -128,8 +128,8 @@ devDependencies: specifier: ~4.5.1 version: 4.5.1(@types/node@20.10.5) vitepress: - specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.5)(search-insights@2.11.0)(typescript@4.9.5) + specifier: 1.0.0-rc.29 + version: 1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.5)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -148,185 +148,150 @@ packages: resolution: {integrity: sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==} dependencies: '@actions/http-client': 2.2.0 - '@octokit/core': 5.0.1 - '@octokit/plugin-paginate-rest': 9.1.4(@octokit/core@5.0.1) - '@octokit/plugin-rest-endpoint-methods': 10.1.5(@octokit/core@5.0.1) + '@octokit/core': 5.0.2 + '@octokit/plugin-paginate-rest': 9.1.5(@octokit/core@5.0.2) + '@octokit/plugin-rest-endpoint-methods': 10.2.0(@octokit/core@5.0.2) dev: true /@actions/http-client@2.2.0: resolution: {integrity: sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==} dependencies: tunnel: 0.0.6 - undici: 5.27.2 + undici: 5.28.2 dev: true - /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0): + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0) - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) transitivePeerDependencies: - '@algolia/client-search' - algoliasearch - search-insights dev: true - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) - search-insights: 2.11.0 + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) + search-insights: 2.13.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch dev: true - /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0): + /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0): resolution: {integrity: sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) - '@algolia/client-search': 4.19.1 - algoliasearch: 4.20.0 + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) + '@algolia/client-search': 4.22.0 + algoliasearch: 4.22.0 dev: true - /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0): + /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0): resolution: {integrity: sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/client-search': 4.19.1 - algoliasearch: 4.20.0 + '@algolia/client-search': 4.22.0 + algoliasearch: 4.22.0 dev: true - /@algolia/cache-browser-local-storage@4.20.0: - resolution: {integrity: sha512-uujahcBt4DxduBTvYdwO3sBfHuJvJokiC3BP1+O70fglmE1ShkH8lpXqZBac1rrU3FnNYSUs4pL9lBdTKeRPOQ==} + /@algolia/cache-browser-local-storage@4.22.0: + resolution: {integrity: sha512-uZ1uZMLDZb4qODLfTSNHxSi4fH9RdrQf7DXEzW01dS8XK7QFtFh29N5NGKa9S+Yudf1vUMIF+/RiL4i/J0pWlQ==} dependencies: - '@algolia/cache-common': 4.20.0 + '@algolia/cache-common': 4.22.0 dev: true - /@algolia/cache-common@4.19.1: - resolution: {integrity: sha512-XGghi3l0qA38HiqdoUY+wvGyBsGvKZ6U3vTiMBT4hArhP3fOGLXpIINgMiiGjTe4FVlTa5a/7Zf2bwlIHfRqqg==} + /@algolia/cache-common@4.22.0: + resolution: {integrity: sha512-TPwUMlIGPN16eW67qamNQUmxNiGHg/WBqWcrOoCddhqNTqGDPVqmgfaM85LPbt24t3r1z0zEz/tdsmuq3Q6oaA==} dev: true - /@algolia/cache-common@4.20.0: - resolution: {integrity: sha512-vCfxauaZutL3NImzB2G9LjLt36vKAckc6DhMp05An14kVo8F1Yofb6SIl6U3SaEz8pG2QOB9ptwM5c+zGevwIQ==} - dev: true - - /@algolia/cache-in-memory@4.20.0: - resolution: {integrity: sha512-Wm9ak/IaacAZXS4mB3+qF/KCoVSBV6aLgIGFEtQtJwjv64g4ePMapORGmCyulCFwfePaRAtcaTbMcJF+voc/bg==} - dependencies: - '@algolia/cache-common': 4.20.0 - dev: true - - /@algolia/client-account@4.20.0: - resolution: {integrity: sha512-GGToLQvrwo7am4zVkZTnKa72pheQeez/16sURDWm7Seyz+HUxKi3BM6fthVVPUEBhtJ0reyVtuK9ArmnaKl10Q==} - dependencies: - '@algolia/client-common': 4.20.0 - '@algolia/client-search': 4.20.0 - '@algolia/transporter': 4.20.0 - dev: true - - /@algolia/client-analytics@4.20.0: - resolution: {integrity: sha512-EIr+PdFMOallRdBTHHdKI3CstslgLORQG7844Mq84ib5oVFRVASuuPmG4bXBgiDbcsMLUeOC6zRVJhv1KWI0ug==} + /@algolia/cache-in-memory@4.22.0: + resolution: {integrity: sha512-kf4Cio9NpPjzp1+uXQgL4jsMDeck7MP89BYThSvXSjf2A6qV/0KeqQf90TL2ECS02ovLOBXkk98P7qVarM+zGA==} dependencies: - '@algolia/client-common': 4.20.0 - '@algolia/client-search': 4.20.0 - '@algolia/requester-common': 4.20.0 - '@algolia/transporter': 4.20.0 + '@algolia/cache-common': 4.22.0 dev: true - /@algolia/client-common@4.19.1: - resolution: {integrity: sha512-3kAIVqTcPrjfS389KQvKzliC559x+BDRxtWamVJt8IVp7LGnjq+aVAXg4Xogkur1MUrScTZ59/AaUd5EdpyXgA==} + /@algolia/client-account@4.22.0: + resolution: {integrity: sha512-Bjb5UXpWmJT+yGWiqAJL0prkENyEZTBzdC+N1vBuHjwIJcjLMjPB6j1hNBRbT12Lmwi55uzqeMIKS69w+0aPzA==} dependencies: - '@algolia/requester-common': 4.19.1 - '@algolia/transporter': 4.19.1 + '@algolia/client-common': 4.22.0 + '@algolia/client-search': 4.22.0 + '@algolia/transporter': 4.22.0 dev: true - /@algolia/client-common@4.20.0: - resolution: {integrity: sha512-P3WgMdEss915p+knMMSd/fwiHRHKvDu4DYRrCRaBrsfFw7EQHon+EbRSm4QisS9NYdxbS04kcvNoavVGthyfqQ==} + /@algolia/client-analytics@4.22.0: + resolution: {integrity: sha512-os2K+kHUcwwRa4ArFl5p/3YbF9lN3TLOPkbXXXxOvDpqFh62n9IRZuzfxpHxMPKAQS3Et1s0BkKavnNP02E9Hg==} dependencies: - '@algolia/requester-common': 4.20.0 - '@algolia/transporter': 4.20.0 + '@algolia/client-common': 4.22.0 + '@algolia/client-search': 4.22.0 + '@algolia/requester-common': 4.22.0 + '@algolia/transporter': 4.22.0 dev: true - /@algolia/client-personalization@4.20.0: - resolution: {integrity: sha512-N9+zx0tWOQsLc3K4PVRDV8GUeOLAY0i445En79Pr3zWB+m67V+n/8w4Kw1C5LlbHDDJcyhMMIlqezh6BEk7xAQ==} + /@algolia/client-common@4.22.0: + resolution: {integrity: sha512-BlbkF4qXVWuwTmYxVWvqtatCR3lzXwxx628p1wj1Q7QP2+LsTmGt1DiUYRuy9jG7iMsnlExby6kRMOOlbhv2Ag==} dependencies: - '@algolia/client-common': 4.20.0 - '@algolia/requester-common': 4.20.0 - '@algolia/transporter': 4.20.0 + '@algolia/requester-common': 4.22.0 + '@algolia/transporter': 4.22.0 dev: true - /@algolia/client-search@4.19.1: - resolution: {integrity: sha512-mBecfMFS4N+yK/p0ZbK53vrZbL6OtWMk8YmnOv1i0LXx4pelY8TFhqKoTit3NPVPwoSNN0vdSN9dTu1xr1XOVw==} + /@algolia/client-personalization@4.22.0: + resolution: {integrity: sha512-pEOftCxeBdG5pL97WngOBi9w5Vxr5KCV2j2D+xMVZH8MuU/JX7CglDSDDb0ffQWYqcUN+40Ry+xtXEYaGXTGow==} dependencies: - '@algolia/client-common': 4.19.1 - '@algolia/requester-common': 4.19.1 - '@algolia/transporter': 4.19.1 + '@algolia/client-common': 4.22.0 + '@algolia/requester-common': 4.22.0 + '@algolia/transporter': 4.22.0 dev: true - /@algolia/client-search@4.20.0: - resolution: {integrity: sha512-zgwqnMvhWLdpzKTpd3sGmMlr4c+iS7eyyLGiaO51zDZWGMkpgoNVmltkzdBwxOVXz0RsFMznIxB9zuarUv4TZg==} + /@algolia/client-search@4.22.0: + resolution: {integrity: sha512-bn4qQiIdRPBGCwsNuuqB8rdHhGKKWIij9OqidM1UkQxnSG8yzxHdb7CujM30pvp5EnV7jTqDZRbxacbjYVW20Q==} dependencies: - '@algolia/client-common': 4.20.0 - '@algolia/requester-common': 4.20.0 - '@algolia/transporter': 4.20.0 - dev: true - - /@algolia/logger-common@4.19.1: - resolution: {integrity: sha512-i6pLPZW/+/YXKis8gpmSiNk1lOmYCmRI6+x6d2Qk1OdfvX051nRVdalRbEcVTpSQX6FQAoyeaui0cUfLYW5Elw==} + '@algolia/client-common': 4.22.0 + '@algolia/requester-common': 4.22.0 + '@algolia/transporter': 4.22.0 dev: true - /@algolia/logger-common@4.20.0: - resolution: {integrity: sha512-xouigCMB5WJYEwvoWW5XDv7Z9f0A8VoXJc3VKwlHJw/je+3p2RcDXfksLI4G4lIVncFUYMZx30tP/rsdlvvzHQ==} + /@algolia/logger-common@4.22.0: + resolution: {integrity: sha512-HMUQTID0ucxNCXs5d1eBJ5q/HuKg8rFVE/vOiLaM4Abfeq1YnTtGV3+rFEhOPWhRQxNDd+YHa4q864IMc0zHpQ==} dev: true - /@algolia/logger-console@4.20.0: - resolution: {integrity: sha512-THlIGG1g/FS63z0StQqDhT6bprUczBI8wnLT3JWvfAQDZX5P6fCg7dG+pIrUBpDIHGszgkqYEqECaKKsdNKOUA==} + /@algolia/logger-console@4.22.0: + resolution: {integrity: sha512-7JKb6hgcY64H7CRm3u6DRAiiEVXMvCJV5gRE672QFOUgDxo4aiDpfU61g6Uzy8NKjlEzHMmgG4e2fklELmPXhQ==} dependencies: - '@algolia/logger-common': 4.20.0 + '@algolia/logger-common': 4.22.0 dev: true - /@algolia/requester-browser-xhr@4.20.0: - resolution: {integrity: sha512-HbzoSjcjuUmYOkcHECkVTwAelmvTlgs48N6Owt4FnTOQdwn0b8pdht9eMgishvk8+F8bal354nhx/xOoTfwiAw==} + /@algolia/requester-browser-xhr@4.22.0: + resolution: {integrity: sha512-BHfv1h7P9/SyvcDJDaRuIwDu2yrDLlXlYmjvaLZTtPw6Ok/ZVhBR55JqW832XN/Fsl6k3LjdkYHHR7xnsa5Wvg==} dependencies: - '@algolia/requester-common': 4.20.0 - dev: true - - /@algolia/requester-common@4.19.1: - resolution: {integrity: sha512-BisRkcWVxrDzF1YPhAckmi2CFYK+jdMT60q10d7z3PX+w6fPPukxHRnZwooiTUrzFe50UBmLItGizWHP5bDzVQ==} - dev: true - - /@algolia/requester-common@4.20.0: - resolution: {integrity: sha512-9h6ye6RY/BkfmeJp7Z8gyyeMrmmWsMOCRBXQDs4mZKKsyVlfIVICpcSibbeYcuUdurLhIlrOUkH3rQEgZzonng==} + '@algolia/requester-common': 4.22.0 dev: true - /@algolia/requester-node-http@4.20.0: - resolution: {integrity: sha512-ocJ66L60ABSSTRFnCHIEZpNHv6qTxsBwJEPfYaSBsLQodm0F9ptvalFkHMpvj5DfE22oZrcrLbOYM2bdPJRHng==} - dependencies: - '@algolia/requester-common': 4.20.0 + /@algolia/requester-common@4.22.0: + resolution: {integrity: sha512-Y9cEH/cKjIIZgzvI1aI0ARdtR/xRrOR13g5psCxkdhpgRN0Vcorx+zePhmAa4jdQNqexpxtkUdcKYugBzMZJgQ==} dev: true - /@algolia/transporter@4.19.1: - resolution: {integrity: sha512-nkpvPWbpuzxo1flEYqNIbGz7xhfhGOKGAZS7tzC+TELgEmi7z99qRyTfNSUlW7LZmB3ACdnqAo+9A9KFBENviQ==} + /@algolia/requester-node-http@4.22.0: + resolution: {integrity: sha512-8xHoGpxVhz3u2MYIieHIB6MsnX+vfd5PS4REgglejJ6lPigftRhTdBCToe6zbwq4p0anZXjjPDvNWMlgK2+xYA==} dependencies: - '@algolia/cache-common': 4.19.1 - '@algolia/logger-common': 4.19.1 - '@algolia/requester-common': 4.19.1 + '@algolia/requester-common': 4.22.0 dev: true - /@algolia/transporter@4.20.0: - resolution: {integrity: sha512-Lsii1pGWOAISbzeyuf+r/GPhvHMPHSPrTDWNcIzOE1SG1inlJHICaVe2ikuoRjcpgxZNU54Jl+if15SUCsaTUg==} + /@algolia/transporter@4.22.0: + resolution: {integrity: sha512-ieO1k8x2o77GNvOoC+vAkFKppydQSVfbjM3YrSjLmgywiBejPTvU1R1nEvG59JIIUvtSLrZsLGPkd6vL14zopA==} dependencies: - '@algolia/cache-common': 4.20.0 - '@algolia/logger-common': 4.20.0 - '@algolia/requester-common': 4.20.0 + '@algolia/cache-common': 4.22.0 + '@algolia/logger-common': 4.22.0 + '@algolia/requester-common': 4.22.0 dev: true /@ampproject/remapping@2.2.1: @@ -337,16 +302,16 @@ packages: '@jridgewell/trace-mapping': 0.3.20 dev: true - /@babel/code-frame@7.22.13: - resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + /@babel/code-frame@7.23.5: + resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.22.20 + '@babel/highlight': 7.23.4 chalk: 2.4.2 dev: true - /@babel/helper-string-parser@7.22.5: - resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} + /@babel/helper-string-parser@7.23.4: + resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} dev: true @@ -355,8 +320,8 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/highlight@7.22.20: - resolution: {integrity: sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==} + /@babel/highlight@7.23.4: + resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-validator-identifier': 7.22.20 @@ -364,19 +329,19 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/parser@7.23.5: - resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==} + /@babel/parser@7.23.6: + resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.23.3 + '@babel/types': 7.23.6 dev: true - /@babel/types@7.23.3: - resolution: {integrity: sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==} + /@babel/types@7.23.6: + resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.22.5 + '@babel/helper-string-parser': 7.23.4 '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 dev: true @@ -429,11 +394,11 @@ packages: resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==} dev: true - /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0): + /@docsearch/js@3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0): resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: - '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) - preact: 10.19.2 + '@docsearch/react': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) + preact: 10.19.3 transitivePeerDependencies: - '@algolia/client-search' - '@types/react' @@ -442,7 +407,7 @@ packages: - search-insights dev: true - /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0): + /@docsearch/react@3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0): resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -459,11 +424,11 @@ packages: search-insights: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0)(search-insights@2.11.0) - '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.20.0) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0) + '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) '@docsearch/css': 3.5.2 - algoliasearch: 4.20.0 - search-insights: 2.11.0 + algoliasearch: 4.22.0 + search-insights: 2.13.0 transitivePeerDependencies: - '@algolia/client-search' dev: true @@ -924,7 +889,7 @@ packages: ajv: 6.12.6 debug: 4.3.4(supports-color@8.1.1) espree: 9.6.1 - globals: 13.23.0 + globals: 13.24.0 ignore: 5.3.0 import-fresh: 3.3.0 js-yaml: 4.1.0 @@ -1046,7 +1011,7 @@ packages: engines: {node: '>= 8'} dependencies: '@nodelib/fs.scandir': 2.1.5 - fastq: 1.15.0 + fastq: 1.16.0 dev: true /@octokit/auth-token@4.0.0: @@ -1054,25 +1019,24 @@ packages: engines: {node: '>= 18'} dev: true - /@octokit/core@5.0.1: - resolution: {integrity: sha512-lyeeeZyESFo+ffI801SaBKmCfsvarO+dgV8/0gD8u1d87clbEdWsP5yC+dSj3zLhb2eIf5SJrn6vDz9AheETHw==} + /@octokit/core@5.0.2: + resolution: {integrity: sha512-cZUy1gUvd4vttMic7C0lwPed8IYXWYp8kHIMatyhY8t8n3Cpw2ILczkV5pGMPqef7v0bLo0pOHrEHarsau2Ydg==} engines: {node: '>= 18'} dependencies: '@octokit/auth-token': 4.0.0 '@octokit/graphql': 7.0.2 - '@octokit/request': 8.1.5 + '@octokit/request': 8.1.6 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.3.0 + '@octokit/types': 12.4.0 before-after-hook: 2.2.3 universal-user-agent: 6.0.1 dev: true - /@octokit/endpoint@9.0.2: - resolution: {integrity: sha512-qhKW8YLIi+Kmc92FQUFGr++DYtkx/1fBv+Thua6baqnjnOsgBYJDCvWZR1YcINuHGOEQt416WOfE+A/oG60NBQ==} + /@octokit/endpoint@9.0.4: + resolution: {integrity: sha512-DWPLtr1Kz3tv8L0UvXTDP1fNwM0S+z6EJpRcvH66orY6Eld4XBMCSYsaWp4xIm61jTWxK68BrR7ibO+vSDnZqw==} engines: {node: '>= 18'} dependencies: - '@octokit/types': 12.3.0 - is-plain-object: 5.0.0 + '@octokit/types': 12.4.0 universal-user-agent: 6.0.1 dev: true @@ -1080,59 +1044,58 @@ packages: resolution: {integrity: sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q==} engines: {node: '>= 18'} dependencies: - '@octokit/request': 8.1.5 - '@octokit/types': 12.3.0 + '@octokit/request': 8.1.6 + '@octokit/types': 12.4.0 universal-user-agent: 6.0.1 dev: true - /@octokit/openapi-types@19.0.2: - resolution: {integrity: sha512-8li32fUDUeml/ACRp/njCWTsk5t17cfTM1jp9n08pBrqs5cDFJubtjsSnuz56r5Tad6jdEPJld7LxNp9dNcyjQ==} + /@octokit/openapi-types@19.1.0: + resolution: {integrity: sha512-6G+ywGClliGQwRsjvqVYpklIfa7oRPA0vyhPQG/1Feh+B+wU0vGH1JiJ5T25d3g1JZYBHzR2qefLi9x8Gt+cpw==} dev: true - /@octokit/plugin-paginate-rest@9.1.4(@octokit/core@5.0.1): - resolution: {integrity: sha512-MvZx4WvfhBnt7PtH5XE7HORsO7bBk4er1FgRIUr1qJ89NR2I6bWjGyKsxk8z42FPQ34hFQm0Baanh4gzdZR4gQ==} + /@octokit/plugin-paginate-rest@9.1.5(@octokit/core@5.0.2): + resolution: {integrity: sha512-WKTQXxK+bu49qzwv4qKbMMRXej1DU2gq017euWyKVudA6MldaSSQuxtz+vGbhxV4CjxpUxjZu6rM2wfc1FiWVg==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': '>=5' dependencies: - '@octokit/core': 5.0.1 - '@octokit/types': 12.3.0 + '@octokit/core': 5.0.2 + '@octokit/types': 12.4.0 dev: true - /@octokit/plugin-rest-endpoint-methods@10.1.5(@octokit/core@5.0.1): - resolution: {integrity: sha512-LMEdsMV8TTMjMTqVoqMzV95XTbv0ZsWxCxQtjAunQOCdwoDH4BVF/Ke5JMSZEVCWGI2kzxnUNbFnK/MxwV7NjA==} + /@octokit/plugin-rest-endpoint-methods@10.2.0(@octokit/core@5.0.2): + resolution: {integrity: sha512-ePbgBMYtGoRNXDyKGvr9cyHjQ163PbwD0y1MkDJCpkO2YH4OeXX40c4wYHKikHGZcpGPbcRLuy0unPUuafco8Q==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': '>=5' dependencies: - '@octokit/core': 5.0.1 - '@octokit/types': 12.3.0 + '@octokit/core': 5.0.2 + '@octokit/types': 12.4.0 dev: true /@octokit/request-error@5.0.1: resolution: {integrity: sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==} engines: {node: '>= 18'} dependencies: - '@octokit/types': 12.3.0 + '@octokit/types': 12.4.0 deprecation: 2.3.1 once: 1.4.0 dev: true - /@octokit/request@8.1.5: - resolution: {integrity: sha512-zVKbNbX1xUluD9ZR4/tPs1yuYrK9xeh5fGZUXA6u04XGsTvomg0YO8/ZUC0FqAd49hAOEMFPAVUTh+2lBhOhLA==} + /@octokit/request@8.1.6: + resolution: {integrity: sha512-YhPaGml3ncZC1NfXpP3WZ7iliL1ap6tLkAp6MvbK2fTTPytzVUyUesBBogcdMm86uRYO5rHaM1xIWxigWZ17MQ==} engines: {node: '>= 18'} dependencies: - '@octokit/endpoint': 9.0.2 + '@octokit/endpoint': 9.0.4 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.3.0 - is-plain-object: 5.0.0 + '@octokit/types': 12.4.0 universal-user-agent: 6.0.1 dev: true - /@octokit/types@12.3.0: - resolution: {integrity: sha512-nJ8X2HRr234q3w/FcovDlA+ttUU4m1eJAourvfUUtwAWeqL8AsyRqfnLvVnYn3NFbUnsmzQCzLNdFerPwdmcDQ==} + /@octokit/types@12.4.0: + resolution: {integrity: sha512-FLWs/AvZllw/AGVs+nJ+ELCDZZJk+kY0zMen118xhL2zD0s1etIUHm1odgjP7epxYU1ln7SZxEUWYop5bhsdgQ==} dependencies: - '@octokit/openapi-types': 19.0.2 + '@octokit/openapi-types': 19.1.0 dev: true /@pkgjs/parseargs@0.11.0: @@ -1147,9 +1110,113 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dev: true - /@polka/url@1.0.0-next.23: - resolution: {integrity: sha512-C16M+IYz0rgRhWZdCmK+h58JMv8vijAA61gmz2rspCSwKwzBebpdcsiUmwrtJRdphuY30i6BSLEOP8ppbNLyLg==} + /@polka/url@1.0.0-next.24: + resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} + dev: true + + /@rollup/rollup-android-arm-eabi@4.9.1: + resolution: {integrity: sha512-6vMdBZqtq1dVQ4CWdhFwhKZL6E4L1dV6jUjuBvsavvNJSppzi6dLBbuV+3+IyUREaj9ZFvQefnQm28v4OCXlig==} + cpu: [arm] + os: [android] + requiresBuild: true dev: true + optional: true + + /@rollup/rollup-android-arm64@4.9.1: + resolution: {integrity: sha512-Jto9Fl3YQ9OLsTDWtLFPtaIMSL2kwGyGoVCmPC8Gxvym9TCZm4Sie+cVeblPO66YZsYH8MhBKDMGZ2NDxuk/XQ==} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-darwin-arm64@4.9.1: + resolution: {integrity: sha512-LtYcLNM+bhsaKAIGwVkh5IOWhaZhjTfNOkGzGqdHvhiCUVuJDalvDxEdSnhFzAn+g23wgsycmZk1vbnaibZwwA==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-darwin-x64@4.9.1: + resolution: {integrity: sha512-KyP/byeXu9V+etKO6Lw3E4tW4QdcnzDG/ake031mg42lob5tN+5qfr+lkcT/SGZaH2PdW4Z1NX9GHEkZ8xV7og==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm-gnueabihf@4.9.1: + resolution: {integrity: sha512-Yqz/Doumf3QTKplwGNrCHe/B2p9xqDghBZSlAY0/hU6ikuDVQuOUIpDP/YcmoT+447tsZTmirmjgG3znvSCR0Q==} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm64-gnu@4.9.1: + resolution: {integrity: sha512-u3XkZVvxcvlAOlQJ3UsD1rFvLWqu4Ef/Ggl40WAVCuogf4S1nJPHh5RTgqYFpCOvuGJ7H5yGHabjFKEZGExk5Q==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm64-musl@4.9.1: + resolution: {integrity: sha512-0XSYN/rfWShW+i+qjZ0phc6vZ7UWI8XWNz4E/l+6edFt+FxoEghrJHjX1EY/kcUGCnZzYYRCl31SNdfOi450Aw==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.9.1: + resolution: {integrity: sha512-LmYIO65oZVfFt9t6cpYkbC4d5lKHLYv5B4CSHRpnANq0VZUQXGcCPXHzbCXCz4RQnx7jvlYB1ISVNCE/omz5cw==} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-x64-gnu@4.9.1: + resolution: {integrity: sha512-kr8rEPQ6ns/Lmr/hiw8sEVj9aa07gh1/tQF2Y5HrNCCEPiCBGnBUt9tVusrcBBiJfIt1yNaXN6r1CCmpbFEDpg==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-x64-musl@4.9.1: + resolution: {integrity: sha512-t4QSR7gN+OEZLG0MiCgPqMWZGwmeHhsM4AkegJ0Kiy6TnJ9vZ8dEIwHw1LcZKhbHxTY32hp9eVCMdR3/I8MGRw==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-win32-arm64-msvc@4.9.1: + resolution: {integrity: sha512-7XI4ZCBN34cb+BH557FJPmh0kmNz2c25SCQeT9OiFWEgf8+dL6ZwJ8f9RnUIit+j01u07Yvrsuu1rZGxJCc51g==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-win32-ia32-msvc@4.9.1: + resolution: {integrity: sha512-yE5c2j1lSWOH5jp+Q0qNL3Mdhr8WuqCNVjc6BxbVfS5cAS6zRmdiw7ktb8GNpDCEUJphILY6KACoFoRtKoqNQg==} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-win32-x64-msvc@4.9.1: + resolution: {integrity: sha512-PyJsSsafjmIhVgaI1Zdj7m8BB8mMckFah/xbpplObyHfiXzKcI5UOUXRyOdHW7nz4DpMCuzLnF7v5IWHenCwYA==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} @@ -1158,11 +1225,11 @@ packages: /@types/chai-subset@1.3.5: resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} dependencies: - '@types/chai': 4.3.10 + '@types/chai': 4.3.11 dev: true - /@types/chai@4.3.10: - resolution: {integrity: sha512-of+ICnbqjmFCiixUnqRulbylyXQrPqIGf/B3Jax1wIF3DvSheysQxAWvqHhZiW3IQrycvokcLcFQlveGp+vyNg==} + /@types/chai@4.3.11: + resolution: {integrity: sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==} dev: true /@types/istanbul-lib-coverage@2.0.6: @@ -1192,8 +1259,8 @@ packages: resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: true - /@types/node@18.18.9: - resolution: {integrity: sha512-0f5klcuImLnG4Qreu9hPj/rEfFq6YRc5n2mAjSsH+ec/mJL+3voBH0+8T7o8RpFjH7ovc+TRsL/c7OYIQsPTfQ==} + /@types/node@18.19.3: + resolution: {integrity: sha512-k5fggr14DwAytoA/t8rPrIz++lXK7/DqckthCmoZOKNsEbJkId4Z//BqgApXBUGrGddrigYa1oqheo/7YmW4rg==} dependencies: undici-types: 5.26.5 dev: true @@ -1222,8 +1289,8 @@ packages: resolution: {integrity: sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==} dev: true - /@types/sizzle@2.3.6: - resolution: {integrity: sha512-m04Om5Gz6kbjUwAQ7XJJQ30OdEFsSmAVsvn4NYwcTRyMVpKKa1aPuESw1n2CxS5fYkOQv3nHgDKeNa8e76fUkw==} + /@types/sizzle@2.3.8: + resolution: {integrity: sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==} dev: true /@types/validator@13.11.7: @@ -1292,14 +1359,6 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager@6.11.0: - resolution: {integrity: sha512-0A8KoVvIURG4uhxAdjSaxy8RdRE//HztaZdG8KiHLP8WOXSk0vlF7Pvogv+vlJA5Rnjj/wDcFENvDaHb+gKd1A==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.11.0 - '@typescript-eslint/visitor-keys': 6.11.0 - dev: true - /@typescript-eslint/scope-manager@6.16.0: resolution: {integrity: sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1328,37 +1387,11 @@ packages: - supports-color dev: true - /@typescript-eslint/types@6.11.0: - resolution: {integrity: sha512-ZbEzuD4DwEJxwPqhv3QULlRj8KYTAnNsXxmfuUXFCxZmO6CF2gM/y+ugBSAQhrqaJL3M+oe4owdWunaHM6beqA==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/types@6.16.0: resolution: {integrity: sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5): - resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 6.11.0 - '@typescript-eslint/visitor-keys': 6.11.0 - debug: 4.3.4(supports-color@8.1.1) - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@4.9.5) - typescript: 4.9.5 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/typescript-estree@6.16.0(typescript@4.9.5): resolution: {integrity: sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1381,25 +1414,6 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.11.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.11.0 - '@typescript-eslint/types': 6.11.0 - '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5) - eslint: 8.56.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - /@typescript-eslint/utils@6.16.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1419,14 +1433,6 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys@6.11.0: - resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.11.0 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/visitor-keys@6.16.0: resolution: {integrity: sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1439,14 +1445,14 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.5.0(vite@4.5.1)(vue@3.3.13): - resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} + /@vitejs/plugin-vue@4.6.0(vite@5.0.10)(vue@3.3.13): + resolution: {integrity: sha512-XHuyFdAikWRmHuAd89FOyUGIjrBU5KlxJtyi2hVeR9ySGFxQwE0bl5xAQju/ArMq5azdBivY4d+D2yPKwoYWUg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.1(@types/node@20.10.5) + vite: 5.0.10(@types/node@20.10.5) vue: 3.3.13(typescript@4.9.5) dev: true @@ -1463,9 +1469,9 @@ packages: istanbul-reports: 3.1.6 magic-string: 0.30.5 picocolors: 1.0.0 - std-env: 3.5.0 + std-env: 3.7.0 test-exclude: 6.0.0 - v8-to-istanbul: 9.1.3 + v8-to-istanbul: 9.2.0 vitest: 0.34.6(@vitest/ui@0.34.7) transitivePeerDependencies: - supports-color @@ -1512,7 +1518,7 @@ packages: flatted: 3.2.9 pathe: 1.1.1 picocolors: 1.0.0 - sirv: 2.0.3 + sirv: 2.0.4 vitest: 0.34.6(@vitest/ui@0.34.7) dev: true @@ -1535,7 +1541,7 @@ packages: /@vue/compiler-core@3.3.13: resolution: {integrity: sha512-bwi9HShGu7uaZLOErZgsH2+ojsEdsjerbf2cMXPwmvcgZfVPZ2BVZzCVnwZBxTAYd6Mzbmf6izcUNDkWnBBQ6A==} dependencies: - '@babel/parser': 7.23.5 + '@babel/parser': 7.23.6 '@vue/shared': 3.3.13 estree-walker: 2.0.2 source-map-js: 1.0.2 @@ -1551,7 +1557,7 @@ packages: /@vue/compiler-sfc@3.3.13: resolution: {integrity: sha512-DQVmHEy/EKIgggvnGRLx21hSqnr1smUS9Aq8tfxiiot8UR0/pXKHN9k78/qQ7etyQTFj5em5nruODON7dBeumw==} dependencies: - '@babel/parser': 7.23.5 + '@babel/parser': 7.23.6 '@vue/compiler-core': 3.3.13 '@vue/compiler-dom': 3.3.13 '@vue/compiler-ssr': 3.3.13 @@ -1577,7 +1583,7 @@ packages: /@vue/reactivity-transform@3.3.13: resolution: {integrity: sha512-oWnydGH0bBauhXvh5KXUy61xr9gKaMbtsMHk40IK9M4gMuKPJ342tKFarY0eQ6jef8906m35q37wwA8DMZOm5Q==} dependencies: - '@babel/parser': 7.23.5 + '@babel/parser': 7.23.6 '@vue/compiler-core': 3.3.13 '@vue/shared': 3.3.13 estree-walker: 2.0.2 @@ -1619,18 +1625,6 @@ packages: resolution: {integrity: sha512-/zYUwiHD8j7gKx2argXEMCUXVST6q/21DFU0sTfNX0URJroCe3b1UF6vLJ3lQDfLNIiiRl2ONp7Nh5UVWS6QnA==} dev: true - /@vueuse/core@10.6.1(vue@3.3.13): - resolution: {integrity: sha512-Pc26IJbqgC9VG1u6VY/xrXXfxD33hnvxBnKrLlA2LJlyHII+BSrRoTPJgGYq7qZOu61itITFUnm6QbacwZ4H8Q==} - dependencies: - '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.6.1 - '@vueuse/shared': 10.6.1(vue@3.3.13) - vue-demi: 0.14.6(vue@3.3.13) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: true - /@vueuse/core@10.7.1(vue@3.3.13): resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} dependencies: @@ -1643,8 +1637,8 @@ packages: - vue dev: true - /@vueuse/integrations@10.6.1(focus-trap@7.5.4)(vue@3.3.13): - resolution: {integrity: sha512-mPDupuofMJ4DPmtX/FfP1MajmWRzYDv8WSaTCo8LQ5kFznjWgmUQ16ApjYqgMquqffNY6+IRMdMgosLDRZOSZA==} + /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.3.13): + resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==} peerDependencies: async-validator: '*' axios: '*' @@ -1684,8 +1678,8 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.6.1(vue@3.3.13) - '@vueuse/shared': 10.6.1(vue@3.3.13) + '@vueuse/core': 10.7.1(vue@3.3.13) + '@vueuse/shared': 10.7.1(vue@3.3.13) focus-trap: 7.5.4 vue-demi: 0.14.6(vue@3.3.13) transitivePeerDependencies: @@ -1693,23 +1687,10 @@ packages: - vue dev: true - /@vueuse/metadata@10.6.1: - resolution: {integrity: sha512-qhdwPI65Bgcj23e5lpGfQsxcy0bMjCAsUGoXkJ7DsoeDUdasbZ2DBa4dinFCOER3lF4gwUv+UD2AlA11zdzMFw==} - dev: true - /@vueuse/metadata@10.7.1: resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==} dev: true - /@vueuse/shared@10.6.1(vue@3.3.13): - resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==} - dependencies: - vue-demi: 0.14.6(vue@3.3.13) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: true - /@vueuse/shared@10.7.1(vue@3.3.13): resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} dependencies: @@ -1735,8 +1716,8 @@ packages: acorn: 8.11.2 dev: true - /acorn-walk@8.3.0: - resolution: {integrity: sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==} + /acorn-walk@8.3.1: + resolution: {integrity: sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==} engines: {node: '>=0.4.0'} dev: true @@ -1767,23 +1748,23 @@ packages: uri-js: 4.4.1 dev: true - /algoliasearch@4.20.0: - resolution: {integrity: sha512-y+UHEjnOItoNy0bYO+WWmLWBlPwDjKHW6mNHrPi0NkuhpQOOEbrkwQH/wgKFDLh7qlKjzoKeiRtlpewDPDG23g==} + /algoliasearch@4.22.0: + resolution: {integrity: sha512-gfceltjkwh7PxXwtkS8KVvdfK+TSNQAWUeNSxf4dA29qW5tf2EGwa8jkJujlT9jLm17cixMVoGNc+GJFO1Mxhg==} dependencies: - '@algolia/cache-browser-local-storage': 4.20.0 - '@algolia/cache-common': 4.20.0 - '@algolia/cache-in-memory': 4.20.0 - '@algolia/client-account': 4.20.0 - '@algolia/client-analytics': 4.20.0 - '@algolia/client-common': 4.20.0 - '@algolia/client-personalization': 4.20.0 - '@algolia/client-search': 4.20.0 - '@algolia/logger-common': 4.20.0 - '@algolia/logger-console': 4.20.0 - '@algolia/requester-browser-xhr': 4.20.0 - '@algolia/requester-common': 4.20.0 - '@algolia/requester-node-http': 4.20.0 - '@algolia/transporter': 4.20.0 + '@algolia/cache-browser-local-storage': 4.22.0 + '@algolia/cache-common': 4.22.0 + '@algolia/cache-in-memory': 4.22.0 + '@algolia/client-account': 4.22.0 + '@algolia/client-analytics': 4.22.0 + '@algolia/client-common': 4.22.0 + '@algolia/client-personalization': 4.22.0 + '@algolia/client-search': 4.22.0 + '@algolia/logger-common': 4.22.0 + '@algolia/logger-console': 4.22.0 + '@algolia/requester-browser-xhr': 4.22.0 + '@algolia/requester-common': 4.22.0 + '@algolia/requester-node-http': 4.22.0 + '@algolia/transporter': 4.22.0 dev: true /ansi-colors@4.1.3: @@ -1965,10 +1946,6 @@ packages: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} dev: true - /body-scroll-lock@4.0.0-beta.0: - resolution: {integrity: sha512-a7tP5+0Mw3YlUJcGAKUqIBkYYGlYxk2fnCasq/FUph1hadxlTRjF+gAcZksxANnaMnALjxEddmSi/H3OR8ugcQ==} - dev: true - /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: @@ -2546,9 +2523,9 @@ packages: dependencies: '@cypress/request': 3.0.1 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) - '@types/node': 18.18.9 + '@types/node': 18.19.3 '@types/sinonjs__fake-timers': 8.1.1 - '@types/sizzle': 2.3.6 + '@types/sizzle': 2.3.8 arch: 2.2.0 blob-util: 2.0.2 bluebird: 3.7.2 @@ -2840,7 +2817,7 @@ packages: is-weakref: 1.0.2 object-inspect: 1.13.1 object-keys: 1.1.1 - object.assign: 4.1.4 + object.assign: 4.1.5 regexp.prototype.flags: 1.5.1 safe-array-concat: 1.0.1 safe-regex-test: 1.0.0 @@ -2989,7 +2966,7 @@ packages: eslint: ^7.0.0 || ^8.0.0 typescript: ^4.2.4 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 6.11.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 tslib: 2.6.2 tsutils: 3.21.0(typescript@4.9.5) @@ -3125,7 +3102,7 @@ packages: file-entry-cache: 6.0.1 find-up: 5.0.0 glob-parent: 6.0.2 - globals: 13.23.0 + globals: 13.24.0 graphemer: 1.4.0 ignore: 5.3.0 imurmurhash: 0.1.4 @@ -3257,8 +3234,8 @@ packages: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: true - /fastq@1.15.0: - resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} + /fastq@1.16.0: + resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==} dependencies: reusify: 1.0.4 dev: true @@ -3578,8 +3555,8 @@ packages: ini: 2.0.0 dev: true - /globals@13.23.0: - resolution: {integrity: sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==} + /globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} dependencies: type-fest: 0.20.2 @@ -3695,7 +3672,7 @@ packages: resolution: {integrity: sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA==} engines: {node: ^16.14.0 || >=18.0.0} dependencies: - lru-cache: 10.0.2 + lru-cache: 10.1.0 dev: true /html-escaper@2.0.2: @@ -4071,8 +4048,8 @@ packages: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true - /json-parse-even-better-errors@3.0.0: - resolution: {integrity: sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==} + /json-parse-even-better-errors@3.0.1: + resolution: {integrity: sha512-aatBvbL26wVUCLmbWdCpeu9iF5wOyWpagiKkInA+kfws3sWdBrTnsvN2CKcyCYyUrc7rebNBlK6+kteg7ksecg==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dev: true @@ -4264,11 +4241,9 @@ packages: get-func-name: 2.0.2 dev: true - /lru-cache@10.0.2: - resolution: {integrity: sha512-Yj9mA8fPiVgOUpByoTZO5pNrcl5Yk37FcSHsUINpAsaBIEZIuqcCclDZJCVxqQShDsmYX8QG63svJiTbOATZwg==} + /lru-cache@10.1.0: + resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==} engines: {node: 14 || >=16.14} - dependencies: - semver: 7.5.4 dev: true /lru-cache@6.0.0: @@ -4413,8 +4388,8 @@ packages: engines: {node: '>=16 || 14 >=14.17'} dev: true - /minisearch@6.2.0: - resolution: {integrity: sha512-BECkorDF1TY2rGKt9XHdSeP9TP29yUbrAaCh/C03wpyf1vx3uYcP/+8XlMcpTkgoU0rBVnHMAOaP83Rc9Tm+TQ==} + /minisearch@6.3.0: + resolution: {integrity: sha512-ihFnidEeU8iXzcVHy74dhkxh/dn8Dc08ERl0xwoMMGqp4+LvRSCgicb+zGqWthVokQKvCSxITlh3P08OzdTYCQ==} dev: true /mlly@1.4.2: @@ -4436,6 +4411,11 @@ packages: engines: {node: '>=10'} dev: true + /mrmime@2.0.0: + resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} + engines: {node: '>=10'} + dev: true + /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true @@ -4523,8 +4503,8 @@ packages: engines: {node: '>= 0.4'} dev: true - /object.assign@4.1.4: - resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} + /object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.5 @@ -4661,7 +4641,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.22.13 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -4671,9 +4651,9 @@ packages: resolution: {integrity: sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==} engines: {node: '>=16'} dependencies: - '@babel/code-frame': 7.22.13 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 - json-parse-even-better-errors: 3.0.0 + json-parse-even-better-errors: 3.0.1 lines-and-columns: 2.0.4 type-fest: 3.13.1 dev: true @@ -4720,7 +4700,7 @@ packages: resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} engines: {node: '>=16 || 14 >=14.17'} dependencies: - lru-cache: 10.0.2 + lru-cache: 10.1.0 minipass: 7.0.4 dev: true @@ -4790,15 +4770,6 @@ packages: engines: {node: '>=4'} dev: true - /postcss@8.4.31: - resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.0 - source-map-js: 1.0.2 - dev: true - /postcss@8.4.32: resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==} engines: {node: ^10 || ^12 || >=14} @@ -4808,8 +4779,8 @@ packages: source-map-js: 1.0.2 dev: true - /preact@10.19.2: - resolution: {integrity: sha512-UA9DX/OJwv6YwP9Vn7Ti/vF80XL+YA5H2l7BpCtUr3ya8LWHFzpiO5R+N7dN16ujpIxhekRFuOOF82bXX7K/lg==} + /preact@10.19.3: + resolution: {integrity: sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==} dev: true /prelude-ls@1.2.1: @@ -4925,7 +4896,7 @@ packages: dependencies: find-up: 6.3.0 read-pkg: 8.1.0 - type-fest: 4.8.1 + type-fest: 4.9.0 dev: true /read-pkg-up@3.0.0: @@ -4971,7 +4942,7 @@ packages: '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.0 parse-json: 7.1.1 - type-fest: 4.8.1 + type-fest: 4.9.0 dev: true /readable-stream@2.3.8: @@ -5097,6 +5068,27 @@ packages: fsevents: 2.3.3 dev: true + /rollup@4.9.1: + resolution: {integrity: sha512-pgPO9DWzLoW/vIhlSoDByCzcpX92bKEorbgXuZrqxByte3JFk2xSW2JEeAcyLc9Ru9pqcNNW+Ob7ntsk2oT/Xw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.9.1 + '@rollup/rollup-android-arm64': 4.9.1 + '@rollup/rollup-darwin-arm64': 4.9.1 + '@rollup/rollup-darwin-x64': 4.9.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.9.1 + '@rollup/rollup-linux-arm64-gnu': 4.9.1 + '@rollup/rollup-linux-arm64-musl': 4.9.1 + '@rollup/rollup-linux-riscv64-gnu': 4.9.1 + '@rollup/rollup-linux-x64-gnu': 4.9.1 + '@rollup/rollup-linux-x64-musl': 4.9.1 + '@rollup/rollup-win32-arm64-msvc': 4.9.1 + '@rollup/rollup-win32-ia32-msvc': 4.9.1 + '@rollup/rollup-win32-x64-msvc': 4.9.1 + fsevents: 2.3.3 + dev: true + /run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} dependencies: @@ -5147,11 +5139,11 @@ packages: htmlparser2: 8.0.2 is-plain-object: 5.0.0 parse-srcset: 1.0.2 - postcss: 8.4.31 + postcss: 8.4.32 dev: true - /search-insights@2.11.0: - resolution: {integrity: sha512-Uin2J8Bpm3xaZi9Y8QibSys6uJOFZ+REMrf42v20AA3FUDUrshKkMEP6liJbMAHCm71wO6ls4mwAf7a3gFVxLw==} + /search-insights@2.13.0: + resolution: {integrity: sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==} dev: true /semver@5.7.2: @@ -5219,8 +5211,8 @@ packages: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} dev: true - /shiki@0.14.5: - resolution: {integrity: sha512-1gCAYOcmCFONmErGTrS1fjzJLA7MGZmKzrBNX7apqSwhyITJg2O102uFzXUeBxNnEkDA9vHIKLyeKq0V083vIw==} + /shiki@0.14.7: + resolution: {integrity: sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==} dependencies: ansi-sequence-parser: 1.1.1 jsonc-parser: 3.2.0 @@ -5249,12 +5241,12 @@ packages: engines: {node: '>=14'} dev: true - /sirv@2.0.3: - resolution: {integrity: sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==} + /sirv@2.0.4: + resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} engines: {node: '>= 10'} dependencies: - '@polka/url': 1.0.0-next.23 - mrmime: 1.0.1 + '@polka/url': 1.0.0-next.24 + mrmime: 2.0.0 totalist: 3.0.1 dev: true @@ -5385,8 +5377,8 @@ packages: yargs: 16.2.0 dev: true - /std-env@3.5.0: - resolution: {integrity: sha512-JGUEaALvL0Mf6JCfYnJOTcobY+Nc7sG/TemDRBqCA0wEr4DER7zDchaaixTlmOxAjG1uRJmX82EQcxwTQTkqVA==} + /std-env@3.7.0: + resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} dev: true /string-width@4.2.3: @@ -5742,8 +5734,8 @@ packages: engines: {node: '>=14.16'} dev: true - /type-fest@4.8.1: - resolution: {integrity: sha512-ShaaYnjf+0etG8W/FumARKMjjIToy/haCaTjN2dvcewOSoNqCQzdgG7m2JVOlM5qndGTHjkvsrWZs+k/2Z7E0Q==} + /type-fest@4.9.0: + resolution: {integrity: sha512-KS/6lh/ynPGiHD/LnAobrEFq3Ad4pBzOlJ1wAnJx9N4EYoqFhMfLIBjUT2UEx4wg5ZE+cC1ob6DCSpppVo+rtg==} engines: {node: '>=16'} dev: true @@ -5789,17 +5781,17 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typedoc@0.24.8(typescript@4.9.5): - resolution: {integrity: sha512-ahJ6Cpcvxwaxfu4KtjA8qZNqS43wYt6JL27wYiIgl1vd38WW/KWX11YuAeZhuz9v+ttrutSsgK+XO1CjL1kA3w==} - engines: {node: '>= 14.14'} + /typedoc@0.25.4(typescript@4.9.5): + resolution: {integrity: sha512-Du9ImmpBCw54bX275yJrxPVnjdIyJO/84co0/L9mwe0R3G4FSR6rQ09AlXVRvZEGMUg09+z/usc8mgygQ1aidA==} + engines: {node: '>= 16'} hasBin: true peerDependencies: - typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x dependencies: lunr: 2.3.9 marked: 4.3.0 minimatch: 9.0.3 - shiki: 0.14.5 + shiki: 0.14.7 typescript: 4.9.5 dev: true @@ -5834,8 +5826,8 @@ packages: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} dev: true - /undici@5.27.2: - resolution: {integrity: sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==} + /undici@5.28.2: + resolution: {integrity: sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w==} engines: {node: '>=14.0'} dependencies: '@fastify/busboy': 2.1.0 @@ -5882,8 +5874,8 @@ packages: hasBin: true dev: true - /v8-to-istanbul@9.1.3: - resolution: {integrity: sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==} + /v8-to-istanbul@9.2.0: + resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} engines: {node: '>=10.12.0'} dependencies: '@jridgewell/trace-mapping': 0.3.20 @@ -5964,28 +5956,73 @@ packages: dependencies: '@types/node': 20.10.5 esbuild: 0.18.20 - postcss: 8.4.31 + postcss: 8.4.32 rollup: 3.29.4 optionalDependencies: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.10.5)(search-insights@2.11.0)(typescript@4.9.5): - resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} + /vite@5.0.10(@types/node@20.10.5): + resolution: {integrity: sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + '@types/node': 20.10.5 + esbuild: 0.19.10 + postcss: 8.4.32 + rollup: 4.9.1 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /vitepress@1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.5)(search-insights@2.13.0)(typescript@4.9.5): + resolution: {integrity: sha512-6sKmyEvH16SgMqkHzRwwadt9Uju13AOIqouzOVEg3Rk6X9mds6jLsq2GxnAJvg0s6bl/0Qs/cw+f8SNki82ltw==} hasBin: true + peerDependencies: + markdown-it-mathjax3: ^4.3.2 + postcss: ^8.4.31 + peerDependenciesMeta: + markdown-it-mathjax3: + optional: true + postcss: + optional: true dependencies: '@docsearch/css': 3.5.2 - '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.11.0) - '@vitejs/plugin-vue': 4.5.0(vite@4.5.1)(vue@3.3.13) + '@docsearch/js': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) + '@types/markdown-it': 13.0.7 + '@vitejs/plugin-vue': 4.6.0(vite@5.0.10)(vue@3.3.13) '@vue/devtools-api': 6.5.1 '@vueuse/core': 10.7.1(vue@3.3.13) - '@vueuse/integrations': 10.6.1(focus-trap@7.5.4)(vue@3.3.13) - body-scroll-lock: 4.0.0-beta.0 + '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.3.13) focus-trap: 7.5.4 mark.js: 8.11.1 - minisearch: 6.2.0 - shiki: 0.14.5 - vite: 4.5.1(@types/node@20.10.5) + minisearch: 6.3.0 + mrmime: 1.0.1 + shiki: 0.14.7 + vite: 5.0.10(@types/node@20.10.5) vue: 3.3.13(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' @@ -6046,7 +6083,7 @@ packages: webdriverio: optional: true dependencies: - '@types/chai': 4.3.10 + '@types/chai': 4.3.11 '@types/chai-subset': 1.3.5 '@types/node': 20.10.5 '@vitest/expect': 0.34.6 @@ -6056,7 +6093,7 @@ packages: '@vitest/ui': 0.34.7(vitest@0.34.6) '@vitest/utils': 0.34.6 acorn: 8.11.2 - acorn-walk: 8.3.0 + acorn-walk: 8.3.1 cac: 6.7.14 chai: 4.3.10 debug: 4.3.4(supports-color@8.1.1) @@ -6064,7 +6101,7 @@ packages: magic-string: 0.30.5 pathe: 1.1.1 picocolors: 1.0.0 - std-env: 3.5.0 + std-env: 3.7.0 strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index 8c7ac6b8046..d7c965aeded 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -8,4 +8,8 @@ async function build(): Promise { await generate(); } -build().catch(console.error); +build().catch((error) => { + // Workaround until top level await is available + console.error(error); + process.exit(1); +}); diff --git a/scripts/apidoc/generate.ts b/scripts/apidoc/generate.ts index 44610869b84..eb00cea461a 100644 --- a/scripts/apidoc/generate.ts +++ b/scripts/apidoc/generate.ts @@ -17,7 +17,7 @@ const pathOutputJson = resolve(pathOutputDir, 'typedoc.json'); * Generates the API documentation. */ export async function generate(): Promise { - const [app, project] = loadProject(); + const [app, project] = await loadProject(); // Useful for manually analyzing the content await app.generateJson(project, pathOutputJson); diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 1e548c14906..4d6a2b6c313 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -31,19 +31,17 @@ type CommentHolder = Pick; * * @returns The TypeDoc application and the project reflection. */ -export function loadProject( +export async function loadProject( options: Partial = { entryPoints: ['src/index.ts'], pretty: true, cleanOutputDir: true, tsconfig: 'tsconfig.build.json', } -): [Application, ProjectReflection] { - const app = newTypeDocApp(); +): Promise<[Application, ProjectReflection]> { + const app = await newTypeDocApp(options); - app.bootstrap(options); - - const project = app.convert(); + const project = await app.convert(); if (!project) { throw new Error('Failed to convert project'); @@ -56,13 +54,15 @@ export function loadProject( /** * Creates and configures a new typedoc application. + * + * @param options The options to use for the project. */ -function newTypeDocApp(): Application { - const app = new Application(); - - app.options.addReader(new TSConfigReader()); - // If you want TypeDoc to load typedoc.json files - //app.options.addReader(new TypeDoc.TypeDocReader()); +async function newTypeDocApp( + options?: Partial +): Promise { + const app = await Application.bootstrapWithPlugins(options, [ + new TSConfigReader(), + ]); // Read parameter defaults app.converter.on(Converter.EVENT_CREATE_DECLARATION, parameterDefaultReader); diff --git a/test/scripts/apidoc/__snapshots__/module.spec.ts.snap b/test/scripts/apidoc/__snapshots__/module.spec.ts.snap index 3afdab63b01..dcd88cd0cf3 100644 --- a/test/scripts/apidoc/__snapshots__/module.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/module.spec.ts.snap @@ -12,7 +12,7 @@ exports[`module > analyzeModule() > ModuleExampleTest 1`] = ` { "comment": "This is a description for a module with a code example.", "deprecated": undefined, - "examples": "
ts
new ModuleExampleTest()
+ "examples": "
ts
new ModuleExampleTest()
new ModuleExampleTest()
", } `; diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index 84365003a9d..04e2ee97c6f 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -5,10 +5,13 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` "deprecated": undefined, "description": "

Complex array parameter.

", - "examples": "
ts
complexArrayParameter<T>(array: readonly Array<{
-  value: T,
-  weight: number
-}>): T
+ "examples": "
ts
complexArrayParameter<T>(array: readonly Array<{
+  value: T,
+  weight: number
+}>): T
complexArrayParameter<T>(array: readonly Array<{
+  value: T,
+  weight: number
+}>): T
", "name": "complexArrayParameter", "parameters": [ @@ -53,7 +56,7 @@ exports[`signature > analyzeSignature() > defaultBooleanParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a default parameter.

", - "examples": "
ts
defaultBooleanParamMethod(c: boolean = true): number
+ "examples": "
ts
defaultBooleanParamMethod(c: boolean = true): number
defaultBooleanParamMethod(c: boolean = true): number
", "name": "defaultBooleanParamMethod", "parameters": [ @@ -105,7 +108,7 @@ exports[`signature > analyzeSignature() > functionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a function parameters.

", - "examples": "
ts
functionParamMethod(fn: (a: string) => number): number
+ "examples": "
ts
functionParamMethod(fn: (a: string) => number): number
functionParamMethod(fn: (a: string) => number): number
", "name": "functionParamMethod", "parameters": [ @@ -130,7 +133,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with LiteralUnion.

", - "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
+ "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
", "name": "literalUnionParamMethod", "parameters": [ @@ -191,7 +194,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = ` ", "description": "

Test with deprecated and see marker.

", - "examples": "
ts
methodWithDeprecated(): number
+ "examples": "
ts
methodWithDeprecated(): number
methodWithDeprecated(): number
", "name": "methodWithDeprecated", "parameters": [], @@ -210,11 +213,15 @@ exports[`signature > analyzeSignature() > methodWithDeprecatedOption 1`] = ` "deprecated": undefined, "description": "

Test with deprecated option.

", - "examples": "
ts
methodWithDeprecatedOption(option: {
-  a: string,
-  b: () => number,
-  c: number
-}): number
+ "examples": "
ts
methodWithDeprecatedOption(option: {
+  a: string,
+  b: () => number,
+  c: number
+}): number
methodWithDeprecatedOption(option: {
+  a: string,
+  b: () => number,
+  c: number
+}): number
", "name": "methodWithDeprecatedOption", "parameters": [ @@ -262,8 +269,9 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "deprecated": undefined, "description": "

Test with example marker.

", - "examples": "
ts
methodWithExample(): number
-test.apidoc.methodWithExample() // 0
+ "examples": "
ts
methodWithExample(): number
+test.apidoc.methodWithExample() // 0
methodWithExample(): number
+test.apidoc.methodWithExample() // 0
", "name": "methodWithExample", "parameters": [], @@ -280,7 +288,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "deprecated": undefined, "description": "

Test with multiple see markers.

", - "examples": "
ts
methodWithMultipleSeeMarkers(): number
+ "examples": "
ts
methodWithMultipleSeeMarkers(): number
methodWithMultipleSeeMarkers(): number
", "name": "methodWithMultipleSeeMarkers", "parameters": [], @@ -300,7 +308,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "deprecated": undefined, "description": "

Test with multiple see markers and backticks.

", - "examples": "
ts
methodWithMultipleSeeMarkersAndBackticks(): number
+ "examples": "
ts
methodWithMultipleSeeMarkersAndBackticks(): number
methodWithMultipleSeeMarkersAndBackticks(): number
", "name": "methodWithMultipleSeeMarkersAndBackticks", "parameters": [], @@ -320,7 +328,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleThrows 1`] = ` "deprecated": undefined, "description": "

Test with multiple throws.

", - "examples": "
ts
methodWithMultipleThrows(): number
+ "examples": "
ts
methodWithMultipleThrows(): number
methodWithMultipleThrows(): number
", "name": "methodWithMultipleThrows", "parameters": [], @@ -338,7 +346,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "deprecated": undefined, "description": "

Test with since marker.

", - "examples": "
ts
methodWithSinceMarker(): number
+ "examples": "
ts
methodWithSinceMarker(): number
methodWithSinceMarker(): number
", "name": "methodWithSinceMarker", "parameters": [], @@ -355,7 +363,7 @@ exports[`signature > analyzeSignature() > methodWithThrows 1`] = ` "deprecated": undefined, "description": "

Test with throws.

", - "examples": "
ts
methodWithThrows(): number
+ "examples": "
ts
methodWithThrows(): number
methodWithThrows(): number
", "name": "methodWithThrows", "parameters": [], @@ -372,7 +380,7 @@ exports[`signature > analyzeSignature() > multiParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with multiple parameters.

", - "examples": "
ts
multiParamMethod(a: number, b?: string, c: boolean = true): number
+ "examples": "
ts
multiParamMethod(a: number, b?: string, c: boolean = true): number
multiParamMethod(a: number, b?: string, c: boolean = true): number
", "name": "multiParamMethod", "parameters": [ @@ -411,7 +419,7 @@ exports[`signature > analyzeSignature() > noParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with no parameters.

", - "examples": "
ts
noParamMethod(): number
+ "examples": "
ts
noParamMethod(): number
noParamMethod(): number
", "name": "noParamMethod", "parameters": [], @@ -428,7 +436,7 @@ exports[`signature > analyzeSignature() > optionalStringParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with an optional parameter.

", - "examples": "
ts
optionalStringParamMethod(b?: string): number
+ "examples": "
ts
optionalStringParamMethod(b?: string): number
optionalStringParamMethod(b?: string): number
", "name": "optionalStringParamMethod", "parameters": [ @@ -453,13 +461,19 @@ exports[`signature > analyzeSignature() > optionsInlineParamMethodWithDefaults 1 "deprecated": undefined, "description": "

Test with a function parameters (inline types) with defaults.

", - "examples": "
ts
optionsInlineParamMethodWithDefaults(a: {
-  value: number
-} = { value: 1 }, b: {
-  value: number
-} = { value: 1 }, c: {
-  value: number
-}): number
+ "examples": "
ts
optionsInlineParamMethodWithDefaults(a: {
+  value: number
+} = { value: 1 }, b: {
+  value: number
+} = { value: 1 }, c: {
+  value: number
+}): number
optionsInlineParamMethodWithDefaults(a: {
+  value: number
+} = { value: 1 }, b: {
+  value: number
+} = { value: 1 }, c: {
+  value: number
+}): number
", "name": "optionsInlineParamMethodWithDefaults", "parameters": [ @@ -521,7 +535,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault "deprecated": undefined, "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
+ "examples": "
ts
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
", "name": "optionsInterfaceParamMethodWithDefaults", "parameters": [ @@ -560,13 +574,19 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with an options parameter.

", - "examples": "
ts
optionsParamMethod(options: {
-  a: number,
-  b: string,
-  c: boolean,
-  d: () => string,
-  e: 'a' | 'b' | string
-}): number
+ "examples": "
ts
optionsParamMethod(options: {
+  a: number,
+  b: string,
+  c: boolean,
+  d: () => string,
+  e: 'a' | 'b' | string
+}): number
optionsParamMethod(options: {
+  a: number,
+  b: string,
+  c: boolean,
+  d: () => string,
+  e: 'a' | 'b' | string
+}): number
", "name": "optionsParamMethod", "parameters": [ @@ -626,7 +646,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`] "deprecated": undefined, "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
+ "examples": "
ts
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
", "name": "optionsTypeParamMethodWithDefaults", "parameters": [ @@ -665,7 +685,7 @@ exports[`signature > analyzeSignature() > recordParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a Record parameter.

", - "examples": "
ts
recordParamMethod(object: Record<string, number>): number
+ "examples": "
ts
recordParamMethod(object: Record<string, number>): number
recordParamMethod(object: Record<string, number>): number
", "name": "recordParamMethod", "parameters": [ @@ -690,7 +710,7 @@ exports[`signature > analyzeSignature() > requiredNumberParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a required parameter.

", - "examples": "
ts
requiredNumberParamMethod(a: number): number
+ "examples": "
ts
requiredNumberParamMethod(a: number): number
requiredNumberParamMethod(a: number): number
", "name": "requiredNumberParamMethod", "parameters": [ @@ -715,11 +735,15 @@ exports[`signature > analyzeSignature() > stringUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with string union.

", - "examples": "
ts
stringUnionParamMethod(value: 'a' | 'b', options?: {
-  casing: 'lower' | 'mixed' | 'upper',
-  excludes: readonly AlphaNumericChar[],
-  format: 'binary' | 'css' | 'decimal' | 'hex'
-}): string
+ "examples": "
ts
stringUnionParamMethod(value: 'a' | 'b', options?: {
+  casing: 'lower' | 'mixed' | 'upper',
+  excludes: readonly AlphaNumericChar[],
+  format: 'binary' | 'css' | 'decimal' | 'hex'
+}): string
stringUnionParamMethod(value: 'a' | 'b', options?: {
+  casing: 'lower' | 'mixed' | 'upper',
+  excludes: readonly AlphaNumericChar[],
+  format: 'binary' | 'css' | 'decimal' | 'hex'
+}): string
", "name": "stringUnionParamMethod", "parameters": [ diff --git a/test/scripts/apidoc/module.spec.ts b/test/scripts/apidoc/module.spec.ts index 508c9de36af..5e55afea850 100644 --- a/test/scripts/apidoc/module.spec.ts +++ b/test/scripts/apidoc/module.spec.ts @@ -4,12 +4,11 @@ import { analyzeModule } from '../../../scripts/apidoc/module-methods'; import * as ModuleTests from './module.example'; import { loadExampleModules } from './utils'; +beforeAll(initMarkdownRenderer); +const modules = await loadExampleModules(); + describe('module', () => { describe('analyzeModule()', () => { - const modules = loadExampleModules(); - - beforeAll(initMarkdownRenderer); - it('dummy dependency to rerun the test if the example changes', () => { expect(Object.keys(ModuleTests)).not.toEqual([]); }); diff --git a/test/scripts/apidoc/signature.debug.ts b/test/scripts/apidoc/signature.debug.ts index d72709b0754..9e99e8c6f93 100644 --- a/test/scripts/apidoc/signature.debug.ts +++ b/test/scripts/apidoc/signature.debug.ts @@ -8,10 +8,9 @@ import { loadExampleMethods } from './utils'; /* Run with `pnpm tsx test/scripts/apidoc/signature.debug.ts` */ -const methods = loadExampleMethods(); - initMarkdownRenderer() .then(async () => { + const methods = await loadExampleMethods(); for (const [name, method] of Object.entries(methods)) { console.log('Analyzing:', name); const result = await analyzeSignature(method, '', method.name); diff --git a/test/scripts/apidoc/signature.spec.ts b/test/scripts/apidoc/signature.spec.ts index 75abf23bd9a..51935fcf44b 100644 --- a/test/scripts/apidoc/signature.spec.ts +++ b/test/scripts/apidoc/signature.spec.ts @@ -4,12 +4,11 @@ import { analyzeSignature } from '../../../scripts/apidoc/signature'; import { SignatureTest } from './signature.example'; import { loadExampleMethods } from './utils'; +beforeAll(initMarkdownRenderer); +const methods = await loadExampleMethods(); + describe('signature', () => { describe('analyzeSignature()', () => { - const methods = loadExampleMethods(); - - beforeAll(initMarkdownRenderer); - it('dummy dependency to rerun the test if the example changes', () => { expect(new SignatureTest()).toBeTruthy(); }); diff --git a/test/scripts/apidoc/utils.ts b/test/scripts/apidoc/utils.ts index ade31120ad8..2752f25b648 100644 --- a/test/scripts/apidoc/utils.ts +++ b/test/scripts/apidoc/utils.ts @@ -16,14 +16,13 @@ import { mapByName } from '../../../scripts/apidoc/utils'; * @param options The TypeDoc options. * @param includeTestModules Whether to include the test modules. */ -export function loadProjectModules( +export async function loadProjectModules( options?: Partial, includeTestModules = false -): Record< - string, - [DeclarationReflection, Record] +): Promise< + Record]> > { - const [, project] = loadProject(options); + const [, project] = await loadProject(options); const modules = selectApiModules(project, includeTestModules); @@ -33,20 +32,25 @@ export function loadProjectModules( /** * Loads the example methods using TypeDoc. */ -export function loadExampleMethods(): Record { - return loadProjectModules( +export async function loadExampleMethods(): Promise< + Record +> { + const modules = await loadProjectModules( { entryPoints: ['test/scripts/apidoc/signature.example.ts'], }, true - )['SignatureTest'][1]; + ); + return modules['SignatureTest'][1]; } /** * Loads the example modules using TypeDoc. */ -export function loadExampleModules(): Record { - const modules = loadProjectModules( +export async function loadExampleModules(): Promise< + Record +> { + const modules = await loadProjectModules( { entryPoints: ['test/scripts/apidoc/module.example.ts'], }, diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 89afc225368..b14523e1653 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -35,115 +35,111 @@ afterAll(() => { } }); -describe('verify JSDoc tags', () => { - const modules = loadProjectModules(); +const modules = await loadProjectModules(); + +function resolveDirToModule(moduleName: string): string { + return resolve(tempDir, moduleName); +} + +function resolvePathToMethodFile( + moduleName: string, + methodName: string +): string { + const dir = resolveDirToModule(moduleName); + return resolve(dir, `${methodName}.ts`); +} + +const allowedReferences = new Set( + Object.values(modules).flatMap(([module, methods]) => { + const moduleFieldName = extractModuleFieldName(module); + return Object.keys(methods).map( + (methodName) => `faker.${moduleFieldName}.${methodName}` + ); + }) +); +const allowedLinks = new Set( + Object.values(modules).flatMap(([module, methods]) => { + const moduleFieldName = extractModuleFieldName(module); + return [ + `/api/${moduleFieldName}.html`, + ...Object.keys(methods).map( + (methodName) => + `/api/${moduleFieldName}.html#${methodName.toLowerCase()}` + ), + ]; + }) +); + +function assertDescription(description: string, isHtml: boolean): void { + const linkRegexp = isHtml ? /(href)="([^"]+)"/g : /\[([^\]]+)\]\(([^)]+)\)/g; + const links = [...description.matchAll(linkRegexp)].map((m) => m[2]); + + for (const link of links) { + if (!isHtml) { + expect(link).toMatch(/^https?:\/\//); + expect(link).toSatisfy(validator.isURL); + } - function resolveDirToModule(moduleName: string): string { - return resolve(tempDir, moduleName); + if (isHtml ? link.startsWith('/api/') : link.includes('fakerjs.dev/api/')) { + expect(allowedLinks, `${link} to point to a valid target`).toContain( + link.replace(/.*fakerjs.dev\//, '/') + ); + } } - - function resolvePathToMethodFile( - moduleName: string, - methodName: string - ): string { - const dir = resolveDirToModule(moduleName); - return resolve(dir, `${methodName}.ts`); +} + +// keep in sync with analyzeParameterOptions +function assertNestedParameterDefault( + name: string, + parameterType?: SomeType +): void { + if (!parameterType) { + return; } - const allowedReferences = new Set( - Object.values(modules).flatMap(([module, methods]) => { - const moduleFieldName = extractModuleFieldName(module); - return Object.keys(methods).map( - (methodName) => `faker.${moduleFieldName}.${methodName}` + switch (parameterType.type) { + case 'array': + return assertNestedParameterDefault( + `${name}[]`, + parameterType.elementType ); - }) - ); - const allowedLinks = new Set( - Object.values(modules).flatMap(([module, methods]) => { - const moduleFieldName = extractModuleFieldName(module); - return [ - `/api/${moduleFieldName}.html`, - ...Object.keys(methods).map( - (methodName) => - `/api/${moduleFieldName}.html#${methodName.toLowerCase()}` - ), - ]; - }) - ); - function assertDescription(description: string, isHtml: boolean): void { - const linkRegexp = isHtml - ? /(href)="([^"]+)"/g - : /\[([^\]]+)\]\(([^)]+)\)/g; - const links = [...description.matchAll(linkRegexp)].map((m) => m[2]); - - for (const link of links) { - if (!isHtml) { - expect(link).toMatch(/^https?:\/\//); - expect(link).toSatisfy(validator.isURL); - } - - if ( - isHtml ? link.startsWith('/api/') : link.includes('fakerjs.dev/api/') - ) { - expect(allowedLinks, `${link} to point to a valid target`).toContain( - link.replace(/.*fakerjs.dev\//, '/') - ); + case 'union': + for (const type of parameterType.types) { + assertNestedParameterDefault(name, type); } - } - } - // keep in sync with analyzeParameterOptions - function assertNestedParameterDefault( - name: string, - parameterType?: SomeType - ): void { - if (!parameterType) { return; - } - switch (parameterType.type) { - case 'array': - return assertNestedParameterDefault( - `${name}[]`, - parameterType.elementType - ); - - case 'union': - for (const type of parameterType.types) { - assertNestedParameterDefault(name, type); + case 'reflection': { + for (const property of parameterType.declaration.children ?? []) { + const reflection = property.comment + ? property + : (property.type as ReflectionType)?.declaration?.signatures?.[0]; + const comment = reflection?.comment; + const tagDefault = extractRawDefault({ comment }) || undefined; + const summaryDefault = extractSummaryDefault(comment, false); + + if (summaryDefault) { + expect( + tagDefault, + `Expect jsdoc summary default and @default for ${name}.${property.name} to be the same` + ).toBe(summaryDefault); } - - return; - - case 'reflection': { - for (const property of parameterType.declaration.children ?? []) { - const reflection = property.comment - ? property - : (property.type as ReflectionType)?.declaration?.signatures?.[0]; - const comment = reflection?.comment; - const tagDefault = extractRawDefault({ comment }) || undefined; - const summaryDefault = extractSummaryDefault(comment, false); - - if (summaryDefault) { - expect( - tagDefault, - `Expect jsdoc summary default and @default for ${name}.${property.name} to be the same` - ).toBe(summaryDefault); - } - } - - return; } - case 'typeOperator': - return assertNestedParameterDefault(name, parameterType.target); - - default: - return; + return; } + + case 'typeOperator': + return assertNestedParameterDefault(name, parameterType.target); + + default: + return; } +} +describe('verify JSDoc tags', () => { describe.each(Object.entries(modules))( '%s', (moduleName, [module, methodsByName]) => { diff --git a/vite.config.ts b/vite.config.ts index 4cbe0c4fcc5..ca3339f2c7e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,17 @@ const VITEST_SEQUENCE_SEED = Date.now(); console.log('VITEST_SEQUENCE_SEED', VITEST_SEQUENCE_SEED); +// TODO @Shinigami92 2023-12-28: remove when we drop support for Node 14 +const [nodeVersionMajor] = process.versions.node.split('.').map(Number); +const excludedTests: string[] = []; +if (nodeVersionMajor < 16) { + excludedTests.push( + 'test/scripts/apidoc/module.spec.ts', + 'test/scripts/apidoc/signature.spec.ts', + 'test/scripts/apidoc/verify-jsdoc-tags.spec.ts' + ); +} + // https://vitejs.dev/config/ export default defineConfig({ test: { @@ -20,6 +31,16 @@ export default defineConfig({ seed: VITEST_SEQUENCE_SEED, shuffle: true, }, + // TODO @Shinigami92 2023-12-28: remove the whole `exclude` when we drop support for Node 14 + exclude: [ + // should be originally `...configDefaults.exclude` from `'vitest/config'`, but esm... + 'node_modules', + 'dist', + '.idea', + '.git', + '.cache', + ...excludedTests, + ], onConsoleLog(log, type) { if ( type === 'stderr' && From c10899b638ae36c09833d4de8d79dd3958d58e5a Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 30 Dec 2023 11:01:20 +0100 Subject: [PATCH 50/98] docs(algolia): use one search-index per branch (#2513) --- docs/.vitepress/config.ts | 9 +++++++-- docs/.vitepress/versions.ts | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index cdb0ae9e62c..eaf99abd5c0 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,7 +1,12 @@ import type { UserConfig } from 'vitepress'; import type { DefaultTheme } from 'vitepress/theme'; import { apiPages } from './api-pages'; -import { currentVersion, oldVersions, versionBannerInfix } from './versions'; +import { + algoliaIndex, + currentVersion, + oldVersions, + versionBannerInfix, +} from './versions'; type SidebarItem = DefaultTheme.SidebarItem; @@ -128,7 +133,7 @@ const config: UserConfig = { : { apiKey: process.env.API_KEY, appId: process.env.APP_ID, - indexName: 'fakerjs', + indexName: algoliaIndex, }, footer: { diff --git a/docs/.vitepress/versions.ts b/docs/.vitepress/versions.ts index 90b0fc8dd25..a44b65c39ba 100644 --- a/docs/.vitepress/versions.ts +++ b/docs/.vitepress/versions.ts @@ -74,3 +74,7 @@ export const oldVersions = [ link: `https://v${semver.major(version)}.fakerjs.dev/`, })), ].filter(({ link }) => link !== hiddenLink); + +export const algoliaIndex = isReleaseBranch + ? `fakerjs-v${semver.major(version)}` + : 'fakerjs-next'; From 87e0490978ae4fd2a7ca9aab550a475add513ef6 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Sat, 30 Dec 2023 13:19:29 +0100 Subject: [PATCH 51/98] refactor(number): deprecate precision in favor of multipleOf in float (#2564) --- src/modules/color/index.ts | 18 +++---- src/modules/datatype/index.ts | 4 +- src/modules/finance/index.ts | 2 +- src/modules/helpers/index.ts | 1 - src/modules/location/index.ts | 8 ++-- src/modules/number/index.ts | 47 ++++++++++++++----- .../modules/__snapshots__/number.spec.ts.snap | 6 +++ test/modules/datatype.spec.ts | 8 +++- test/modules/number.spec.ts | 37 ++++++++++++++- 9 files changed, 98 insertions(+), 33 deletions(-) diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts index 57b906a376d..a9b39377668 100644 --- a/src/modules/color/index.ts +++ b/src/modules/color/index.ts @@ -389,7 +389,7 @@ export class ColorModule extends ModuleBase { color = Array.from({ length: 3 }, () => this.faker.number.int(255)); if (includeAlpha) { - color.push(this.faker.number.float({ precision: 0.01 })); + color.push(this.faker.number.float({ multipleOf: 0.01 })); cssFunction = 'rgba'; } @@ -470,7 +470,7 @@ export class ColorModule extends ModuleBase { }): string | number[]; cmyk(options?: { format?: ColorFormat }): string | number[] { const color: string | number[] = Array.from({ length: 4 }, () => - this.faker.number.float({ precision: 0.01 }) + this.faker.number.float({ multipleOf: 0.01 }) ); return toColorFormat(color, options?.format || 'decimal', 'cmyk'); } @@ -580,7 +580,7 @@ export class ColorModule extends ModuleBase { }): string | number[] { const hsl: number[] = [this.faker.number.int(360)]; for (let i = 0; i < (options?.includeAlpha ? 3 : 2); i++) { - hsl.push(this.faker.number.float({ precision: 0.01 })); + hsl.push(this.faker.number.float({ multipleOf: 0.01 })); } return toColorFormat( @@ -686,7 +686,7 @@ export class ColorModule extends ModuleBase { }): string | number[] { const hsl: number[] = [this.faker.number.int(360)]; for (let i = 0; i < 2; i++) { - hsl.push(this.faker.number.float({ precision: 0.01 })); + hsl.push(this.faker.number.float({ multipleOf: 0.01 })); } return toColorFormat(hsl, options?.format || 'decimal', 'hwb'); @@ -765,10 +765,10 @@ export class ColorModule extends ModuleBase { format?: ColorFormat; }): string | number[]; lab(options?: { format?: ColorFormat }): string | number[] { - const lab = [this.faker.number.float({ precision: 0.000001 })]; + const lab = [this.faker.number.float({ multipleOf: 0.000001 })]; for (let i = 0; i < 2; i++) { lab.push( - this.faker.number.float({ min: -100, max: 100, precision: 0.0001 }) + this.faker.number.float({ min: -100, max: 100, multipleOf: 0.0001 }) ); } @@ -860,9 +860,9 @@ export class ColorModule extends ModuleBase { format?: ColorFormat; }): string | number[]; lch(options?: { format?: ColorFormat }): string | number[] { - const lch = [this.faker.number.float({ precision: 0.000001 })]; + const lch = [this.faker.number.float({ multipleOf: 0.000001 })]; for (let i = 0; i < 2; i++) { - lch.push(this.faker.number.float({ max: 230, precision: 0.1 })); + lch.push(this.faker.number.float({ max: 230, multipleOf: 0.1 })); } return toColorFormat(lch, options?.format || 'decimal', 'lch'); @@ -970,7 +970,7 @@ export class ColorModule extends ModuleBase { } const color = Array.from({ length: 3 }, () => - this.faker.number.float({ precision: 0.0001 }) + this.faker.number.float({ multipleOf: 0.0001 }) ); return toColorFormat( color, diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index b8830610548..daec9640dca 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -75,7 +75,7 @@ export class DatatypeModule extends SimpleModuleBase { const { min = 0, max = min + 99999, precision = 1 } = options; - return this.faker.number.float({ min, max, precision }); + return this.faker.number.float({ min, max, multipleOf: precision }); } /** @@ -142,7 +142,7 @@ export class DatatypeModule extends SimpleModuleBase { const { min = 0, max = min + 99999, precision = 0.01 } = options; - return this.faker.number.float({ min, max, precision }); + return this.faker.number.float({ min, max, multipleOf: precision }); } /** diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index 576ca0dbc92..4caa77b028c 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -601,7 +601,7 @@ export class FinanceModule extends ModuleBase { const randValue = this.faker.number.float({ max, min, - precision: 10 ** -dec, + multipleOf: 10 ** -dec, }); const formattedString = autoFormat diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index edc00ea9a01..635b3e09d4f 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -979,7 +979,6 @@ export class SimpleHelpersModule extends SimpleModuleBase { const random = this.faker.number.float({ min: 0, max: total, - precision: 1e-9, }); let current = 0; for (const { weight, value } of array) { diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 6d15741dc7e..b06af49e656 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -579,7 +579,7 @@ export class LocationModule extends ModuleBase { const { max = 90, min = legacyMin, precision = legacyPrecision } = options; - return this.faker.number.float({ min, max, precision: 10 ** -precision }); + return this.faker.number.float({ min, max, multipleOf: 10 ** -precision }); } /** @@ -732,7 +732,7 @@ export class LocationModule extends ModuleBase { const { max = 180, min = legacyMin, precision = legacyPrecision } = options; - return this.faker.number.float({ max, min, precision: 10 ** -precision }); + return this.faker.number.float({ max, min, multipleOf: 10 ** -precision }); } /** @@ -1207,7 +1207,7 @@ export class LocationModule extends ModuleBase { const angleRadians = this.faker.number.float({ max: 2 * Math.PI, - precision: 0.00001, + multipleOf: 0.00001, }); // in ° radians const radiusMetric = isMetric ? radius : radius * 1.60934; // in km @@ -1215,7 +1215,7 @@ export class LocationModule extends ModuleBase { const distanceInKm = this.faker.number.float({ max: radiusMetric, - precision: 0.001, + multipleOf: 0.001, }) * errorCorrection; // in km /** diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index 4becb3480d4..2d1af9ccbd9 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -1,4 +1,5 @@ import { FakerError } from '../../errors/faker-error'; +import { deprecated } from '../../internal/deprecated'; import { SimpleModuleBase } from '../../internal/module-base'; /** @@ -85,14 +86,18 @@ export class NumberModule extends SimpleModuleBase { } /** - * Returns a single random floating-point number for a given precision or range and precision. - * The lower bound is inclusive, the upper bound is exclusive, unless precision is passed. + * Returns a single random floating-point number. + * The lower bound is inclusive, the upper bound is exclusive, unless `multipleOf` is passed. * * @param options Upper bound or options object. * @param options.min Lower bound for generated number. Defaults to `0.0`. * @param options.max Upper bound for generated number. Defaults to `1.0`. * @param options.precision Precision of the generated number, for example `0.01` will round to 2 decimal points. * If precision is passed, the upper bound is inclusive. + * @param options.multipleOf The generated number will be a multiple of this property. + * This property can be used to limit the result to a specific number of decimal digits. + * For example `0.01` will round to 2 decimal points. + * If multipleOf is passed, the upper bound is inclusive. * * @throws When `min` is greater than `max`. * @throws When `precision` is negative. @@ -102,8 +107,8 @@ export class NumberModule extends SimpleModuleBase { * faker.number.float(3) // 2.367973240558058 * faker.number.float({ min: -1000000 }) //-780678.849672846 * faker.number.float({ max: 100 }) // 17.3687307164073 - * faker.number.float({ precision: 0.1 }) // 0.9 - * faker.number.float({ min: 10, max: 100, precision: 0.001 }) // 35.415 + * faker.number.float({ multipleOf: 0.25 }) // 3.75 + * faker.number.float({ min: 10, max: 100, multipleOf: 0.001 }) // 35.415 * * @since 8.0.0 */ @@ -125,8 +130,15 @@ export class NumberModule extends SimpleModuleBase { max?: number; /** * Precision of the generated number. + * + * @deprecated Use `multipleOf` instead. */ precision?: number; + /** + * The generated number will be a multiple of this property. + * If multipleOf is passed, the upper bound is inclusive. + */ + multipleOf?: number; } = {} ): number { if (typeof options === 'number') { @@ -135,7 +147,17 @@ export class NumberModule extends SimpleModuleBase { }; } - const { min = 0, max = 1, precision } = options; + // eslint-disable-next-line deprecation/deprecation + const { min = 0, max = 1, precision, multipleOf = precision } = options; + + if (precision !== undefined) { + deprecated({ + deprecated: 'faker.number.float({ precision })', + proposed: 'faker.number.float({ multipleOf })', + since: '8.4', + until: '9.0', + }); + } if (max === min) { return min; @@ -145,17 +167,18 @@ export class NumberModule extends SimpleModuleBase { throw new FakerError(`Max ${max} should be greater than min ${min}.`); } - if (precision !== undefined) { - if (precision <= 0) { - throw new FakerError(`Precision should be greater than 0.`); + if (multipleOf !== undefined) { + if (multipleOf <= 0) { + // TODO @xDivisionByZerox: Clean up in v9.0 + throw new FakerError(`multipleOf/precision should be greater than 0.`); } - const logPrecision = Math.log10(precision); - // Workaround to get integer values for the inverse of all precisions of the form 10^-n + const logPrecision = Math.log10(multipleOf); + // Workaround to get integer values for the inverse of all multiples of the form 10^-n const factor = - precision < 1 && Number.isInteger(logPrecision) + multipleOf < 1 && Number.isInteger(logPrecision) ? 10 ** -logPrecision - : 1 / precision; + : 1 / multipleOf; const int = this.int({ min: min * factor, max: max * factor, diff --git a/test/modules/__snapshots__/number.spec.ts.snap b/test/modules/__snapshots__/number.spec.ts.snap index 3d10ddb4477..c04b4fe561e 100644 --- a/test/modules/__snapshots__/number.spec.ts.snap +++ b/test/modules/__snapshots__/number.spec.ts.snap @@ -26,6 +26,8 @@ exports[`number > 42 > float > with min 1`] = `-25.894775084685534`; exports[`number > 42 > float > with min and max 1`] = `-0.4260473116301`; +exports[`number > 42 > float > with min, max and multipleOf 1`] = `-0.4261`; + exports[`number > 42 > float > with min, max and precision 1`] = `-0.4261`; exports[`number > 42 > float > with plain number 1`] = `1.498160457238555`; @@ -74,6 +76,8 @@ exports[`number > 1211 > float > with min 1`] = `-2.073633389081806`; exports[`number > 1211 > float > with min and max 1`] = `61.06573706539348`; +exports[`number > 1211 > float > with min, max and multipleOf 1`] = `61.0658`; + exports[`number > 1211 > float > with min, max and precision 1`] = `61.0658`; exports[`number > 1211 > float > with plain number 1`] = `3.7140806149691343`; @@ -122,6 +126,8 @@ exports[`number > 1337 > float > with min 1`] = `-30.732938923640177`; exports[`number > 1337 > float > with min and max 1`] = `-12.915260942419991`; +exports[`number > 1337 > float > with min, max and multipleOf 1`] = `-12.9153`; + exports[`number > 1337 > float > with min, max and precision 1`] = `-12.9153`; exports[`number > 1337 > float > with plain number 1`] = `1.048098704777658`; diff --git a/test/modules/datatype.spec.ts b/test/modules/datatype.spec.ts index 3d65797d780..75f2897cf28 100644 --- a/test/modules/datatype.spec.ts +++ b/test/modules/datatype.spec.ts @@ -236,7 +236,9 @@ describe('datatype', () => { it('should throw when precision is negative', () => { expect(() => { faker.datatype.number({ precision: -0.01 }); - }).toThrow(new FakerError('Precision should be greater than 0.')); + }).toThrow( + new FakerError('multipleOf/precision should be greater than 0.') + ); }); }); @@ -327,7 +329,9 @@ describe('datatype', () => { it('should throw when precision is negative', () => { expect(() => { faker.datatype.float({ precision: -0.01 }); - }).toThrow(new FakerError('Precision should be greater than 0.')); + }).toThrow( + new FakerError('multipleOf/precision should be greater than 0.') + ); }); }); diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 81a1e992c72..c61498fab91 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -27,6 +27,11 @@ describe('number', () => { min: -42, max: 69, precision: 0.0001, + }) + .it('with min, max and multipleOf', { + min: -42, + max: 69, + multipleOf: 0.0001, }); }); @@ -244,6 +249,22 @@ describe('number', () => { expect(results).toEqual([0, 0.5, 1, 1.5]); }); + it('provides numbers with a given multipleOf of 0.5 steps', () => { + const results = [ + ...new Set( + Array.from({ length: 50 }, () => + faker.number.float({ + min: 0, + max: 1.5, + multipleOf: 0.5, + }) + ) + ), + ].sort(); + + expect(results).toEqual([0, 0.5, 1, 1.5]); + }); + it('provides numbers with a given precision of 0.4 steps', () => { const results = [ ...new Set( @@ -292,13 +313,25 @@ describe('number', () => { it('throws an error for precision 0', () => { expect(() => faker.number.float({ precision: 0 })).toThrow( - new FakerError('Precision should be greater than 0.') + new FakerError('multipleOf/precision should be greater than 0.') + ); + }); + + it('throws an error for multipleOf 0', () => { + expect(() => faker.number.float({ multipleOf: 0 })).toThrow( + new FakerError('multipleOf/precision should be greater than 0.') ); }); it('throws an error for negative precision', () => { expect(() => faker.number.float({ precision: -0.01 })).toThrow( - new FakerError('Precision should be greater than 0.') + new FakerError('multipleOf/precision should be greater than 0.') + ); + }); + + it('throws an error for negative multipleOf', () => { + expect(() => faker.number.float({ multipleOf: -0.01 })).toThrow( + new FakerError('multipleOf/precision should be greater than 0.') ); }); From 34f11d5405479e201e6d13ca3f907aede72a46b2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:14:57 +0100 Subject: [PATCH 52/98] chore(deps): update devdependencies (#2593) --- package.json | 8 +- pnpm-lock.yaml | 334 ++++++++++++++++++++++++------------------------- 2 files changed, 166 insertions(+), 176 deletions(-) diff --git a/package.json b/package.json index fd099531d1d..d0fe97c55ce 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@eslint-types/typescript-eslint": "~6.16.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.10.5", + "@types/node": "~20.10.6", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", @@ -106,13 +106,13 @@ "@vueuse/core": "~10.7.1", "conventional-changelog-cli": "~4.1.0", "cypress": "~13.6.2", - "esbuild": "~0.19.10", + "esbuild": "~0.19.11", "eslint": "~8.56.0", "eslint-config-prettier": "~9.1.0", "eslint-define-config": "~2.1.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", - "eslint-plugin-jsdoc": "~46.9.1", + "eslint-plugin-jsdoc": "~46.10.1", "eslint-plugin-prettier": "~5.1.2", "eslint-plugin-unicorn": "~49.0.0", "eslint-plugin-vitest": "~0.3.20", @@ -131,7 +131,7 @@ "vite": "~4.5.1", "vitepress": "1.0.0-rc.29", "vitest": "~0.34.6", - "vue": "~3.3.13" + "vue": "~3.4.3" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 63ccc1c5ca6..b12f8d386a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.10.5 - version: 20.10.5 + specifier: ~20.10.6 + version: 20.10.6 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -51,7 +51,7 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.7.1 - version: 10.7.1(vue@3.3.13) + version: 10.7.1(vue@3.4.3) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 @@ -59,8 +59,8 @@ devDependencies: specifier: ~13.6.2 version: 13.6.2 esbuild: - specifier: ~0.19.10 - version: 0.19.10 + specifier: ~0.19.11 + version: 0.19.11 eslint: specifier: ~8.56.0 version: 8.56.0 @@ -77,8 +77,8 @@ devDependencies: specifier: ~2.0.0 version: 2.0.0(eslint@8.56.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~46.9.1 - version: 46.9.1(eslint@8.56.0) + specifier: ~46.10.1 + version: 46.10.1(eslint@8.56.0) eslint-plugin-prettier: specifier: ~5.1.2 version: 5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1) @@ -126,16 +126,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.1 - version: 4.5.1(@types/node@20.10.5) + version: 4.5.1(@types/node@20.10.6) vitepress: specifier: 1.0.0-rc.29 - version: 1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.5)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.3.13 - version: 3.3.13(typescript@4.9.5) + specifier: ~3.4.3 + version: 3.4.3(typescript@4.9.5) packages: @@ -442,8 +442,8 @@ packages: jsdoc-type-pratt-parser: 4.0.0 dev: true - /@esbuild/aix-ppc64@0.19.10: - resolution: {integrity: sha512-Q+mk96KJ+FZ30h9fsJl+67IjNJm3x2eX+GBWGmocAKgzp27cowCOOqSdscX80s0SpdFXZnIv/+1xD1EctFx96Q==} + /@esbuild/aix-ppc64@0.19.11: + resolution: {integrity: sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==} engines: {node: '>=12'} cpu: [ppc64] os: [aix] @@ -460,8 +460,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.10: - resolution: {integrity: sha512-1X4CClKhDgC3by7k8aOWZeBXQX8dHT5QAMCAQDArCLaYfkppoARvh0fit3X2Qs+MXDngKcHv6XXyQCpY0hkK1Q==} + /@esbuild/android-arm64@0.19.11: + resolution: {integrity: sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -478,8 +478,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.10: - resolution: {integrity: sha512-7W0bK7qfkw1fc2viBfrtAEkDKHatYfHzr/jKAHNr9BvkYDXPcC6bodtm8AyLJNNuqClLNaeTLuwURt4PRT9d7w==} + /@esbuild/android-arm@0.19.11: + resolution: {integrity: sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -496,8 +496,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.10: - resolution: {integrity: sha512-O/nO/g+/7NlitUxETkUv/IvADKuZXyH4BHf/g/7laqKC4i/7whLpB0gvpPc2zpF0q9Q6FXS3TS75QHac9MvVWw==} + /@esbuild/android-x64@0.19.11: + resolution: {integrity: sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -514,8 +514,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.10: - resolution: {integrity: sha512-YSRRs2zOpwypck+6GL3wGXx2gNP7DXzetmo5pHXLrY/VIMsS59yKfjPizQ4lLt5vEI80M41gjm2BxrGZ5U+VMA==} + /@esbuild/darwin-arm64@0.19.11: + resolution: {integrity: sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -532,8 +532,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.10: - resolution: {integrity: sha512-alfGtT+IEICKtNE54hbvPg13xGBe4GkVxyGWtzr+yHO7HIiRJppPDhOKq3zstTcVf8msXb/t4eavW3jCDpMSmA==} + /@esbuild/darwin-x64@0.19.11: + resolution: {integrity: sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -550,8 +550,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.10: - resolution: {integrity: sha512-dMtk1wc7FSH8CCkE854GyGuNKCewlh+7heYP/sclpOG6Cectzk14qdUIY5CrKDbkA/OczXq9WesqnPl09mj5dg==} + /@esbuild/freebsd-arm64@0.19.11: + resolution: {integrity: sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -568,8 +568,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.10: - resolution: {integrity: sha512-G5UPPspryHu1T3uX8WiOEUa6q6OlQh6gNl4CO4Iw5PS+Kg5bVggVFehzXBJY6X6RSOMS8iXDv2330VzaObm4Ag==} + /@esbuild/freebsd-x64@0.19.11: + resolution: {integrity: sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -586,8 +586,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.10: - resolution: {integrity: sha512-QxaouHWZ+2KWEj7cGJmvTIHVALfhpGxo3WLmlYfJ+dA5fJB6lDEIg+oe/0//FuyVHuS3l79/wyBxbHr0NgtxJQ==} + /@esbuild/linux-arm64@0.19.11: + resolution: {integrity: sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -604,8 +604,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.10: - resolution: {integrity: sha512-j6gUW5aAaPgD416Hk9FHxn27On28H4eVI9rJ4az7oCGTFW48+LcgNDBN+9f8rKZz7EEowo889CPKyeaD0iw9Kg==} + /@esbuild/linux-arm@0.19.11: + resolution: {integrity: sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -622,8 +622,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.10: - resolution: {integrity: sha512-4ub1YwXxYjj9h1UIZs2hYbnTZBtenPw5NfXCRgEkGb0b6OJ2gpkMvDqRDYIDRjRdWSe/TBiZltm3Y3Q8SN1xNg==} + /@esbuild/linux-ia32@0.19.11: + resolution: {integrity: sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -640,8 +640,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.10: - resolution: {integrity: sha512-lo3I9k+mbEKoxtoIbM0yC/MZ1i2wM0cIeOejlVdZ3D86LAcFXFRdeuZmh91QJvUTW51bOK5W2BznGNIl4+mDaA==} + /@esbuild/linux-loong64@0.19.11: + resolution: {integrity: sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -658,8 +658,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.10: - resolution: {integrity: sha512-J4gH3zhHNbdZN0Bcr1QUGVNkHTdpijgx5VMxeetSk6ntdt+vR1DqGmHxQYHRmNb77tP6GVvD+K0NyO4xjd7y4A==} + /@esbuild/linux-mips64el@0.19.11: + resolution: {integrity: sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -676,8 +676,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.10: - resolution: {integrity: sha512-tgT/7u+QhV6ge8wFMzaklOY7KqiyitgT1AUHMApau32ZlvTB/+efeCtMk4eXS+uEymYK249JsoiklZN64xt6oQ==} + /@esbuild/linux-ppc64@0.19.11: + resolution: {integrity: sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -694,8 +694,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.10: - resolution: {integrity: sha512-0f/spw0PfBMZBNqtKe5FLzBDGo0SKZKvMl5PHYQr3+eiSscfJ96XEknCe+JoOayybWUFQbcJTrk946i3j9uYZA==} + /@esbuild/linux-riscv64@0.19.11: + resolution: {integrity: sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -712,8 +712,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.10: - resolution: {integrity: sha512-pZFe0OeskMHzHa9U38g+z8Yx5FNCLFtUnJtQMpwhS+r4S566aK2ci3t4NCP4tjt6d5j5uo4h7tExZMjeKoehAA==} + /@esbuild/linux-s390x@0.19.11: + resolution: {integrity: sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -730,8 +730,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.10: - resolution: {integrity: sha512-SpYNEqg/6pZYoc+1zLCjVOYvxfZVZj6w0KROZ3Fje/QrM3nfvT2llI+wmKSrWuX6wmZeTapbarvuNNK/qepSgA==} + /@esbuild/linux-x64@0.19.11: + resolution: {integrity: sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -748,8 +748,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.10: - resolution: {integrity: sha512-ACbZ0vXy9zksNArWlk2c38NdKg25+L9pr/mVaj9SUq6lHZu/35nx2xnQVRGLrC1KKQqJKRIB0q8GspiHI3J80Q==} + /@esbuild/netbsd-x64@0.19.11: + resolution: {integrity: sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -766,8 +766,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.10: - resolution: {integrity: sha512-PxcgvjdSjtgPMiPQrM3pwSaG4kGphP+bLSb+cihuP0LYdZv1epbAIecHVl5sD3npkfYBZ0ZnOjR878I7MdJDFg==} + /@esbuild/openbsd-x64@0.19.11: + resolution: {integrity: sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -784,8 +784,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.10: - resolution: {integrity: sha512-ZkIOtrRL8SEJjr+VHjmW0znkPs+oJXhlJbNwfI37rvgeMtk3sxOQevXPXjmAPZPigVTncvFqLMd+uV0IBSEzqA==} + /@esbuild/sunos-x64@0.19.11: + resolution: {integrity: sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -802,8 +802,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.10: - resolution: {integrity: sha512-+Sa4oTDbpBfGpl3Hn3XiUe4f8TU2JF7aX8cOfqFYMMjXp6ma6NJDztl5FDG8Ezx0OjwGikIHw+iA54YLDNNVfw==} + /@esbuild/win32-arm64@0.19.11: + resolution: {integrity: sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -820,8 +820,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.10: - resolution: {integrity: sha512-EOGVLK1oWMBXgfttJdPHDTiivYSjX6jDNaATeNOaCOFEVcfMjtbx7WVQwPSE1eIfCp/CaSF2nSrDtzc4I9f8TQ==} + /@esbuild/win32-ia32@0.19.11: + resolution: {integrity: sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -838,8 +838,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.10: - resolution: {integrity: sha512-whqLG6Sc70AbU73fFYvuYzaE4MNMBIlR1Y/IrUeOXFrWHxBEjjbZaQ3IXIQS8wJdAzue2GwYZCjOrgrU1oUHoA==} + /@esbuild/win32-x64@0.19.11: + resolution: {integrity: sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1265,8 +1265,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.10.5: - resolution: {integrity: sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==} + /@types/node@20.10.6: + resolution: {integrity: sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==} dependencies: undici-types: 5.26.5 dev: true @@ -1305,7 +1305,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.5 + '@types/node': 20.10.6 dev: true optional: true @@ -1445,15 +1445,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.6.0(vite@5.0.10)(vue@3.3.13): + /@vitejs/plugin-vue@4.6.0(vite@5.0.10)(vue@3.4.3): resolution: {integrity: sha512-XHuyFdAikWRmHuAd89FOyUGIjrBU5KlxJtyi2hVeR9ySGFxQwE0bl5xAQju/ArMq5azdBivY4d+D2yPKwoYWUg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.10(@types/node@20.10.5) - vue: 3.3.13(typescript@4.9.5) + vite: 5.0.10(@types/node@20.10.6) + vue: 3.4.3(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1538,106 +1538,96 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.3.13: - resolution: {integrity: sha512-bwi9HShGu7uaZLOErZgsH2+ojsEdsjerbf2cMXPwmvcgZfVPZ2BVZzCVnwZBxTAYd6Mzbmf6izcUNDkWnBBQ6A==} + /@vue/compiler-core@3.4.3: + resolution: {integrity: sha512-u8jzgFg0EDtSrb/hG53Wwh1bAOQFtc1ZCegBpA/glyvTlgHl+tq13o1zvRfLbegYUw/E4mSTGOiCnAJ9SJ+lsg==} dependencies: '@babel/parser': 7.23.6 - '@vue/shared': 3.3.13 + '@vue/shared': 3.4.3 + entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.3.13: - resolution: {integrity: sha512-EYRDpbLadGtNL0Gph+HoKiYqXLqZ0xSSpR5Dvnu/Ep7ggaCbjRDIus1MMxTS2Qm0koXED4xSlvTZaTnI8cYAsw==} + /@vue/compiler-dom@3.4.3: + resolution: {integrity: sha512-oGF1E9/htI6JWj/lTJgr6UgxNCtNHbM6xKVreBWeZL9QhRGABRVoWGAzxmtBfSOd+w0Zi5BY0Es/tlJrN6WgEg==} dependencies: - '@vue/compiler-core': 3.3.13 - '@vue/shared': 3.3.13 + '@vue/compiler-core': 3.4.3 + '@vue/shared': 3.4.3 dev: true - /@vue/compiler-sfc@3.3.13: - resolution: {integrity: sha512-DQVmHEy/EKIgggvnGRLx21hSqnr1smUS9Aq8tfxiiot8UR0/pXKHN9k78/qQ7etyQTFj5em5nruODON7dBeumw==} + /@vue/compiler-sfc@3.4.3: + resolution: {integrity: sha512-NuJqb5is9I4uzv316VRUDYgIlPZCG8D+ARt5P4t5UDShIHKL25J3TGZAUryY/Aiy0DsY7srJnZL5ryB6DD63Zw==} dependencies: '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.3.13 - '@vue/compiler-dom': 3.3.13 - '@vue/compiler-ssr': 3.3.13 - '@vue/reactivity-transform': 3.3.13 - '@vue/shared': 3.3.13 + '@vue/compiler-core': 3.4.3 + '@vue/compiler-dom': 3.4.3 + '@vue/compiler-ssr': 3.4.3 + '@vue/shared': 3.4.3 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.32 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.3.13: - resolution: {integrity: sha512-d/P3bCeUGmkJNS1QUZSAvoCIW4fkOKK3l2deE7zrp0ypJEy+En2AcypIkqvcFQOcw3F0zt2VfMvNsA9JmExTaw==} + /@vue/compiler-ssr@3.4.3: + resolution: {integrity: sha512-wnYQtMBkeFSxgSSQbYGQeXPhQacQiog2c6AlvMldQH6DB+gSXK/0F6DVXAJfEiuBSgBhUc8dwrrG5JQcqwalsA==} dependencies: - '@vue/compiler-dom': 3.3.13 - '@vue/shared': 3.3.13 + '@vue/compiler-dom': 3.4.3 + '@vue/shared': 3.4.3 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity-transform@3.3.13: - resolution: {integrity: sha512-oWnydGH0bBauhXvh5KXUy61xr9gKaMbtsMHk40IK9M4gMuKPJ342tKFarY0eQ6jef8906m35q37wwA8DMZOm5Q==} + /@vue/reactivity@3.4.3: + resolution: {integrity: sha512-q5f9HLDU+5aBKizXHAx0w4whkIANs1Muiq9R5YXm0HtorSlflqv9u/ohaMxuuhHWCji4xqpQ1eL04WvmAmGnFg==} dependencies: - '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.3.13 - '@vue/shared': 3.3.13 - estree-walker: 2.0.2 - magic-string: 0.30.5 + '@vue/shared': 3.4.3 dev: true - /@vue/reactivity@3.3.13: - resolution: {integrity: sha512-fjzCxceMahHhi4AxUBzQqqVhuA21RJ0COaWTbIBl1PruGW1CeY97louZzLi4smpYx+CHfFPPU/CS8NybbGvPKQ==} + /@vue/runtime-core@3.4.3: + resolution: {integrity: sha512-C1r6QhB1qY7D591RCSFhMULyzL9CuyrGc+3PpB0h7dU4Qqw6GNyo4BNFjHZVvsWncrUlKX3DIKg0Y7rNNr06NQ==} dependencies: - '@vue/shared': 3.3.13 + '@vue/reactivity': 3.4.3 + '@vue/shared': 3.4.3 dev: true - /@vue/runtime-core@3.3.13: - resolution: {integrity: sha512-1TzA5TvGuh2zUwMJgdfvrBABWZ7y8kBwBhm7BXk8rvdx2SsgcGfz2ruv2GzuGZNvL1aKnK8CQMV/jFOrxNQUMA==} + /@vue/runtime-dom@3.4.3: + resolution: {integrity: sha512-wrsprg7An5Ec+EhPngWdPuzkp0BEUxAKaQtN9dPU/iZctPyD9aaXmVtehPJerdQxQale6gEnhpnfywNw3zOv2A==} dependencies: - '@vue/reactivity': 3.3.13 - '@vue/shared': 3.3.13 - dev: true - - /@vue/runtime-dom@3.3.13: - resolution: {integrity: sha512-JJkpE8R/hJKXqVTgUoODwS5wqKtOsmJPEqmp90PDVGygtJ4C0PtOkcEYXwhiVEmef6xeXcIlrT3Yo5aQ4qkHhQ==} - dependencies: - '@vue/runtime-core': 3.3.13 - '@vue/shared': 3.3.13 + '@vue/runtime-core': 3.4.3 + '@vue/shared': 3.4.3 csstype: 3.1.3 dev: true - /@vue/server-renderer@3.3.13(vue@3.3.13): - resolution: {integrity: sha512-vSnN+nuf6iSqTL3Qgx/9A+BT+0Zf/VJOgF5uMZrKjYPs38GMYyAU1coDyBNHauehXDaP+zl73VhwWv0vBRBHcg==} + /@vue/server-renderer@3.4.3(vue@3.4.3): + resolution: {integrity: sha512-BUxt8oVGMKKsqSkM1uU3d3Houyfy4WAc2SpSQRebNd+XJGATVkW/rO129jkyL+kpB/2VRKzE63zwf5RtJ3XuZw==} peerDependencies: - vue: 3.3.13 + vue: 3.4.3 dependencies: - '@vue/compiler-ssr': 3.3.13 - '@vue/shared': 3.3.13 - vue: 3.3.13(typescript@4.9.5) + '@vue/compiler-ssr': 3.4.3 + '@vue/shared': 3.4.3 + vue: 3.4.3(typescript@4.9.5) dev: true - /@vue/shared@3.3.13: - resolution: {integrity: sha512-/zYUwiHD8j7gKx2argXEMCUXVST6q/21DFU0sTfNX0URJroCe3b1UF6vLJ3lQDfLNIiiRl2ONp7Nh5UVWS6QnA==} + /@vue/shared@3.4.3: + resolution: {integrity: sha512-rIwlkkP1n4uKrRzivAKPZIEkHiuwY5mmhMJ2nZKCBLz8lTUlE73rQh4n1OnnMurXt1vcUNyH4ZPfdh8QweTjpQ==} dev: true - /@vueuse/core@10.7.1(vue@3.3.13): + /@vueuse/core@10.7.1(vue@3.4.3): resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.1 - '@vueuse/shared': 10.7.1(vue@3.3.13) - vue-demi: 0.14.6(vue@3.3.13) + '@vueuse/shared': 10.7.1(vue@3.4.3) + vue-demi: 0.14.6(vue@3.4.3) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.3.13): + /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.3): resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==} peerDependencies: async-validator: '*' @@ -1678,10 +1668,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.1(vue@3.3.13) - '@vueuse/shared': 10.7.1(vue@3.3.13) + '@vueuse/core': 10.7.1(vue@3.4.3) + '@vueuse/shared': 10.7.1(vue@3.4.3) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.3.13) + vue-demi: 0.14.6(vue@3.4.3) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1691,10 +1681,10 @@ packages: resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==} dev: true - /@vueuse/shared@10.7.1(vue@3.3.13): + /@vueuse/shared@10.7.1(vue@3.4.3): resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} dependencies: - vue-demi: 0.14.6(vue@3.3.13) + vue-demi: 0.14.6(vue@3.4.3) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2886,35 +2876,35 @@ packages: '@esbuild/win32-x64': 0.18.20 dev: true - /esbuild@0.19.10: - resolution: {integrity: sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==} + /esbuild@0.19.11: + resolution: {integrity: sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/aix-ppc64': 0.19.10 - '@esbuild/android-arm': 0.19.10 - '@esbuild/android-arm64': 0.19.10 - '@esbuild/android-x64': 0.19.10 - '@esbuild/darwin-arm64': 0.19.10 - '@esbuild/darwin-x64': 0.19.10 - '@esbuild/freebsd-arm64': 0.19.10 - '@esbuild/freebsd-x64': 0.19.10 - '@esbuild/linux-arm': 0.19.10 - '@esbuild/linux-arm64': 0.19.10 - '@esbuild/linux-ia32': 0.19.10 - '@esbuild/linux-loong64': 0.19.10 - '@esbuild/linux-mips64el': 0.19.10 - '@esbuild/linux-ppc64': 0.19.10 - '@esbuild/linux-riscv64': 0.19.10 - '@esbuild/linux-s390x': 0.19.10 - '@esbuild/linux-x64': 0.19.10 - '@esbuild/netbsd-x64': 0.19.10 - '@esbuild/openbsd-x64': 0.19.10 - '@esbuild/sunos-x64': 0.19.10 - '@esbuild/win32-arm64': 0.19.10 - '@esbuild/win32-ia32': 0.19.10 - '@esbuild/win32-x64': 0.19.10 + '@esbuild/aix-ppc64': 0.19.11 + '@esbuild/android-arm': 0.19.11 + '@esbuild/android-arm64': 0.19.11 + '@esbuild/android-x64': 0.19.11 + '@esbuild/darwin-arm64': 0.19.11 + '@esbuild/darwin-x64': 0.19.11 + '@esbuild/freebsd-arm64': 0.19.11 + '@esbuild/freebsd-x64': 0.19.11 + '@esbuild/linux-arm': 0.19.11 + '@esbuild/linux-arm64': 0.19.11 + '@esbuild/linux-ia32': 0.19.11 + '@esbuild/linux-loong64': 0.19.11 + '@esbuild/linux-mips64el': 0.19.11 + '@esbuild/linux-ppc64': 0.19.11 + '@esbuild/linux-riscv64': 0.19.11 + '@esbuild/linux-s390x': 0.19.11 + '@esbuild/linux-x64': 0.19.11 + '@esbuild/netbsd-x64': 0.19.11 + '@esbuild/openbsd-x64': 0.19.11 + '@esbuild/sunos-x64': 0.19.11 + '@esbuild/win32-arm64': 0.19.11 + '@esbuild/win32-ia32': 0.19.11 + '@esbuild/win32-x64': 0.19.11 dev: true /escalade@3.1.1: @@ -2975,11 +2965,11 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.9.1(eslint@8.56.0): - resolution: {integrity: sha512-11Ox5LCl2wY7gGkp9UOyew70o9qvii1daAH+h/MFobRVRNcy7sVlH+jm0HQdgcvcru6285GvpjpUyoa051j03Q==} + /eslint-plugin-jsdoc@46.10.1(eslint@8.56.0): + resolution: {integrity: sha512-x8wxIpv00Y50NyweDUpa+58ffgSAI5sqe+zcZh33xphD0AVh+1kqr1ombaTRb7Fhpove1zfUuujlX9DWWBP5ag==} engines: {node: '>=16'} peerDependencies: - eslint: ^7.0.0 || ^8.0.0 + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 dependencies: '@es-joy/jsdoccomment': 0.41.0 are-docs-informative: 0.0.2 @@ -5904,7 +5894,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.10.5): + /vite-node@0.34.6(@types/node@20.10.6): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5914,7 +5904,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.1(@types/node@20.10.5) + vite: 4.5.1(@types/node@20.10.6) transitivePeerDependencies: - '@types/node' - less @@ -5926,7 +5916,7 @@ packages: - terser dev: true - /vite@4.5.1(@types/node@20.10.5): + /vite@4.5.1(@types/node@20.10.6): resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -5954,7 +5944,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.5 + '@types/node': 20.10.6 esbuild: 0.18.20 postcss: 8.4.32 rollup: 3.29.4 @@ -5962,7 +5952,7 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.0.10(@types/node@20.10.5): + /vite@5.0.10(@types/node@20.10.6): resolution: {integrity: sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -5990,15 +5980,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.5 - esbuild: 0.19.10 + '@types/node': 20.10.6 + esbuild: 0.19.11 postcss: 8.4.32 rollup: 4.9.1 optionalDependencies: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.5)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5): resolution: {integrity: sha512-6sKmyEvH16SgMqkHzRwwadt9Uju13AOIqouzOVEg3Rk6X9mds6jLsq2GxnAJvg0s6bl/0Qs/cw+f8SNki82ltw==} hasBin: true peerDependencies: @@ -6013,17 +6003,17 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 4.6.0(vite@5.0.10)(vue@3.3.13) + '@vitejs/plugin-vue': 4.6.0(vite@5.0.10)(vue@3.4.3) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.1(vue@3.3.13) - '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.3.13) + '@vueuse/core': 10.7.1(vue@3.4.3) + '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.3) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 mrmime: 1.0.1 shiki: 0.14.7 - vite: 5.0.10(@types/node@20.10.5) - vue: 3.3.13(typescript@4.9.5) + vite: 5.0.10(@types/node@20.10.6) + vue: 3.4.3(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6085,7 +6075,7 @@ packages: dependencies: '@types/chai': 4.3.11 '@types/chai-subset': 1.3.5 - '@types/node': 20.10.5 + '@types/node': 20.10.6 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6105,8 +6095,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.1(@types/node@20.10.5) - vite-node: 0.34.6(@types/node@20.10.5) + vite: 4.5.1(@types/node@20.10.6) + vite-node: 0.34.6(@types/node@20.10.6) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6126,7 +6116,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.3.13): + /vue-demi@0.14.6(vue@3.4.3): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6138,22 +6128,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.3.13(typescript@4.9.5) + vue: 3.4.3(typescript@4.9.5) dev: true - /vue@3.3.13(typescript@4.9.5): - resolution: {integrity: sha512-LDnUpQvDgsfc0u/YgtAgTMXJlJQqjkxW1PVcOnJA5cshPleULDjHi7U45pl2VJYazSSvLH8UKcid/kzH8I0a0Q==} + /vue@3.4.3(typescript@4.9.5): + resolution: {integrity: sha512-GjN+culMAGv/mUbkIv8zMKItno8npcj5gWlXkSxf1SPTQf8eJ4A+YfHIvQFyL1IfuJcMl3soA7SmN1fRxbf/wA==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.3.13 - '@vue/compiler-sfc': 3.3.13 - '@vue/runtime-dom': 3.3.13 - '@vue/server-renderer': 3.3.13(vue@3.3.13) - '@vue/shared': 3.3.13 + '@vue/compiler-dom': 3.4.3 + '@vue/compiler-sfc': 3.4.3 + '@vue/runtime-dom': 3.4.3 + '@vue/server-renderer': 3.4.3(vue@3.4.3) + '@vue/shared': 3.4.3 typescript: 4.9.5 dev: true From de5d07e6e32157b9ca208fc12f3fef635d50f2f3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:05:46 +0100 Subject: [PATCH 53/98] chore(deps): update dependency vitepress to v1.0.0-rc.34 (#2592) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 2 +- pnpm-lock.yaml | 47 ++++--- scripts/apidoc/markdown.ts | 9 +- .../apidoc/__snapshots__/module.spec.ts.snap | 2 +- .../__snapshots__/signature.spec.ts.snap | 116 +++++++----------- 5 files changed, 85 insertions(+), 91 deletions(-) diff --git a/package.json b/package.json index d0fe97c55ce..4084dc1a7b8 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "typescript": "~4.9.5", "validator": "~13.11.0", "vite": "~4.5.1", - "vitepress": "1.0.0-rc.29", + "vitepress": "1.0.0-rc.34", "vitest": "~0.34.6", "vue": "~3.4.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b12f8d386a8..327ed7b0503 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,8 +128,8 @@ devDependencies: specifier: ~4.5.1 version: 4.5.1(@types/node@20.10.6) vitepress: - specifier: 1.0.0-rc.29 - version: 1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5) + specifier: 1.0.0-rc.34 + version: 1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -1445,11 +1445,11 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@4.6.0(vite@5.0.10)(vue@3.4.3): - resolution: {integrity: sha512-XHuyFdAikWRmHuAd89FOyUGIjrBU5KlxJtyi2hVeR9ySGFxQwE0bl5xAQju/ArMq5azdBivY4d+D2yPKwoYWUg==} - engines: {node: ^14.18.0 || >=16.0.0} + /@vitejs/plugin-vue@5.0.2(vite@5.0.10)(vue@3.4.3): + resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==} + engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: - vite: ^4.0.0 || ^5.0.0 + vite: ^5.0.0 vue: ^3.2.25 dependencies: vite: 5.0.10(@types/node@20.10.6) @@ -4396,11 +4396,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /mrmime@1.0.1: - resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} - engines: {node: '>=10'} - dev: true - /mrmime@2.0.0: resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} engines: {node: '>=10'} @@ -5210,6 +5205,22 @@ packages: vscode-textmate: 8.0.0 dev: true + /shikiji-core@0.9.15: + resolution: {integrity: sha512-7hqIcUKS15OMs/61Qp2GvO1fSajBB36bDqi8vexIg5kp80V6v6SGtBrlq+nLlo7erMG2d1kvIuTIq1bwKI6fEg==} + dev: true + + /shikiji-transformers@0.9.15: + resolution: {integrity: sha512-k0sQ6tX26/cdb8QV9CCwwr7QjRp6/AVP9C0oNIXNld3of+xCrpf74kD74piybG6vMfzBoHGsz/s60RVBJOUaYQ==} + dependencies: + shikiji: 0.9.15 + dev: true + + /shikiji@0.9.15: + resolution: {integrity: sha512-+inN4cN+nY7b0uCPOiqFHAk+cn2DEdM3AIQgPhAV7QKqhww/o7OGS5xvLh3SNnjke9C/HispALqGOQGYHVq7KQ==} + dependencies: + shikiji-core: 0.9.15 + dev: true + /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: @@ -5988,12 +5999,12 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.29(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5): - resolution: {integrity: sha512-6sKmyEvH16SgMqkHzRwwadt9Uju13AOIqouzOVEg3Rk6X9mds6jLsq2GxnAJvg0s6bl/0Qs/cw+f8SNki82ltw==} + /vitepress@1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5): + resolution: {integrity: sha512-TUbTiSdAZFni2XlHlpx61KikgkQ5uG4Wtmw2R0SXhIOG6qGqzDJczAFjkMc4i45I9c3KyatwOYe8oEfCnzVYwQ==} hasBin: true peerDependencies: markdown-it-mathjax3: ^4.3.2 - postcss: ^8.4.31 + postcss: ^8.4.32 peerDependenciesMeta: markdown-it-mathjax3: optional: true @@ -6003,15 +6014,17 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 4.6.0(vite@5.0.10)(vue@3.4.3) + '@vitejs/plugin-vue': 5.0.2(vite@5.0.10)(vue@3.4.3) '@vue/devtools-api': 6.5.1 '@vueuse/core': 10.7.1(vue@3.4.3) '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.3) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 - mrmime: 1.0.1 - shiki: 0.14.7 + mrmime: 2.0.0 + shikiji: 0.9.15 + shikiji-core: 0.9.15 + shikiji-transformers: 0.9.15 vite: 5.0.10(@types/node@20.10.6) vue: 3.4.3(typescript@4.9.5) transitivePeerDependencies: diff --git a/scripts/apidoc/markdown.ts b/scripts/apidoc/markdown.ts index 88df01507b6..870b4201136 100644 --- a/scripts/apidoc/markdown.ts +++ b/scripts/apidoc/markdown.ts @@ -39,10 +39,15 @@ const htmlSanitizeOptions: sanitizeHtml.IOptions = { function comparableSanitizedHtml(html: string): string { return html + .replace(/&#x[0-9A-F]{2};/g, (x) => + String.fromCodePoint(Number.parseInt(x.slice(3, -1), 16)) + ) .replace(/>/g, '>') - .replace(/ /g, '') + .replace(/</g, '<') + .replace(/&/g, '&') .replace(/"/g, '"') - .replace(/'/g, "'"); + .replace(/=""/g, '') + .replace(/ /g, ''); } /** diff --git a/test/scripts/apidoc/__snapshots__/module.spec.ts.snap b/test/scripts/apidoc/__snapshots__/module.spec.ts.snap index dcd88cd0cf3..2f2d15ddbee 100644 --- a/test/scripts/apidoc/__snapshots__/module.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/module.spec.ts.snap @@ -12,7 +12,7 @@ exports[`module > analyzeModule() > ModuleExampleTest 1`] = ` { "comment": "This is a description for a module with a code example.", "deprecated": undefined, - "examples": "
ts
new ModuleExampleTest()
new ModuleExampleTest()
+ "examples": "
ts
new ModuleExampleTest()
", } `; diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index 04e2ee97c6f..9848720c9f6 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -5,13 +5,10 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` "deprecated": undefined, "description": "

Complex array parameter.

", - "examples": "
ts
complexArrayParameter<T>(array: readonly Array<{
-  value: T,
-  weight: number
-}>): T
complexArrayParameter<T>(array: readonly Array<{
-  value: T,
-  weight: number
-}>): T
+ "examples": "
ts
complexArrayParameter<T>(array: readonly Array<{
+  value: T,
+  weight: number
+}>): T
", "name": "complexArrayParameter", "parameters": [ @@ -56,7 +53,7 @@ exports[`signature > analyzeSignature() > defaultBooleanParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a default parameter.

", - "examples": "
ts
defaultBooleanParamMethod(c: boolean = true): number
defaultBooleanParamMethod(c: boolean = true): number
+ "examples": "
ts
defaultBooleanParamMethod(c: boolean = true): number
", "name": "defaultBooleanParamMethod", "parameters": [ @@ -108,7 +105,7 @@ exports[`signature > analyzeSignature() > functionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a function parameters.

", - "examples": "
ts
functionParamMethod(fn: (a: string) => number): number
functionParamMethod(fn: (a: string) => number): number
+ "examples": "
ts
functionParamMethod(fn: (a: string) => number): number
", "name": "functionParamMethod", "parameters": [ @@ -133,7 +130,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with LiteralUnion.

", - "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
+ "examples": "
ts
literalUnionParamMethod(value: 'a' | 'b' | string, namedValue: 'a' | 'b' | string, array: readonly Array<'a' | 'b' | string>, namedArray: readonly Array<'a' | 'b' | string>, mixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>, namedMixed: 'a' | 'b' | string | readonly Array<'a' | 'b' | string>): string
", "name": "literalUnionParamMethod", "parameters": [ @@ -194,7 +191,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = ` ", "description": "

Test with deprecated and see marker.

", - "examples": "
ts
methodWithDeprecated(): number
methodWithDeprecated(): number
+ "examples": "
ts
methodWithDeprecated(): number
", "name": "methodWithDeprecated", "parameters": [], @@ -213,15 +210,11 @@ exports[`signature > analyzeSignature() > methodWithDeprecatedOption 1`] = ` "deprecated": undefined, "description": "

Test with deprecated option.

", - "examples": "
ts
methodWithDeprecatedOption(option: {
-  a: string,
-  b: () => number,
-  c: number
-}): number
methodWithDeprecatedOption(option: {
-  a: string,
-  b: () => number,
-  c: number
-}): number
+ "examples": "
ts
methodWithDeprecatedOption(option: {
+  a: string,
+  b: () => number,
+  c: number
+}): number
", "name": "methodWithDeprecatedOption", "parameters": [ @@ -269,9 +262,8 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "deprecated": undefined, "description": "

Test with example marker.

", - "examples": "
ts
methodWithExample(): number
-test.apidoc.methodWithExample() // 0
methodWithExample(): number
-test.apidoc.methodWithExample() // 0
+ "examples": "
ts
methodWithExample(): number
+test.apidoc.methodWithExample() // 0
", "name": "methodWithExample", "parameters": [], @@ -288,7 +280,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "deprecated": undefined, "description": "

Test with multiple see markers.

", - "examples": "
ts
methodWithMultipleSeeMarkers(): number
methodWithMultipleSeeMarkers(): number
+ "examples": "
ts
methodWithMultipleSeeMarkers(): number
", "name": "methodWithMultipleSeeMarkers", "parameters": [], @@ -308,7 +300,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "deprecated": undefined, "description": "

Test with multiple see markers and backticks.

", - "examples": "
ts
methodWithMultipleSeeMarkersAndBackticks(): number
methodWithMultipleSeeMarkersAndBackticks(): number
+ "examples": "
ts
methodWithMultipleSeeMarkersAndBackticks(): number
", "name": "methodWithMultipleSeeMarkersAndBackticks", "parameters": [], @@ -328,7 +320,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleThrows 1`] = ` "deprecated": undefined, "description": "

Test with multiple throws.

", - "examples": "
ts
methodWithMultipleThrows(): number
methodWithMultipleThrows(): number
+ "examples": "
ts
methodWithMultipleThrows(): number
", "name": "methodWithMultipleThrows", "parameters": [], @@ -346,7 +338,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "deprecated": undefined, "description": "

Test with since marker.

", - "examples": "
ts
methodWithSinceMarker(): number
methodWithSinceMarker(): number
+ "examples": "
ts
methodWithSinceMarker(): number
", "name": "methodWithSinceMarker", "parameters": [], @@ -363,7 +355,7 @@ exports[`signature > analyzeSignature() > methodWithThrows 1`] = ` "deprecated": undefined, "description": "

Test with throws.

", - "examples": "
ts
methodWithThrows(): number
methodWithThrows(): number
+ "examples": "
ts
methodWithThrows(): number
", "name": "methodWithThrows", "parameters": [], @@ -380,7 +372,7 @@ exports[`signature > analyzeSignature() > multiParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with multiple parameters.

", - "examples": "
ts
multiParamMethod(a: number, b?: string, c: boolean = true): number
multiParamMethod(a: number, b?: string, c: boolean = true): number
+ "examples": "
ts
multiParamMethod(a: number, b?: string, c: boolean = true): number
", "name": "multiParamMethod", "parameters": [ @@ -419,7 +411,7 @@ exports[`signature > analyzeSignature() > noParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with no parameters.

", - "examples": "
ts
noParamMethod(): number
noParamMethod(): number
+ "examples": "
ts
noParamMethod(): number
", "name": "noParamMethod", "parameters": [], @@ -436,7 +428,7 @@ exports[`signature > analyzeSignature() > optionalStringParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with an optional parameter.

", - "examples": "
ts
optionalStringParamMethod(b?: string): number
optionalStringParamMethod(b?: string): number
+ "examples": "
ts
optionalStringParamMethod(b?: string): number
", "name": "optionalStringParamMethod", "parameters": [ @@ -461,19 +453,13 @@ exports[`signature > analyzeSignature() > optionsInlineParamMethodWithDefaults 1 "deprecated": undefined, "description": "

Test with a function parameters (inline types) with defaults.

", - "examples": "
ts
optionsInlineParamMethodWithDefaults(a: {
-  value: number
-} = { value: 1 }, b: {
-  value: number
-} = { value: 1 }, c: {
-  value: number
-}): number
optionsInlineParamMethodWithDefaults(a: {
-  value: number
-} = { value: 1 }, b: {
-  value: number
-} = { value: 1 }, c: {
-  value: number
-}): number
+ "examples": "
ts
optionsInlineParamMethodWithDefaults(a: {
+  value: number
+} = { value: 1 }, b: {
+  value: number
+} = { value: 1 }, c: {
+  value: number
+}): number
", "name": "optionsInlineParamMethodWithDefaults", "parameters": [ @@ -535,7 +521,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault "deprecated": undefined, "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
+ "examples": "
ts
optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
", "name": "optionsInterfaceParamMethodWithDefaults", "parameters": [ @@ -574,19 +560,13 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with an options parameter.

", - "examples": "
ts
optionsParamMethod(options: {
-  a: number,
-  b: string,
-  c: boolean,
-  d: () => string,
-  e: 'a' | 'b' | string
-}): number
optionsParamMethod(options: {
-  a: number,
-  b: string,
-  c: boolean,
-  d: () => string,
-  e: 'a' | 'b' | string
-}): number
+ "examples": "
ts
optionsParamMethod(options: {
+  a: number,
+  b: string,
+  c: boolean,
+  d: () => string,
+  e: 'a' | 'b' | string
+}): number
", "name": "optionsParamMethod", "parameters": [ @@ -646,7 +626,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`] "deprecated": undefined, "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
+ "examples": "
ts
optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
", "name": "optionsTypeParamMethodWithDefaults", "parameters": [ @@ -685,7 +665,7 @@ exports[`signature > analyzeSignature() > recordParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a Record parameter.

", - "examples": "
ts
recordParamMethod(object: Record<string, number>): number
recordParamMethod(object: Record<string, number>): number
+ "examples": "
ts
recordParamMethod(object: Record<string, number>): number
", "name": "recordParamMethod", "parameters": [ @@ -710,7 +690,7 @@ exports[`signature > analyzeSignature() > requiredNumberParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with a required parameter.

", - "examples": "
ts
requiredNumberParamMethod(a: number): number
requiredNumberParamMethod(a: number): number
+ "examples": "
ts
requiredNumberParamMethod(a: number): number
", "name": "requiredNumberParamMethod", "parameters": [ @@ -735,15 +715,11 @@ exports[`signature > analyzeSignature() > stringUnionParamMethod 1`] = ` "deprecated": undefined, "description": "

Test with string union.

", - "examples": "
ts
stringUnionParamMethod(value: 'a' | 'b', options?: {
-  casing: 'lower' | 'mixed' | 'upper',
-  excludes: readonly AlphaNumericChar[],
-  format: 'binary' | 'css' | 'decimal' | 'hex'
-}): string
stringUnionParamMethod(value: 'a' | 'b', options?: {
-  casing: 'lower' | 'mixed' | 'upper',
-  excludes: readonly AlphaNumericChar[],
-  format: 'binary' | 'css' | 'decimal' | 'hex'
-}): string
+ "examples": "
ts
stringUnionParamMethod(value: 'a' | 'b', options?: {
+  casing: 'lower' | 'mixed' | 'upper',
+  excludes: readonly AlphaNumericChar[],
+  format: 'binary' | 'css' | 'decimal' | 'hex'
+}): string
", "name": "stringUnionParamMethod", "parameters": [ From 394d58fa6cd2ad037b17c16b51dbf71d7201d77a Mon Sep 17 00:00:00 2001 From: Shinigami Date: Tue, 2 Jan 2024 14:14:24 +0100 Subject: [PATCH 54/98] chore: update license year (#2594) --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index b0ade127db6..06104afe95e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Faker - Copyright (c) 2022-2023 +Faker - Copyright (c) 2022-2024 This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history From 9a26665dbad0b853871d04821ccd19e107551b37 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 09:19:07 +0100 Subject: [PATCH 55/98] chore(deps): update typescript-eslint to ~6.18.0 (#2597) --- package.json | 4 +- pnpm-lock.yaml | 110 ++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 88 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 4084dc1a7b8..1a2642dddf8 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", - "@typescript-eslint/eslint-plugin": "~6.16.0", - "@typescript-eslint/parser": "~6.16.0", + "@typescript-eslint/eslint-plugin": "~6.18.0", + "@typescript-eslint/parser": "~6.18.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 327ed7b0503..29628b52830 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.7 version: 13.11.7 '@typescript-eslint/eslint-plugin': - specifier: ~6.16.0 - version: 6.16.0(@typescript-eslint/parser@6.16.0)(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.18.0 + version: 6.18.0(@typescript-eslint/parser@6.18.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.16.0 - version: 6.16.0(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.18.0 + version: 6.18.0(eslint@8.56.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.20 - version: 0.3.20(@typescript-eslint/eslint-plugin@6.16.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.20(@typescript-eslint/eslint-plugin@6.18.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1309,8 +1309,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.16.0(@typescript-eslint/parser@6.16.0)(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==} + /@typescript-eslint/eslint-plugin@6.18.0(@typescript-eslint/parser@6.18.0)(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-3lqEvQUdCozi6d1mddWqd+kf8KxmGq2Plzx36BlkjuQe3rSTm/O98cLf0A4uDO+a5N1KD2SeEEl6fW97YHY+6w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1321,11 +1321,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.16.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.16.0 - '@typescript-eslint/type-utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.16.0 + '@typescript-eslint/parser': 6.18.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.18.0 + '@typescript-eslint/type-utils': 6.18.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.18.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.18.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 graphemer: 1.4.0 @@ -1338,8 +1338,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.16.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==} + /@typescript-eslint/parser@6.18.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-v6uR68SFvqhNQT41frCMCQpsP+5vySy6IdgjlzUWoo7ALCnpaWYcz/Ij2k4L8cEsL0wkvOviCMpjmtRtHNOKzA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1348,10 +1348,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.16.0 - '@typescript-eslint/types': 6.16.0 - '@typescript-eslint/typescript-estree': 6.16.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.16.0 + '@typescript-eslint/scope-manager': 6.18.0 + '@typescript-eslint/types': 6.18.0 + '@typescript-eslint/typescript-estree': 6.18.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.18.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 typescript: 4.9.5 @@ -1367,8 +1367,16 @@ packages: '@typescript-eslint/visitor-keys': 6.16.0 dev: true - /@typescript-eslint/type-utils@6.16.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==} + /@typescript-eslint/scope-manager@6.18.0: + resolution: {integrity: sha512-o/UoDT2NgOJ2VfHpfr+KBY2ErWvCySNUIX/X7O9g8Zzt/tXdpfEU43qbNk8LVuWUT2E0ptzTWXh79i74PP0twA==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.18.0 + '@typescript-eslint/visitor-keys': 6.18.0 + dev: true + + /@typescript-eslint/type-utils@6.18.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-ZeMtrXnGmTcHciJN1+u2CigWEEXgy1ufoxtWcHORt5kGvpjjIlK9MUhzHm4RM8iVy6dqSaZA/6PVkX6+r+ChjQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1377,8 +1385,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.16.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.18.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.18.0(eslint@8.56.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1392,6 +1400,11 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true + /@typescript-eslint/types@6.18.0: + resolution: {integrity: sha512-/RFVIccwkwSdW/1zeMx3hADShWbgBxBnV/qSrex6607isYjj05t36P6LyONgqdUrNLl5TYU8NIKdHUYpFvExkA==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + /@typescript-eslint/typescript-estree@6.16.0(typescript@4.9.5): resolution: {integrity: sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1414,6 +1427,28 @@ packages: - supports-color dev: true + /@typescript-eslint/typescript-estree@6.18.0(typescript@4.9.5): + resolution: {integrity: sha512-klNvl+Ql4NsBNGB4W9TZ2Od03lm7aGvTbs0wYaFYsplVPhr+oeXjlPZCDI4U9jgJIDK38W1FKhacCFzCC+nbIg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.18.0 + '@typescript-eslint/visitor-keys': 6.18.0 + debug: 4.3.4(supports-color@8.1.1) + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.3(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/utils@6.16.0(eslint@8.56.0)(typescript@4.9.5): resolution: {integrity: sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1433,6 +1468,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.18.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-wiKKCbUeDPGaYEYQh1S580dGxJ/V9HI7K5sbGAVklyf+o5g3O+adnS4UNJajplF4e7z2q0uVBaTdT/yLb4XAVA==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.6 + '@typescript-eslint/scope-manager': 6.18.0 + '@typescript-eslint/types': 6.18.0 + '@typescript-eslint/typescript-estree': 6.18.0(typescript@4.9.5) + eslint: 8.56.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@6.16.0: resolution: {integrity: sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1441,6 +1495,14 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@typescript-eslint/visitor-keys@6.18.0: + resolution: {integrity: sha512-1wetAlSZpewRDb2h9p/Q8kRjdGuqdTAQbkJIOUMLug2LBLG+QOjiWoSj6/3B/hA9/tVTFFdtiKvAYoYnSRW/RA==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.18.0 + eslint-visitor-keys: 3.4.3 + dev: true + /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true @@ -3029,7 +3091,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.16.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.18.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3042,7 +3104,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.16.0(@typescript-eslint/parser@6.16.0)(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.18.0(@typescript-eslint/parser@6.18.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 626ccda980e2f9677222399a60dcea3e7dd68d04 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:27:32 +0100 Subject: [PATCH 56/98] chore(deps): update devdependencies (#2596) --- package.json | 6 +- pnpm-lock.yaml | 172 ++++++++++++++++++++++++------------------------- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 1a2642dddf8..b9039d5105a 100644 --- a/package.json +++ b/package.json @@ -92,10 +92,10 @@ "@eslint-types/deprecation": "2.0.0-1", "@eslint-types/jsdoc": "~46.9.1", "@eslint-types/prettier": "5.1.2", - "@eslint-types/typescript-eslint": "~6.16.0", + "@eslint-types/typescript-eslint": "~6.17.0", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.10.6", + "@types/node": "~20.10.7", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", @@ -131,7 +131,7 @@ "vite": "~4.5.1", "vitepress": "1.0.0-rc.34", "vitest": "~0.34.6", - "vue": "~3.4.3" + "vue": "~3.4.5" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29628b52830..ee64ea3c5f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,8 +17,8 @@ devDependencies: specifier: 5.1.2 version: 5.1.2 '@eslint-types/typescript-eslint': - specifier: ~6.16.0 - version: 6.16.0 + specifier: ~6.17.0 + version: 6.17.0 '@eslint-types/unicorn': specifier: ~49.0.0 version: 49.0.0 @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.10.6 - version: 20.10.6 + specifier: ~20.10.7 + version: 20.10.7 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -51,7 +51,7 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.7.1 - version: 10.7.1(vue@3.4.3) + version: 10.7.1(vue@3.4.5) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 @@ -126,16 +126,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.1 - version: 4.5.1(@types/node@20.10.6) + version: 4.5.1(@types/node@20.10.7) vitepress: specifier: 1.0.0-rc.34 - version: 1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.4.3 - version: 3.4.3(typescript@4.9.5) + specifier: ~3.4.5 + version: 3.4.5(typescript@4.9.5) packages: @@ -874,8 +874,8 @@ packages: resolution: {integrity: sha512-C81jbseWJUUjGAwmX7dwNSAen8Uq6il1+6uW5vyr/rOTNezU8BvZRo+wP1lw8gsjFhG1AQ4eqXhnLE9e2tv9kQ==} dev: true - /@eslint-types/typescript-eslint@6.16.0: - resolution: {integrity: sha512-gLmHCSeeNtHfWJtAO5pBr4hD0aV60GyPDKJQm2JxlBJBoytJoKezan4Ak7FE9BsewaB+W3JQwsllspirHbHKLw==} + /@eslint-types/typescript-eslint@6.17.0: + resolution: {integrity: sha512-fPwdc27nXbsn69obhmOujFMxheimgs+Hf0iHCyq0s1w48iPpd0PgA/UvAs/PRUY/H9GYvrZDSvBTxtHLqnzb3A==} dev: true /@eslint-types/unicorn@49.0.0: @@ -1265,8 +1265,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.10.6: - resolution: {integrity: sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==} + /@types/node@20.10.7: + resolution: {integrity: sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg==} dependencies: undici-types: 5.26.5 dev: true @@ -1305,7 +1305,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.6 + '@types/node': 20.10.7 dev: true optional: true @@ -1507,15 +1507,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.2(vite@5.0.10)(vue@3.4.3): + /@vitejs/plugin-vue@5.0.2(vite@5.0.10)(vue@3.4.5): resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.10(@types/node@20.10.6) - vue: 3.4.3(typescript@4.9.5) + vite: 5.0.10(@types/node@20.10.7) + vue: 3.4.5(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1600,96 +1600,96 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.4.3: - resolution: {integrity: sha512-u8jzgFg0EDtSrb/hG53Wwh1bAOQFtc1ZCegBpA/glyvTlgHl+tq13o1zvRfLbegYUw/E4mSTGOiCnAJ9SJ+lsg==} + /@vue/compiler-core@3.4.5: + resolution: {integrity: sha512-Daka7P1z2AgKjzuueWXhwzIsKu0NkLB6vGbNVEV2iJ8GJTrzraZo/Sk4GWCMRtd/qVi3zwnk+Owbd/xSZbwHtQ==} dependencies: '@babel/parser': 7.23.6 - '@vue/shared': 3.4.3 + '@vue/shared': 3.4.5 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.4.3: - resolution: {integrity: sha512-oGF1E9/htI6JWj/lTJgr6UgxNCtNHbM6xKVreBWeZL9QhRGABRVoWGAzxmtBfSOd+w0Zi5BY0Es/tlJrN6WgEg==} + /@vue/compiler-dom@3.4.5: + resolution: {integrity: sha512-J8YlxknJVd90SXFJ4HwGANSAXsx5I0lK30sO/zvYV7s5gXf7gZR7r/1BmZ2ju7RGH1lnc6bpBc6nL61yW+PsAQ==} dependencies: - '@vue/compiler-core': 3.4.3 - '@vue/shared': 3.4.3 + '@vue/compiler-core': 3.4.5 + '@vue/shared': 3.4.5 dev: true - /@vue/compiler-sfc@3.4.3: - resolution: {integrity: sha512-NuJqb5is9I4uzv316VRUDYgIlPZCG8D+ARt5P4t5UDShIHKL25J3TGZAUryY/Aiy0DsY7srJnZL5ryB6DD63Zw==} + /@vue/compiler-sfc@3.4.5: + resolution: {integrity: sha512-jauvkDuSSUbP0ebhfNqljhShA90YEfX/0wZ+w40oZF43IjGyWYjqYaJbvMJwGOd+9+vODW6eSvnk28f0SGV7OQ==} dependencies: '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.4.3 - '@vue/compiler-dom': 3.4.3 - '@vue/compiler-ssr': 3.4.3 - '@vue/shared': 3.4.3 + '@vue/compiler-core': 3.4.5 + '@vue/compiler-dom': 3.4.5 + '@vue/compiler-ssr': 3.4.5 + '@vue/shared': 3.4.5 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.32 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.4.3: - resolution: {integrity: sha512-wnYQtMBkeFSxgSSQbYGQeXPhQacQiog2c6AlvMldQH6DB+gSXK/0F6DVXAJfEiuBSgBhUc8dwrrG5JQcqwalsA==} + /@vue/compiler-ssr@3.4.5: + resolution: {integrity: sha512-DDdEcDzj2lWTMfUMMtEpLDhURai9LhM0zSZ219jCt7b2Vyl0/jy3keFgCPMitG0V1S1YG4Cmws3lWHWdxHQOpg==} dependencies: - '@vue/compiler-dom': 3.4.3 - '@vue/shared': 3.4.3 + '@vue/compiler-dom': 3.4.5 + '@vue/shared': 3.4.5 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity@3.4.3: - resolution: {integrity: sha512-q5f9HLDU+5aBKizXHAx0w4whkIANs1Muiq9R5YXm0HtorSlflqv9u/ohaMxuuhHWCji4xqpQ1eL04WvmAmGnFg==} + /@vue/reactivity@3.4.5: + resolution: {integrity: sha512-BcWkKvjdvqJwb7BhhFkXPLDCecX4d4a6GATvCduJQDLv21PkPowAE5GKuIE5p6RC07/Lp9FMkkq4AYCTVF5KlQ==} dependencies: - '@vue/shared': 3.4.3 + '@vue/shared': 3.4.5 dev: true - /@vue/runtime-core@3.4.3: - resolution: {integrity: sha512-C1r6QhB1qY7D591RCSFhMULyzL9CuyrGc+3PpB0h7dU4Qqw6GNyo4BNFjHZVvsWncrUlKX3DIKg0Y7rNNr06NQ==} + /@vue/runtime-core@3.4.5: + resolution: {integrity: sha512-wh9ELIOQKeWT9SaUPdLrsxRkZv14jp+SJm9aiQGWio+/MWNM3Lib0wE6CoKEqQ9+SCYyGjDBhTOTtO47kCgbkg==} dependencies: - '@vue/reactivity': 3.4.3 - '@vue/shared': 3.4.3 + '@vue/reactivity': 3.4.5 + '@vue/shared': 3.4.5 dev: true - /@vue/runtime-dom@3.4.3: - resolution: {integrity: sha512-wrsprg7An5Ec+EhPngWdPuzkp0BEUxAKaQtN9dPU/iZctPyD9aaXmVtehPJerdQxQale6gEnhpnfywNw3zOv2A==} + /@vue/runtime-dom@3.4.5: + resolution: {integrity: sha512-n5ewvOjyG3IEpqGBahdPXODFSpVlSz3H4LF76Sx0XAqpIOqyJ5bIb2PrdYuH2ogBMAQPh+o5tnoH4nJpBr8U0Q==} dependencies: - '@vue/runtime-core': 3.4.3 - '@vue/shared': 3.4.3 + '@vue/runtime-core': 3.4.5 + '@vue/shared': 3.4.5 csstype: 3.1.3 dev: true - /@vue/server-renderer@3.4.3(vue@3.4.3): - resolution: {integrity: sha512-BUxt8oVGMKKsqSkM1uU3d3Houyfy4WAc2SpSQRebNd+XJGATVkW/rO129jkyL+kpB/2VRKzE63zwf5RtJ3XuZw==} + /@vue/server-renderer@3.4.5(vue@3.4.5): + resolution: {integrity: sha512-jOFc/VE87yvifQpNju12VcqimH8pBLxdcT+t3xMeiED1K6DfH9SORyhFEoZlW5TG2Vwfn3Ul5KE+1aC99xnSBg==} peerDependencies: - vue: 3.4.3 + vue: 3.4.5 dependencies: - '@vue/compiler-ssr': 3.4.3 - '@vue/shared': 3.4.3 - vue: 3.4.3(typescript@4.9.5) + '@vue/compiler-ssr': 3.4.5 + '@vue/shared': 3.4.5 + vue: 3.4.5(typescript@4.9.5) dev: true - /@vue/shared@3.4.3: - resolution: {integrity: sha512-rIwlkkP1n4uKrRzivAKPZIEkHiuwY5mmhMJ2nZKCBLz8lTUlE73rQh4n1OnnMurXt1vcUNyH4ZPfdh8QweTjpQ==} + /@vue/shared@3.4.5: + resolution: {integrity: sha512-6XptuzlMvN4l4cDnDw36pdGEV+9njYkQ1ZE0Q6iZLwrKefKaOJyiFmcP3/KBDHbt72cJZGtllAc1GaHe6XGAyg==} dev: true - /@vueuse/core@10.7.1(vue@3.4.3): + /@vueuse/core@10.7.1(vue@3.4.5): resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.1 - '@vueuse/shared': 10.7.1(vue@3.4.3) - vue-demi: 0.14.6(vue@3.4.3) + '@vueuse/shared': 10.7.1(vue@3.4.5) + vue-demi: 0.14.6(vue@3.4.5) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.3): + /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.5): resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==} peerDependencies: async-validator: '*' @@ -1730,10 +1730,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.1(vue@3.4.3) - '@vueuse/shared': 10.7.1(vue@3.4.3) + '@vueuse/core': 10.7.1(vue@3.4.5) + '@vueuse/shared': 10.7.1(vue@3.4.5) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.4.3) + vue-demi: 0.14.6(vue@3.4.5) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1743,10 +1743,10 @@ packages: resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==} dev: true - /@vueuse/shared@10.7.1(vue@3.4.3): + /@vueuse/shared@10.7.1(vue@3.4.5): resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} dependencies: - vue-demi: 0.14.6(vue@3.4.3) + vue-demi: 0.14.6(vue@3.4.5) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -5967,7 +5967,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.10.6): + /vite-node@0.34.6(@types/node@20.10.7): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5977,7 +5977,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.1(@types/node@20.10.6) + vite: 4.5.1(@types/node@20.10.7) transitivePeerDependencies: - '@types/node' - less @@ -5989,7 +5989,7 @@ packages: - terser dev: true - /vite@4.5.1(@types/node@20.10.6): + /vite@4.5.1(@types/node@20.10.7): resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6017,7 +6017,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.6 + '@types/node': 20.10.7 esbuild: 0.18.20 postcss: 8.4.32 rollup: 3.29.4 @@ -6025,7 +6025,7 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.0.10(@types/node@20.10.6): + /vite@5.0.10(@types/node@20.10.7): resolution: {integrity: sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -6053,7 +6053,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.6 + '@types/node': 20.10.7 esbuild: 0.19.11 postcss: 8.4.32 rollup: 4.9.1 @@ -6061,7 +6061,7 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.6)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5): resolution: {integrity: sha512-TUbTiSdAZFni2XlHlpx61KikgkQ5uG4Wtmw2R0SXhIOG6qGqzDJczAFjkMc4i45I9c3KyatwOYe8oEfCnzVYwQ==} hasBin: true peerDependencies: @@ -6076,10 +6076,10 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.2(vite@5.0.10)(vue@3.4.3) + '@vitejs/plugin-vue': 5.0.2(vite@5.0.10)(vue@3.4.5) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.1(vue@3.4.3) - '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.3) + '@vueuse/core': 10.7.1(vue@3.4.5) + '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.5) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 @@ -6087,8 +6087,8 @@ packages: shikiji: 0.9.15 shikiji-core: 0.9.15 shikiji-transformers: 0.9.15 - vite: 5.0.10(@types/node@20.10.6) - vue: 3.4.3(typescript@4.9.5) + vite: 5.0.10(@types/node@20.10.7) + vue: 3.4.5(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6150,7 +6150,7 @@ packages: dependencies: '@types/chai': 4.3.11 '@types/chai-subset': 1.3.5 - '@types/node': 20.10.6 + '@types/node': 20.10.7 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6170,8 +6170,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.1(@types/node@20.10.6) - vite-node: 0.34.6(@types/node@20.10.6) + vite: 4.5.1(@types/node@20.10.7) + vite-node: 0.34.6(@types/node@20.10.7) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6191,7 +6191,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.4.3): + /vue-demi@0.14.6(vue@3.4.5): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6203,22 +6203,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.3(typescript@4.9.5) + vue: 3.4.5(typescript@4.9.5) dev: true - /vue@3.4.3(typescript@4.9.5): - resolution: {integrity: sha512-GjN+culMAGv/mUbkIv8zMKItno8npcj5gWlXkSxf1SPTQf8eJ4A+YfHIvQFyL1IfuJcMl3soA7SmN1fRxbf/wA==} + /vue@3.4.5(typescript@4.9.5): + resolution: {integrity: sha512-VH6nHFhLPjgu2oh5vEBXoNZxsGHuZNr3qf4PHClwJWw6IDqw6B3x+4J+ABdoZ0aJuT8Zi0zf3GpGlLQCrGWHrw==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.3 - '@vue/compiler-sfc': 3.4.3 - '@vue/runtime-dom': 3.4.3 - '@vue/server-renderer': 3.4.3(vue@3.4.3) - '@vue/shared': 3.4.3 + '@vue/compiler-dom': 3.4.5 + '@vue/compiler-sfc': 3.4.5 + '@vue/runtime-dom': 3.4.5 + '@vue/server-renderer': 3.4.5(vue@3.4.5) + '@vue/shared': 3.4.5 typescript: 4.9.5 dev: true From 9fb45c24f321a5acf667d841ac7445e27da6edb5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:39:42 +0100 Subject: [PATCH 57/98] chore(deps): update doc-dependencies (#2595) --- package.json | 4 ++-- pnpm-lock.yaml | 53 +++++++++++++++++++++++++------------------------- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index b9039d5105a..cc2e1b212f7 100644 --- a/package.json +++ b/package.json @@ -125,11 +125,11 @@ "semver": "~7.5.4", "standard-version": "~9.5.0", "tsx": "~3.13.0", - "typedoc": "~0.25.4", + "typedoc": "~0.25.7", "typescript": "~4.9.5", "validator": "~13.11.0", "vite": "~4.5.1", - "vitepress": "1.0.0-rc.34", + "vitepress": "1.0.0-rc.36", "vitest": "~0.34.6", "vue": "~3.4.5" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ee64ea3c5f6..b55917a4a46 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -116,8 +116,8 @@ devDependencies: specifier: ~3.13.0 version: 3.13.0 typedoc: - specifier: ~0.25.4 - version: 0.25.4(typescript@4.9.5) + specifier: ~0.25.7 + version: 0.25.7(typescript@4.9.5) typescript: specifier: ~4.9.5 version: 4.9.5 @@ -128,8 +128,8 @@ devDependencies: specifier: ~4.5.1 version: 4.5.1(@types/node@20.10.7) vitepress: - specifier: 1.0.0-rc.34 - version: 1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5) + specifier: 1.0.0-rc.36 + version: 1.0.0-rc.36(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -1507,14 +1507,14 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.2(vite@5.0.10)(vue@3.4.5): + /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.5): resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.10(@types/node@20.10.7) + vite: 5.0.11(@types/node@20.10.7) vue: 3.4.5(typescript@4.9.5) dev: true @@ -5267,20 +5267,20 @@ packages: vscode-textmate: 8.0.0 dev: true - /shikiji-core@0.9.15: - resolution: {integrity: sha512-7hqIcUKS15OMs/61Qp2GvO1fSajBB36bDqi8vexIg5kp80V6v6SGtBrlq+nLlo7erMG2d1kvIuTIq1bwKI6fEg==} + /shikiji-core@0.9.17: + resolution: {integrity: sha512-r1FWTXk6SO2aYqfWgcsJ11MuVQ1ymPSdXzJjK7q8EXuyqu8yc2N5qrQy5+BL6gTVOaF4yLjbxFjF+KTRM1Sp8Q==} dev: true - /shikiji-transformers@0.9.15: - resolution: {integrity: sha512-k0sQ6tX26/cdb8QV9CCwwr7QjRp6/AVP9C0oNIXNld3of+xCrpf74kD74piybG6vMfzBoHGsz/s60RVBJOUaYQ==} + /shikiji-transformers@0.9.17: + resolution: {integrity: sha512-2CCG9qSLS6Bn/jbeUTEuvC6YSuP8gm8VyX5VjmCvDKyCPGhlLJbH1k/kg9wfRt7cJqpYjhdMDgT5rkdYrOZnsA==} dependencies: - shikiji: 0.9.15 + shikiji: 0.9.17 dev: true - /shikiji@0.9.15: - resolution: {integrity: sha512-+inN4cN+nY7b0uCPOiqFHAk+cn2DEdM3AIQgPhAV7QKqhww/o7OGS5xvLh3SNnjke9C/HispALqGOQGYHVq7KQ==} + /shikiji@0.9.17: + resolution: {integrity: sha512-0z/1NfkhBkm3ijrfFeHg3G9yDNuHhXdAGbQm7tRxj4WQ5z2y0XDbnagFyKyuV2ebCTS1Mwy1I3n0Fzcc/4xdmw==} dependencies: - shikiji-core: 0.9.15 + shikiji-core: 0.9.17 dev: true /side-channel@1.0.4: @@ -5844,8 +5844,8 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typedoc@0.25.4(typescript@4.9.5): - resolution: {integrity: sha512-Du9ImmpBCw54bX275yJrxPVnjdIyJO/84co0/L9mwe0R3G4FSR6rQ09AlXVRvZEGMUg09+z/usc8mgygQ1aidA==} + /typedoc@0.25.7(typescript@4.9.5): + resolution: {integrity: sha512-m6A6JjQRg39p2ZVRIN3NKXgrN8vzlHhOS+r9ymUYtcUP/TIQPvWSq7YgE5ZjASfv5Vd5BW5xrir6Gm2XNNcOow==} engines: {node: '>= 16'} hasBin: true peerDependencies: @@ -6025,8 +6025,8 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.0.10(@types/node@20.10.7): - resolution: {integrity: sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==} + /vite@5.0.11(@types/node@20.10.7): + resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -6061,12 +6061,12 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.34(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5): - resolution: {integrity: sha512-TUbTiSdAZFni2XlHlpx61KikgkQ5uG4Wtmw2R0SXhIOG6qGqzDJczAFjkMc4i45I9c3KyatwOYe8oEfCnzVYwQ==} + /vitepress@1.0.0-rc.36(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5): + resolution: {integrity: sha512-2z4dpM9PplN/yvTifhavOIAazlCR6OJ5PvLoRbc+7LdcFeIlCsuDGENLX4HjMW18jQZF5/j7++PNqdBfeazxUA==} hasBin: true peerDependencies: markdown-it-mathjax3: ^4.3.2 - postcss: ^8.4.32 + postcss: ^8.4.33 peerDependenciesMeta: markdown-it-mathjax3: optional: true @@ -6076,18 +6076,17 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.2(vite@5.0.10)(vue@3.4.5) + '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.5) '@vue/devtools-api': 6.5.1 '@vueuse/core': 10.7.1(vue@3.4.5) '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.5) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 - mrmime: 2.0.0 - shikiji: 0.9.15 - shikiji-core: 0.9.15 - shikiji-transformers: 0.9.15 - vite: 5.0.10(@types/node@20.10.7) + shikiji: 0.9.17 + shikiji-core: 0.9.17 + shikiji-transformers: 0.9.17 + vite: 5.0.11(@types/node@20.10.7) vue: 3.4.5(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' From a51b3315439a2df45ba738f784a033a3c3e572c4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:21:04 +0100 Subject: [PATCH 58/98] chore(deps): update typescript-eslint to ~6.18.1 (#2604) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 84 +++++++++++++++++++++++++------------------------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index cc2e1b212f7..2123c046abc 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.7", - "@typescript-eslint/eslint-plugin": "~6.18.0", - "@typescript-eslint/parser": "~6.18.0", + "@typescript-eslint/eslint-plugin": "~6.18.1", + "@typescript-eslint/parser": "~6.18.1", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b55917a4a46..a6d2fd5647e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.7 version: 13.11.7 '@typescript-eslint/eslint-plugin': - specifier: ~6.18.0 - version: 6.18.0(@typescript-eslint/parser@6.18.0)(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.18.1 + version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.18.0 - version: 6.18.0(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.18.1 + version: 6.18.1(eslint@8.56.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.20 - version: 0.3.20(@typescript-eslint/eslint-plugin@6.18.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.20(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1309,8 +1309,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.18.0(@typescript-eslint/parser@6.18.0)(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-3lqEvQUdCozi6d1mddWqd+kf8KxmGq2Plzx36BlkjuQe3rSTm/O98cLf0A4uDO+a5N1KD2SeEEl6fW97YHY+6w==} + /@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1321,11 +1321,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.18.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.18.0 - '@typescript-eslint/type-utils': 6.18.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.18.0(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.18.0 + '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.18.1 + '@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.18.1 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 graphemer: 1.4.0 @@ -1338,8 +1338,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.18.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-v6uR68SFvqhNQT41frCMCQpsP+5vySy6IdgjlzUWoo7ALCnpaWYcz/Ij2k4L8cEsL0wkvOviCMpjmtRtHNOKzA==} + /@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1348,10 +1348,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.18.0 - '@typescript-eslint/types': 6.18.0 - '@typescript-eslint/typescript-estree': 6.18.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.18.0 + '@typescript-eslint/scope-manager': 6.18.1 + '@typescript-eslint/types': 6.18.1 + '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.18.1 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 typescript: 4.9.5 @@ -1367,16 +1367,16 @@ packages: '@typescript-eslint/visitor-keys': 6.16.0 dev: true - /@typescript-eslint/scope-manager@6.18.0: - resolution: {integrity: sha512-o/UoDT2NgOJ2VfHpfr+KBY2ErWvCySNUIX/X7O9g8Zzt/tXdpfEU43qbNk8LVuWUT2E0ptzTWXh79i74PP0twA==} + /@typescript-eslint/scope-manager@6.18.1: + resolution: {integrity: sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.18.0 - '@typescript-eslint/visitor-keys': 6.18.0 + '@typescript-eslint/types': 6.18.1 + '@typescript-eslint/visitor-keys': 6.18.1 dev: true - /@typescript-eslint/type-utils@6.18.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-ZeMtrXnGmTcHciJN1+u2CigWEEXgy1ufoxtWcHORt5kGvpjjIlK9MUhzHm4RM8iVy6dqSaZA/6PVkX6+r+ChjQ==} + /@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1385,8 +1385,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.18.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.18.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) + '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1400,8 +1400,8 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.18.0: - resolution: {integrity: sha512-/RFVIccwkwSdW/1zeMx3hADShWbgBxBnV/qSrex6607isYjj05t36P6LyONgqdUrNLl5TYU8NIKdHUYpFvExkA==} + /@typescript-eslint/types@6.18.1: + resolution: {integrity: sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1427,8 +1427,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.18.0(typescript@4.9.5): - resolution: {integrity: sha512-klNvl+Ql4NsBNGB4W9TZ2Od03lm7aGvTbs0wYaFYsplVPhr+oeXjlPZCDI4U9jgJIDK38W1FKhacCFzCC+nbIg==} + /@typescript-eslint/typescript-estree@6.18.1(typescript@4.9.5): + resolution: {integrity: sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1436,8 +1436,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.18.0 - '@typescript-eslint/visitor-keys': 6.18.0 + '@typescript-eslint/types': 6.18.1 + '@typescript-eslint/visitor-keys': 6.18.1 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1468,8 +1468,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.18.0(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-wiKKCbUeDPGaYEYQh1S580dGxJ/V9HI7K5sbGAVklyf+o5g3O+adnS4UNJajplF4e7z2q0uVBaTdT/yLb4XAVA==} + /@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1477,9 +1477,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.18.0 - '@typescript-eslint/types': 6.18.0 - '@typescript-eslint/typescript-estree': 6.18.0(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.18.1 + '@typescript-eslint/types': 6.18.1 + '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) eslint: 8.56.0 semver: 7.5.4 transitivePeerDependencies: @@ -1495,11 +1495,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.18.0: - resolution: {integrity: sha512-1wetAlSZpewRDb2h9p/Q8kRjdGuqdTAQbkJIOUMLug2LBLG+QOjiWoSj6/3B/hA9/tVTFFdtiKvAYoYnSRW/RA==} + /@typescript-eslint/visitor-keys@6.18.1: + resolution: {integrity: sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.18.0 + '@typescript-eslint/types': 6.18.1 eslint-visitor-keys: 3.4.3 dev: true @@ -3091,7 +3091,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.18.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3104,7 +3104,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.18.0(@typescript-eslint/parser@6.18.0)(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 960c2ea123342432a22033bd33f8fa69df439d16 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:58:00 +0100 Subject: [PATCH 59/98] chore(deps): update dependency prettier to v3.2.2 (#2605) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 2123c046abc..d0e003f558e 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "eslint-plugin-vitest": "~0.3.20", "glob": "~10.3.10", "npm-run-all": "~4.1.5", - "prettier": "3.1.1", + "prettier": "3.2.2", "prettier-plugin-organize-imports": "~3.2.4", "rimraf": "~5.0.5", "sanitize-html": "~2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6d2fd5647e..bd329c3f429 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,7 +81,7 @@ devDependencies: version: 46.10.1(eslint@8.56.0) eslint-plugin-prettier: specifier: ~5.1.2 - version: 5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1) + version: 5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2) eslint-plugin-unicorn: specifier: ~49.0.0 version: 49.0.0(eslint@8.56.0) @@ -95,11 +95,11 @@ devDependencies: specifier: ~4.1.5 version: 4.1.5 prettier: - specifier: 3.1.1 - version: 3.1.1 + specifier: 3.2.2 + version: 3.2.2 prettier-plugin-organize-imports: specifier: ~3.2.4 - version: 3.2.4(prettier@3.1.1)(typescript@4.9.5) + version: 3.2.4(prettier@3.2.2)(typescript@4.9.5) rimraf: specifier: ~5.0.5 version: 5.0.5 @@ -3047,7 +3047,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.1.1): + /eslint-plugin-prettier@5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2): resolution: {integrity: sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3063,7 +3063,7 @@ packages: dependencies: eslint: 8.56.0 eslint-config-prettier: 9.1.0(eslint@8.56.0) - prettier: 3.1.1 + prettier: 3.2.2 prettier-linter-helpers: 1.0.0 synckit: 0.8.8 dev: true @@ -4842,7 +4842,7 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.4(prettier@3.1.1)(typescript@4.9.5): + /prettier-plugin-organize-imports@3.2.4(prettier@3.2.2)(typescript@4.9.5): resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4855,12 +4855,12 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.1.1 + prettier: 3.2.2 typescript: 4.9.5 dev: true - /prettier@3.1.1: - resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==} + /prettier@3.2.2: + resolution: {integrity: sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==} engines: {node: '>=14'} hasBin: true dev: true From 872c855d4a288e85ff7486aff7e3dfcfedea8c62 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:05:41 +0000 Subject: [PATCH 60/98] chore(deps): update dependency @algolia/client-search to ~4.22.1 (#2602) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 75 ++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 56 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index d0e003f558e..c361b6d3f21 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ }, "devDependencies": { "@actions/github": "~6.0.0", - "@algolia/client-search": "~4.22.0", + "@algolia/client-search": "~4.22.1", "@eslint-types/deprecation": "2.0.0-1", "@eslint-types/jsdoc": "~46.9.1", "@eslint-types/prettier": "5.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd329c3f429..dbf7891a73a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,8 +5,8 @@ devDependencies: specifier: ~6.0.0 version: 6.0.0 '@algolia/client-search': - specifier: ~4.22.0 - version: 4.22.0 + specifier: ~4.22.1 + version: 4.22.1 '@eslint-types/deprecation': specifier: 2.0.0-1 version: 2.0.0-1 @@ -129,7 +129,7 @@ devDependencies: version: 4.5.1(@types/node@20.10.7) vitepress: specifier: 1.0.0-rc.36 - version: 1.0.0-rc.36(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -160,47 +160,47 @@ packages: undici: 5.28.2 dev: true - /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0): + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0)(search-insights@2.13.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0) - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0)(search-insights@2.13.0) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0) transitivePeerDependencies: - '@algolia/client-search' - algoliasearch - search-insights dev: true - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0)(search-insights@2.13.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0) search-insights: 2.13.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch dev: true - /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0): + /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0): resolution: {integrity: sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) - '@algolia/client-search': 4.22.0 + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0) + '@algolia/client-search': 4.22.1 algoliasearch: 4.22.0 dev: true - /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0): + /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0): resolution: {integrity: sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/client-search': 4.22.0 + '@algolia/client-search': 4.22.1 algoliasearch: 4.22.0 dev: true @@ -214,6 +214,10 @@ packages: resolution: {integrity: sha512-TPwUMlIGPN16eW67qamNQUmxNiGHg/WBqWcrOoCddhqNTqGDPVqmgfaM85LPbt24t3r1z0zEz/tdsmuq3Q6oaA==} dev: true + /@algolia/cache-common@4.22.1: + resolution: {integrity: sha512-TJMBKqZNKYB9TptRRjSUtevJeQVXRmg6rk9qgFKWvOy8jhCPdyNZV1nB3SKGufzvTVbomAukFR8guu/8NRKBTA==} + dev: true + /@algolia/cache-in-memory@4.22.0: resolution: {integrity: sha512-kf4Cio9NpPjzp1+uXQgL4jsMDeck7MP89BYThSvXSjf2A6qV/0KeqQf90TL2ECS02ovLOBXkk98P7qVarM+zGA==} dependencies: @@ -244,6 +248,13 @@ packages: '@algolia/transporter': 4.22.0 dev: true + /@algolia/client-common@4.22.1: + resolution: {integrity: sha512-IvaL5v9mZtm4k4QHbBGDmU3wa/mKokmqNBqPj0K7lcR8ZDKzUorhcGp/u8PkPC/e0zoHSTvRh7TRkGX3Lm7iOQ==} + dependencies: + '@algolia/requester-common': 4.22.1 + '@algolia/transporter': 4.22.1 + dev: true + /@algolia/client-personalization@4.22.0: resolution: {integrity: sha512-pEOftCxeBdG5pL97WngOBi9w5Vxr5KCV2j2D+xMVZH8MuU/JX7CglDSDDb0ffQWYqcUN+40Ry+xtXEYaGXTGow==} dependencies: @@ -260,10 +271,22 @@ packages: '@algolia/transporter': 4.22.0 dev: true + /@algolia/client-search@4.22.1: + resolution: {integrity: sha512-yb05NA4tNaOgx3+rOxAmFztgMTtGBi97X7PC3jyNeGiwkAjOZc2QrdZBYyIdcDLoI09N0gjtpClcackoTN0gPA==} + dependencies: + '@algolia/client-common': 4.22.1 + '@algolia/requester-common': 4.22.1 + '@algolia/transporter': 4.22.1 + dev: true + /@algolia/logger-common@4.22.0: resolution: {integrity: sha512-HMUQTID0ucxNCXs5d1eBJ5q/HuKg8rFVE/vOiLaM4Abfeq1YnTtGV3+rFEhOPWhRQxNDd+YHa4q864IMc0zHpQ==} dev: true + /@algolia/logger-common@4.22.1: + resolution: {integrity: sha512-OnTFymd2odHSO39r4DSWRFETkBufnY2iGUZNrMXpIhF5cmFE8pGoINNPzwg02QLBlGSaLqdKy0bM8S0GyqPLBg==} + dev: true + /@algolia/logger-console@4.22.0: resolution: {integrity: sha512-7JKb6hgcY64H7CRm3u6DRAiiEVXMvCJV5gRE672QFOUgDxo4aiDpfU61g6Uzy8NKjlEzHMmgG4e2fklELmPXhQ==} dependencies: @@ -280,6 +303,10 @@ packages: resolution: {integrity: sha512-Y9cEH/cKjIIZgzvI1aI0ARdtR/xRrOR13g5psCxkdhpgRN0Vcorx+zePhmAa4jdQNqexpxtkUdcKYugBzMZJgQ==} dev: true + /@algolia/requester-common@4.22.1: + resolution: {integrity: sha512-dgvhSAtg2MJnR+BxrIFqlLtkLlVVhas9HgYKMk2Uxiy5m6/8HZBL40JVAMb2LovoPFs9I/EWIoFVjOrFwzn5Qg==} + dev: true + /@algolia/requester-node-http@4.22.0: resolution: {integrity: sha512-8xHoGpxVhz3u2MYIieHIB6MsnX+vfd5PS4REgglejJ6lPigftRhTdBCToe6zbwq4p0anZXjjPDvNWMlgK2+xYA==} dependencies: @@ -294,6 +321,14 @@ packages: '@algolia/requester-common': 4.22.0 dev: true + /@algolia/transporter@4.22.1: + resolution: {integrity: sha512-kzWgc2c9IdxMa3YqA6TN0NW5VrKYYW/BELIn7vnLyn+U/RFdZ4lxxt9/8yq3DKV5snvoDzzO4ClyejZRdV3lMQ==} + dependencies: + '@algolia/cache-common': 4.22.1 + '@algolia/logger-common': 4.22.1 + '@algolia/requester-common': 4.22.1 + dev: true + /@ampproject/remapping@2.2.1: resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} engines: {node: '>=6.0.0'} @@ -394,10 +429,10 @@ packages: resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==} dev: true - /@docsearch/js@3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0): + /@docsearch/js@3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0): resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: - '@docsearch/react': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) + '@docsearch/react': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) preact: 10.19.3 transitivePeerDependencies: - '@algolia/client-search' @@ -407,7 +442,7 @@ packages: - search-insights dev: true - /@docsearch/react@3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0): + /@docsearch/react@3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0): resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -424,8 +459,8 @@ packages: search-insights: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0)(search-insights@2.13.0) - '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.22.0)(algoliasearch@4.22.0) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0)(search-insights@2.13.0) + '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.0) '@docsearch/css': 3.5.2 algoliasearch: 4.22.0 search-insights: 2.13.0 @@ -6061,7 +6096,7 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.36(@algolia/client-search@4.22.0)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5): resolution: {integrity: sha512-2z4dpM9PplN/yvTifhavOIAazlCR6OJ5PvLoRbc+7LdcFeIlCsuDGENLX4HjMW18jQZF5/j7++PNqdBfeazxUA==} hasBin: true peerDependencies: @@ -6074,7 +6109,7 @@ packages: optional: true dependencies: '@docsearch/css': 3.5.2 - '@docsearch/js': 3.5.2(@algolia/client-search@4.22.0)(search-insights@2.13.0) + '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.5) '@vue/devtools-api': 6.5.1 From d71bc47a4a7b127b41068016cbed3584a35b47ea Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 18 Jan 2024 10:49:07 +0100 Subject: [PATCH 61/98] refactor(internet): deprecated redundant avatar method (#2601) --- src/modules/internet/index.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 395266fb588..08ed60b6b4f 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -41,16 +41,26 @@ export class InternetModule extends ModuleBase { /** * Returns a random avatar url. * + * @see faker.image.avatarLegacy(): For the replacement method. + * @see faker.image.avatar(): For the replacement method with a wider variety of avatars. + * * @example * faker.internet.avatar() * // 'https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/315.jpg' * * @since 2.0.1 + * + * @deprecated Use `faker.image.avatar()` instead. */ avatar(): string { - return `https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/${this.faker.number.int( - 1249 - )}.jpg`; + deprecated({ + deprecated: 'faker.internet.avatar()', + proposed: 'faker.image.avatarLegacy() or faker.image.avatar()', + since: '8.4', + until: '9.0', + }); + // TODO @ST-DDT 2024-01-14: Remove or replace with `faker.image.avatar()` in v9 + return this.faker.image.avatarLegacy(); } /** From 41d87789c7ff353acfd0f5ca88a99c0d1fd3b500 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Thu, 18 Jan 2024 17:14:48 +0100 Subject: [PATCH 62/98] feat(number): add parameter `fractionDigits` in float (#1855) Co-authored-by: ST-DDT --- src/modules/finance/index.ts | 2 +- src/modules/location/index.ts | 8 +-- src/modules/number/index.ts | 49 ++++++++++++++++--- .../modules/__snapshots__/number.spec.ts.snap | 6 +++ test/modules/datatype.spec.ts | 14 ++++-- test/modules/number.spec.ts | 44 +++++++++++++++++ 6 files changed, 109 insertions(+), 14 deletions(-) diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index 4caa77b028c..219c2702606 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -601,7 +601,7 @@ export class FinanceModule extends ModuleBase { const randValue = this.faker.number.float({ max, min, - multipleOf: 10 ** -dec, + fractionDigits: dec, }); const formattedString = autoFormat diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index b06af49e656..608e65a6504 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -579,7 +579,7 @@ export class LocationModule extends ModuleBase { const { max = 90, min = legacyMin, precision = legacyPrecision } = options; - return this.faker.number.float({ min, max, multipleOf: 10 ** -precision }); + return this.faker.number.float({ min, max, fractionDigits: precision }); } /** @@ -732,7 +732,7 @@ export class LocationModule extends ModuleBase { const { max = 180, min = legacyMin, precision = legacyPrecision } = options; - return this.faker.number.float({ max, min, multipleOf: 10 ** -precision }); + return this.faker.number.float({ max, min, fractionDigits: precision }); } /** @@ -1207,7 +1207,7 @@ export class LocationModule extends ModuleBase { const angleRadians = this.faker.number.float({ max: 2 * Math.PI, - multipleOf: 0.00001, + fractionDigits: 5, }); // in ° radians const radiusMetric = isMetric ? radius : radius * 1.60934; // in km @@ -1215,7 +1215,7 @@ export class LocationModule extends ModuleBase { const distanceInKm = this.faker.number.float({ max: radiusMetric, - multipleOf: 0.001, + fractionDigits: 3, }) * errorCorrection; // in km /** diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index 2d1af9ccbd9..cb32938220f 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -97,10 +97,16 @@ export class NumberModule extends SimpleModuleBase { * @param options.multipleOf The generated number will be a multiple of this property. * This property can be used to limit the result to a specific number of decimal digits. * For example `0.01` will round to 2 decimal points. - * If multipleOf is passed, the upper bound is inclusive. + * If `multipleOf` is passed, the upper bound is inclusive. + * This option is incompatible with the `fractionDigits` option. + * @param options.fractionDigits The maximum number of digits to appear after the decimal point. + * This option is incompatible with the `multipleOf` option. * * @throws When `min` is greater than `max`. * @throws When `precision` is negative. + * @throws When `multipleOf` is negative. + * @throws When `fractionDigits` is negative. + * @throws When `fractionDigits` and `multipleOf` is passed in the same options object. * * @example * faker.number.float() // 0.5688541042618454 @@ -108,7 +114,9 @@ export class NumberModule extends SimpleModuleBase { * faker.number.float({ min: -1000000 }) //-780678.849672846 * faker.number.float({ max: 100 }) // 17.3687307164073 * faker.number.float({ multipleOf: 0.25 }) // 3.75 - * faker.number.float({ min: 10, max: 100, multipleOf: 0.001 }) // 35.415 + * faker.number.float({ fractionDigits: 1 }) // 0.9 + * faker.number.float({ min: 10, max: 100, multipleOf: 0.02 }) // 35.42 + * faker.number.float({ min: 10, max: 100, fractionDigits: 3 }) // 65.716 * * @since 8.0.0 */ @@ -129,6 +137,10 @@ export class NumberModule extends SimpleModuleBase { */ max?: number; /** + * The number of digits to appear after the decimal point. + */ + fractionDigits?: number; + /* * Precision of the generated number. * * @deprecated Use `multipleOf` instead. @@ -147,10 +159,17 @@ export class NumberModule extends SimpleModuleBase { }; } - // eslint-disable-next-line deprecation/deprecation - const { min = 0, max = 1, precision, multipleOf = precision } = options; + const { + min = 0, + max = 1, + fractionDigits, + precision, + multipleOf: originalMultipleOf = precision, + multipleOf = precision ?? + (fractionDigits == null ? undefined : 10 ** -fractionDigits), + } = options; - if (precision !== undefined) { + if (precision != null) { deprecated({ deprecated: 'faker.number.float({ precision })', proposed: 'faker.number.float({ multipleOf })', @@ -167,7 +186,25 @@ export class NumberModule extends SimpleModuleBase { throw new FakerError(`Max ${max} should be greater than min ${min}.`); } - if (multipleOf !== undefined) { + if (fractionDigits != null) { + if (originalMultipleOf != null) { + throw new FakerError( + 'multipleOf and fractionDigits cannot be set at the same time.' + ); + } + + if (!Number.isInteger(fractionDigits)) { + throw new FakerError('fractionDigits should be an integer.'); + } + + if (fractionDigits < 0) { + throw new FakerError( + 'fractionDigits should be greater than or equal to 0.' + ); + } + } + + if (multipleOf != null) { if (multipleOf <= 0) { // TODO @xDivisionByZerox: Clean up in v9.0 throw new FakerError(`multipleOf/precision should be greater than 0.`); diff --git a/test/modules/__snapshots__/number.spec.ts.snap b/test/modules/__snapshots__/number.spec.ts.snap index c04b4fe561e..fc528fd96ad 100644 --- a/test/modules/__snapshots__/number.spec.ts.snap +++ b/test/modules/__snapshots__/number.spec.ts.snap @@ -26,6 +26,8 @@ exports[`number > 42 > float > with min 1`] = `-25.894775084685534`; exports[`number > 42 > float > with min and max 1`] = `-0.4260473116301`; +exports[`number > 42 > float > with min, max and fractionDigits 1`] = `-0.4261`; + exports[`number > 42 > float > with min, max and multipleOf 1`] = `-0.4261`; exports[`number > 42 > float > with min, max and precision 1`] = `-0.4261`; @@ -76,6 +78,8 @@ exports[`number > 1211 > float > with min 1`] = `-2.073633389081806`; exports[`number > 1211 > float > with min and max 1`] = `61.06573706539348`; +exports[`number > 1211 > float > with min, max and fractionDigits 1`] = `61.0658`; + exports[`number > 1211 > float > with min, max and multipleOf 1`] = `61.0658`; exports[`number > 1211 > float > with min, max and precision 1`] = `61.0658`; @@ -126,6 +130,8 @@ exports[`number > 1337 > float > with min 1`] = `-30.732938923640177`; exports[`number > 1337 > float > with min and max 1`] = `-12.915260942419991`; +exports[`number > 1337 > float > with min, max and fractionDigits 1`] = `-12.9153`; + exports[`number > 1337 > float > with min, max and multipleOf 1`] = `-12.9153`; exports[`number > 1337 > float > with min, max and precision 1`] = `-12.9153`; diff --git a/test/modules/datatype.spec.ts b/test/modules/datatype.spec.ts index 75f2897cf28..7a75ce58066 100644 --- a/test/modules/datatype.spec.ts +++ b/test/modules/datatype.spec.ts @@ -320,15 +320,23 @@ describe('datatype', () => { const max = 9; expect(() => { - faker.datatype.number({ min, max }); + faker.datatype.float({ min, max }); }).toThrow( new FakerError(`Max ${max} should be greater than min ${min}.`) ); }); - it('should throw when precision is negative', () => { + it('should throw when precision <= 0', () => { + const min = 1; + const max = 2; + + expect(() => { + faker.datatype.float({ min, max, precision: 0 }); + }).toThrow( + new FakerError('multipleOf/precision should be greater than 0.') + ); expect(() => { - faker.datatype.float({ precision: -0.01 }); + faker.datatype.float({ min, max, precision: -1 }); }).toThrow( new FakerError('multipleOf/precision should be greater than 0.') ); diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index c61498fab91..922819c094a 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -28,6 +28,11 @@ describe('number', () => { max: 69, precision: 0.0001, }) + .it('with min, max and fractionDigits', { + min: -42, + max: 69, + fractionDigits: 4, + }) .it('with min, max and multipleOf', { min: -42, max: 69, @@ -281,6 +286,45 @@ describe('number', () => { expect(results).toEqual([0, 0.4, 0.8, 1.2, 1.6]); }); + it.each(times(100))( + 'provides numbers with an exact fractional digits', + () => { + const actual = faker.number.float({ + min: 0.5, + max: 0.99, + fractionDigits: 2, + }); + expect(actual).toBe(Number(actual.toFixed(2))); + } + ); + + it('throws an error if fractionDigits and multipleOf is provided at the same time', () => { + expect(() => + faker.number.float({ + min: 0, + max: 10, + multipleOf: 0.25, + fractionDigits: 6, + }) + ).toThrow( + new FakerError( + 'multipleOf and fractionDigits cannot be set at the same time.' + ) + ); + }); + + it('throws an error for non integer fractionDigits numbers', () => { + expect(() => faker.number.float({ fractionDigits: 1.337 })).toThrow( + new FakerError('fractionDigits should be an integer.') + ); + }); + + it('throws an error for negative fractionDigits', () => { + expect(() => faker.number.float({ fractionDigits: -2 })).toThrow( + new FakerError('fractionDigits should be greater than or equal to 0.') + ); + }); + it('provides numbers with a given precision of 0.2', () => { const results = [ ...new Set( From 953087cc9e73ad4d7df289c9ddaca5cdd61a37d0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:38:52 +0000 Subject: [PATCH 63/98] chore(deps): update devdependencies (#2603) --- package.json | 16 ++-- pnpm-lock.yaml | 251 +++++++++++++++++++++++++++---------------------- 2 files changed, 147 insertions(+), 120 deletions(-) diff --git a/package.json b/package.json index c361b6d3f21..3c5adbaedf1 100644 --- a/package.json +++ b/package.json @@ -91,21 +91,21 @@ "@algolia/client-search": "~4.22.1", "@eslint-types/deprecation": "2.0.0-1", "@eslint-types/jsdoc": "~46.9.1", - "@eslint-types/prettier": "5.1.2", - "@eslint-types/typescript-eslint": "~6.17.0", + "@eslint-types/prettier": "5.1.3", + "@eslint-types/typescript-eslint": "~6.18.1", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.10.7", + "@types/node": "~20.11.5", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", - "@types/validator": "~13.11.7", + "@types/validator": "~13.11.8", "@typescript-eslint/eslint-plugin": "~6.18.1", "@typescript-eslint/parser": "~6.18.1", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", - "@vueuse/core": "~10.7.1", + "@vueuse/core": "~10.7.2", "conventional-changelog-cli": "~4.1.0", - "cypress": "~13.6.2", + "cypress": "~13.6.3", "esbuild": "~0.19.11", "eslint": "~8.56.0", "eslint-config-prettier": "~9.1.0", @@ -113,7 +113,7 @@ "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~2.0.0", "eslint-plugin-jsdoc": "~46.10.1", - "eslint-plugin-prettier": "~5.1.2", + "eslint-plugin-prettier": "~5.1.3", "eslint-plugin-unicorn": "~49.0.0", "eslint-plugin-vitest": "~0.3.20", "glob": "~10.3.10", @@ -131,7 +131,7 @@ "vite": "~4.5.1", "vitepress": "1.0.0-rc.36", "vitest": "~0.34.6", - "vue": "~3.4.5" + "vue": "~3.4.14" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dbf7891a73a..a68fde18898 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,11 +14,11 @@ devDependencies: specifier: ~46.9.1 version: 46.9.1 '@eslint-types/prettier': - specifier: 5.1.2 - version: 5.1.2 + specifier: 5.1.3 + version: 5.1.3 '@eslint-types/typescript-eslint': - specifier: ~6.17.0 - version: 6.17.0 + specifier: ~6.18.1 + version: 6.18.1 '@eslint-types/unicorn': specifier: ~49.0.0 version: 49.0.0 @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.10.7 - version: 20.10.7 + specifier: ~20.11.5 + version: 20.11.5 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -35,8 +35,8 @@ devDependencies: specifier: ~7.5.6 version: 7.5.6 '@types/validator': - specifier: ~13.11.7 - version: 13.11.7 + specifier: ~13.11.8 + version: 13.11.8 '@typescript-eslint/eslint-plugin': specifier: ~6.18.1 version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5) @@ -50,14 +50,14 @@ devDependencies: specifier: ~0.34.7 version: 0.34.7(vitest@0.34.6) '@vueuse/core': - specifier: ~10.7.1 - version: 10.7.1(vue@3.4.5) + specifier: ~10.7.2 + version: 10.7.2(vue@3.4.14) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 cypress: - specifier: ~13.6.2 - version: 13.6.2 + specifier: ~13.6.3 + version: 13.6.3 esbuild: specifier: ~0.19.11 version: 0.19.11 @@ -80,8 +80,8 @@ devDependencies: specifier: ~46.10.1 version: 46.10.1(eslint@8.56.0) eslint-plugin-prettier: - specifier: ~5.1.2 - version: 5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2) + specifier: ~5.1.3 + version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2) eslint-plugin-unicorn: specifier: ~49.0.0 version: 49.0.0(eslint@8.56.0) @@ -126,16 +126,16 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.1 - version: 4.5.1(@types/node@20.10.7) + version: 4.5.1(@types/node@20.11.5) vitepress: specifier: 1.0.0-rc.36 - version: 1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.4.5 - version: 3.4.5(typescript@4.9.5) + specifier: ~3.4.14 + version: 3.4.14(typescript@4.9.5) packages: @@ -905,12 +905,12 @@ packages: resolution: {integrity: sha512-oKH2l8HALyZ3bQzSecoWYsJSgdTLILAYlY8dprNBg3LzUZtnfcq0P8ixDmE7UdMCujGAmmGtmgYbzmUDRxSkzg==} dev: true - /@eslint-types/prettier@5.1.2: - resolution: {integrity: sha512-C81jbseWJUUjGAwmX7dwNSAen8Uq6il1+6uW5vyr/rOTNezU8BvZRo+wP1lw8gsjFhG1AQ4eqXhnLE9e2tv9kQ==} + /@eslint-types/prettier@5.1.3: + resolution: {integrity: sha512-jJHwCAdqj+iw2ahrFrA9FSDrYJSAEShWS6s/X/6fmD8xpdaKUpFqG/ecTnUlO6Iyxhkt3lj79Nfu4MWUpo7k6Q==} dev: true - /@eslint-types/typescript-eslint@6.17.0: - resolution: {integrity: sha512-fPwdc27nXbsn69obhmOujFMxheimgs+Hf0iHCyq0s1w48iPpd0PgA/UvAs/PRUY/H9GYvrZDSvBTxtHLqnzb3A==} + /@eslint-types/typescript-eslint@6.18.1: + resolution: {integrity: sha512-sROyc1rWhtvSdszkR3VAv2fioXIyKNFFRbIgoiije2FA+iNn4FEDhP2+kvbq8wPda2adcrNhSZyWSEFsef+lbg==} dev: true /@eslint-types/unicorn@49.0.0: @@ -1294,14 +1294,8 @@ packages: resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: true - /@types/node@18.19.3: - resolution: {integrity: sha512-k5fggr14DwAytoA/t8rPrIz++lXK7/DqckthCmoZOKNsEbJkId4Z//BqgApXBUGrGddrigYa1oqheo/7YmW4rg==} - dependencies: - undici-types: 5.26.5 - dev: true - - /@types/node@20.10.7: - resolution: {integrity: sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg==} + /@types/node@20.11.5: + resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==} dependencies: undici-types: 5.26.5 dev: true @@ -1328,8 +1322,8 @@ packages: resolution: {integrity: sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==} dev: true - /@types/validator@13.11.7: - resolution: {integrity: sha512-q0JomTsJ2I5Mv7dhHhQLGjMvX0JJm5dyZ1DXQySIUzU1UlwzB8bt+R6+LODUbz0UDIOvEzGc28tk27gBJw2N8Q==} + /@types/validator@13.11.8: + resolution: {integrity: sha512-c/hzNDBh7eRF+KbCf+OoZxKbnkpaK/cKp9iLQWqB7muXtM+MtL9SUUH8vCFcLn6dH1Qm05jiexK0ofWY7TfOhQ==} dev: true /@types/web-bluetooth@0.0.20: @@ -1340,7 +1334,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.7 + '@types/node': 20.11.5 dev: true optional: true @@ -1542,15 +1536,15 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.5): + /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.14): resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.11(@types/node@20.10.7) - vue: 3.4.5(typescript@4.9.5) + vite: 5.0.11(@types/node@20.11.5) + vue: 3.4.14(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1635,96 +1629,108 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.4.5: - resolution: {integrity: sha512-Daka7P1z2AgKjzuueWXhwzIsKu0NkLB6vGbNVEV2iJ8GJTrzraZo/Sk4GWCMRtd/qVi3zwnk+Owbd/xSZbwHtQ==} + /@vue/compiler-core@3.4.14: + resolution: {integrity: sha512-ro4Zzl/MPdWs7XwxT7omHRxAjMbDFRZEEjD+2m3NBf8YzAe3HuoSEZosXQo+m1GQ1G3LQ1LdmNh1RKTYe+ssEg==} dependencies: '@babel/parser': 7.23.6 - '@vue/shared': 3.4.5 + '@vue/shared': 3.4.14 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.4.5: - resolution: {integrity: sha512-J8YlxknJVd90SXFJ4HwGANSAXsx5I0lK30sO/zvYV7s5gXf7gZR7r/1BmZ2ju7RGH1lnc6bpBc6nL61yW+PsAQ==} + /@vue/compiler-dom@3.4.14: + resolution: {integrity: sha512-nOZTY+veWNa0DKAceNWxorAbWm0INHdQq7cejFaWM1WYnoNSJbSEKYtE7Ir6lR/+mo9fttZpPVI9ZFGJ1juUEQ==} dependencies: - '@vue/compiler-core': 3.4.5 - '@vue/shared': 3.4.5 + '@vue/compiler-core': 3.4.14 + '@vue/shared': 3.4.14 dev: true - /@vue/compiler-sfc@3.4.5: - resolution: {integrity: sha512-jauvkDuSSUbP0ebhfNqljhShA90YEfX/0wZ+w40oZF43IjGyWYjqYaJbvMJwGOd+9+vODW6eSvnk28f0SGV7OQ==} + /@vue/compiler-sfc@3.4.14: + resolution: {integrity: sha512-1vHc9Kv1jV+YBZC/RJxQJ9JCxildTI+qrhtDh6tPkR1O8S+olBUekimY0km0ZNn8nG1wjtFAe9XHij+YLR8cRQ==} dependencies: '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.4.5 - '@vue/compiler-dom': 3.4.5 - '@vue/compiler-ssr': 3.4.5 - '@vue/shared': 3.4.5 + '@vue/compiler-core': 3.4.14 + '@vue/compiler-dom': 3.4.14 + '@vue/compiler-ssr': 3.4.14 + '@vue/shared': 3.4.14 estree-walker: 2.0.2 magic-string: 0.30.5 - postcss: 8.4.32 + postcss: 8.4.33 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.4.5: - resolution: {integrity: sha512-DDdEcDzj2lWTMfUMMtEpLDhURai9LhM0zSZ219jCt7b2Vyl0/jy3keFgCPMitG0V1S1YG4Cmws3lWHWdxHQOpg==} + /@vue/compiler-ssr@3.4.14: + resolution: {integrity: sha512-bXT6+oAGlFjTYVOTtFJ4l4Jab1wjsC0cfSfOe2B4Z0N2vD2zOBSQ9w694RsCfhjk+bC2DY5Gubb1rHZVii107Q==} dependencies: - '@vue/compiler-dom': 3.4.5 - '@vue/shared': 3.4.5 + '@vue/compiler-dom': 3.4.14 + '@vue/shared': 3.4.14 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity@3.4.5: - resolution: {integrity: sha512-BcWkKvjdvqJwb7BhhFkXPLDCecX4d4a6GATvCduJQDLv21PkPowAE5GKuIE5p6RC07/Lp9FMkkq4AYCTVF5KlQ==} + /@vue/reactivity@3.4.14: + resolution: {integrity: sha512-xRYwze5Q4tK7tT2J4uy4XLhK/AIXdU5EBUu9PLnIHcOKXO0uyXpNNMzlQKuq7B+zwtq6K2wuUL39pHA6ZQzObw==} dependencies: - '@vue/shared': 3.4.5 + '@vue/shared': 3.4.14 dev: true - /@vue/runtime-core@3.4.5: - resolution: {integrity: sha512-wh9ELIOQKeWT9SaUPdLrsxRkZv14jp+SJm9aiQGWio+/MWNM3Lib0wE6CoKEqQ9+SCYyGjDBhTOTtO47kCgbkg==} + /@vue/runtime-core@3.4.14: + resolution: {integrity: sha512-qu+NMkfujCoZL6cfqK5NOfxgXJROSlP2ZPs4CTcVR+mLrwl4TtycF5Tgo0QupkdBL+2kigc6EsJlTcuuZC1NaQ==} dependencies: - '@vue/reactivity': 3.4.5 - '@vue/shared': 3.4.5 + '@vue/reactivity': 3.4.14 + '@vue/shared': 3.4.14 dev: true - /@vue/runtime-dom@3.4.5: - resolution: {integrity: sha512-n5ewvOjyG3IEpqGBahdPXODFSpVlSz3H4LF76Sx0XAqpIOqyJ5bIb2PrdYuH2ogBMAQPh+o5tnoH4nJpBr8U0Q==} + /@vue/runtime-dom@3.4.14: + resolution: {integrity: sha512-B85XmcR4E7XsirEHVqhmy4HPbRT9WLFWV9Uhie3OapV9m1MEN9+Er6hmUIE6d8/l2sUygpK9RstFM2bmHEUigA==} dependencies: - '@vue/runtime-core': 3.4.5 - '@vue/shared': 3.4.5 + '@vue/runtime-core': 3.4.14 + '@vue/shared': 3.4.14 csstype: 3.1.3 dev: true - /@vue/server-renderer@3.4.5(vue@3.4.5): - resolution: {integrity: sha512-jOFc/VE87yvifQpNju12VcqimH8pBLxdcT+t3xMeiED1K6DfH9SORyhFEoZlW5TG2Vwfn3Ul5KE+1aC99xnSBg==} + /@vue/server-renderer@3.4.14(vue@3.4.14): + resolution: {integrity: sha512-pwSKXQfYdJBTpvWHGEYI+akDE18TXAiLcGn+Q/2Fj8wQSHWztoo7PSvfMNqu6NDhp309QXXbPFEGCU5p85HqkA==} peerDependencies: - vue: 3.4.5 + vue: 3.4.14 dependencies: - '@vue/compiler-ssr': 3.4.5 - '@vue/shared': 3.4.5 - vue: 3.4.5(typescript@4.9.5) + '@vue/compiler-ssr': 3.4.14 + '@vue/shared': 3.4.14 + vue: 3.4.14(typescript@4.9.5) dev: true - /@vue/shared@3.4.5: - resolution: {integrity: sha512-6XptuzlMvN4l4cDnDw36pdGEV+9njYkQ1ZE0Q6iZLwrKefKaOJyiFmcP3/KBDHbt72cJZGtllAc1GaHe6XGAyg==} + /@vue/shared@3.4.14: + resolution: {integrity: sha512-nmi3BtLpvqXAWoRZ6HQ+pFJOHBU4UnH3vD3opgmwXac7vhaHKA9nj1VeGjMggdB9eLtW83eHyPCmOU1qzdsC7Q==} dev: true - /@vueuse/core@10.7.1(vue@3.4.5): + /@vueuse/core@10.7.1(vue@3.4.14): resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.1 - '@vueuse/shared': 10.7.1(vue@3.4.5) - vue-demi: 0.14.6(vue@3.4.5) + '@vueuse/shared': 10.7.1(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.14) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.5): + /@vueuse/core@10.7.2(vue@3.4.14): + resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==} + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 10.7.2 + '@vueuse/shared': 10.7.2(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.14) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + + /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.14): resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==} peerDependencies: async-validator: '*' @@ -1765,10 +1771,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.1(vue@3.4.5) - '@vueuse/shared': 10.7.1(vue@3.4.5) + '@vueuse/core': 10.7.1(vue@3.4.14) + '@vueuse/shared': 10.7.1(vue@3.4.14) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.4.5) + vue-demi: 0.14.6(vue@3.4.14) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1778,10 +1784,23 @@ packages: resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==} dev: true - /@vueuse/shared@10.7.1(vue@3.4.5): + /@vueuse/metadata@10.7.2: + resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==} + dev: true + + /@vueuse/shared@10.7.1(vue@3.4.14): resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} dependencies: - vue-demi: 0.14.6(vue@3.4.5) + vue-demi: 0.14.6(vue@3.4.14) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + + /@vueuse/shared@10.7.2(vue@3.4.14): + resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==} + dependencies: + vue-demi: 0.14.6(vue@3.4.14) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2602,15 +2621,14 @@ packages: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} dev: true - /cypress@13.6.2: - resolution: {integrity: sha512-TW3bGdPU4BrfvMQYv1z3oMqj71YI4AlgJgnrycicmPZAXtvywVFZW9DAToshO65D97rCWfG/kqMFsYB6Kp91gQ==} + /cypress@13.6.3: + resolution: {integrity: sha512-d/pZvgwjAyZsoyJ3FOsJT5lDsqnxQ/clMqnNc++rkHjbkkiF2h9s0JsZSyyH4QXhVFW3zPFg82jD25roFLOdZA==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true dependencies: '@cypress/request': 3.0.1 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) - '@types/node': 18.19.3 '@types/sinonjs__fake-timers': 8.1.1 '@types/sizzle': 2.3.8 arch: 2.2.0 @@ -3082,8 +3100,8 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.1.2(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2): - resolution: {integrity: sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==} + /eslint-plugin-prettier@5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2): + resolution: {integrity: sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: '@types/eslint': '>=8.0.0' @@ -4861,6 +4879,15 @@ packages: source-map-js: 1.0.2 dev: true + /postcss@8.4.33: + resolution: {integrity: sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + /preact@10.19.3: resolution: {integrity: sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==} dev: true @@ -6002,7 +6029,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.10.7): + /vite-node@0.34.6(@types/node@20.11.5): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6012,7 +6039,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.1(@types/node@20.10.7) + vite: 4.5.1(@types/node@20.11.5) transitivePeerDependencies: - '@types/node' - less @@ -6024,7 +6051,7 @@ packages: - terser dev: true - /vite@4.5.1(@types/node@20.10.7): + /vite@4.5.1(@types/node@20.11.5): resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6052,7 +6079,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.7 + '@types/node': 20.11.5 esbuild: 0.18.20 postcss: 8.4.32 rollup: 3.29.4 @@ -6060,7 +6087,7 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.0.11(@types/node@20.10.7): + /vite@5.0.11(@types/node@20.11.5): resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -6088,15 +6115,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.10.7 + '@types/node': 20.11.5 esbuild: 0.19.11 - postcss: 8.4.32 + postcss: 8.4.33 rollup: 4.9.1 optionalDependencies: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.10.7)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5): resolution: {integrity: sha512-2z4dpM9PplN/yvTifhavOIAazlCR6OJ5PvLoRbc+7LdcFeIlCsuDGENLX4HjMW18jQZF5/j7++PNqdBfeazxUA==} hasBin: true peerDependencies: @@ -6111,18 +6138,18 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.5) + '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.14) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.1(vue@3.4.5) - '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.5) + '@vueuse/core': 10.7.2(vue@3.4.14) + '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.14) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 shikiji: 0.9.17 shikiji-core: 0.9.17 shikiji-transformers: 0.9.17 - vite: 5.0.11(@types/node@20.10.7) - vue: 3.4.5(typescript@4.9.5) + vite: 5.0.11(@types/node@20.11.5) + vue: 3.4.14(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6184,7 +6211,7 @@ packages: dependencies: '@types/chai': 4.3.11 '@types/chai-subset': 1.3.5 - '@types/node': 20.10.7 + '@types/node': 20.11.5 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6204,8 +6231,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.1(@types/node@20.10.7) - vite-node: 0.34.6(@types/node@20.10.7) + vite: 4.5.1(@types/node@20.11.5) + vite-node: 0.34.6(@types/node@20.11.5) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -6225,7 +6252,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.4.5): + /vue-demi@0.14.6(vue@3.4.14): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6237,22 +6264,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.5(typescript@4.9.5) + vue: 3.4.14(typescript@4.9.5) dev: true - /vue@3.4.5(typescript@4.9.5): - resolution: {integrity: sha512-VH6nHFhLPjgu2oh5vEBXoNZxsGHuZNr3qf4PHClwJWw6IDqw6B3x+4J+ABdoZ0aJuT8Zi0zf3GpGlLQCrGWHrw==} + /vue@3.4.14(typescript@4.9.5): + resolution: {integrity: sha512-Rop5Al/ZcBbBz+KjPZaZDgHDX0kUP4duEzDbm+1o91uxYUNmJrZSBuegsNIJvUGy+epLevNRNhLjm08VKTgGyw==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.5 - '@vue/compiler-sfc': 3.4.5 - '@vue/runtime-dom': 3.4.5 - '@vue/server-renderer': 3.4.5(vue@3.4.5) - '@vue/shared': 3.4.5 + '@vue/compiler-dom': 3.4.14 + '@vue/compiler-sfc': 3.4.14 + '@vue/runtime-dom': 3.4.14 + '@vue/server-renderer': 3.4.14(vue@3.4.14) + '@vue/shared': 3.4.14 typescript: 4.9.5 dev: true From 59919308675cdb9747b47eeb2104e69c5c233960 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sat, 20 Jan 2024 00:51:16 +0700 Subject: [PATCH 64/98] docs: improve docs for faker.number.float (#2607) --- src/modules/number/index.ts | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index cb32938220f..b4137ccebe5 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -86,21 +86,14 @@ export class NumberModule extends SimpleModuleBase { } /** - * Returns a single random floating-point number. - * The lower bound is inclusive, the upper bound is exclusive, unless `multipleOf` is passed. + * Returns a single random floating-point number, by default between `0.0` and `1.0`. To change the range, pass a `min` and `max` value. To limit the number of decimal places, pass a `multipleOf` or `fractionDigits` parameter. * * @param options Upper bound or options object. - * @param options.min Lower bound for generated number. Defaults to `0.0`. - * @param options.max Upper bound for generated number. Defaults to `1.0`. - * @param options.precision Precision of the generated number, for example `0.01` will round to 2 decimal points. - * If precision is passed, the upper bound is inclusive. - * @param options.multipleOf The generated number will be a multiple of this property. - * This property can be used to limit the result to a specific number of decimal digits. - * For example `0.01` will round to 2 decimal points. - * If `multipleOf` is passed, the upper bound is inclusive. - * This option is incompatible with the `fractionDigits` option. - * @param options.fractionDigits The maximum number of digits to appear after the decimal point. - * This option is incompatible with the `multipleOf` option. + * @param options.min Lower bound for generated number, inclusive. Defaults to `0.0`. + * @param options.max Upper bound for generated number, exclusive, unless `multipleOf`, `precision` or `fractionDigits` are passed. Defaults to `1.0`. + * @param options.precision Deprecated alias for `multipleOf`. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. + * @param options.multipleOf The generated number will be a multiple of this parameter. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. + * @param options.fractionDigits The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. * * @throws When `min` is greater than `max`. * @throws When `precision` is negative. @@ -111,12 +104,13 @@ export class NumberModule extends SimpleModuleBase { * @example * faker.number.float() // 0.5688541042618454 * faker.number.float(3) // 2.367973240558058 - * faker.number.float({ min: -1000000 }) //-780678.849672846 * faker.number.float({ max: 100 }) // 17.3687307164073 - * faker.number.float({ multipleOf: 0.25 }) // 3.75 + * faker.number.float({ min: 20, max: 30 }) // 23.94764115102589 + * faker.number.float({ multipleOf: 0.25, min: 0, max:10 }) // 7.75 * faker.number.float({ fractionDigits: 1 }) // 0.9 * faker.number.float({ min: 10, max: 100, multipleOf: 0.02 }) // 35.42 * faker.number.float({ min: 10, max: 100, fractionDigits: 3 }) // 65.716 + * faker.number.float({ min: 10, max: 100, multipleOf: 0.001 }) // 65.716 - same as above * * @since 8.0.0 */ @@ -125,30 +119,29 @@ export class NumberModule extends SimpleModuleBase { | number | { /** - * Lower bound for generated number. + * Lower bound for generated number, inclusive. * * @default 0.0 */ min?: number; /** - * Upper bound for generated number. + * Upper bound for generated number, exclusive, unless `multipleOf`, `precision` or `fractionDigits` are passed. * * @default 1.0 */ max?: number; /** - * The number of digits to appear after the decimal point. + * The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. */ fractionDigits?: number; /* - * Precision of the generated number. + * Deprecated alias for `multipleOf`. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. * * @deprecated Use `multipleOf` instead. */ precision?: number; /** - * The generated number will be a multiple of this property. - * If multipleOf is passed, the upper bound is inclusive. + * The generated number will be a multiple of this parameter. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. */ multipleOf?: number; } = {} From 7abb629f4ce5baab174b953c285c79f68a0fb410 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Jan 2024 00:54:36 +0100 Subject: [PATCH 65/98] chore(deps-dev): bump vite from 4.5.1 to 4.5.2 (#2609) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.1 to 4.5.2. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pnpm-lock.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a68fde18898..722c80b70fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -126,7 +126,7 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.1 - version: 4.5.1(@types/node@20.11.5) + version: 4.5.2(@types/node@20.11.5) vitepress: specifier: 1.0.0-rc.36 version: 1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5) @@ -6039,7 +6039,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.1(@types/node@20.11.5) + vite: 4.5.2(@types/node@20.11.5) transitivePeerDependencies: - '@types/node' - less @@ -6051,8 +6051,8 @@ packages: - terser dev: true - /vite@4.5.1(@types/node@20.11.5): - resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} + /vite@4.5.2(@types/node@20.11.5): + resolution: {integrity: sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -6081,7 +6081,7 @@ packages: dependencies: '@types/node': 20.11.5 esbuild: 0.18.20 - postcss: 8.4.32 + postcss: 8.4.33 rollup: 3.29.4 optionalDependencies: fsevents: 2.3.3 @@ -6231,7 +6231,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.1(@types/node@20.11.5) + vite: 4.5.2(@types/node@20.11.5) vite-node: 0.34.6(@types/node@20.11.5) why-is-node-running: 2.2.2 transitivePeerDependencies: From a0c757eb87dcb9bcee21835d8931e222c1adef56 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 20 Jan 2024 12:09:53 +0100 Subject: [PATCH 66/98] chore(deps): update devdependencies (#2610) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 4 +- pnpm-lock.yaml | 138 ++++++++++++++++++++++++------------------------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/package.json b/package.json index 3c5adbaedf1..41711a5f2c1 100644 --- a/package.json +++ b/package.json @@ -128,10 +128,10 @@ "typedoc": "~0.25.7", "typescript": "~4.9.5", "validator": "~13.11.0", - "vite": "~4.5.1", + "vite": "~4.5.2", "vitepress": "1.0.0-rc.36", "vitest": "~0.34.6", - "vue": "~3.4.14" + "vue": "~3.4.15" }, "packageManager": "pnpm@8.5.1", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 722c80b70fd..8ad3551a47e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,7 +51,7 @@ devDependencies: version: 0.34.7(vitest@0.34.6) '@vueuse/core': specifier: ~10.7.2 - version: 10.7.2(vue@3.4.14) + version: 10.7.2(vue@3.4.15) conventional-changelog-cli: specifier: ~4.1.0 version: 4.1.0 @@ -125,7 +125,7 @@ devDependencies: specifier: ~13.11.0 version: 13.11.0 vite: - specifier: ~4.5.1 + specifier: ~4.5.2 version: 4.5.2(@types/node@20.11.5) vitepress: specifier: 1.0.0-rc.36 @@ -134,8 +134,8 @@ devDependencies: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) vue: - specifier: ~3.4.14 - version: 3.4.14(typescript@4.9.5) + specifier: ~3.4.15 + version: 3.4.15(typescript@4.9.5) packages: @@ -1536,7 +1536,7 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.14): + /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.15): resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: @@ -1544,7 +1544,7 @@ packages: vue: ^3.2.25 dependencies: vite: 5.0.11(@types/node@20.11.5) - vue: 3.4.14(typescript@4.9.5) + vue: 3.4.15(typescript@4.9.5) dev: true /@vitest/coverage-v8@0.34.6(vitest@0.34.6): @@ -1629,108 +1629,108 @@ packages: pretty-format: 29.7.0 dev: true - /@vue/compiler-core@3.4.14: - resolution: {integrity: sha512-ro4Zzl/MPdWs7XwxT7omHRxAjMbDFRZEEjD+2m3NBf8YzAe3HuoSEZosXQo+m1GQ1G3LQ1LdmNh1RKTYe+ssEg==} + /@vue/compiler-core@3.4.15: + resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==} dependencies: '@babel/parser': 7.23.6 - '@vue/shared': 3.4.14 + '@vue/shared': 3.4.15 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: true - /@vue/compiler-dom@3.4.14: - resolution: {integrity: sha512-nOZTY+veWNa0DKAceNWxorAbWm0INHdQq7cejFaWM1WYnoNSJbSEKYtE7Ir6lR/+mo9fttZpPVI9ZFGJ1juUEQ==} + /@vue/compiler-dom@3.4.15: + resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==} dependencies: - '@vue/compiler-core': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-core': 3.4.15 + '@vue/shared': 3.4.15 dev: true - /@vue/compiler-sfc@3.4.14: - resolution: {integrity: sha512-1vHc9Kv1jV+YBZC/RJxQJ9JCxildTI+qrhtDh6tPkR1O8S+olBUekimY0km0ZNn8nG1wjtFAe9XHij+YLR8cRQ==} + /@vue/compiler-sfc@3.4.15: + resolution: {integrity: sha512-LCn5M6QpkpFsh3GQvs2mJUOAlBQcCco8D60Bcqmf3O3w5a+KWS5GvYbrrJBkgvL1BDnTp+e8q0lXCLgHhKguBA==} dependencies: '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.4.14 - '@vue/compiler-dom': 3.4.14 - '@vue/compiler-ssr': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-core': 3.4.15 + '@vue/compiler-dom': 3.4.15 + '@vue/compiler-ssr': 3.4.15 + '@vue/shared': 3.4.15 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.33 source-map-js: 1.0.2 dev: true - /@vue/compiler-ssr@3.4.14: - resolution: {integrity: sha512-bXT6+oAGlFjTYVOTtFJ4l4Jab1wjsC0cfSfOe2B4Z0N2vD2zOBSQ9w694RsCfhjk+bC2DY5Gubb1rHZVii107Q==} + /@vue/compiler-ssr@3.4.15: + resolution: {integrity: sha512-1jdeQyiGznr8gjFDadVmOJqZiLNSsMa5ZgqavkPZ8O2wjHv0tVuAEsw5hTdUoUW4232vpBbL/wJhzVW/JwY1Uw==} dependencies: - '@vue/compiler-dom': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-dom': 3.4.15 + '@vue/shared': 3.4.15 dev: true /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: true - /@vue/reactivity@3.4.14: - resolution: {integrity: sha512-xRYwze5Q4tK7tT2J4uy4XLhK/AIXdU5EBUu9PLnIHcOKXO0uyXpNNMzlQKuq7B+zwtq6K2wuUL39pHA6ZQzObw==} + /@vue/reactivity@3.4.15: + resolution: {integrity: sha512-55yJh2bsff20K5O84MxSvXKPHHt17I2EomHznvFiJCAZpJTNW8IuLj1xZWMLELRhBK3kkFV/1ErZGHJfah7i7w==} dependencies: - '@vue/shared': 3.4.14 + '@vue/shared': 3.4.15 dev: true - /@vue/runtime-core@3.4.14: - resolution: {integrity: sha512-qu+NMkfujCoZL6cfqK5NOfxgXJROSlP2ZPs4CTcVR+mLrwl4TtycF5Tgo0QupkdBL+2kigc6EsJlTcuuZC1NaQ==} + /@vue/runtime-core@3.4.15: + resolution: {integrity: sha512-6E3by5m6v1AkW0McCeAyhHTw+3y17YCOKG0U0HDKDscV4Hs0kgNT5G+GCHak16jKgcCDHpI9xe5NKb8sdLCLdw==} dependencies: - '@vue/reactivity': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/reactivity': 3.4.15 + '@vue/shared': 3.4.15 dev: true - /@vue/runtime-dom@3.4.14: - resolution: {integrity: sha512-B85XmcR4E7XsirEHVqhmy4HPbRT9WLFWV9Uhie3OapV9m1MEN9+Er6hmUIE6d8/l2sUygpK9RstFM2bmHEUigA==} + /@vue/runtime-dom@3.4.15: + resolution: {integrity: sha512-EVW8D6vfFVq3V/yDKNPBFkZKGMFSvZrUQmx196o/v2tHKdwWdiZjYUBS+0Ez3+ohRyF8Njwy/6FH5gYJ75liUw==} dependencies: - '@vue/runtime-core': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/runtime-core': 3.4.15 + '@vue/shared': 3.4.15 csstype: 3.1.3 dev: true - /@vue/server-renderer@3.4.14(vue@3.4.14): - resolution: {integrity: sha512-pwSKXQfYdJBTpvWHGEYI+akDE18TXAiLcGn+Q/2Fj8wQSHWztoo7PSvfMNqu6NDhp309QXXbPFEGCU5p85HqkA==} + /@vue/server-renderer@3.4.15(vue@3.4.15): + resolution: {integrity: sha512-3HYzaidu9cHjrT+qGUuDhFYvF/j643bHC6uUN9BgM11DVy+pM6ATsG6uPBLnkwOgs7BpJABReLmpL3ZPAsUaqw==} peerDependencies: - vue: 3.4.14 + vue: 3.4.15 dependencies: - '@vue/compiler-ssr': 3.4.14 - '@vue/shared': 3.4.14 - vue: 3.4.14(typescript@4.9.5) + '@vue/compiler-ssr': 3.4.15 + '@vue/shared': 3.4.15 + vue: 3.4.15(typescript@4.9.5) dev: true - /@vue/shared@3.4.14: - resolution: {integrity: sha512-nmi3BtLpvqXAWoRZ6HQ+pFJOHBU4UnH3vD3opgmwXac7vhaHKA9nj1VeGjMggdB9eLtW83eHyPCmOU1qzdsC7Q==} + /@vue/shared@3.4.15: + resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==} dev: true - /@vueuse/core@10.7.1(vue@3.4.14): + /@vueuse/core@10.7.1(vue@3.4.15): resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.1 - '@vueuse/shared': 10.7.1(vue@3.4.14) - vue-demi: 0.14.6(vue@3.4.14) + '@vueuse/shared': 10.7.1(vue@3.4.15) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/core@10.7.2(vue@3.4.14): + /@vueuse/core@10.7.2(vue@3.4.15): resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.2 - '@vueuse/shared': 10.7.2(vue@3.4.14) - vue-demi: 0.14.6(vue@3.4.14) + '@vueuse/shared': 10.7.2(vue@3.4.15) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.14): + /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.15): resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==} peerDependencies: async-validator: '*' @@ -1771,10 +1771,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.1(vue@3.4.14) - '@vueuse/shared': 10.7.1(vue@3.4.14) + '@vueuse/core': 10.7.1(vue@3.4.15) + '@vueuse/shared': 10.7.1(vue@3.4.15) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1788,19 +1788,19 @@ packages: resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==} dev: true - /@vueuse/shared@10.7.1(vue@3.4.14): + /@vueuse/shared@10.7.1(vue@3.4.15): resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} dependencies: - vue-demi: 0.14.6(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue dev: true - /@vueuse/shared@10.7.2(vue@3.4.14): + /@vueuse/shared@10.7.2(vue@3.4.15): resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==} dependencies: - vue-demi: 0.14.6(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -6138,10 +6138,10 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.14) + '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.15) '@vue/devtools-api': 6.5.1 - '@vueuse/core': 10.7.2(vue@3.4.14) - '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.14) + '@vueuse/core': 10.7.2(vue@3.4.15) + '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.15) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 @@ -6149,7 +6149,7 @@ packages: shikiji-core: 0.9.17 shikiji-transformers: 0.9.17 vite: 5.0.11(@types/node@20.11.5) - vue: 3.4.14(typescript@4.9.5) + vue: 3.4.15(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -6252,7 +6252,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi@0.14.6(vue@3.4.14): + /vue-demi@0.14.6(vue@3.4.15): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -6264,22 +6264,22 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.14(typescript@4.9.5) + vue: 3.4.15(typescript@4.9.5) dev: true - /vue@3.4.14(typescript@4.9.5): - resolution: {integrity: sha512-Rop5Al/ZcBbBz+KjPZaZDgHDX0kUP4duEzDbm+1o91uxYUNmJrZSBuegsNIJvUGy+epLevNRNhLjm08VKTgGyw==} + /vue@3.4.15(typescript@4.9.5): + resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.14 - '@vue/compiler-sfc': 3.4.14 - '@vue/runtime-dom': 3.4.14 - '@vue/server-renderer': 3.4.14(vue@3.4.14) - '@vue/shared': 3.4.14 + '@vue/compiler-dom': 3.4.15 + '@vue/compiler-sfc': 3.4.15 + '@vue/runtime-dom': 3.4.15 + '@vue/server-renderer': 3.4.15(vue@3.4.15) + '@vue/shared': 3.4.15 typescript: 4.9.5 dev: true From b58ef149818e17e9e5ccdbad6af93ef282e25849 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 21 Jan 2024 13:19:38 +0100 Subject: [PATCH 67/98] docs: fix longitude options (#2611) --- src/modules/location/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 608e65a6504..20e260934ca 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -600,19 +600,19 @@ export class LocationModule extends ModuleBase { */ longitude(options?: { /** - * The upper bound for the latitude to generate. + * The upper bound for the longitude to generate. * - * @default 90 + * @default 180 */ max?: number; /** - * The lower bound for the latitude to generate. + * The lower bound for the longitude to generate. * - * @default -90 + * @default -180 */ min?: number; /** - * The number of decimal points of precision for the latitude. + * The number of decimal points of precision for the longitude. * * @default 4 */ From 12e82ae1a2a1e77cff31a683ec88f667a8cf267f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 09:49:08 +0100 Subject: [PATCH 68/98] chore(deps): update typescript-eslint to ~6.19.0 (#2618) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 84 +++++++++++++++++++++++++------------------------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index 41711a5f2c1..ca01a9b1058 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.8", - "@typescript-eslint/eslint-plugin": "~6.18.1", - "@typescript-eslint/parser": "~6.18.1", + "@typescript-eslint/eslint-plugin": "~6.19.0", + "@typescript-eslint/parser": "~6.19.0", "@vitest/coverage-v8": "~0.34.6", "@vitest/ui": "~0.34.7", "@vueuse/core": "~10.7.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ad3551a47e..85779f0f5e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,11 +38,11 @@ devDependencies: specifier: ~13.11.8 version: 13.11.8 '@typescript-eslint/eslint-plugin': - specifier: ~6.18.1 - version: 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.19.0 + version: 6.19.0(@typescript-eslint/parser@6.19.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.18.1 - version: 6.18.1(eslint@8.56.0)(typescript@4.9.5) + specifier: ~6.19.0 + version: 6.19.0(eslint@8.56.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.6 version: 0.34.6(vitest@0.34.6) @@ -87,7 +87,7 @@ devDependencies: version: 49.0.0(eslint@8.56.0) eslint-plugin-vitest: specifier: ~0.3.20 - version: 0.3.20(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) + version: 0.3.20(@typescript-eslint/eslint-plugin@6.19.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6) glob: specifier: ~10.3.10 version: 10.3.10 @@ -1338,8 +1338,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==} + /@typescript-eslint/eslint-plugin@6.19.0(@typescript-eslint/parser@6.19.0)(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-DUCUkQNklCQYnrBSSikjVChdc84/vMPDQSgJTHBZ64G9bA9w0Crc0rd2diujKbTdp6w2J47qkeHQLoi0rpLCdg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1350,11 +1350,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.18.1(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.18.1 - '@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.18.1 + '@typescript-eslint/parser': 6.19.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.19.0 + '@typescript-eslint/type-utils': 6.19.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.19.0(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.19.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 graphemer: 1.4.0 @@ -1367,8 +1367,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA==} + /@typescript-eslint/parser@6.19.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-1DyBLG5SH7PYCd00QlroiW60YJ4rWMuUGa/JBV0iZuqi4l4IK3twKPq5ZkEebmGqRjXWVgsUzfd3+nZveewgow==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1377,10 +1377,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.18.1 - '@typescript-eslint/types': 6.18.1 - '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.18.1 + '@typescript-eslint/scope-manager': 6.19.0 + '@typescript-eslint/types': 6.19.0 + '@typescript-eslint/typescript-estree': 6.19.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.19.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 typescript: 4.9.5 @@ -1396,16 +1396,16 @@ packages: '@typescript-eslint/visitor-keys': 6.16.0 dev: true - /@typescript-eslint/scope-manager@6.18.1: - resolution: {integrity: sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==} + /@typescript-eslint/scope-manager@6.19.0: + resolution: {integrity: sha512-dO1XMhV2ehBI6QN8Ufi7I10wmUovmLU0Oru3n5LVlM2JuzB4M+dVphCPLkVpKvGij2j/pHBWuJ9piuXx+BhzxQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.18.1 - '@typescript-eslint/visitor-keys': 6.18.1 + '@typescript-eslint/types': 6.19.0 + '@typescript-eslint/visitor-keys': 6.19.0 dev: true - /@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==} + /@typescript-eslint/type-utils@6.19.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-mcvS6WSWbjiSxKCwBcXtOM5pRkPQ6kcDds/juxcy/727IQr3xMEcwr/YLHW2A2+Fp5ql6khjbKBzOyjuPqGi/w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1414,8 +1414,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.19.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.19.0(eslint@8.56.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.56.0 ts-api-utils: 1.0.3(typescript@4.9.5) @@ -1429,8 +1429,8 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.18.1: - resolution: {integrity: sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==} + /@typescript-eslint/types@6.19.0: + resolution: {integrity: sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1456,8 +1456,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.18.1(typescript@4.9.5): - resolution: {integrity: sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==} + /@typescript-eslint/typescript-estree@6.19.0(typescript@4.9.5): + resolution: {integrity: sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1465,8 +1465,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.18.1 - '@typescript-eslint/visitor-keys': 6.18.1 + '@typescript-eslint/types': 6.19.0 + '@typescript-eslint/visitor-keys': 6.19.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1497,8 +1497,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@4.9.5): - resolution: {integrity: sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==} + /@typescript-eslint/utils@6.19.0(eslint@8.56.0)(typescript@4.9.5): + resolution: {integrity: sha512-QR41YXySiuN++/dC9UArYOg4X86OAYP83OWTewpVx5ct1IZhjjgTLocj7QNxGhWoTqknsgpl7L+hGygCO+sdYw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1506,9 +1506,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.18.1 - '@typescript-eslint/types': 6.18.1 - '@typescript-eslint/typescript-estree': 6.18.1(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.19.0 + '@typescript-eslint/types': 6.19.0 + '@typescript-eslint/typescript-estree': 6.19.0(typescript@4.9.5) eslint: 8.56.0 semver: 7.5.4 transitivePeerDependencies: @@ -1524,11 +1524,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.18.1: - resolution: {integrity: sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==} + /@typescript-eslint/visitor-keys@6.19.0: + resolution: {integrity: sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.18.1 + '@typescript-eslint/types': 6.19.0 eslint-visitor-keys: 3.4.3 dev: true @@ -3144,7 +3144,7 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.18.1)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): + /eslint-plugin-vitest@0.3.20(@typescript-eslint/eslint-plugin@6.19.0)(eslint@8.56.0)(typescript@4.9.5)(vitest@0.34.6): resolution: {integrity: sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -3157,7 +3157,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.18.1(@typescript-eslint/parser@6.18.1)(eslint@8.56.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.19.0(@typescript-eslint/parser@6.19.0)(eslint@8.56.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@4.9.5) eslint: 8.56.0 vitest: 0.34.6(@vitest/ui@0.34.7) From 234218b2f9d93da496f0bbf831fba346bb7fd0ab Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:54:13 +0100 Subject: [PATCH 69/98] chore(deps): update dependency vitepress to v1.0.0-rc.39 (#2616) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 71 ++++++++++++++++---------------------------------- 2 files changed, 24 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index ca01a9b1058..eefa949fc91 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "typescript": "~4.9.5", "validator": "~13.11.0", "vite": "~4.5.2", - "vitepress": "1.0.0-rc.36", + "vitepress": "1.0.0-rc.39", "vitest": "~0.34.6", "vue": "~3.4.15" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85779f0f5e2..335475be378 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,8 +128,8 @@ devDependencies: specifier: ~4.5.2 version: 4.5.2(@types/node@20.11.5) vitepress: - specifier: 1.0.0-rc.36 - version: 1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5) + specifier: 1.0.0-rc.39 + version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -1536,8 +1536,8 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vitejs/plugin-vue@5.0.2(vite@5.0.11)(vue@3.4.15): - resolution: {integrity: sha512-kEjJHrLb5ePBvjD0SPZwJlw1QTRcjjCA9sB5VyfonoXVBxTS7TMnqL6EkLt1Eu61RDeiuZ/WN9Hf6PxXhPI2uA==} + /@vitejs/plugin-vue@5.0.3(vite@5.0.11)(vue@3.4.15): + resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 @@ -1706,18 +1706,6 @@ packages: resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==} dev: true - /@vueuse/core@10.7.1(vue@3.4.15): - resolution: {integrity: sha512-74mWHlaesJSWGp1ihg76vAnfVq9NTv1YT0SYhAQ6zwFNdBkkP+CKKJmVOEHcdSnLXCXYiL5e7MaewblfiYLP7g==} - dependencies: - '@types/web-bluetooth': 0.0.20 - '@vueuse/metadata': 10.7.1 - '@vueuse/shared': 10.7.1(vue@3.4.15) - vue-demi: 0.14.6(vue@3.4.15) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: true - /@vueuse/core@10.7.2(vue@3.4.15): resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==} dependencies: @@ -1730,8 +1718,8 @@ packages: - vue dev: true - /@vueuse/integrations@10.7.1(focus-trap@7.5.4)(vue@3.4.15): - resolution: {integrity: sha512-cKo5LEeKVHdBRBtMTOrDPdR0YNtrmN9IBfdcnY2P3m5LHVrsD0xiHUtAH1WKjHQRIErZG6rJUa6GA4tWZt89Og==} + /@vueuse/integrations@10.7.2(focus-trap@7.5.4)(vue@3.4.15): + resolution: {integrity: sha512-+u3RLPFedjASs5EKPc69Ge49WNgqeMfSxFn+qrQTzblPXZg6+EFzhjarS5edj2qAf6xQ93f95TUxRwKStXj/sQ==} peerDependencies: async-validator: '*' axios: '*' @@ -1771,8 +1759,8 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.1(vue@3.4.15) - '@vueuse/shared': 10.7.1(vue@3.4.15) + '@vueuse/core': 10.7.2(vue@3.4.15) + '@vueuse/shared': 10.7.2(vue@3.4.15) focus-trap: 7.5.4 vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: @@ -1780,23 +1768,10 @@ packages: - vue dev: true - /@vueuse/metadata@10.7.1: - resolution: {integrity: sha512-jX8MbX5UX067DYVsbtrmKn6eG6KMcXxLRLlurGkZku5ZYT3vxgBjui2zajvUZ18QLIjrgBkFRsu7CqTAg18QFw==} - dev: true - /@vueuse/metadata@10.7.2: resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==} dev: true - /@vueuse/shared@10.7.1(vue@3.4.15): - resolution: {integrity: sha512-v0jbRR31LSgRY/C5i5X279A/WQjD6/JsMzGa+eqt658oJ75IvQXAeONmwvEMrvJQKnRElq/frzBR7fhmWY5uLw==} - dependencies: - vue-demi: 0.14.6(vue@3.4.15) - transitivePeerDependencies: - - '@vue/composition-api' - - vue - dev: true - /@vueuse/shared@10.7.2(vue@3.4.15): resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==} dependencies: @@ -5329,20 +5304,20 @@ packages: vscode-textmate: 8.0.0 dev: true - /shikiji-core@0.9.17: - resolution: {integrity: sha512-r1FWTXk6SO2aYqfWgcsJ11MuVQ1ymPSdXzJjK7q8EXuyqu8yc2N5qrQy5+BL6gTVOaF4yLjbxFjF+KTRM1Sp8Q==} + /shikiji-core@0.9.19: + resolution: {integrity: sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw==} dev: true - /shikiji-transformers@0.9.17: - resolution: {integrity: sha512-2CCG9qSLS6Bn/jbeUTEuvC6YSuP8gm8VyX5VjmCvDKyCPGhlLJbH1k/kg9wfRt7cJqpYjhdMDgT5rkdYrOZnsA==} + /shikiji-transformers@0.9.19: + resolution: {integrity: sha512-lGLI7Z8frQrIBbhZ74/eiJtxMoCQRbpaHEB+gcfvdIy+ZFaAtXncJGnc52932/UET+Y4GyKtwwC/vjWUCp+c/Q==} dependencies: - shikiji: 0.9.17 + shikiji: 0.9.19 dev: true - /shikiji@0.9.17: - resolution: {integrity: sha512-0z/1NfkhBkm3ijrfFeHg3G9yDNuHhXdAGbQm7tRxj4WQ5z2y0XDbnagFyKyuV2ebCTS1Mwy1I3n0Fzcc/4xdmw==} + /shikiji@0.9.19: + resolution: {integrity: sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==} dependencies: - shikiji-core: 0.9.17 + shikiji-core: 0.9.19 dev: true /side-channel@1.0.4: @@ -6123,8 +6098,8 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.36(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5): - resolution: {integrity: sha512-2z4dpM9PplN/yvTifhavOIAazlCR6OJ5PvLoRbc+7LdcFeIlCsuDGENLX4HjMW18jQZF5/j7++PNqdBfeazxUA==} + /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5): + resolution: {integrity: sha512-EcgoRlAAp37WOxUOYv45oxyhLrcy3Upey+mKpqW3ldsg6Ol4trPndRBk2GO0QiSvEKlb9BMerk49D/bFICN6kg==} hasBin: true peerDependencies: markdown-it-mathjax3: ^4.3.2 @@ -6138,16 +6113,16 @@ packages: '@docsearch/css': 3.5.2 '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 - '@vitejs/plugin-vue': 5.0.2(vite@5.0.11)(vue@3.4.15) + '@vitejs/plugin-vue': 5.0.3(vite@5.0.11)(vue@3.4.15) '@vue/devtools-api': 6.5.1 '@vueuse/core': 10.7.2(vue@3.4.15) - '@vueuse/integrations': 10.7.1(focus-trap@7.5.4)(vue@3.4.15) + '@vueuse/integrations': 10.7.2(focus-trap@7.5.4)(vue@3.4.15) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 6.3.0 - shikiji: 0.9.17 - shikiji-core: 0.9.17 - shikiji-transformers: 0.9.17 + shikiji: 0.9.19 + shikiji-core: 0.9.19 + shikiji-transformers: 0.9.19 vite: 5.0.11(@types/node@20.11.5) vue: 3.4.15(typescript@4.9.5) transitivePeerDependencies: From e0e9ab131f297deb0b49c3fc3fcdc10245b51c4a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:31:22 +0100 Subject: [PATCH 70/98] chore(deps): update dependency prettier to v3.2.4 (#2615) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- .devcontainer/devcontainer.json | 12 ++++++------ cypress/tsconfig.json | 4 ++-- package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++---------- tsconfig.json | 6 +++--- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b03aff9ab73..7bd11afffe7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,8 +11,8 @@ "forwardPorts": [5173], "portsAttributes": { "5173": { - "label": "Docs" - } + "label": "Docs", + }, }, // Use 'postCreateCommand' to run commands after the container is created. @@ -26,10 +26,10 @@ "editorconfig.editorconfig", "esbenp.prettier-vscode", "redhat.vscode-yaml", - "github.vscode-pull-request-github" - ] - } - } + "github.vscode-pull-request-github", + ], + }, + }, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 0446ab75018..1071e2eb55c 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -5,7 +5,7 @@ "types": ["cypress"], "esModuleInterop": true, "noEmit": true, - "resolveJsonModule": true + "resolveJsonModule": true, }, - "include": ["**/*.ts"] + "include": ["**/*.ts"], } diff --git a/package.json b/package.json index eefa949fc91..e7729f1d316 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "eslint-plugin-vitest": "~0.3.20", "glob": "~10.3.10", "npm-run-all": "~4.1.5", - "prettier": "3.2.2", + "prettier": "3.2.4", "prettier-plugin-organize-imports": "~3.2.4", "rimraf": "~5.0.5", "sanitize-html": "~2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 335475be378..4faf38c798c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,7 +81,7 @@ devDependencies: version: 46.10.1(eslint@8.56.0) eslint-plugin-prettier: specifier: ~5.1.3 - version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2) + version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.4) eslint-plugin-unicorn: specifier: ~49.0.0 version: 49.0.0(eslint@8.56.0) @@ -95,11 +95,11 @@ devDependencies: specifier: ~4.1.5 version: 4.1.5 prettier: - specifier: 3.2.2 - version: 3.2.2 + specifier: 3.2.4 + version: 3.2.4 prettier-plugin-organize-imports: specifier: ~3.2.4 - version: 3.2.4(prettier@3.2.2)(typescript@4.9.5) + version: 3.2.4(prettier@3.2.4)(typescript@4.9.5) rimraf: specifier: ~5.0.5 version: 5.0.5 @@ -3075,7 +3075,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.2): + /eslint-plugin-prettier@5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.4): resolution: {integrity: sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3091,7 +3091,7 @@ packages: dependencies: eslint: 8.56.0 eslint-config-prettier: 9.1.0(eslint@8.56.0) - prettier: 3.2.2 + prettier: 3.2.4 prettier-linter-helpers: 1.0.0 synckit: 0.8.8 dev: true @@ -4879,7 +4879,7 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.4(prettier@3.2.2)(typescript@4.9.5): + /prettier-plugin-organize-imports@3.2.4(prettier@3.2.4)(typescript@4.9.5): resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4892,12 +4892,12 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.2.2 + prettier: 3.2.4 typescript: 4.9.5 dev: true - /prettier@3.2.2: - resolution: {integrity: sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==} + /prettier@3.2.4: + resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==} engines: {node: '>=14'} hasBin: true dev: true diff --git a/tsconfig.json b/tsconfig.json index a290fc07b56..020c97429b2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,12 +11,12 @@ // These are configs specifically for !build and have to be reverted in the tsconfig.build.json "skipLibCheck": true, "allowSyntheticDefaultImports": true, - "resolveJsonModule": true + "resolveJsonModule": true, }, "exclude": [ "node_modules", "dist", // required for the typedoc related tests on macOS #2280 - "test/scripts/apidoc/temp" - ] + "test/scripts/apidoc/temp", + ], } From ca50f824919a199fd9c6148d5521e5bf991da156 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Wed, 24 Jan 2024 18:09:37 +0100 Subject: [PATCH 71/98] docs: fix missing deprecations (#2614) --- src/modules/finance/index.ts | 110 ++++++++++++++++++---------------- src/modules/location/index.ts | 25 +++++--- 2 files changed, 73 insertions(+), 62 deletions(-) diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index 219c2702606..111db57101c 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -376,31 +376,6 @@ export class FinanceModule extends ModuleBase { return template; } - /** - * Generates a random amount between the given bounds (inclusive). - * - * @param min The lower bound for the amount. Defaults to `0`. - * @param max The upper bound for the amount. Defaults to `1000`. - * @param dec The number of decimal places for the amount. Defaults to `2`. - * @param symbol The symbol used to prefix the amount. Defaults to `''`. - * @param autoFormat If true this method will use `Number.toLocaleString()`. Otherwise it will use `Number.toFixed()`. - * - * @example - * faker.finance.amount() // '617.87' - * faker.finance.amount(5, 10) // '5.53' - * faker.finance.amount(5, 10, 0) // '8' - * faker.finance.amount(5, 10, 2, '$') // '$5.85' - * faker.finance.amount(5, 10, 5, '', true) // '9,75067' - * - * @since 2.0.1 - */ - amount( - min?: number, - max?: number, - dec?: number, - symbol?: string, - autoFormat?: boolean - ): string; /** * Generates a random amount between the given bounds (inclusive). * @@ -452,6 +427,33 @@ export class FinanceModule extends ModuleBase { */ autoFormat?: boolean; }): string; + /** + * Generates a random amount between the given bounds (inclusive). + * + * @param min The lower bound for the amount. Defaults to `0`. + * @param max The upper bound for the amount. Defaults to `1000`. + * @param dec The number of decimal places for the amount. Defaults to `2`. + * @param symbol The symbol used to prefix the amount. Defaults to `''`. + * @param autoFormat If true this method will use `Number.toLocaleString()`. Otherwise it will use `Number.toFixed()`. + * + * @example + * faker.finance.amount() // '617.87' + * faker.finance.amount(5, 10) // '5.53' + * faker.finance.amount(5, 10, 0) // '8' + * faker.finance.amount(5, 10, 2, '$') // '$5.85' + * faker.finance.amount(5, 10, 5, '', true) // '9,75067' + * + * @since 2.0.1 + * + * @deprecated Use `faker.finance.amount({ min, max, dec, symbol, autoFormat })` instead. + */ + amount( + min?: number, + max?: number, + dec?: number, + symbol?: string, + autoFormat?: boolean + ): string; /** * Generates a random amount between the given bounds (inclusive). * @@ -472,10 +474,6 @@ export class FinanceModule extends ModuleBase { * faker.finance.amount({ min: 5, max: 10, dec: 0 }) // '8' * faker.finance.amount({ min: 5, max: 10, dec: 2, symbol: '$' }) // '$5.85' * faker.finance.amount({ min: 5, max: 10, dec: 5, symbol: '', autoFormat: true }) // '9,75067' - * faker.finance.amount(5, 10) // '5.53' - * faker.finance.amount(5, 10, 0) // '8' - * faker.finance.amount(5, 10, 2, '$') // '$5.85' - * faker.finance.amount(5, 10, 5, '', true) // '9,75067' * * @since 2.0.1 */ @@ -539,10 +537,6 @@ export class FinanceModule extends ModuleBase { * faker.finance.amount({ min: 5, max: 10, dec: 0 }) // '8' * faker.finance.amount({ min: 5, max: 10, dec: 2, symbol: '$' }) // '$5.85' * faker.finance.amount({ min: 5, max: 10, dec: 5, symbol: '', autoFormat: true }) // '9,75067' - * faker.finance.amount(5, 10) // '5.53' - * faker.finance.amount(5, 10, 0) // '8' - * faker.finance.amount(5, 10, 2, '$') // '$5.85' - * faker.finance.amount(5, 10, 5, '', true) // '9,75067' * * @since 2.0.1 */ @@ -587,6 +581,12 @@ export class FinanceModule extends ModuleBase { legacyAutoFormat: boolean = false ): string { if (typeof options === 'number') { + deprecated({ + deprecated: 'faker.finance.amount(min, max, dec, symbol, autoFormat)', + proposed: 'faker.finance.amount({ min, max, dec, symbol, autoFormat })', + since: '8.0', + until: '9.0', + }); options = { min: options }; } @@ -987,22 +987,6 @@ export class FinanceModule extends ModuleBase { return address; } - /** - * Generates a random iban. - * - * @param formatted Return a formatted version of the generated IBAN. Defaults to `false`. - * @param countryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. - * - * @throws Will throw an error if the passed country code is not supported. - * - * @example - * faker.finance.iban() // 'TR736918640040966092800056' - * faker.finance.iban(true) // 'FR20 8008 2330 8984 74S3 Z620 224' - * faker.finance.iban(true, 'DE') // 'DE84 1022 7075 0900 1170 01' - * - * @since 4.0.0 - */ - iban(formatted?: boolean, countryCode?: string): string; /** * Generates a random iban. * @@ -1032,6 +1016,24 @@ export class FinanceModule extends ModuleBase { */ countryCode?: string; }): string; + /** + * Generates a random iban. + * + * @param formatted Return a formatted version of the generated IBAN. Defaults to `false`. + * @param countryCode The country code from which you want to generate an IBAN, if none is provided a random country will be used. + * + * @throws Will throw an error if the passed country code is not supported. + * + * @example + * faker.finance.iban() // 'TR736918640040966092800056' + * faker.finance.iban(true) // 'FR20 8008 2330 8984 74S3 Z620 224' + * faker.finance.iban(true, 'DE') // 'DE84 1022 7075 0900 1170 01' + * + * @since 4.0.0 + * + * @deprecated Use `faker.finance.iban({ formatted, countryCode })` instead. + */ + iban(formatted?: boolean, countryCode?: string): string; /** * Generates a random iban. * @@ -1046,8 +1048,6 @@ export class FinanceModule extends ModuleBase { * faker.finance.iban() // 'TR736918640040966092800056' * faker.finance.iban({ formatted: true }) // 'FR20 8008 2330 8984 74S3 Z620 224' * faker.finance.iban({ formatted: true, countryCode: 'DE' }) // 'DE84 1022 7075 0900 1170 01' - * faker.finance.iban(true) // 'FR20 8008 2330 8984 74S3 Z620 224' - * faker.finance.iban(true, 'DE') // 'DE84 1022 7075 0900 1170 01' * * @since 4.0.0 */ @@ -1083,8 +1083,6 @@ export class FinanceModule extends ModuleBase { * faker.finance.iban() // 'TR736918640040966092800056' * faker.finance.iban({ formatted: true }) // 'FR20 8008 2330 8984 74S3 Z620 224' * faker.finance.iban({ formatted: true, countryCode: 'DE' }) // 'DE84 1022 7075 0900 1170 01' - * faker.finance.iban(true) // 'FR20 8008 2330 8984 74S3 Z620 224' - * faker.finance.iban(true, 'DE') // 'DE84 1022 7075 0900 1170 01' * * @since 4.0.0 */ @@ -1107,6 +1105,12 @@ export class FinanceModule extends ModuleBase { legacyCountryCode?: string ): string { if (typeof options === 'boolean') { + deprecated({ + deprecated: 'faker.finance.iban(formatted, countryCode)', + proposed: 'faker.finance.iban({ formatted, countryCode })', + since: '8.0', + until: '9.0', + }); options = { formatted: options }; } diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 20e260934ca..0bd679cc037 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -477,6 +477,8 @@ export class LocationModule extends ModuleBase { * faker.location.latitude(10, -10, 5) // 2.68452 * * @since 8.0.0 + * + * @deprecated Use `faker.location.latitude({ max, min, precision })` instead. */ latitude(max?: number, min?: number, precision?: number): number; /** @@ -494,9 +496,6 @@ export class LocationModule extends ModuleBase { * faker.location.latitude({ max: 10 }) // 5.7225 * faker.location.latitude({ max: 10, min: -10 }) // -9.6273 * faker.location.latitude({ max: 10, min: -10, precision: 5 }) // 2.68452 - * faker.location.latitude(10) // 5.7225 - * faker.location.latitude(10, -10) // -9.6273 - * faker.location.latitude(10, -10, 5) // 2.68452 * * @since 8.0.0 */ @@ -541,9 +540,6 @@ export class LocationModule extends ModuleBase { * faker.location.latitude({ max: 10 }) // 5.7225 * faker.location.latitude({ max: 10, min: -10 }) // -9.6273 * faker.location.latitude({ max: 10, min: -10, precision: 5 }) // 2.68452 - * faker.location.latitude(10) // 5.7225 - * faker.location.latitude(10, -10) // -9.6273 - * faker.location.latitude(10, -10, 5) // 2.68452 * * @since 8.0.0 */ @@ -574,6 +570,12 @@ export class LocationModule extends ModuleBase { legacyPrecision = 4 ): number { if (typeof options === 'number') { + deprecated({ + deprecated: 'faker.location.latitude(max, min, precision)', + proposed: 'faker.location.latitude({ max, min, precision })', + since: '8.0', + until: '9.0', + }); options = { max: options }; } @@ -633,6 +635,8 @@ export class LocationModule extends ModuleBase { * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // 2.68452 * * @since 8.0.0 + * + * @deprecated Use `faker.location.longitude({ max, min, precision })` instead. */ longitude(max?: number, min?: number, precision?: number): number; /** @@ -694,9 +698,6 @@ export class LocationModule extends ModuleBase { * faker.location.longitude({ max: 10 }) // 2.4387 * faker.location.longitude({ max: 10, min: -10 }) // 6.9126 * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // -4.03620 - * faker.location.longitude(10) // 2.4387 - * faker.location.longitude(10, -10) // 6.9126 - * faker.location.longitude(10, -10, 5) // -4.03620 * * @since 8.0.0 */ @@ -727,6 +728,12 @@ export class LocationModule extends ModuleBase { legacyPrecision = 4 ): number { if (typeof options === 'number') { + deprecated({ + deprecated: 'faker.location.longitude(max, min, precision)', + proposed: 'faker.location.longitude({ max, min, precision })', + since: '8.0', + until: '9.0', + }); options = { max: options }; } From 7fce907c859a0738a534377fe98d8a7843eeebb5 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Wed, 24 Jan 2024 18:20:52 +0100 Subject: [PATCH 72/98] infra: use vitest config (#2612) --- vite.config.ts => vitest.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename vite.config.ts => vitest.config.ts (95%) diff --git a/vite.config.ts b/vitest.config.ts similarity index 95% rename from vite.config.ts rename to vitest.config.ts index ca3339f2c7e..16fa5aed9af 100644 --- a/vite.config.ts +++ b/vitest.config.ts @@ -1,5 +1,4 @@ -/// -import { defineConfig } from 'vite'; +import { defineConfig } from 'vitest/config'; const VITEST_SEQUENCE_SEED = Date.now(); From 5518688dce1990fad1124e3c531615811982ef4d Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Thu, 25 Jan 2024 00:28:02 +0700 Subject: [PATCH 73/98] docs(internet): fix typos in deprecation warnings for internet (#2613) --- src/modules/internet/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 08ed60b6b4f..94851a536f3 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -356,7 +356,7 @@ export class InternetModule extends ModuleBase { * * @since 3.1.0 * - * @deprecated Use `faker.internet.exampleEmail({ firstName: lastName, ... })` instead. + * @deprecated Use `faker.internet.exampleEmail({ firstName, lastName, ... })` instead. */ exampleEmail( firstName?: string, @@ -1123,7 +1123,7 @@ export class InternetModule extends ModuleBase { * * @since 2.0.1 * - * @deprecated Use `faker.internet.color({ redbase, greenBase, blueBase })` instead. + * @deprecated Use `faker.internet.color({ redBase, greenBase, blueBase })` instead. */ color(redBase?: number, greenBase?: number, blueBase?: number): string; /** From 871b2b0bf8da378a13967994e68ea3a70fc9fc3f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 20:34:06 +0000 Subject: [PATCH 74/98] chore(deps): update devdependencies (#2617) --- package.json | 4 +- pnpm-lock.yaml | 186 ++++++++++++++++++++++++------------------------- 2 files changed, 95 insertions(+), 95 deletions(-) diff --git a/package.json b/package.json index e7729f1d316..422b62c48bb 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@eslint-types/typescript-eslint": "~6.18.1", "@eslint-types/unicorn": "~49.0.0", "@types/markdown-it": "~13.0.7", - "@types/node": "~20.11.5", + "@types/node": "~20.11.6", "@types/sanitize-html": "~2.9.5", "@types/semver": "~7.5.6", "@types/validator": "~13.11.8", @@ -106,7 +106,7 @@ "@vueuse/core": "~10.7.2", "conventional-changelog-cli": "~4.1.0", "cypress": "~13.6.3", - "esbuild": "~0.19.11", + "esbuild": "~0.19.12", "eslint": "~8.56.0", "eslint-config-prettier": "~9.1.0", "eslint-define-config": "~2.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4faf38c798c..5945b877207 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ devDependencies: specifier: ~13.0.7 version: 13.0.7 '@types/node': - specifier: ~20.11.5 - version: 20.11.5 + specifier: ~20.11.6 + version: 20.11.6 '@types/sanitize-html': specifier: ~2.9.5 version: 2.9.5 @@ -59,8 +59,8 @@ devDependencies: specifier: ~13.6.3 version: 13.6.3 esbuild: - specifier: ~0.19.11 - version: 0.19.11 + specifier: ~0.19.12 + version: 0.19.12 eslint: specifier: ~8.56.0 version: 8.56.0 @@ -126,10 +126,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.5.2 - version: 4.5.2(@types/node@20.11.5) + version: 4.5.2(@types/node@20.11.6) vitepress: specifier: 1.0.0-rc.39 - version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5) + version: 1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.6)(search-insights@2.13.0)(typescript@4.9.5) vitest: specifier: ~0.34.6 version: 0.34.6(@vitest/ui@0.34.7) @@ -477,8 +477,8 @@ packages: jsdoc-type-pratt-parser: 4.0.0 dev: true - /@esbuild/aix-ppc64@0.19.11: - resolution: {integrity: sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==} + /@esbuild/aix-ppc64@0.19.12: + resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} engines: {node: '>=12'} cpu: [ppc64] os: [aix] @@ -495,8 +495,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.11: - resolution: {integrity: sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==} + /@esbuild/android-arm64@0.19.12: + resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -513,8 +513,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.11: - resolution: {integrity: sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==} + /@esbuild/android-arm@0.19.12: + resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -531,8 +531,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.11: - resolution: {integrity: sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==} + /@esbuild/android-x64@0.19.12: + resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -549,8 +549,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.11: - resolution: {integrity: sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==} + /@esbuild/darwin-arm64@0.19.12: + resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -567,8 +567,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.11: - resolution: {integrity: sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==} + /@esbuild/darwin-x64@0.19.12: + resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -585,8 +585,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.11: - resolution: {integrity: sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==} + /@esbuild/freebsd-arm64@0.19.12: + resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -603,8 +603,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.11: - resolution: {integrity: sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==} + /@esbuild/freebsd-x64@0.19.12: + resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -621,8 +621,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.11: - resolution: {integrity: sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==} + /@esbuild/linux-arm64@0.19.12: + resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -639,8 +639,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.11: - resolution: {integrity: sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==} + /@esbuild/linux-arm@0.19.12: + resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -657,8 +657,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.11: - resolution: {integrity: sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==} + /@esbuild/linux-ia32@0.19.12: + resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -675,8 +675,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.11: - resolution: {integrity: sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==} + /@esbuild/linux-loong64@0.19.12: + resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -693,8 +693,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.11: - resolution: {integrity: sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==} + /@esbuild/linux-mips64el@0.19.12: + resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -711,8 +711,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.11: - resolution: {integrity: sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==} + /@esbuild/linux-ppc64@0.19.12: + resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -729,8 +729,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.11: - resolution: {integrity: sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==} + /@esbuild/linux-riscv64@0.19.12: + resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -747,8 +747,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.11: - resolution: {integrity: sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==} + /@esbuild/linux-s390x@0.19.12: + resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -765,8 +765,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.11: - resolution: {integrity: sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==} + /@esbuild/linux-x64@0.19.12: + resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -783,8 +783,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.11: - resolution: {integrity: sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==} + /@esbuild/netbsd-x64@0.19.12: + resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -801,8 +801,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.11: - resolution: {integrity: sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==} + /@esbuild/openbsd-x64@0.19.12: + resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -819,8 +819,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.11: - resolution: {integrity: sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==} + /@esbuild/sunos-x64@0.19.12: + resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -837,8 +837,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.11: - resolution: {integrity: sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==} + /@esbuild/win32-arm64@0.19.12: + resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -855,8 +855,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.11: - resolution: {integrity: sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==} + /@esbuild/win32-ia32@0.19.12: + resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -873,8 +873,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.11: - resolution: {integrity: sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==} + /@esbuild/win32-x64@0.19.12: + resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1294,8 +1294,8 @@ packages: resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: true - /@types/node@20.11.5: - resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==} + /@types/node@20.11.6: + resolution: {integrity: sha512-+EOokTnksGVgip2PbYbr3xnR7kZigh4LbybAfBAw5BpnQ+FqBYUsvCEjYd70IXKlbohQ64mzEYmMtlWUY8q//Q==} dependencies: undici-types: 5.26.5 dev: true @@ -1334,7 +1334,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.11.5 + '@types/node': 20.11.6 dev: true optional: true @@ -1543,7 +1543,7 @@ packages: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) vue: 3.4.15(typescript@4.9.5) dev: true @@ -2966,35 +2966,35 @@ packages: '@esbuild/win32-x64': 0.18.20 dev: true - /esbuild@0.19.11: - resolution: {integrity: sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==} + /esbuild@0.19.12: + resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/aix-ppc64': 0.19.11 - '@esbuild/android-arm': 0.19.11 - '@esbuild/android-arm64': 0.19.11 - '@esbuild/android-x64': 0.19.11 - '@esbuild/darwin-arm64': 0.19.11 - '@esbuild/darwin-x64': 0.19.11 - '@esbuild/freebsd-arm64': 0.19.11 - '@esbuild/freebsd-x64': 0.19.11 - '@esbuild/linux-arm': 0.19.11 - '@esbuild/linux-arm64': 0.19.11 - '@esbuild/linux-ia32': 0.19.11 - '@esbuild/linux-loong64': 0.19.11 - '@esbuild/linux-mips64el': 0.19.11 - '@esbuild/linux-ppc64': 0.19.11 - '@esbuild/linux-riscv64': 0.19.11 - '@esbuild/linux-s390x': 0.19.11 - '@esbuild/linux-x64': 0.19.11 - '@esbuild/netbsd-x64': 0.19.11 - '@esbuild/openbsd-x64': 0.19.11 - '@esbuild/sunos-x64': 0.19.11 - '@esbuild/win32-arm64': 0.19.11 - '@esbuild/win32-ia32': 0.19.11 - '@esbuild/win32-x64': 0.19.11 + '@esbuild/aix-ppc64': 0.19.12 + '@esbuild/android-arm': 0.19.12 + '@esbuild/android-arm64': 0.19.12 + '@esbuild/android-x64': 0.19.12 + '@esbuild/darwin-arm64': 0.19.12 + '@esbuild/darwin-x64': 0.19.12 + '@esbuild/freebsd-arm64': 0.19.12 + '@esbuild/freebsd-x64': 0.19.12 + '@esbuild/linux-arm': 0.19.12 + '@esbuild/linux-arm64': 0.19.12 + '@esbuild/linux-ia32': 0.19.12 + '@esbuild/linux-loong64': 0.19.12 + '@esbuild/linux-mips64el': 0.19.12 + '@esbuild/linux-ppc64': 0.19.12 + '@esbuild/linux-riscv64': 0.19.12 + '@esbuild/linux-s390x': 0.19.12 + '@esbuild/linux-x64': 0.19.12 + '@esbuild/netbsd-x64': 0.19.12 + '@esbuild/openbsd-x64': 0.19.12 + '@esbuild/sunos-x64': 0.19.12 + '@esbuild/win32-arm64': 0.19.12 + '@esbuild/win32-ia32': 0.19.12 + '@esbuild/win32-x64': 0.19.12 dev: true /escalade@3.1.1: @@ -6004,7 +6004,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.6(@types/node@20.11.5): + /vite-node@0.34.6(@types/node@20.11.6): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6014,7 +6014,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.2(@types/node@20.11.5) + vite: 4.5.2(@types/node@20.11.6) transitivePeerDependencies: - '@types/node' - less @@ -6026,7 +6026,7 @@ packages: - terser dev: true - /vite@4.5.2(@types/node@20.11.5): + /vite@4.5.2(@types/node@20.11.6): resolution: {integrity: sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6054,7 +6054,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.5 + '@types/node': 20.11.6 esbuild: 0.18.20 postcss: 8.4.33 rollup: 3.29.4 @@ -6062,7 +6062,7 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.0.11(@types/node@20.11.5): + /vite@5.0.11(@types/node@20.11.6): resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -6090,15 +6090,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.5 - esbuild: 0.19.11 + '@types/node': 20.11.6 + esbuild: 0.19.12 postcss: 8.4.33 rollup: 4.9.1 optionalDependencies: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.5)(search-insights@2.13.0)(typescript@4.9.5): + /vitepress@1.0.0-rc.39(@algolia/client-search@4.22.1)(@types/node@20.11.6)(search-insights@2.13.0)(typescript@4.9.5): resolution: {integrity: sha512-EcgoRlAAp37WOxUOYv45oxyhLrcy3Upey+mKpqW3ldsg6Ol4trPndRBk2GO0QiSvEKlb9BMerk49D/bFICN6kg==} hasBin: true peerDependencies: @@ -6123,7 +6123,7 @@ packages: shikiji: 0.9.19 shikiji-core: 0.9.19 shikiji-transformers: 0.9.19 - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) vue: 3.4.15(typescript@4.9.5) transitivePeerDependencies: - '@algolia/client-search' @@ -6186,7 +6186,7 @@ packages: dependencies: '@types/chai': 4.3.11 '@types/chai-subset': 1.3.5 - '@types/node': 20.11.5 + '@types/node': 20.11.6 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6206,8 +6206,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.2(@types/node@20.11.5) - vite-node: 0.34.6(@types/node@20.11.5) + vite: 4.5.2(@types/node@20.11.6) + vite-node: 0.34.6(@types/node@20.11.6) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 07303908b0c0858c23dd183968c8eb9eeccbb22e Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Thu, 25 Jan 2024 14:06:19 +0100 Subject: [PATCH 75/98] chore(release): 8.4.0 (#2606) --- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 667b725e798..d543a4164b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [8.4.0](https://github.com/faker-js/faker/compare/v8.3.1...v8.4.0) (2024-01-24) + + +### Features + +* **helpers:** add support for complex intermediate types ([#2550](https://github.com/faker-js/faker/issues/2550)) ([24482a3](https://github.com/faker-js/faker/commit/24482a30042eec5b553b30d60985e89fd69a8660)) +* **number:** add parameter `fractionDigits` in float ([#1855](https://github.com/faker-js/faker/issues/1855)) ([41d8778](https://github.com/faker-js/faker/commit/41d87789c7ff353acfd0f5ca88a99c0d1fd3b500)) +* **person:** add job titles for fr ([#2531](https://github.com/faker-js/faker/issues/2531)) ([ba28ab6](https://github.com/faker-js/faker/commit/ba28ab6e59009cceb5b691ddd212e09df22b586e)) + + +### Bug Fixes + +* **finance:** correct VG IBAN format ([#2552](https://github.com/faker-js/faker/issues/2552)) ([b8049d1](https://github.com/faker-js/faker/commit/b8049d171086bce7b46eb617c88f44cfdd019e00)) +* **internet:** username method to return value that always includes… ([#2506](https://github.com/faker-js/faker/issues/2506)) ([0ee1c67](https://github.com/faker-js/faker/commit/0ee1c6751ec97e10ca1436d2b100b4acb1ac90ec)) +* **locale:** incomplete airline names in zh_CN ([#2558](https://github.com/faker-js/faker/issues/2558)) ([5525b55](https://github.com/faker-js/faker/commit/5525b55cc47fa97b55de52fccff7ab51633e639a)) +* **number:** improve float generation for precisions of form 10^-n ([#2581](https://github.com/faker-js/faker/issues/2581)) ([39c715d](https://github.com/faker-js/faker/commit/39c715d916d69e83795932260f1681df3241db91)) + ### [8.3.1](https://github.com/faker-js/faker/compare/v8.3.0...v8.3.1) (2023-11-14) diff --git a/package.json b/package.json index 422b62c48bb..8fd92199b2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@faker-js/faker", - "version": "8.3.1", + "version": "8.4.0", "description": "Generate massive amounts of fake contextual data", "keywords": [ "faker", From 23e52bf602085a9af5e0840eede7d9ef5561775b Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:42:49 +0700 Subject: [PATCH 76/98] docs: add awesome-faker link in guide -> community (#2625) --- docs/guide/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/index.md b/docs/guide/index.md index ac7e1704464..9e7456efd34 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -40,3 +40,5 @@ yarn add @faker-js/faker --dev ## Community If you have questions or need help, reach out to the community via [Discord](https://chat.fakerjs.dev) and [GitHub Discussions](https://github.com/faker-js/faker/discussions). + +You can see awesome things related to the Faker community at [Awesome Faker](https://github.com/faker-js/awesome-faker). From a5dd0faf417179878165d86574ca6a2e69ce907e Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Mon, 29 Jan 2024 21:53:22 +0100 Subject: [PATCH 77/98] docs: remove skypack as cdn provider (#2629) --- docs/guide/usage.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/guide/usage.md b/docs/guide/usage.md index cdf8898c7e4..ed6bf0afd13 100644 --- a/docs/guide/usage.md +++ b/docs/guide/usage.md @@ -32,7 +32,7 @@ For more information about changing and customizing the locales, please refer to ```html