From 80263167fd0a43d51c6f7f7a41eaca18ad0d7809 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 27 Jun 2023 21:10:56 +0200 Subject: [PATCH 01/51] add character length parameter to lorem.text --- src/modules/lorem/index.ts | 65 +++++++++++++++++++++- test/__snapshots__/lorem.spec.ts.snap | 20 ++----- test/lorem.spec.ts | 79 +++++++++++++++++++++++++++ 3 files changed, 148 insertions(+), 16 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 0f94a18770f..9bd4e0983ad 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -318,6 +318,10 @@ export class LoremModule { /** * Generates a random text based on a random lorem method. * + * @param length The length (range) of text to generate. + * @param length.min The minimum length of text to generate. + * @param length.max The maximum length of text to generate. + * * @example * faker.lorem.text() // 'Doloribus autem non quis vero quia.' * faker.lorem.text() @@ -326,10 +330,27 @@ export class LoremModule { * // Quis ut dolor dolores facilis possimus tempore voluptates. * // Iure nam officia optio cumque. * // Dolor tempora iusto.' + * faker.lorem.text(14) // 'Doloribus aut.' (14 characters) + * faker.lorem.text({min: 10, max: 15}) // 'autem non quis.' (15 characters) + * faker.lorem.text({min: 10, max: 12}) // 'autem non.' (10 characters) + * faker.lorem.text({min: 3, max: 10}) // 'autem.' (6 characters) * * @since 3.1.0 */ - text(): string { + text( + length?: + | number + | { + /** + * The minimum length of text to generate. + */ + min: number; + /** + * The maximum length of text to generate. + */ + max: number; + } + ): string { const methods: Array = [ 'sentence', 'sentences', @@ -339,8 +360,48 @@ export class LoremModule { ]; const method = this.faker.helpers.arrayElement(methods); + const getTextWithCondition = (condition: (s: string) => boolean) => { + let text = ''; + while (condition(text)) { + text = `${text} ${this[method]()}`; + } + + return text; + }; - return `${this[method]()}`; + if (typeof length === 'undefined') { + return `${this[method]()}`; + } + + if (typeof length === 'number') { + if (length >= 0) { + const text = getTextWithCondition( + (s: string) => s?.length <= length - 1 + ); + return text ? `${text?.substring(0, length - 1)}.` : ''; + } + + return null; + } + + if (length?.min != null && length?.max != null) { + if (length.min > length.max) { + return null; + } + + if (length.max === 0) { + return ''; + } + + length.min = length.min < 0 ? 0 : length.min; + + const text = getTextWithCondition( + (s: string) => s?.length <= length.min - 1 + ); + return text?.length >= length.max + ? `${text?.substring(0, length.max - 1)}.` + : text; + } } /** diff --git a/test/__snapshots__/lorem.spec.ts.snap b/test/__snapshots__/lorem.spec.ts.snap index 80c51c6c113..eb8d57ed426 100644 --- a/test/__snapshots__/lorem.spec.ts.snap +++ b/test/__snapshots__/lorem.spec.ts.snap @@ -97,9 +97,9 @@ exports[`lorem > 42 > slug > with length range 1`] = `"minus-a-qui-tempore-quo-p exports[`lorem > 42 > text > noArgs 1`] = `"Qui tempore quo perspiciatis perspiciatis quia in quia architecto ipsa. Pariatur veniam unde fugit facilis mollitia. Ipsa reiciendis nam. Earum dolorem alias qui asperiores qui natus aliquam iste. Consequatur eum sit dolore rem iste aliquid."`; -exports[`lorem > 42 > text > with length 1`] = `"Qui tempore quo perspiciatis perspiciatis quia in quia architecto ipsa. Pariatur veniam unde fugit facilis mollitia. Ipsa reiciendis nam. Earum dolorem alias qui asperiores qui natus aliquam iste. Consequatur eum sit dolore rem iste aliquid."`; +exports[`lorem > 42 > text > with length 1`] = `" Qui temp."`; -exports[`lorem > 42 > text > with length range 1`] = `"Qui tempore quo perspiciatis perspiciatis quia in quia architecto ipsa. Pariatur veniam unde fugit facilis mollitia. Ipsa reiciendis nam. Earum dolorem alias qui asperiores qui natus aliquam iste. Consequatur eum sit dolore rem iste aliquid."`; +exports[`lorem > 42 > text > with length range 1`] = `" Qui tempore quo pe."`; exports[`lorem > 42 > word > noArgs 1`] = `"voluptas"`; @@ -233,17 +233,9 @@ Ullam consequuntur quidem nobis placeat aut. Est animi libero repellendus recusandae iure magnam pariatur doloribus." `; -exports[`lorem > 1211 > text > with length 1`] = ` -"Quo amet explicabo repellat accusantium laborum quia fuga dolorem cumque. -Ullam consequuntur quidem nobis placeat aut. -Est animi libero repellendus recusandae iure magnam pariatur doloribus." -`; +exports[`lorem > 1211 > text > with length 1`] = `" Quo amet."`; -exports[`lorem > 1211 > text > with length range 1`] = ` -"Quo amet explicabo repellat accusantium laborum quia fuga dolorem cumque. -Ullam consequuntur quidem nobis placeat aut. -Est animi libero repellendus recusandae iure magnam pariatur doloribus." -`; +exports[`lorem > 1211 > text > with length range 1`] = `" Quo amet explicabo."`; exports[`lorem > 1211 > word > noArgs 1`] = `"recusandae"`; @@ -354,9 +346,9 @@ exports[`lorem > 1337 > slug > with length range 1`] = `"molestias-quia-dolorem- exports[`lorem > 1337 > text > noArgs 1`] = `"Dolorem incidunt atque esse. Ad consectetur totam. Eius veniam voluptatibus tempora tempore aliquam vitae. Laboriosam quasi similique nemo sunt cum doloribus consequuntur reprehenderit."`; -exports[`lorem > 1337 > text > with length 1`] = `"Dolorem incidunt atque esse. Ad consectetur totam. Eius veniam voluptatibus tempora tempore aliquam vitae. Laboriosam quasi similique nemo sunt cum doloribus consequuntur reprehenderit."`; +exports[`lorem > 1337 > text > with length 1`] = `" Dolorem ."`; -exports[`lorem > 1337 > text > with length range 1`] = `"Dolorem incidunt atque esse. Ad consectetur totam. Eius veniam voluptatibus tempora tempore aliquam vitae. Laboriosam quasi similique nemo sunt cum doloribus consequuntur reprehenderit."`; +exports[`lorem > 1337 > text > with length range 1`] = `" Dolorem incidunt a."`; exports[`lorem > 1337 > word > noArgs 1`] = `"eius"`; diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index ecb2bc34750..71a9842f114 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -325,6 +325,85 @@ describe('lorem', () => { expect(actual).toBeTruthy(); expect(actual).toBeTypeOf('string'); }); + + it('should return text of length 15', () => { + const actual = faker.lorem.text(15); + + expect(actual).toBeTruthy(); + expect(actual).toBeTypeOf('string'); + expect(actual).toHaveLength(15); + }); + + it('should return text with a length in range [25, 40]', () => { + const actual = faker.lorem.text({ min: 25, max: 40 }); + + expect(actual).toBeTruthy(); + expect(actual).toBeTypeOf('string'); + expect(actual.length).toBeGreaterThanOrEqual(25); + expect(actual.length).toBeLessThanOrEqual(40); + }); + + it('should return null for a negative length', () => { + const actual = faker.lorem.text(-3); + + expect(actual).toBeNull(); + }); + + it('should return an empty string for length zero', () => { + const actual = faker.lorem.text(0); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('should return a dot for length one', () => { + const actual = faker.lorem.text(1); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe('.'); + }); + + it('should return an empty string for [-13, 0]', () => { + const actual = faker.lorem.text({ min: -13, max: 0 }); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('should return an empty string for [0, 1]', () => { + const actual = faker.lorem.text({ min: 0, max: 1 }); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('should return an empty string for [0, 32]', () => { + const actual = faker.lorem.text({ min: 0, max: 32 }); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('should return a text with length between 0 and 13 for [-13, 13]', () => { + const actual = faker.lorem.text({ min: -13, max: 13 }); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); + }); + + it('should return a string of length 77 for [77, 77]', () => { + const actual = faker.lorem.text({ min: 77, max: 77 }); + + expect(actual).toBeTruthy(); + expect(actual).toBeTypeOf('string'); + expect(actual).toHaveLength(77); + }); + + it('should return null for [3, 1]', () => { + const actual = faker.lorem.text({ min: 3, max: 1 }); + + expect(actual).toBeNull(); + }); }); describe('lines()', () => { From 8d1ddd93c35c6fd28a358afcee49a4b1d7090ac8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 28 Jun 2023 23:41:53 +0200 Subject: [PATCH 02/51] resolve issues noted in the review of ST-DDT and matthewmayer --- src/modules/lorem/index.ts | 101 ++++++++++++++------------ test/__snapshots__/lorem.spec.ts.snap | 12 +-- test/lorem.spec.ts | 66 +++++++++++++---- 3 files changed, 110 insertions(+), 69 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 9bd4e0983ad..92fcd4b5521 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -1,4 +1,5 @@ import type { Faker } from '../..'; +import { FakerError } from '../../errors/faker-error'; import { filterWordListByLength } from '../word/filterWordListByLength'; /** @@ -318,9 +319,10 @@ export class LoremModule { /** * Generates a random text based on a random lorem method. * - * @param length The length (range) of text to generate. - * @param length.min The minimum length of text to generate. - * @param length.max The maximum length of text to generate. + * @param options The options for the text to generate. + * @param options.length The length of text to generate. + * @param options.min The minimum length of text to generate. + * @param options.max The maximum length of text to generate. * * @example * faker.lorem.text() // 'Doloribus autem non quis vero quia.' @@ -337,20 +339,20 @@ export class LoremModule { * * @since 3.1.0 */ - text( - length?: - | number - | { - /** - * The minimum length of text to generate. - */ - min: number; - /** - * The maximum length of text to generate. - */ - max: number; - } - ): string { + text(options?: { + /** + * The length of text to generate. + */ + length?: number; + /** + * The minimum length of text to generate. + */ + min?: number; + /** + * The maximum length of text to generate. + */ + max?: number; + }): string { const methods: Array = [ 'sentence', 'sentences', @@ -360,48 +362,51 @@ export class LoremModule { ]; const method = this.faker.helpers.arrayElement(methods); - const getTextWithCondition = (condition: (s: string) => boolean) => { - let text = ''; - while (condition(text)) { - text = `${text} ${this[method]()}`; - } - - return text; - }; - if (typeof length === 'undefined') { + if (typeof options === 'undefined') { return `${this[method]()}`; } - if (typeof length === 'number') { - if (length >= 0) { - const text = getTextWithCondition( - (s: string) => s?.length <= length - 1 - ); - return text ? `${text?.substring(0, length - 1)}.` : ''; + if (typeof options?.length === 'number') { + if (options.length >= 0) { + let text = `${this[method]()}`; + while (text.length <= options?.length) { + text = `${text} ${this[method]()}`; + } + + return options.length + ? `${text.substring(0, options.length - 1)}.` + : ''; } - return null; + throw new FakerError( + `Length ${options.length} should be a non-negative integer.` + ); } - if (length?.min != null && length?.max != null) { - if (length.min > length.max) { - return null; - } - - if (length.max === 0) { - return ''; - } + if (options.max != null && options.max < 0) { + throw new FakerError( + `Max ${options.max} should be a non-negative integer.` + ); + } - length.min = length.min < 0 ? 0 : length.min; + const min = typeof options.min !== 'undefined' ? options.min : 0; + const max = typeof options.max !== 'undefined' ? options.max : 2 * min; + if (min > max) { + throw new FakerError(`Max ${max} should be greater than min ${min}.`); + } - const text = getTextWithCondition( - (s: string) => s?.length <= length.min - 1 - ); - return text?.length >= length.max - ? `${text?.substring(0, length.max - 1)}.` - : text; + if (max === 0) { + return ''; } + + const effectiveMin = Math.max(min, 0); + const randomLength = this.faker.number.int({ + min: effectiveMin, + max: max, + }); + + return this.faker.lorem.text({ length: randomLength }); } /** diff --git a/test/__snapshots__/lorem.spec.ts.snap b/test/__snapshots__/lorem.spec.ts.snap index eb8d57ed426..6ee9af9652e 100644 --- a/test/__snapshots__/lorem.spec.ts.snap +++ b/test/__snapshots__/lorem.spec.ts.snap @@ -97,9 +97,9 @@ exports[`lorem > 42 > slug > with length range 1`] = `"minus-a-qui-tempore-quo-p exports[`lorem > 42 > text > noArgs 1`] = `"Qui tempore quo perspiciatis perspiciatis quia in quia architecto ipsa. Pariatur veniam unde fugit facilis mollitia. Ipsa reiciendis nam. Earum dolorem alias qui asperiores qui natus aliquam iste. Consequatur eum sit dolore rem iste aliquid."`; -exports[`lorem > 42 > text > with length 1`] = `" Qui temp."`; +exports[`lorem > 42 > text > with length 1`] = `""`; -exports[`lorem > 42 > text > with length range 1`] = `" Qui tempore quo pe."`; +exports[`lorem > 42 > text > with length range 1`] = `"Quo perspiciatis ."`; exports[`lorem > 42 > word > noArgs 1`] = `"voluptas"`; @@ -233,9 +233,9 @@ Ullam consequuntur quidem nobis placeat aut. Est animi libero repellendus recusandae iure magnam pariatur doloribus." `; -exports[`lorem > 1211 > text > with length 1`] = `" Quo amet."`; +exports[`lorem > 1211 > text > with length 1`] = `""`; -exports[`lorem > 1211 > text > with length range 1`] = `" Quo amet explicabo."`; +exports[`lorem > 1211 > text > with length range 1`] = `"Explicabo repe."`; exports[`lorem > 1211 > word > noArgs 1`] = `"recusandae"`; @@ -346,9 +346,9 @@ exports[`lorem > 1337 > slug > with length range 1`] = `"molestias-quia-dolorem- exports[`lorem > 1337 > text > noArgs 1`] = `"Dolorem incidunt atque esse. Ad consectetur totam. Eius veniam voluptatibus tempora tempore aliquam vitae. Laboriosam quasi similique nemo sunt cum doloribus consequuntur reprehenderit."`; -exports[`lorem > 1337 > text > with length 1`] = `" Dolorem ."`; +exports[`lorem > 1337 > text > with length 1`] = `""`; -exports[`lorem > 1337 > text > with length range 1`] = `" Dolorem incidunt a."`; +exports[`lorem > 1337 > text > with length range 1`] = `"Incidunt atque ."`; exports[`lorem > 1337 > word > noArgs 1`] = `"eius"`; diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index 71a9842f114..20b6dc61463 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -327,11 +327,12 @@ describe('lorem', () => { }); it('should return text of length 15', () => { - const actual = faker.lorem.text(15); + const actual = faker.lorem.text({ length: 15 }); expect(actual).toBeTruthy(); expect(actual).toBeTypeOf('string'); expect(actual).toHaveLength(15); + expect(actual.trim()).toHaveLength(15); }); it('should return text with a length in range [25, 40]', () => { @@ -343,21 +344,21 @@ describe('lorem', () => { expect(actual.length).toBeLessThanOrEqual(40); }); - it('should return null for a negative length', () => { - const actual = faker.lorem.text(-3); - - expect(actual).toBeNull(); + it('should throw an error for a negative length', () => { + expect(() => faker.lorem.text({ length: -3 })).toThrowError( + /^Length -3 should be a non-negative integer.$/ + ); }); it('should return an empty string for length zero', () => { - const actual = faker.lorem.text(0); + const actual = faker.lorem.text({ length: 0 }); expect(actual).toBeTypeOf('string'); expect(actual).toBe(''); }); it('should return a dot for length one', () => { - const actual = faker.lorem.text(1); + const actual = faker.lorem.text({ length: 1 }); expect(actual).toBeTypeOf('string'); expect(actual).toBe('.'); @@ -374,21 +375,24 @@ describe('lorem', () => { const actual = faker.lorem.text({ min: 0, max: 1 }); expect(actual).toBeTypeOf('string'); - expect(actual).toBe(''); + expect(actual.length).toBeGreaterThanOrEqual(0); + expect(actual.length).toBeLessThanOrEqual(1); }); - it('should return an empty string for [0, 32]', () => { + it('should return text with length between 0 and 32 for [0, 32]', () => { const actual = faker.lorem.text({ min: 0, max: 32 }); expect(actual).toBeTypeOf('string'); - expect(actual).toBe(''); + expect(actual.length).toBeGreaterThanOrEqual(0); + expect(actual.length).toBeLessThanOrEqual(32); }); - it('should return a text with length between 0 and 13 for [-13, 13]', () => { + it('should return text with length between 0 and 13 for [-13, 13]', () => { const actual = faker.lorem.text({ min: -13, max: 13 }); expect(actual).toBeTypeOf('string'); - expect(actual).toBe(''); + expect(actual.length).toBeGreaterThanOrEqual(0); + expect(actual.length).toBeLessThanOrEqual(13); }); it('should return a string of length 77 for [77, 77]', () => { @@ -399,10 +403,42 @@ describe('lorem', () => { expect(actual).toHaveLength(77); }); - it('should return null for [3, 1]', () => { - const actual = faker.lorem.text({ min: 3, max: 1 }); + it('should an error for [3, 1]', () => { + expect(() => faker.lorem.text({ min: 3, max: 1 })).toThrowError( + /^Max 1 should be greater than min 3.$/ + ); + }); - expect(actual).toBeNull(); + it('should an error for max = -11', () => { + expect(() => faker.lorem.text({ max: -11 })).toThrowError( + /^Max -11 should be a non-negative integer.$/ + ); + }); + + it('should return a string with length at least 33 for min = 33', () => { + const actual = faker.lorem.text({ min: 33 }); + + expect(actual).toBeTypeOf('string'); + expect(actual.length).toBeGreaterThanOrEqual(33); + }); + + it('should return a string with length between 0 and 51 for max = 51', () => { + const actual = faker.lorem.text({ max: 51 }); + + expect(actual).toBeTypeOf('string'); + expect(actual.length).toBeGreaterThanOrEqual(0); + expect(actual.length).toBeLessThanOrEqual(51); + }); + + it('should return a string with length 111 for {length: 111, min: 13, max: 15}', () => { + const actual = faker.lorem.text({ + length: 111, + min: 13, + max: 15, + }); + + expect(actual).toBeTypeOf('string'); + expect(actual).toHaveLength(111); }); }); From 30e73fbb1edb47a779b48e452565c7e820be543f Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 28 Jun 2023 23:54:20 +0200 Subject: [PATCH 03/51] fix example in comment of lorem.text --- src/modules/lorem/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 92fcd4b5521..0ad7aa82ed8 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -332,7 +332,7 @@ export class LoremModule { * // Quis ut dolor dolores facilis possimus tempore voluptates. * // Iure nam officia optio cumque. * // Dolor tempora iusto.' - * faker.lorem.text(14) // 'Doloribus aut.' (14 characters) + * faker.lorem.text({length: 14}) // 'Doloribus aut.' (14 characters) * faker.lorem.text({min: 10, max: 15}) // 'autem non quis.' (15 characters) * faker.lorem.text({min: 10, max: 12}) // 'autem non.' (10 characters) * faker.lorem.text({min: 3, max: 10}) // 'autem.' (6 characters) From 65f7d5d748de638286b4e4a0fbab2dd5b0eee1c5 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 29 Jun 2023 00:28:21 +0200 Subject: [PATCH 04/51] return an empty string for an ill defined interval instead of throwing an error --- src/modules/lorem/index.ts | 6 +----- test/lorem.spec.ts | 9 +++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 0ad7aa82ed8..28537a0818d 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -392,11 +392,7 @@ export class LoremModule { const min = typeof options.min !== 'undefined' ? options.min : 0; const max = typeof options.max !== 'undefined' ? options.max : 2 * min; - if (min > max) { - throw new FakerError(`Max ${max} should be greater than min ${min}.`); - } - - if (max === 0) { + if (min > max || max === 0) { return ''; } diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index 20b6dc61463..680b17df728 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -403,10 +403,11 @@ describe('lorem', () => { expect(actual).toHaveLength(77); }); - it('should an error for [3, 1]', () => { - expect(() => faker.lorem.text({ min: 3, max: 1 })).toThrowError( - /^Max 1 should be greater than min 3.$/ - ); + it('should return an empty string for [3, 1]', () => { + const actual = faker.lorem.text({ min: 3, max: 1 }); + + expect(actual).toBeTypeOf('string'); + expect(actual).toBe(''); }); it('should an error for max = -11', () => { From 8f5ba98ff6825333678eac8f5f5fddc60b5b295c Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 29 Jun 2023 21:10:48 +0200 Subject: [PATCH 05/51] fix typo --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5d0da4ec2a..714a99e18af 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ This is a shorthand for running the following scripts in order: - `pnpm install` - installs npm packages defined in package.json - `pnpm run generate:locales` - generates locale files -- `pnpm run generate:api-doc` - generates API documentation +- `pnpm run generate:api-docs` - generates API documentation - `pnpm run format` - runs [prettify](https://github.com/prettier/prettier) to format code - `pnpm run lint` - runs [ESLint](https://github.com/eslint/eslint) to enforce project code standards - `pnpm run build:clean` - removes artifacts from previous builds From ac91a625c86ab43dcf429fc05dc4f28c0a365d30 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 29 Jun 2023 21:11:04 +0200 Subject: [PATCH 06/51] add quick primitive argument to lorem.text --- src/modules/lorem/index.ts | 39 ++++++++++++++++----------- test/__snapshots__/lorem.spec.ts.snap | 6 ++--- test/lorem.spec.ts | 19 +++++++++++-- 3 files changed, 44 insertions(+), 20 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 28537a0818d..a8599548aae 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -319,7 +319,7 @@ export class LoremModule { /** * Generates a random text based on a random lorem method. * - * @param options The options for the text to generate. + * @param options The options for the text to generate or options.length as quick primitive argument. * @param options.length The length of text to generate. * @param options.min The minimum length of text to generate. * @param options.max The maximum length of text to generate. @@ -332,6 +332,7 @@ export class LoremModule { * // Quis ut dolor dolores facilis possimus tempore voluptates. * // Iure nam officia optio cumque. * // Dolor tempora iusto.' + * faker.lorem.text(14) // 'Doloribus aut.' (14 characters) * faker.lorem.text({length: 14}) // 'Doloribus aut.' (14 characters) * faker.lorem.text({min: 10, max: 15}) // 'autem non quis.' (15 characters) * faker.lorem.text({min: 10, max: 12}) // 'autem non.' (10 characters) @@ -339,20 +340,24 @@ export class LoremModule { * * @since 3.1.0 */ - text(options?: { - /** - * The length of text to generate. - */ - length?: number; - /** - * The minimum length of text to generate. - */ - min?: number; - /** - * The maximum length of text to generate. - */ - max?: number; - }): string { + text( + options?: + | number + | { + /** + * The length of text to generate. + */ + length?: number; + /** + * The minimum length of text to generate. + */ + min?: number; + /** + * The maximum length of text to generate. + */ + max?: number; + } + ): string { const methods: Array = [ 'sentence', 'sentences', @@ -367,6 +372,10 @@ export class LoremModule { return `${this[method]()}`; } + if (typeof options === 'number') { + return this.faker.lorem.text({ length: options }); + } + if (typeof options?.length === 'number') { if (options.length >= 0) { let text = `${this[method]()}`; diff --git a/test/__snapshots__/lorem.spec.ts.snap b/test/__snapshots__/lorem.spec.ts.snap index 6ee9af9652e..3a2da7a31f7 100644 --- a/test/__snapshots__/lorem.spec.ts.snap +++ b/test/__snapshots__/lorem.spec.ts.snap @@ -97,7 +97,7 @@ exports[`lorem > 42 > slug > with length range 1`] = `"minus-a-qui-tempore-quo-p exports[`lorem > 42 > text > noArgs 1`] = `"Qui tempore quo perspiciatis perspiciatis quia in quia architecto ipsa. Pariatur veniam unde fugit facilis mollitia. Ipsa reiciendis nam. Earum dolorem alias qui asperiores qui natus aliquam iste. Consequatur eum sit dolore rem iste aliquid."`; -exports[`lorem > 42 > text > with length 1`] = `""`; +exports[`lorem > 42 > text > with length 1`] = `"Qui tempo."`; exports[`lorem > 42 > text > with length range 1`] = `"Quo perspiciatis ."`; @@ -233,7 +233,7 @@ Ullam consequuntur quidem nobis placeat aut. Est animi libero repellendus recusandae iure magnam pariatur doloribus." `; -exports[`lorem > 1211 > text > with length 1`] = `""`; +exports[`lorem > 1211 > text > with length 1`] = `"Quo amet ."`; exports[`lorem > 1211 > text > with length range 1`] = `"Explicabo repe."`; @@ -346,7 +346,7 @@ exports[`lorem > 1337 > slug > with length range 1`] = `"molestias-quia-dolorem- exports[`lorem > 1337 > text > noArgs 1`] = `"Dolorem incidunt atque esse. Ad consectetur totam. Eius veniam voluptatibus tempora tempore aliquam vitae. Laboriosam quasi similique nemo sunt cum doloribus consequuntur reprehenderit."`; -exports[`lorem > 1337 > text > with length 1`] = `""`; +exports[`lorem > 1337 > text > with length 1`] = `"Dolorem i."`; exports[`lorem > 1337 > text > with length range 1`] = `"Incidunt atque ."`; diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index 680b17df728..2cda33e048c 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -326,7 +326,7 @@ describe('lorem', () => { expect(actual).toBeTypeOf('string'); }); - it('should return text of length 15', () => { + it('should return text of length 15 for the options object', () => { const actual = faker.lorem.text({ length: 15 }); expect(actual).toBeTruthy(); @@ -335,6 +335,15 @@ describe('lorem', () => { expect(actual.trim()).toHaveLength(15); }); + it('should return text of length 15 for the quick primitive argument', () => { + const actual = faker.lorem.text(15); + + expect(actual).toBeTruthy(); + expect(actual).toBeTypeOf('string'); + expect(actual).toHaveLength(15); + expect(actual.trim()).toHaveLength(15); + }); + it('should return text with a length in range [25, 40]', () => { const actual = faker.lorem.text({ min: 25, max: 40 }); @@ -344,12 +353,18 @@ describe('lorem', () => { expect(actual.length).toBeLessThanOrEqual(40); }); - it('should throw an error for a negative length', () => { + it('should throw an error for a negative length in the options object', () => { expect(() => faker.lorem.text({ length: -3 })).toThrowError( /^Length -3 should be a non-negative integer.$/ ); }); + it('should throw an error for a negative length in the quick primitive argument', () => { + expect(() => faker.lorem.text(-3)).toThrowError( + /^Length -3 should be a non-negative integer.$/ + ); + }); + it('should return an empty string for length zero', () => { const actual = faker.lorem.text({ length: 0 }); From 425ad90d7ab4aafe956c758e298b165e2fde84fc Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 30 Jun 2023 18:50:17 +0200 Subject: [PATCH 07/51] it throws an error if min is greater than max instead of returning an empty string --- src/modules/lorem/index.ts | 6 ++++-- test/lorem.spec.ts | 7 +++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index a8599548aae..eb3df7cd199 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -401,8 +401,10 @@ export class LoremModule { const min = typeof options.min !== 'undefined' ? options.min : 0; const max = typeof options.max !== 'undefined' ? options.max : 2 * min; - if (min > max || max === 0) { - return ''; + if (min > max) { + throw new FakerError( + `Max ${options.max} should be greater than min ${options.min}.` + ); } const effectiveMin = Math.max(min, 0); diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index 2cda33e048c..7bfff84ebc4 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -419,10 +419,9 @@ describe('lorem', () => { }); it('should return an empty string for [3, 1]', () => { - const actual = faker.lorem.text({ min: 3, max: 1 }); - - expect(actual).toBeTypeOf('string'); - expect(actual).toBe(''); + expect(() => faker.lorem.text({ min: 3, max: 1 })).toThrowError( + /^Max 1 should be greater than min 3.$/ + ) }); it('should an error for max = -11', () => { From 7cb71ed72389b7b986892f9abce0e2b67209c9e5 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 30 Jun 2023 19:07:53 +0200 Subject: [PATCH 08/51] the length parameter in lorem.text is a number or an object with min and max instead of being an object with all three properties --- src/modules/lorem/index.ts | 47 +++++++++++++++------------ test/__snapshots__/lorem.spec.ts.snap | 6 ++-- test/lorem.spec.ts | 35 +++++++------------- 3 files changed, 41 insertions(+), 47 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index eb3df7cd199..7038ca4692f 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -320,9 +320,9 @@ export class LoremModule { * Generates a random text based on a random lorem method. * * @param options The options for the text to generate or options.length as quick primitive argument. - * @param options.length The length of text to generate. - * @param options.min The minimum length of text to generate. - * @param options.max The maximum length of text to generate. + * @param options.length The length (range) of text to generate. + * @param options.length.min The minimum length of text to generate. + * @param options.length.max The maximum length of text to generate. * * @example * faker.lorem.text() // 'Doloribus autem non quis vero quia.' @@ -334,9 +334,9 @@ export class LoremModule { * // Dolor tempora iusto.' * faker.lorem.text(14) // 'Doloribus aut.' (14 characters) * faker.lorem.text({length: 14}) // 'Doloribus aut.' (14 characters) - * faker.lorem.text({min: 10, max: 15}) // 'autem non quis.' (15 characters) - * faker.lorem.text({min: 10, max: 12}) // 'autem non.' (10 characters) - * faker.lorem.text({min: 3, max: 10}) // 'autem.' (6 characters) + * faker.lorem.text({length: {min: 10, max: 15}}) // 'autem non quis.' (15 characters) + * faker.lorem.text({length: {min: 10, max: 12}}) // 'autem non.' (10 characters) + * faker.lorem.text({length: {min: 3, max: 10}}) // 'autem.' (6 characters) * * @since 3.1.0 */ @@ -345,17 +345,20 @@ export class LoremModule { | number | { /** - * The length of text to generate. + * The length (range) of text to generate. */ - length?: number; - /** - * The minimum length of text to generate. - */ - min?: number; - /** - * The maximum length of text to generate. - */ - max?: number; + length?: + | number + | { + /** + * The minimum length of text to generate. + */ + min?: number; + /** + * The maximum length of text to generate. + */ + max?: number; + }; } ): string { const methods: Array = [ @@ -393,17 +396,19 @@ export class LoremModule { ); } - if (options.max != null && options.max < 0) { + if (options.length?.max != null && options.length?.max < 0) { throw new FakerError( - `Max ${options.max} should be a non-negative integer.` + `Max ${options.length.max} should be a non-negative integer.` ); } - const min = typeof options.min !== 'undefined' ? options.min : 0; - const max = typeof options.max !== 'undefined' ? options.max : 2 * min; + const min = + typeof options.length?.min !== 'undefined' ? options.length.min : 0; + const max = + typeof options.length?.max !== 'undefined' ? options.length.max : 2 * min; if (min > max) { throw new FakerError( - `Max ${options.max} should be greater than min ${options.min}.` + `Max ${options.length.max} should be greater than min ${options.length.min}.` ); } diff --git a/test/__snapshots__/lorem.spec.ts.snap b/test/__snapshots__/lorem.spec.ts.snap index 3a2da7a31f7..4fb57c1392e 100644 --- a/test/__snapshots__/lorem.spec.ts.snap +++ b/test/__snapshots__/lorem.spec.ts.snap @@ -99,7 +99,7 @@ exports[`lorem > 42 > text > noArgs 1`] = `"Qui tempore quo perspiciatis perspic exports[`lorem > 42 > text > with length 1`] = `"Qui tempo."`; -exports[`lorem > 42 > text > with length range 1`] = `"Quo perspiciatis ."`; +exports[`lorem > 42 > text > with length range 1`] = `""`; exports[`lorem > 42 > word > noArgs 1`] = `"voluptas"`; @@ -235,7 +235,7 @@ Est animi libero repellendus recusandae iure magnam pariatur doloribus." exports[`lorem > 1211 > text > with length 1`] = `"Quo amet ."`; -exports[`lorem > 1211 > text > with length range 1`] = `"Explicabo repe."`; +exports[`lorem > 1211 > text > with length range 1`] = `""`; exports[`lorem > 1211 > word > noArgs 1`] = `"recusandae"`; @@ -348,7 +348,7 @@ exports[`lorem > 1337 > text > noArgs 1`] = `"Dolorem incidunt atque esse. Ad co exports[`lorem > 1337 > text > with length 1`] = `"Dolorem i."`; -exports[`lorem > 1337 > text > with length range 1`] = `"Incidunt atque ."`; +exports[`lorem > 1337 > text > with length range 1`] = `""`; exports[`lorem > 1337 > word > noArgs 1`] = `"eius"`; diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index 7bfff84ebc4..10f080c361c 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -345,7 +345,7 @@ describe('lorem', () => { }); it('should return text with a length in range [25, 40]', () => { - const actual = faker.lorem.text({ min: 25, max: 40 }); + const actual = faker.lorem.text({ length: { min: 25, max: 40 } }); expect(actual).toBeTruthy(); expect(actual).toBeTypeOf('string'); @@ -380,14 +380,14 @@ describe('lorem', () => { }); it('should return an empty string for [-13, 0]', () => { - const actual = faker.lorem.text({ min: -13, max: 0 }); + const actual = faker.lorem.text({ length: { min: -13, max: 0 } }); expect(actual).toBeTypeOf('string'); expect(actual).toBe(''); }); it('should return an empty string for [0, 1]', () => { - const actual = faker.lorem.text({ min: 0, max: 1 }); + const actual = faker.lorem.text({ length: { min: 0, max: 1 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(0); @@ -395,7 +395,7 @@ describe('lorem', () => { }); it('should return text with length between 0 and 32 for [0, 32]', () => { - const actual = faker.lorem.text({ min: 0, max: 32 }); + const actual = faker.lorem.text({ length: { min: 0, max: 32 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(0); @@ -403,7 +403,7 @@ describe('lorem', () => { }); it('should return text with length between 0 and 13 for [-13, 13]', () => { - const actual = faker.lorem.text({ min: -13, max: 13 }); + const actual = faker.lorem.text({ length: { min: -13, max: 13 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(0); @@ -411,7 +411,7 @@ describe('lorem', () => { }); it('should return a string of length 77 for [77, 77]', () => { - const actual = faker.lorem.text({ min: 77, max: 77 }); + const actual = faker.lorem.text({ length: { min: 77, max: 77 } }); expect(actual).toBeTruthy(); expect(actual).toBeTypeOf('string'); @@ -419,42 +419,31 @@ describe('lorem', () => { }); it('should return an empty string for [3, 1]', () => { - expect(() => faker.lorem.text({ min: 3, max: 1 })).toThrowError( - /^Max 1 should be greater than min 3.$/ - ) + expect(() => + faker.lorem.text({ length: { min: 3, max: 1 } }) + ).toThrowError(/^Max 1 should be greater than min 3.$/); }); it('should an error for max = -11', () => { - expect(() => faker.lorem.text({ max: -11 })).toThrowError( + expect(() => faker.lorem.text({ length: { max: -11 } })).toThrowError( /^Max -11 should be a non-negative integer.$/ ); }); it('should return a string with length at least 33 for min = 33', () => { - const actual = faker.lorem.text({ min: 33 }); + const actual = faker.lorem.text({ length: { min: 33 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(33); }); it('should return a string with length between 0 and 51 for max = 51', () => { - const actual = faker.lorem.text({ max: 51 }); + const actual = faker.lorem.text({ length: { max: 51 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(0); expect(actual.length).toBeLessThanOrEqual(51); }); - - it('should return a string with length 111 for {length: 111, min: 13, max: 15}', () => { - const actual = faker.lorem.text({ - length: 111, - min: 13, - max: 15, - }); - - expect(actual).toBeTypeOf('string'); - expect(actual).toHaveLength(111); - }); }); describe('lines()', () => { From 4fad2bfbd7f67825c06e99ef87f54c62393a92e4 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 30 Jun 2023 20:54:49 +0200 Subject: [PATCH 09/51] corrected descriptions in lorem.spec.ts and lorem.text throws an error for negative min --- src/modules/lorem/index.ts | 17 +++++++------ test/lorem.spec.ts | 50 ++++++++++++++++---------------------- 2 files changed, 31 insertions(+), 36 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 7038ca4692f..c3308afc3c7 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -402,19 +402,22 @@ export class LoremModule { ); } - const min = - typeof options.length?.min !== 'undefined' ? options.length.min : 0; - const max = - typeof options.length?.max !== 'undefined' ? options.length.max : 2 * min; - if (min > max) { + if (options.length?.min != null && options.length?.min < 0) { + throw new FakerError( + `Min ${options.length.min} should be a non-negative integer.` + ); + } + + if (options.length?.min > options.length?.max) { throw new FakerError( `Max ${options.length.max} should be greater than min ${options.length.min}.` ); } - const effectiveMin = Math.max(min, 0); + const min = options.length?.min ?? 0; + const max = options.length?.max ?? 2 * min; const randomLength = this.faker.number.int({ - min: effectiveMin, + min: min, max: max, }); diff --git a/test/lorem.spec.ts b/test/lorem.spec.ts index 10f080c361c..956beed307c 100644 --- a/test/lorem.spec.ts +++ b/test/lorem.spec.ts @@ -365,6 +365,24 @@ describe('lorem', () => { ); }); + it('should throw an error if min is negative', () => { + expect(() => faker.lorem.text({ length: { min: -11 } })).toThrowError( + /^Min -11 should be a non-negative integer.$/ + ); + }); + + it('should throw an error if min is greater than max', () => { + expect(() => + faker.lorem.text({ length: { min: 3, max: 1 } }) + ).toThrowError(/^Max 1 should be greater than min 3.$/); + }); + + it('should throw an error if max is negative', () => { + expect(() => faker.lorem.text({ length: { max: -11 } })).toThrowError( + /^Max -11 should be a non-negative integer.$/ + ); + }); + it('should return an empty string for length zero', () => { const actual = faker.lorem.text({ length: 0 }); @@ -379,14 +397,7 @@ describe('lorem', () => { expect(actual).toBe('.'); }); - it('should return an empty string for [-13, 0]', () => { - const actual = faker.lorem.text({ length: { min: -13, max: 0 } }); - - expect(actual).toBeTypeOf('string'); - expect(actual).toBe(''); - }); - - it('should return an empty string for [0, 1]', () => { + it('should return a string of length 0 or length 1 for [0, 1]', () => { const actual = faker.lorem.text({ length: { min: 0, max: 1 } }); expect(actual).toBeTypeOf('string'); @@ -402,14 +413,6 @@ describe('lorem', () => { expect(actual.length).toBeLessThanOrEqual(32); }); - it('should return text with length between 0 and 13 for [-13, 13]', () => { - const actual = faker.lorem.text({ length: { min: -13, max: 13 } }); - - expect(actual).toBeTypeOf('string'); - expect(actual.length).toBeGreaterThanOrEqual(0); - expect(actual.length).toBeLessThanOrEqual(13); - }); - it('should return a string of length 77 for [77, 77]', () => { const actual = faker.lorem.text({ length: { min: 77, max: 77 } }); @@ -418,23 +421,12 @@ describe('lorem', () => { expect(actual).toHaveLength(77); }); - it('should return an empty string for [3, 1]', () => { - expect(() => - faker.lorem.text({ length: { min: 3, max: 1 } }) - ).toThrowError(/^Max 1 should be greater than min 3.$/); - }); - - it('should an error for max = -11', () => { - expect(() => faker.lorem.text({ length: { max: -11 } })).toThrowError( - /^Max -11 should be a non-negative integer.$/ - ); - }); - - it('should return a string with length at least 33 for min = 33', () => { + it('should return a string with length in [33, 66] for min = 33', () => { const actual = faker.lorem.text({ length: { min: 33 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(33); + expect(actual.length).toBeLessThanOrEqual(66); }); it('should return a string with length between 0 and 51 for max = 51', () => { From fa121ee24ae8400a9583bee0ba3279dd84d30576 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 19 Jul 2023 20:46:24 +0200 Subject: [PATCH 10/51] remove explicit character information and repetitive examples from the js-doc for lorem.text --- src/modules/lorem/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index c3308afc3c7..38f57f2162f 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -332,11 +332,9 @@ export class LoremModule { * // Quis ut dolor dolores facilis possimus tempore voluptates. * // Iure nam officia optio cumque. * // Dolor tempora iusto.' - * faker.lorem.text(14) // 'Doloribus aut.' (14 characters) - * faker.lorem.text({length: 14}) // 'Doloribus aut.' (14 characters) - * faker.lorem.text({length: {min: 10, max: 15}}) // 'autem non quis.' (15 characters) - * faker.lorem.text({length: {min: 10, max: 12}}) // 'autem non.' (10 characters) - * faker.lorem.text({length: {min: 3, max: 10}}) // 'autem.' (6 characters) + * faker.lorem.text(14) // 'Doloribus aut.' + * faker.lorem.text({length: 14}) // 'Doloribus aut.' + * faker.lorem.text({length: {min: 10, max: 15}}) // 'autem non quis.' * * @since 3.1.0 */ From fa79dec9c325e83bf1e34a09be3134295ea71596 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 19 Jul 2023 21:04:28 +0200 Subject: [PATCH 11/51] fix issue after merging and update snapshot for lorem module --- src/modules/lorem/index.ts | 1 + test/__snapshots__/lorem.spec.ts.snap | 20 ++++++-------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index e87f97d275c..36d9ee38752 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -1,4 +1,5 @@ import type { Faker } from '../..'; +import { FakerError } from '../../errors/faker-error'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; import { filterWordListByLength } from '../word/filterWordListByLength'; diff --git a/test/__snapshots__/lorem.spec.ts.snap b/test/__snapshots__/lorem.spec.ts.snap index fc372d40d4a..e45cf039c3b 100644 --- a/test/__snapshots__/lorem.spec.ts.snap +++ b/test/__snapshots__/lorem.spec.ts.snap @@ -97,9 +97,9 @@ exports[`lorem > 42 > slug > with length range 1`] = `"theca-virga-auctus-synago exports[`lorem > 42 > text > noArgs 1`] = `"Auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum. Usitas concido paulatim aranea suggero soleo. Adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo."`; -exports[`lorem > 42 > text > with length 1`] = `"Auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum. Usitas concido paulatim aranea suggero soleo. Adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo."`; +exports[`lorem > 42 > text > with length 1`] = `"Auctus sy."`; -exports[`lorem > 42 > text > with length range 1`] = `"Auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum. Usitas concido paulatim aranea suggero soleo. Adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo."`; +exports[`lorem > 42 > text > with length range 1`] = `""`; exports[`lorem > 42 > word > noArgs 1`] = `"corrupti"`; @@ -233,17 +233,9 @@ Considero ascit suasoria tamisium tonsor accendo. Sophismata sollers sursum tripudio vester dapifer coaegresco usque vorax." `; -exports[`lorem > 1211 > text > with length 1`] = ` -"Tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo. -Considero ascit suasoria tamisium tonsor accendo. -Sophismata sollers sursum tripudio vester dapifer coaegresco usque vorax." -`; +exports[`lorem > 1211 > text > with length 1`] = `"Tergo cae."`; -exports[`lorem > 1211 > text > with length range 1`] = ` -"Tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo. -Considero ascit suasoria tamisium tonsor accendo. -Sophismata sollers sursum tripudio vester dapifer coaegresco usque vorax." -`; +exports[`lorem > 1211 > text > with length range 1`] = `""`; exports[`lorem > 1211 > word > noArgs 1`] = `"vestrum"`; @@ -354,9 +346,9 @@ exports[`lorem > 1337 > slug > with length range 1`] = `"laborum-articulus-benev exports[`lorem > 1337 > text > noArgs 1`] = `"Benevolentia chirographum illo degenero. Commemoro canto eaque. Cedo conculco voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio."`; -exports[`lorem > 1337 > text > with length 1`] = `"Benevolentia chirographum illo degenero. Commemoro canto eaque. Cedo conculco voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio."`; +exports[`lorem > 1337 > text > with length 1`] = `"Benevolen."`; -exports[`lorem > 1337 > text > with length range 1`] = `"Benevolentia chirographum illo degenero. Commemoro canto eaque. Cedo conculco voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio."`; +exports[`lorem > 1337 > text > with length range 1`] = `""`; exports[`lorem > 1337 > word > noArgs 1`] = `"cedo"`; From 928056971da534184a05a6e58ba69e68496fc597 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 08:37:42 +0200 Subject: [PATCH 12/51] feat(lorem): improve code - apply feedback of code review to make the code more predictable and readable - if length includes min, it also has to include max, and vice versa - adapt tests --- src/modules/lorem/index.ts | 72 ++-- test/modules/__snapshots__/lorem.spec.ts.snap | 367 ------------------ test/modules/lorem.spec.ts | 22 +- 3 files changed, 43 insertions(+), 418 deletions(-) delete mode 100644 test/modules/__snapshots__/lorem.spec.ts.snap diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 36d9ee38752..c3e2b483745 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -331,7 +331,7 @@ export class LoremModule { * @since 3.1.0 */ text( - options?: + options: | number | { /** @@ -343,13 +343,13 @@ export class LoremModule { /** * The minimum length of text to generate. */ - min?: number; + min: number; /** * The maximum length of text to generate. */ - max?: number; + max: number; }; - } + } = {} ): string { const methods: Array = [ 'sentence', @@ -361,57 +361,49 @@ export class LoremModule { const method = this.faker.helpers.arrayElement(methods); - if (typeof options === 'undefined') { - return `${this[method]()}`; - } - if (typeof options === 'number') { - return this.faker.lorem.text({ length: options }); + options = { length: options }; } - if (typeof options?.length === 'number') { - if (options.length >= 0) { - let text = `${this[method]()}`; - while (text.length <= options?.length) { - text = `${text} ${this[method]()}`; - } - - return options.length - ? `${text.substring(0, options.length - 1)}.` - : ''; - } - + if (typeof options?.length === 'number' && options.length < 0) { throw new FakerError( `Length ${options.length} should be a non-negative integer.` ); } - if (options.length?.max != null && options.length?.max < 0) { - throw new FakerError( - `Max ${options.length.max} should be a non-negative integer.` - ); + if (typeof options.length !== 'number') { + if (options.length?.min != null && options.length?.min < 0) { + throw new FakerError( + `Min ${options.length.min} should be a non-negative integer.` + ); + } + + if (options.length?.max != null && options.length?.max < 0) { + throw new FakerError( + `Max ${options.length.max} should be a non-negative integer.` + ); + } } - if (options.length?.min != null && options.length?.min < 0) { - throw new FakerError( - `Min ${options.length.min} should be a non-negative integer.` - ); + const length = + options.length == null + ? null + : this.faker.helpers.rangeToNumber(options.length); + + if (length == null) { + return `${this[method]()}`; } - if (options.length?.min > options.length?.max) { - throw new FakerError( - `Max ${options.length.max} should be greater than min ${options.length.min}.` - ); + if (length === 0) { + return ''; } - const min = options.length?.min ?? 0; - const max = options.length?.max ?? 2 * min; - const randomLength = this.faker.number.int({ - min: min, - max: max, - }); + let text = `${this[method]()}`; + while (text.length <= length) { + text = `${text} ${this[method]()}`; + } - return this.faker.lorem.text({ length: randomLength }); + return `${text.substring(0, length - 1)}.`; } /** diff --git a/test/modules/__snapshots__/lorem.spec.ts.snap b/test/modules/__snapshots__/lorem.spec.ts.snap deleted file mode 100644 index e45cf039c3b..00000000000 --- a/test/modules/__snapshots__/lorem.spec.ts.snap +++ /dev/null @@ -1,367 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`lorem > 42 > lines > noArgs 1`] = ` -"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. -Adsum degenero usitas." -`; - -exports[`lorem > 42 > lines > with length 1`] = ` -"Theca virga auctus synagoga tergum. -Patria armarium decumbo armarium alveus adsum degenero. -Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. -Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. -Absens custodia acervus clamo esse perspiciatis cubo. -Adipiscor claro voluptate copiose. -Defleo alioqui territo quae. -Crebro doloribus vorago omnis. -Adipiscor undique pectus sponte assumenda defendo. -Abutor vinum vilitas." -`; - -exports[`lorem > 42 > lines > with length range 1`] = ` -"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. -Adsum degenero usitas. -Paulatim aranea suggero soleo accusator. -Volubilis suppono tristis. -Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. -Acervus clamo esse perspiciatis cubo apud. -Claro voluptate copiose. -Defleo alioqui territo quae. -Crebro doloribus vorago omnis. -Adipiscor undique pectus sponte assumenda defendo. -Abutor vinum vilitas. -Magnam titulus creptio cogo accendo alter callide stella caput decerno. -Animus pel deputo triumphus adeo atavus verbera crinis. -Auctor somniculosus temeritas color currus." -`; - -exports[`lorem > 42 > paragraph > noArgs 1`] = `"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono."`; - -exports[`lorem > 42 > paragraph > with length 1`] = `"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas."`; - -exports[`lorem > 42 > paragraph > with length range 1`] = `"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator. Volubilis suppono tristis. Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. Acervus clamo esse perspiciatis cubo apud. Claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. Animus pel deputo triumphus adeo atavus verbera crinis. Auctor somniculosus temeritas color currus."`; - -exports[`lorem > 42 > paragraphs > noArgs 1`] = ` -"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. -Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. -Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo." -`; - -exports[`lorem > 42 > paragraphs > with length 1`] = ` -"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. -Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. -Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. -Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. Animus pel deputo triumphus adeo atavus verbera crinis. -Auctor somniculosus temeritas color currus. Beatus incidunt minus audacia addo volubilis turbo. Defaeco vigor crur varius vester patrocinor suscipio verus compello. -Molestiae autus eligendi. Vito comparo tutamen. Tametsi cernuus harum tribuo ocer consuasor. -Cicuta pectus illo cetera aqua clementia thorax asperiores aestas accendo. Curo ter crur avarus claudeo abscido accedo tot avarus suffragium. Suspendo texo tepidus pecto aer vester contego soleo. -Veritas urbanus ullam. Defaeco comptus allatus adversus correptius colo sortitus. Sophismata suspendo officiis repellendus cervus. -Laudantium demens crebro animadverto volup summisse ulciscor temptatio suppono laudantium. Tepidus cattus depulso adhaero. Sulum cursus amor acies decens amita baiulus. -Vehemens repellat demo. Magnam dolor sub venustas apud. Peccatus cunae harum temeritas." -`; - -exports[`lorem > 42 > paragraphs > with length range 1`] = ` -"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator. -Volubilis suppono tristis. Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. Acervus clamo esse perspiciatis cubo apud. -Claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. -Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. -Animus pel deputo triumphus adeo atavus verbera crinis. Auctor somniculosus temeritas color currus. Beatus incidunt minus audacia addo volubilis turbo. -Defaeco vigor crur varius vester patrocinor suscipio verus compello. Molestiae autus eligendi. Vito comparo tutamen. -Tametsi cernuus harum tribuo ocer consuasor. Cicuta pectus illo cetera aqua clementia thorax asperiores aestas accendo. Curo ter crur avarus claudeo abscido accedo tot avarus suffragium. -Suspendo texo tepidus pecto aer vester contego soleo. Veritas urbanus ullam. Defaeco comptus allatus adversus correptius colo sortitus. -Sophismata suspendo officiis repellendus cervus. Laudantium demens crebro animadverto volup summisse ulciscor temptatio suppono laudantium. Tepidus cattus depulso adhaero. -Sulum cursus amor acies decens amita baiulus. Vehemens repellat demo. Magnam dolor sub venustas apud. -Peccatus cunae harum temeritas. Calco vilitas aestus patruus. Sub arx utrum vetus quia. -Clementia recusandae amiculum ut defluo thymbra blanditiis audentia cur. Vacuus fugit communis timor animus vel constans cometes ventus amo. Calcar socius curso a toties. -Undique cogo absconditus asper dolorem. Cur deorsum brevis stultus animadverto centum confero. Vilitas asporto commodi blanditiis. -Labore succedo culpo convoco advoco volup catena. Caritas caste subito derideo summa coerceo arceo cinis vulpes adfectus. Peior voluptatibus desolo cunctatio admoneo." -`; - -exports[`lorem > 42 > sentence > noArgs 1`] = `"Theca virga auctus synagoga tergum."`; - -exports[`lorem > 42 > sentence > with length 1`] = `"Corrupti theca virga auctus synagoga tergum patruus patria armarium decumbo."`; - -exports[`lorem > 42 > sentence > with length range 1`] = `"Theca virga auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum degenero usitas."`; - -exports[`lorem > 42 > sentences > noArgs 1`] = `"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator."`; - -exports[`lorem > 42 > sentences > with length 1`] = `"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas."`; - -exports[`lorem > 42 > sentences > with length range 1`] = `"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator. Volubilis suppono tristis. Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. Acervus clamo esse perspiciatis cubo apud. Claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. Animus pel deputo triumphus adeo atavus verbera crinis. Auctor somniculosus temeritas color currus."`; - -exports[`lorem > 42 > slug > noArgs 1`] = `"corrupti-theca-virga"`; - -exports[`lorem > 42 > slug > with length 1`] = `"corrupti-theca-virga-auctus-synagoga-tergum-patruus-patria-armarium-decumbo"`; - -exports[`lorem > 42 > slug > with length range 1`] = `"theca-virga-auctus-synagoga-tergum-patruus-patria-armarium-decumbo-armarium-alveus-adsum-degenero-usitas"`; - -exports[`lorem > 42 > text > noArgs 1`] = `"Auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum. Usitas concido paulatim aranea suggero soleo. Adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo."`; - -exports[`lorem > 42 > text > with length 1`] = `"Auctus sy."`; - -exports[`lorem > 42 > text > with length range 1`] = `""`; - -exports[`lorem > 42 > word > noArgs 1`] = `"corrupti"`; - -exports[`lorem > 42 > word > with length 1`] = `"cupiditate"`; - -exports[`lorem > 42 > word > with options.length 1`] = `"cupiditate"`; - -exports[`lorem > 42 > word > with options.length and options.strategy 1`] = `"exercitationem"`; - -exports[`lorem > 42 > word > with options.strategy 1`] = `"a"`; - -exports[`lorem > 42 > words > noArgs 1`] = `"corrupti theca virga"`; - -exports[`lorem > 42 > words > with length 1`] = `"corrupti theca virga auctus synagoga tergum patruus patria armarium decumbo"`; - -exports[`lorem > 42 > words > with length range 1`] = `"theca virga auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum degenero usitas"`; - -exports[`lorem > 1211 > lines > noArgs 1`] = ` -"Varietas tergo caelum aperio vulpes adficio. -Articulus stillicidium bene tendo curiositas considero ascit suasoria. -Tonsor accendo tenuis sophismata sollers sursum tripudio vester. -Coaegresco usque vorax unde voveo blanditiis. -Officia ventus aveho argentum corpus quas." -`; - -exports[`lorem > 1211 > lines > with length 1`] = ` -"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. -Tendo curiositas considero ascit. -Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. -Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. -Argentum corpus quas votum. -Tener abstergo crux cogo video accommodo. -Curiositas voluptas articulus caelestis nesciunt coepi atque. -Cresco eligendi vereor conscendo voro ulciscor colo crastinus. -Celer cubo color necessitatibus atque aetas laboriosam. -Suasoria caelum apud adhaero." -`; - -exports[`lorem > 1211 > lines > with length range 1`] = ` -"Varietas tergo caelum aperio vulpes adficio. -Articulus stillicidium bene tendo curiositas considero ascit suasoria. -Tonsor accendo tenuis sophismata sollers sursum tripudio vester. -Coaegresco usque vorax unde voveo blanditiis. -Officia ventus aveho argentum corpus quas. -Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. -Caelestis nesciunt coepi atque. -Cresco eligendi vereor conscendo voro ulciscor colo crastinus. -Celer cubo color necessitatibus atque aetas laboriosam. -Suasoria caelum apud adhaero. -Tutis depromo repellendus caries bardus cunabula curvo bellicus. -Tutis cur nemo minima dens aetas adficio. -Subito inventore auctor quasi suggero deserunt cetera architecto. -Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. -Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. -Sum nam alienus tolero vae impedit. -Vicinus viriliter voluntarius talio tonsor alius uter. -Blanditiis subnecto supellex. -Trucido deprecator conforto nulla validus ab accusator tametsi. -Creator tempus votum delibero censura aggero ustulo." -`; - -exports[`lorem > 1211 > paragraph > noArgs 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio."`; - -exports[`lorem > 1211 > paragraph > with length 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero."`; - -exports[`lorem > 1211 > paragraph > with length range 1`] = `"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. Caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo."`; - -exports[`lorem > 1211 > paragraphs > noArgs 1`] = ` -"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. -Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. -Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam." -`; - -exports[`lorem > 1211 > paragraphs > with length 1`] = ` -"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. -Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. -Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. -Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. -Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. -Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. -Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo. Odit approbo labore cibo ver. -Debilito verbera varietas vulgus. Cupio corpus aureus defendo. Beatae magnam usque non torrens praesentium tantillus. -Praesentium recusandae umerus tricesimus similique tantum decet tutis ventito. Vilicus facilis sordeo conicio aggredior fuga bos dedico villa conor. Triduana abutor avaritia commodo vindico voveo. -Capitulus cariosus deripio. Compono vestigium summopere. Velit versus vivo pariatur casso vitae." -`; - -exports[`lorem > 1211 > paragraphs > with length range 1`] = ` -"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. -Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. -Caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. -Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. -Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. -Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. -Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo. Odit approbo labore cibo ver. -Debilito verbera varietas vulgus. Cupio corpus aureus defendo. Beatae magnam usque non torrens praesentium tantillus. -Praesentium recusandae umerus tricesimus similique tantum decet tutis ventito. Vilicus facilis sordeo conicio aggredior fuga bos dedico villa conor. Triduana abutor avaritia commodo vindico voveo. -Capitulus cariosus deripio. Compono vestigium summopere. Velit versus vivo pariatur casso vitae. -Vos desino conservo culpa provident conitor tandem tumultus ventosus. Aperte velociter esse utrimque sto aranea tabella amor. Impedit trucido vado vicissitudo denuncio. -Carus suffoco sto aer. Dapifer depraedor reiciendis umbra comburo. Acquiro tempora calamitas succurro calculus sustineo vespillo vapulus patrocinor. -Socius averto facere calculus somnus. Pariatur complectus velum vitium dedico cometes delibero triumphus totus. Iste sortitus acervus. -Molestias tamdiu delicate. Decerno sint allatus repellendus. Super cur accedo arcus cursus asperiores volo. -Claudeo vesco sum votum canis thorax ullus. Cunae deludo utilis degero commodo virga tui utrum corroboro. Comitatus pectus ambulo verto atrocitas tot communis aestas. -Cupiditate vaco defero conturbo voluptatem volo tum confero vetus quo. Totam cultura ultio civis. Antiquus temptatio dedecor conculco porro. -Amitto quas conventus facere cogo error placeat vorax quidem textus. Commemoro inventore undique decet cilicium. Spoliatio catena vis. -Arceo vivo velut voluptate corona vetus tui excepturi harum. Demulceo terror virtus soluta. Peccatus cupiditas ab cometes vomito curso xiphias. -Sulum confido confugo. Quo cruentus abeo animi pectus. Aperte sequi anser pecco tepesco brevis voluptas aspicio acer rerum. -Vinco despecto suadeo toties cui somnus. Ut delibero asperiores surculus. Temptatio centum volva umerus terebro aduro." -`; - -exports[`lorem > 1211 > sentence > noArgs 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium."`; - -exports[`lorem > 1211 > sentence > with length 1`] = `"Vestrum degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus."`; - -exports[`lorem > 1211 > sentence > with length range 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo curiositas considero ascit suasoria tamisium tonsor accendo tenuis."`; - -exports[`lorem > 1211 > sentences > noArgs 1`] = `"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas."`; - -exports[`lorem > 1211 > sentences > with length 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero."`; - -exports[`lorem > 1211 > sentences > with length range 1`] = `"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. Caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo."`; - -exports[`lorem > 1211 > slug > noArgs 1`] = `"vestrum-degenero-varietas"`; - -exports[`lorem > 1211 > slug > with length 1`] = `"vestrum-degenero-varietas-tergo-caelum-aperio-vulpes-adficio-spectaculum-articulus"`; - -exports[`lorem > 1211 > slug > with length range 1`] = `"degenero-varietas-tergo-caelum-aperio-vulpes-adficio-spectaculum-articulus-stillicidium-bene-tendo-curiositas-considero-ascit-suasoria-tamisium-tonsor-accendo-tenuis"`; - -exports[`lorem > 1211 > text > noArgs 1`] = ` -"Tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo. -Considero ascit suasoria tamisium tonsor accendo. -Sophismata sollers sursum tripudio vester dapifer coaegresco usque vorax." -`; - -exports[`lorem > 1211 > text > with length 1`] = `"Tergo cae."`; - -exports[`lorem > 1211 > text > with length range 1`] = `""`; - -exports[`lorem > 1211 > word > noArgs 1`] = `"vestrum"`; - -exports[`lorem > 1211 > word > with length 1`] = `"voluptatum"`; - -exports[`lorem > 1211 > word > with options.length 1`] = `"voluptatum"`; - -exports[`lorem > 1211 > word > with options.length and options.strategy 1`] = `"necessitatibus"`; - -exports[`lorem > 1211 > word > with options.strategy 1`] = `"a"`; - -exports[`lorem > 1211 > words > noArgs 1`] = `"vestrum degenero varietas"`; - -exports[`lorem > 1211 > words > with length 1`] = `"vestrum degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus"`; - -exports[`lorem > 1211 > words > with length range 1`] = `"degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo curiositas considero ascit suasoria tamisium tonsor accendo tenuis"`; - -exports[`lorem > 1337 > lines > noArgs 1`] = ` -"Articulus benevolentia chirographum illo degenero ademptio commemoro. -Eaque omnis cedo conculco." -`; - -exports[`lorem > 1337 > lines > with length 1`] = ` -"Laborum articulus benevolentia chirographum illo. -Ademptio commemoro canto eaque omnis cedo. -Voluptatibus cerno tabella cohors ancilla. -Creptio allatus quisquam conventus ante talio vorago artificiose decipio. -Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. -Temporibus corpus audeo demonstro civis urbanus spargo. -Desidero decet atrox aqua cupiditate tracto. -Velit exercitationem vestrum tristis. -Audax vita vita uxor currus torqueo desparatus. -Dolore suadeo accendo tui suus provident vulgo sono." -`; - -exports[`lorem > 1337 > lines > with length range 1`] = ` -"Articulus benevolentia chirographum illo degenero ademptio commemoro. -Eaque omnis cedo conculco. -Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. -Vorago artificiose decipio unus testimonium texo thalassinus abscido. -Delectus cupressus creator nulla eius. -Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. -Aqua cupiditate tracto avarus. -Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. -Stultus dolore suadeo accendo tui suus provident. -Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. -Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. -Est deprecator spiritus voluptas tamquam tubineus fugit pel." -`; - -exports[`lorem > 1337 > paragraph > noArgs 1`] = `"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla."`; - -exports[`lorem > 1337 > paragraph > with length 1`] = `"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus. Dolore suadeo accendo tui suus provident vulgo sono."`; - -exports[`lorem > 1337 > paragraph > with length range 1`] = `"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. Vorago artificiose decipio unus testimonium texo thalassinus abscido. Delectus cupressus creator nulla eius. Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. Aqua cupiditate tracto avarus. Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. Stultus dolore suadeo accendo tui suus provident. Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. Est deprecator spiritus voluptas tamquam tubineus fugit pel."`; - -exports[`lorem > 1337 > paragraphs > noArgs 1`] = ` -"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. -Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. -Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus." -`; - -exports[`lorem > 1337 > paragraphs > with length 1`] = ` -"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. -Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. -Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus. -Dolore suadeo accendo tui suus provident vulgo sono. Defungo antepono cupressus corrupti. Suadeo timidus abbas spiritus corporis ubi adsum temporibus. -Vitium consectetur admoveo subvenio est deprecator spiritus voluptas tamquam. Fugit pel celo magni tum vulpes tabesco caterva undique. Cognomen alienus peior. -Charisma voluptate vacuus deprecator civis confugo dolor supra arca abstergo. Temporibus valetudo speciosus fugiat aufero tener sophismata degero. Sopor arx itaque verbum texo communis utilis subseco universe cena. -Earum vomer atrocitas supra delibero. Deduco spectaculum crustulum vae textor denuncio. Cupio surculus adsum textus studio consequuntur. -Verbera corpus summisse. Velit denego curia balbus delibero somnus ventito. Recusandae deleo expedita accusantium capio celo vindico eveniet laboriosam arceo. -Despecto canto coerceo curtus crapula cruentus vulariter dolorem theatrum. Bonus statua laudantium acsi. Canis sui tabgo error victus comprehendo placeat ager. -Corona ultra abundans vulgivagus quod clementia. Cribro tandem subnecto cado consuasor brevis addo cribro. Deporto deorsum aveho administratio confido." -`; - -exports[`lorem > 1337 > paragraphs > with length range 1`] = ` -"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. -Vorago artificiose decipio unus testimonium texo thalassinus abscido. Delectus cupressus creator nulla eius. Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. -Aqua cupiditate tracto avarus. Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. Stultus dolore suadeo accendo tui suus provident. -Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. Est deprecator spiritus voluptas tamquam tubineus fugit pel. -Magni tum vulpes tabesco caterva. Accedo cognomen alienus peior vigor charisma voluptate vacuus deprecator. Confugo dolor supra arca abstergo. -Temporibus valetudo speciosus fugiat aufero tener sophismata degero. Sopor arx itaque verbum texo communis utilis subseco universe cena. Earum vomer atrocitas supra delibero. -Deduco spectaculum crustulum vae textor denuncio. Cupio surculus adsum textus studio consequuntur. Verbera corpus summisse. -Velit denego curia balbus delibero somnus ventito. Recusandae deleo expedita accusantium capio celo vindico eveniet laboriosam arceo. Despecto canto coerceo curtus crapula cruentus vulariter dolorem theatrum. -Bonus statua laudantium acsi. Canis sui tabgo error victus comprehendo placeat ager. Corona ultra abundans vulgivagus quod clementia. -Cribro tandem subnecto cado consuasor brevis addo cribro. Deporto deorsum aveho administratio confido. Usus surgo demergo ter aranea alo vir adfero surgo caveo. -Antea abbas capio conduco statim. Denique comptus video deficio nobis caelestis audax tres audentia. Confido ademptio damnatio bos aestus certus repellat aegrus adsum degero. -Conor solutio complectus absorbeo thymum tenax ullus confido. Tergeo maiores condico thalassinus nisi aspicio astrum considero. Valens cerno pauci tam tersus magnam quas velut velum." -`; - -exports[`lorem > 1337 > sentence > noArgs 1`] = `"Laborum articulus benevolentia chirographum illo."`; - -exports[`lorem > 1337 > sentence > with length 1`] = `"Cedo laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto."`; - -exports[`lorem > 1337 > sentence > with length range 1`] = `"Laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto eaque omnis cedo."`; - -exports[`lorem > 1337 > sentences > noArgs 1`] = `"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante."`; - -exports[`lorem > 1337 > sentences > with length 1`] = `"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus. Dolore suadeo accendo tui suus provident vulgo sono."`; - -exports[`lorem > 1337 > sentences > with length range 1`] = `"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. Vorago artificiose decipio unus testimonium texo thalassinus abscido. Delectus cupressus creator nulla eius. Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. Aqua cupiditate tracto avarus. Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. Stultus dolore suadeo accendo tui suus provident. Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. Est deprecator spiritus voluptas tamquam tubineus fugit pel."`; - -exports[`lorem > 1337 > slug > noArgs 1`] = `"cedo-laborum-articulus"`; - -exports[`lorem > 1337 > slug > with length 1`] = `"cedo-laborum-articulus-benevolentia-chirographum-illo-degenero-ademptio-commemoro-canto"`; - -exports[`lorem > 1337 > slug > with length range 1`] = `"laborum-articulus-benevolentia-chirographum-illo-degenero-ademptio-commemoro-canto-eaque-omnis-cedo"`; - -exports[`lorem > 1337 > text > noArgs 1`] = `"Benevolentia chirographum illo degenero. Commemoro canto eaque. Cedo conculco voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio."`; - -exports[`lorem > 1337 > text > with length 1`] = `"Benevolen."`; - -exports[`lorem > 1337 > text > with length range 1`] = `""`; - -exports[`lorem > 1337 > word > noArgs 1`] = `"cedo"`; - -exports[`lorem > 1337 > word > with length 1`] = `"coaegresco"`; - -exports[`lorem > 1337 > word > with options.length 1`] = `"coaegresco"`; - -exports[`lorem > 1337 > word > with options.length and options.strategy 1`] = `"exercitationem"`; - -exports[`lorem > 1337 > word > with options.strategy 1`] = `"a"`; - -exports[`lorem > 1337 > words > noArgs 1`] = `"cedo laborum articulus"`; - -exports[`lorem > 1337 > words > with length 1`] = `"cedo laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto"`; - -exports[`lorem > 1337 > words > with length range 1`] = `"laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto eaque omnis cedo"`; diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index 50911030d65..053a79adefb 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -318,7 +318,7 @@ describe('lorem', () => { }); }); - describe('text()', () => { + describe.only('text()', () => { it('should return text', () => { const actual = faker.lorem.text(); @@ -366,9 +366,9 @@ describe('lorem', () => { }); it('should throw an error if min is negative', () => { - expect(() => faker.lorem.text({ length: { min: -11 } })).toThrowError( - /^Min -11 should be a non-negative integer.$/ - ); + expect(() => + faker.lorem.text({ length: { min: -11, max: 100 } }) + ).toThrowError(/^Min -11 should be a non-negative integer.$/); }); it('should throw an error if min is greater than max', () => { @@ -378,9 +378,9 @@ describe('lorem', () => { }); it('should throw an error if max is negative', () => { - expect(() => faker.lorem.text({ length: { max: -11 } })).toThrowError( - /^Max -11 should be a non-negative integer.$/ - ); + expect(() => + faker.lorem.text({ length: { min: 100, max: -11 } }) + ).toThrowError(/^Max -11 should be a non-negative integer.$/); }); it('should return an empty string for length zero', () => { @@ -421,16 +421,16 @@ describe('lorem', () => { expect(actual).toHaveLength(77); }); - it('should return a string with length in [33, 66] for min = 33', () => { - const actual = faker.lorem.text({ length: { min: 33 } }); + it('should return text with a length in [33, 66]', () => { + const actual = faker.lorem.text({ length: { min: 33, max: 66 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(33); expect(actual.length).toBeLessThanOrEqual(66); }); - it('should return a string with length between 0 and 51 for max = 51', () => { - const actual = faker.lorem.text({ length: { max: 51 } }); + it('should return text with a length in [0, 51]', () => { + const actual = faker.lorem.text({ length: { min: 0, max: 51 } }); expect(actual).toBeTypeOf('string'); expect(actual.length).toBeGreaterThanOrEqual(0); From 9fcacdecdd2812bc786150dd81ca774a4c413073 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 08:46:15 +0200 Subject: [PATCH 13/51] feat(lorem): remove .only and add lorem-snapshot --- test/modules/__snapshots__/lorem.spec.ts.snap | 371 ++++++++++++++++++ test/modules/lorem.spec.ts | 2 +- 2 files changed, 372 insertions(+), 1 deletion(-) create mode 100644 test/modules/__snapshots__/lorem.spec.ts.snap diff --git a/test/modules/__snapshots__/lorem.spec.ts.snap b/test/modules/__snapshots__/lorem.spec.ts.snap new file mode 100644 index 00000000000..9ece4803448 --- /dev/null +++ b/test/modules/__snapshots__/lorem.spec.ts.snap @@ -0,0 +1,371 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`lorem > 42 > lines > noArgs 1`] = ` +"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. +Adsum degenero usitas." +`; + +exports[`lorem > 42 > lines > with length 1`] = ` +"Theca virga auctus synagoga tergum. +Patria armarium decumbo armarium alveus adsum degenero. +Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. +Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. +Absens custodia acervus clamo esse perspiciatis cubo. +Adipiscor claro voluptate copiose. +Defleo alioqui territo quae. +Crebro doloribus vorago omnis. +Adipiscor undique pectus sponte assumenda defendo. +Abutor vinum vilitas." +`; + +exports[`lorem > 42 > lines > with length range 1`] = ` +"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. +Adsum degenero usitas. +Paulatim aranea suggero soleo accusator. +Volubilis suppono tristis. +Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. +Acervus clamo esse perspiciatis cubo apud. +Claro voluptate copiose. +Defleo alioqui territo quae. +Crebro doloribus vorago omnis. +Adipiscor undique pectus sponte assumenda defendo. +Abutor vinum vilitas. +Magnam titulus creptio cogo accendo alter callide stella caput decerno. +Animus pel deputo triumphus adeo atavus verbera crinis. +Auctor somniculosus temeritas color currus." +`; + +exports[`lorem > 42 > paragraph > noArgs 1`] = `"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono."`; + +exports[`lorem > 42 > paragraph > with length 1`] = `"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas."`; + +exports[`lorem > 42 > paragraph > with length range 1`] = `"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator. Volubilis suppono tristis. Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. Acervus clamo esse perspiciatis cubo apud. Claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. Animus pel deputo triumphus adeo atavus verbera crinis. Auctor somniculosus temeritas color currus."`; + +exports[`lorem > 42 > paragraphs > noArgs 1`] = ` +"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. +Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. +Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo." +`; + +exports[`lorem > 42 > paragraphs > with length 1`] = ` +"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. +Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. +Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. +Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. Animus pel deputo triumphus adeo atavus verbera crinis. +Auctor somniculosus temeritas color currus. Beatus incidunt minus audacia addo volubilis turbo. Defaeco vigor crur varius vester patrocinor suscipio verus compello. +Molestiae autus eligendi. Vito comparo tutamen. Tametsi cernuus harum tribuo ocer consuasor. +Cicuta pectus illo cetera aqua clementia thorax asperiores aestas accendo. Curo ter crur avarus claudeo abscido accedo tot avarus suffragium. Suspendo texo tepidus pecto aer vester contego soleo. +Veritas urbanus ullam. Defaeco comptus allatus adversus correptius colo sortitus. Sophismata suspendo officiis repellendus cervus. +Laudantium demens crebro animadverto volup summisse ulciscor temptatio suppono laudantium. Tepidus cattus depulso adhaero. Sulum cursus amor acies decens amita baiulus. +Vehemens repellat demo. Magnam dolor sub venustas apud. Peccatus cunae harum temeritas." +`; + +exports[`lorem > 42 > paragraphs > with length range 1`] = ` +"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator. +Volubilis suppono tristis. Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. Acervus clamo esse perspiciatis cubo apud. +Claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. +Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. +Animus pel deputo triumphus adeo atavus verbera crinis. Auctor somniculosus temeritas color currus. Beatus incidunt minus audacia addo volubilis turbo. +Defaeco vigor crur varius vester patrocinor suscipio verus compello. Molestiae autus eligendi. Vito comparo tutamen. +Tametsi cernuus harum tribuo ocer consuasor. Cicuta pectus illo cetera aqua clementia thorax asperiores aestas accendo. Curo ter crur avarus claudeo abscido accedo tot avarus suffragium. +Suspendo texo tepidus pecto aer vester contego soleo. Veritas urbanus ullam. Defaeco comptus allatus adversus correptius colo sortitus. +Sophismata suspendo officiis repellendus cervus. Laudantium demens crebro animadverto volup summisse ulciscor temptatio suppono laudantium. Tepidus cattus depulso adhaero. +Sulum cursus amor acies decens amita baiulus. Vehemens repellat demo. Magnam dolor sub venustas apud. +Peccatus cunae harum temeritas. Calco vilitas aestus patruus. Sub arx utrum vetus quia. +Clementia recusandae amiculum ut defluo thymbra blanditiis audentia cur. Vacuus fugit communis timor animus vel constans cometes ventus amo. Calcar socius curso a toties. +Undique cogo absconditus asper dolorem. Cur deorsum brevis stultus animadverto centum confero. Vilitas asporto commodi blanditiis. +Labore succedo culpo convoco advoco volup catena. Caritas caste subito derideo summa coerceo arceo cinis vulpes adfectus. Peior voluptatibus desolo cunctatio admoneo." +`; + +exports[`lorem > 42 > sentence > noArgs 1`] = `"Theca virga auctus synagoga tergum."`; + +exports[`lorem > 42 > sentence > with length 1`] = `"Corrupti theca virga auctus synagoga tergum patruus patria armarium decumbo."`; + +exports[`lorem > 42 > sentence > with length range 1`] = `"Theca virga auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum degenero usitas."`; + +exports[`lorem > 42 > sentences > noArgs 1`] = `"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator."`; + +exports[`lorem > 42 > sentences > with length 1`] = `"Theca virga auctus synagoga tergum. Patria armarium decumbo armarium alveus adsum degenero. Concido paulatim aranea suggero soleo accusator adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo. Adipiscor claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas."`; + +exports[`lorem > 42 > sentences > with length range 1`] = `"Virga auctus synagoga tergum patruus patria armarium decumbo armarium. Adsum degenero usitas. Paulatim aranea suggero soleo accusator. Volubilis suppono tristis. Benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis esse absens. Acervus clamo esse perspiciatis cubo apud. Claro voluptate copiose. Defleo alioqui territo quae. Crebro doloribus vorago omnis. Adipiscor undique pectus sponte assumenda defendo. Abutor vinum vilitas. Magnam titulus creptio cogo accendo alter callide stella caput decerno. Animus pel deputo triumphus adeo atavus verbera crinis. Auctor somniculosus temeritas color currus."`; + +exports[`lorem > 42 > slug > noArgs 1`] = `"corrupti-theca-virga"`; + +exports[`lorem > 42 > slug > with length 1`] = `"corrupti-theca-virga-auctus-synagoga-tergum-patruus-patria-armarium-decumbo"`; + +exports[`lorem > 42 > slug > with length range 1`] = `"theca-virga-auctus-synagoga-tergum-patruus-patria-armarium-decumbo-armarium-alveus-adsum-degenero-usitas"`; + +exports[`lorem > 42 > text > noArgs 1`] = `"Auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum. Usitas concido paulatim aranea suggero soleo. Adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo."`; + +exports[`lorem > 42 > text > with length 1`] = `"Auctus sy."`; + +exports[`lorem > 42 > text > with length range 1`] = `"Auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum. Usitas concido paulatim aranea suggero soleo. Adstringo volubilis suppono. Vigilo benevolentia a attonbitus vulgivagus auctus provident cognomen perspiciatis. Absens custodia acervus clamo esse perspiciatis cubo."`; + +exports[`lorem > 42 > word > noArgs 1`] = `"corrupti"`; + +exports[`lorem > 42 > word > with length 1`] = `"cupiditate"`; + +exports[`lorem > 42 > word > with options.length 1`] = `"cupiditate"`; + +exports[`lorem > 42 > word > with options.length and options.strategy 1`] = `"exercitationem"`; + +exports[`lorem > 42 > word > with options.strategy 1`] = `"a"`; + +exports[`lorem > 42 > words > noArgs 1`] = `"corrupti theca virga"`; + +exports[`lorem > 42 > words > with length 1`] = `"corrupti theca virga auctus synagoga tergum patruus patria armarium decumbo"`; + +exports[`lorem > 42 > words > with length range 1`] = `"theca virga auctus synagoga tergum patruus patria armarium decumbo armarium alveus adsum degenero usitas"`; + +exports[`lorem > 1211 > lines > noArgs 1`] = ` +"Varietas tergo caelum aperio vulpes adficio. +Articulus stillicidium bene tendo curiositas considero ascit suasoria. +Tonsor accendo tenuis sophismata sollers sursum tripudio vester. +Coaegresco usque vorax unde voveo blanditiis. +Officia ventus aveho argentum corpus quas." +`; + +exports[`lorem > 1211 > lines > with length 1`] = ` +"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. +Tendo curiositas considero ascit. +Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. +Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. +Argentum corpus quas votum. +Tener abstergo crux cogo video accommodo. +Curiositas voluptas articulus caelestis nesciunt coepi atque. +Cresco eligendi vereor conscendo voro ulciscor colo crastinus. +Celer cubo color necessitatibus atque aetas laboriosam. +Suasoria caelum apud adhaero." +`; + +exports[`lorem > 1211 > lines > with length range 1`] = ` +"Varietas tergo caelum aperio vulpes adficio. +Articulus stillicidium bene tendo curiositas considero ascit suasoria. +Tonsor accendo tenuis sophismata sollers sursum tripudio vester. +Coaegresco usque vorax unde voveo blanditiis. +Officia ventus aveho argentum corpus quas. +Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. +Caelestis nesciunt coepi atque. +Cresco eligendi vereor conscendo voro ulciscor colo crastinus. +Celer cubo color necessitatibus atque aetas laboriosam. +Suasoria caelum apud adhaero. +Tutis depromo repellendus caries bardus cunabula curvo bellicus. +Tutis cur nemo minima dens aetas adficio. +Subito inventore auctor quasi suggero deserunt cetera architecto. +Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. +Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. +Sum nam alienus tolero vae impedit. +Vicinus viriliter voluntarius talio tonsor alius uter. +Blanditiis subnecto supellex. +Trucido deprecator conforto nulla validus ab accusator tametsi. +Creator tempus votum delibero censura aggero ustulo." +`; + +exports[`lorem > 1211 > paragraph > noArgs 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio."`; + +exports[`lorem > 1211 > paragraph > with length 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero."`; + +exports[`lorem > 1211 > paragraph > with length range 1`] = `"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. Caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo."`; + +exports[`lorem > 1211 > paragraphs > noArgs 1`] = ` +"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. +Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. +Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam." +`; + +exports[`lorem > 1211 > paragraphs > with length 1`] = ` +"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. +Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. +Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. +Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. +Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. +Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. +Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo. Odit approbo labore cibo ver. +Debilito verbera varietas vulgus. Cupio corpus aureus defendo. Beatae magnam usque non torrens praesentium tantillus. +Praesentium recusandae umerus tricesimus similique tantum decet tutis ventito. Vilicus facilis sordeo conicio aggredior fuga bos dedico villa conor. Triduana abutor avaritia commodo vindico voveo. +Capitulus cariosus deripio. Compono vestigium summopere. Velit versus vivo pariatur casso vitae." +`; + +exports[`lorem > 1211 > paragraphs > with length range 1`] = ` +"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. +Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. +Caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. +Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. +Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. +Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. +Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo. Odit approbo labore cibo ver. +Debilito verbera varietas vulgus. Cupio corpus aureus defendo. Beatae magnam usque non torrens praesentium tantillus. +Praesentium recusandae umerus tricesimus similique tantum decet tutis ventito. Vilicus facilis sordeo conicio aggredior fuga bos dedico villa conor. Triduana abutor avaritia commodo vindico voveo. +Capitulus cariosus deripio. Compono vestigium summopere. Velit versus vivo pariatur casso vitae. +Vos desino conservo culpa provident conitor tandem tumultus ventosus. Aperte velociter esse utrimque sto aranea tabella amor. Impedit trucido vado vicissitudo denuncio. +Carus suffoco sto aer. Dapifer depraedor reiciendis umbra comburo. Acquiro tempora calamitas succurro calculus sustineo vespillo vapulus patrocinor. +Socius averto facere calculus somnus. Pariatur complectus velum vitium dedico cometes delibero triumphus totus. Iste sortitus acervus. +Molestias tamdiu delicate. Decerno sint allatus repellendus. Super cur accedo arcus cursus asperiores volo. +Claudeo vesco sum votum canis thorax ullus. Cunae deludo utilis degero commodo virga tui utrum corroboro. Comitatus pectus ambulo verto atrocitas tot communis aestas. +Cupiditate vaco defero conturbo voluptatem volo tum confero vetus quo. Totam cultura ultio civis. Antiquus temptatio dedecor conculco porro. +Amitto quas conventus facere cogo error placeat vorax quidem textus. Commemoro inventore undique decet cilicium. Spoliatio catena vis. +Arceo vivo velut voluptate corona vetus tui excepturi harum. Demulceo terror virtus soluta. Peccatus cupiditas ab cometes vomito curso xiphias. +Sulum confido confugo. Quo cruentus abeo animi pectus. Aperte sequi anser pecco tepesco brevis voluptas aspicio acer rerum. +Vinco despecto suadeo toties cui somnus. Ut delibero asperiores surculus. Temptatio centum volva umerus terebro aduro." +`; + +exports[`lorem > 1211 > sentence > noArgs 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium."`; + +exports[`lorem > 1211 > sentence > with length 1`] = `"Vestrum degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus."`; + +exports[`lorem > 1211 > sentence > with length range 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo curiositas considero ascit suasoria tamisium tonsor accendo tenuis."`; + +exports[`lorem > 1211 > sentences > noArgs 1`] = `"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas."`; + +exports[`lorem > 1211 > sentences > with length 1`] = `"Degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium. Tendo curiositas considero ascit. Tamisium tonsor accendo tenuis sophismata sollers sursum tripudio. Dapifer coaegresco usque vorax unde voveo blanditiis defero officia ventus. Argentum corpus quas votum. Tener abstergo crux cogo video accommodo. Curiositas voluptas articulus caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero."`; + +exports[`lorem > 1211 > sentences > with length range 1`] = `"Varietas tergo caelum aperio vulpes adficio. Articulus stillicidium bene tendo curiositas considero ascit suasoria. Tonsor accendo tenuis sophismata sollers sursum tripudio vester. Coaegresco usque vorax unde voveo blanditiis. Officia ventus aveho argentum corpus quas. Decipio tener abstergo crux cogo video accommodo expedita curiositas voluptas. Caelestis nesciunt coepi atque. Cresco eligendi vereor conscendo voro ulciscor colo crastinus. Celer cubo color necessitatibus atque aetas laboriosam. Suasoria caelum apud adhaero. Tutis depromo repellendus caries bardus cunabula curvo bellicus. Tutis cur nemo minima dens aetas adficio. Subito inventore auctor quasi suggero deserunt cetera architecto. Sordeo dolores sublime delectus dens bis argumentum perspiciatis illum. Dedecor amaritudo esse ullus deinde deinde adulatio corrupti nulla. Sum nam alienus tolero vae impedit. Vicinus viriliter voluntarius talio tonsor alius uter. Blanditiis subnecto supellex. Trucido deprecator conforto nulla validus ab accusator tametsi. Creator tempus votum delibero censura aggero ustulo."`; + +exports[`lorem > 1211 > slug > noArgs 1`] = `"vestrum-degenero-varietas"`; + +exports[`lorem > 1211 > slug > with length 1`] = `"vestrum-degenero-varietas-tergo-caelum-aperio-vulpes-adficio-spectaculum-articulus"`; + +exports[`lorem > 1211 > slug > with length range 1`] = `"degenero-varietas-tergo-caelum-aperio-vulpes-adficio-spectaculum-articulus-stillicidium-bene-tendo-curiositas-considero-ascit-suasoria-tamisium-tonsor-accendo-tenuis"`; + +exports[`lorem > 1211 > text > noArgs 1`] = ` +"Tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo. +Considero ascit suasoria tamisium tonsor accendo. +Sophismata sollers sursum tripudio vester dapifer coaegresco usque vorax." +`; + +exports[`lorem > 1211 > text > with length 1`] = `"Tergo cae."`; + +exports[`lorem > 1211 > text > with length range 1`] = ` +"Tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo. +Considero ascit suasoria tamisium tonsor accendo. +Sophismata sollers sursum tripudio vester dapifer coaegresco usque vorax." +`; + +exports[`lorem > 1211 > word > noArgs 1`] = `"vestrum"`; + +exports[`lorem > 1211 > word > with length 1`] = `"voluptatum"`; + +exports[`lorem > 1211 > word > with options.length 1`] = `"voluptatum"`; + +exports[`lorem > 1211 > word > with options.length and options.strategy 1`] = `"necessitatibus"`; + +exports[`lorem > 1211 > word > with options.strategy 1`] = `"a"`; + +exports[`lorem > 1211 > words > noArgs 1`] = `"vestrum degenero varietas"`; + +exports[`lorem > 1211 > words > with length 1`] = `"vestrum degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus"`; + +exports[`lorem > 1211 > words > with length range 1`] = `"degenero varietas tergo caelum aperio vulpes adficio spectaculum articulus stillicidium bene tendo curiositas considero ascit suasoria tamisium tonsor accendo tenuis"`; + +exports[`lorem > 1337 > lines > noArgs 1`] = ` +"Articulus benevolentia chirographum illo degenero ademptio commemoro. +Eaque omnis cedo conculco." +`; + +exports[`lorem > 1337 > lines > with length 1`] = ` +"Laborum articulus benevolentia chirographum illo. +Ademptio commemoro canto eaque omnis cedo. +Voluptatibus cerno tabella cohors ancilla. +Creptio allatus quisquam conventus ante talio vorago artificiose decipio. +Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. +Temporibus corpus audeo demonstro civis urbanus spargo. +Desidero decet atrox aqua cupiditate tracto. +Velit exercitationem vestrum tristis. +Audax vita vita uxor currus torqueo desparatus. +Dolore suadeo accendo tui suus provident vulgo sono." +`; + +exports[`lorem > 1337 > lines > with length range 1`] = ` +"Articulus benevolentia chirographum illo degenero ademptio commemoro. +Eaque omnis cedo conculco. +Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. +Vorago artificiose decipio unus testimonium texo thalassinus abscido. +Delectus cupressus creator nulla eius. +Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. +Aqua cupiditate tracto avarus. +Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. +Stultus dolore suadeo accendo tui suus provident. +Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. +Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. +Est deprecator spiritus voluptas tamquam tubineus fugit pel." +`; + +exports[`lorem > 1337 > paragraph > noArgs 1`] = `"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla."`; + +exports[`lorem > 1337 > paragraph > with length 1`] = `"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus. Dolore suadeo accendo tui suus provident vulgo sono."`; + +exports[`lorem > 1337 > paragraph > with length range 1`] = `"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. Vorago artificiose decipio unus testimonium texo thalassinus abscido. Delectus cupressus creator nulla eius. Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. Aqua cupiditate tracto avarus. Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. Stultus dolore suadeo accendo tui suus provident. Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. Est deprecator spiritus voluptas tamquam tubineus fugit pel."`; + +exports[`lorem > 1337 > paragraphs > noArgs 1`] = ` +"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. +Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. +Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus." +`; + +exports[`lorem > 1337 > paragraphs > with length 1`] = ` +"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. +Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. +Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus. +Dolore suadeo accendo tui suus provident vulgo sono. Defungo antepono cupressus corrupti. Suadeo timidus abbas spiritus corporis ubi adsum temporibus. +Vitium consectetur admoveo subvenio est deprecator spiritus voluptas tamquam. Fugit pel celo magni tum vulpes tabesco caterva undique. Cognomen alienus peior. +Charisma voluptate vacuus deprecator civis confugo dolor supra arca abstergo. Temporibus valetudo speciosus fugiat aufero tener sophismata degero. Sopor arx itaque verbum texo communis utilis subseco universe cena. +Earum vomer atrocitas supra delibero. Deduco spectaculum crustulum vae textor denuncio. Cupio surculus adsum textus studio consequuntur. +Verbera corpus summisse. Velit denego curia balbus delibero somnus ventito. Recusandae deleo expedita accusantium capio celo vindico eveniet laboriosam arceo. +Despecto canto coerceo curtus crapula cruentus vulariter dolorem theatrum. Bonus statua laudantium acsi. Canis sui tabgo error victus comprehendo placeat ager. +Corona ultra abundans vulgivagus quod clementia. Cribro tandem subnecto cado consuasor brevis addo cribro. Deporto deorsum aveho administratio confido." +`; + +exports[`lorem > 1337 > paragraphs > with length range 1`] = ` +"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. +Vorago artificiose decipio unus testimonium texo thalassinus abscido. Delectus cupressus creator nulla eius. Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. +Aqua cupiditate tracto avarus. Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. Stultus dolore suadeo accendo tui suus provident. +Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. Est deprecator spiritus voluptas tamquam tubineus fugit pel. +Magni tum vulpes tabesco caterva. Accedo cognomen alienus peior vigor charisma voluptate vacuus deprecator. Confugo dolor supra arca abstergo. +Temporibus valetudo speciosus fugiat aufero tener sophismata degero. Sopor arx itaque verbum texo communis utilis subseco universe cena. Earum vomer atrocitas supra delibero. +Deduco spectaculum crustulum vae textor denuncio. Cupio surculus adsum textus studio consequuntur. Verbera corpus summisse. +Velit denego curia balbus delibero somnus ventito. Recusandae deleo expedita accusantium capio celo vindico eveniet laboriosam arceo. Despecto canto coerceo curtus crapula cruentus vulariter dolorem theatrum. +Bonus statua laudantium acsi. Canis sui tabgo error victus comprehendo placeat ager. Corona ultra abundans vulgivagus quod clementia. +Cribro tandem subnecto cado consuasor brevis addo cribro. Deporto deorsum aveho administratio confido. Usus surgo demergo ter aranea alo vir adfero surgo caveo. +Antea abbas capio conduco statim. Denique comptus video deficio nobis caelestis audax tres audentia. Confido ademptio damnatio bos aestus certus repellat aegrus adsum degero. +Conor solutio complectus absorbeo thymum tenax ullus confido. Tergeo maiores condico thalassinus nisi aspicio astrum considero. Valens cerno pauci tam tersus magnam quas velut velum." +`; + +exports[`lorem > 1337 > sentence > noArgs 1`] = `"Laborum articulus benevolentia chirographum illo."`; + +exports[`lorem > 1337 > sentence > with length 1`] = `"Cedo laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto."`; + +exports[`lorem > 1337 > sentence > with length range 1`] = `"Laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto eaque omnis cedo."`; + +exports[`lorem > 1337 > sentences > noArgs 1`] = `"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante."`; + +exports[`lorem > 1337 > sentences > with length 1`] = `"Laborum articulus benevolentia chirographum illo. Ademptio commemoro canto eaque omnis cedo. Voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio. Testimonium texo thalassinus abscido contra delectus cupressus creator nulla. Temporibus corpus audeo demonstro civis urbanus spargo. Desidero decet atrox aqua cupiditate tracto. Velit exercitationem vestrum tristis. Audax vita vita uxor currus torqueo desparatus. Dolore suadeo accendo tui suus provident vulgo sono."`; + +exports[`lorem > 1337 > sentences > with length range 1`] = `"Articulus benevolentia chirographum illo degenero ademptio commemoro. Eaque omnis cedo conculco. Cerno tabella cohors ancilla thorax creptio allatus quisquam conventus ante. Vorago artificiose decipio unus testimonium texo thalassinus abscido. Delectus cupressus creator nulla eius. Corpus audeo demonstro civis urbanus spargo cultellus desidero decet. Aqua cupiditate tracto avarus. Exercitationem vestrum tristis quaerat audax vita vita uxor currus torqueo. Stultus dolore suadeo accendo tui suus provident. Sono ascisco defungo antepono cupressus corrupti quos suadeo timidus abbas. Corporis ubi adsum temporibus testimonium vitium consectetur admoveo. Est deprecator spiritus voluptas tamquam tubineus fugit pel."`; + +exports[`lorem > 1337 > slug > noArgs 1`] = `"cedo-laborum-articulus"`; + +exports[`lorem > 1337 > slug > with length 1`] = `"cedo-laborum-articulus-benevolentia-chirographum-illo-degenero-ademptio-commemoro-canto"`; + +exports[`lorem > 1337 > slug > with length range 1`] = `"laborum-articulus-benevolentia-chirographum-illo-degenero-ademptio-commemoro-canto-eaque-omnis-cedo"`; + +exports[`lorem > 1337 > text > noArgs 1`] = `"Benevolentia chirographum illo degenero. Commemoro canto eaque. Cedo conculco voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio."`; + +exports[`lorem > 1337 > text > with length 1`] = `"Benevolen."`; + +exports[`lorem > 1337 > text > with length range 1`] = `"Benevolentia chirographum illo degenero. Commemoro canto eaque. Cedo conculco voluptatibus cerno tabella cohors ancilla. Creptio allatus quisquam conventus ante talio vorago artificiose decipio."`; + +exports[`lorem > 1337 > word > noArgs 1`] = `"cedo"`; + +exports[`lorem > 1337 > word > with length 1`] = `"coaegresco"`; + +exports[`lorem > 1337 > word > with options.length 1`] = `"coaegresco"`; + +exports[`lorem > 1337 > word > with options.length and options.strategy 1`] = `"exercitationem"`; + +exports[`lorem > 1337 > word > with options.strategy 1`] = `"a"`; + +exports[`lorem > 1337 > words > noArgs 1`] = `"cedo laborum articulus"`; + +exports[`lorem > 1337 > words > with length 1`] = `"cedo laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto"`; + +exports[`lorem > 1337 > words > with length range 1`] = `"laborum articulus benevolentia chirographum illo degenero ademptio commemoro canto eaque omnis cedo"`; diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index 053a79adefb..a10be0d311e 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -318,7 +318,7 @@ describe('lorem', () => { }); }); - describe.only('text()', () => { + describe('text()', () => { it('should return text', () => { const actual = faker.lorem.text(); From c5dfe27acd13003962a5cd93f9632392fda41399 Mon Sep 17 00:00:00 2001 From: CoolPlayLin Date: Sun, 20 Aug 2023 14:46:48 +0800 Subject: [PATCH 14/51] feat(locale): improve zh_TW (#2320) --- src/locales/zh_TW/color/human.ts | 28 ++++++++++++++++++++++++++++ src/locales/zh_TW/color/index.ts | 12 ++++++++++++ src/locales/zh_TW/date/index.ts | 14 ++++++++++++++ src/locales/zh_TW/date/month.ts | 31 +++++++++++++++++++++++++++++++ src/locales/zh_TW/date/weekday.ts | 4 ++++ src/locales/zh_TW/index.ts | 4 ++++ 6 files changed, 93 insertions(+) create mode 100644 src/locales/zh_TW/color/human.ts create mode 100644 src/locales/zh_TW/color/index.ts create mode 100644 src/locales/zh_TW/date/index.ts create mode 100644 src/locales/zh_TW/date/month.ts create mode 100644 src/locales/zh_TW/date/weekday.ts diff --git a/src/locales/zh_TW/color/human.ts b/src/locales/zh_TW/color/human.ts new file mode 100644 index 00000000000..c7dc4056e70 --- /dev/null +++ b/src/locales/zh_TW/color/human.ts @@ -0,0 +1,28 @@ +export default [ + '紅色', + '綠色', + '藍色', + '黃色', + '紫色', + '薄荷綠色', + '藍綠色', + '白色', + '黑色', + '橙色', + '粉紅色', + '灰色', + '紅褐色', + '藍紫色', + '青綠色', + '棕褐色', + '天藍色', + '淺橙色', + '紫紅色', + '淡紫色', + '淡褐色', + '青檸色', + '乳白色', + '靛藍色', + '金色', + '銀色', +]; diff --git a/src/locales/zh_TW/color/index.ts b/src/locales/zh_TW/color/index.ts new file mode 100644 index 00000000000..e7cf1e89436 --- /dev/null +++ b/src/locales/zh_TW/color/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { ColorDefinition } from '../../..'; +import human from './human'; + +const color: ColorDefinition = { + human, +}; + +export default color; diff --git a/src/locales/zh_TW/date/index.ts b/src/locales/zh_TW/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/zh_TW/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/zh_TW/date/month.ts b/src/locales/zh_TW/date/month.ts new file mode 100644 index 00000000000..6776eb77c54 --- /dev/null +++ b/src/locales/zh_TW/date/month.ts @@ -0,0 +1,31 @@ +export default { + wide: [ + '1月', + '2月', + '3月', + '4月', + '5月', + '6月', + '7月', + '8月', + '9月', + '10月', + '11月', + '12月', + ], + + abbr: [ + '1月', + '2月', + '3月', + '4月', + '5月', + '6月', + '7月', + '8月', + '9月', + '10月', + '11月', + '12月', + ], +}; diff --git a/src/locales/zh_TW/date/weekday.ts b/src/locales/zh_TW/date/weekday.ts new file mode 100644 index 00000000000..11df40b4ed0 --- /dev/null +++ b/src/locales/zh_TW/date/weekday.ts @@ -0,0 +1,4 @@ +export default { + wide: ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], + abbr: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], +}; diff --git a/src/locales/zh_TW/index.ts b/src/locales/zh_TW/index.ts index 8fe031b6471..d837b7e0c4a 100644 --- a/src/locales/zh_TW/index.ts +++ b/src/locales/zh_TW/index.ts @@ -3,12 +3,16 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import color from './color'; +import date from './date'; import location from './location'; import metadata from './metadata'; import person from './person'; import phone_number from './phone_number'; const zh_TW: LocaleDefinition = { + color, + date, location, metadata, person, From 15a8f934d21b17f3fb29979b6f222005845e1503 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 11:30:46 +0200 Subject: [PATCH 15/51] feat(lorem): improve jsdoc and simplify code of lorem.text() --- src/modules/lorem/index.ts | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index c3e2b483745..e3975d6cf96 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -312,9 +312,7 @@ export class LoremModule { * Generates a random text based on a random lorem method. * * @param options The options for the text to generate or options.length as quick primitive argument. - * @param options.length The length (range) of text to generate. - * @param options.length.min The minimum length of text to generate. - * @param options.length.max The maximum length of text to generate. + * @param options.length The length of text to generate as number or range. * * @example * faker.lorem.text() // 'Doloribus autem non quis vero quia.' @@ -365,34 +363,31 @@ export class LoremModule { options = { length: options }; } - if (typeof options?.length === 'number' && options.length < 0) { + if (options.length == null) { + return `${this[method]()}`; + } + + if (typeof options.length === 'number' && options.length < 0) { throw new FakerError( `Length ${options.length} should be a non-negative integer.` ); } if (typeof options.length !== 'number') { - if (options.length?.min != null && options.length?.min < 0) { + if (options.length.min != null && options.length.min < 0) { throw new FakerError( `Min ${options.length.min} should be a non-negative integer.` ); } - if (options.length?.max != null && options.length?.max < 0) { + if (options.length.max != null && options.length.max < 0) { throw new FakerError( `Max ${options.length.max} should be a non-negative integer.` ); } } - const length = - options.length == null - ? null - : this.faker.helpers.rangeToNumber(options.length); - - if (length == null) { - return `${this[method]()}`; - } + const length = this.faker.helpers.rangeToNumber(options.length); if (length === 0) { return ''; From 402802d0d3747c37872a422e483a21cc4e952602 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 18:12:18 +0200 Subject: [PATCH 16/51] feat(lorem): remove unnecessary checks in text() --- src/modules/lorem/index.ts | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index e3975d6cf96..9f33c3a3f91 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -1,5 +1,4 @@ import type { Faker } from '../..'; -import { FakerError } from '../../errors/faker-error'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; import { filterWordListByLength } from '../word/filterWordListByLength'; @@ -367,29 +366,9 @@ export class LoremModule { return `${this[method]()}`; } - if (typeof options.length === 'number' && options.length < 0) { - throw new FakerError( - `Length ${options.length} should be a non-negative integer.` - ); - } - - if (typeof options.length !== 'number') { - if (options.length.min != null && options.length.min < 0) { - throw new FakerError( - `Min ${options.length.min} should be a non-negative integer.` - ); - } - - if (options.length.max != null && options.length.max < 0) { - throw new FakerError( - `Max ${options.length.max} should be a non-negative integer.` - ); - } - } - const length = this.faker.helpers.rangeToNumber(options.length); - if (length === 0) { + if (length <= 0) { return ''; } From 153dcfa6ae755ca271e4a9ed21dcb6fdf3d42249 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 18:13:37 +0200 Subject: [PATCH 17/51] feat(lorem): remove redundant tests --- test/modules/lorem.spec.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index a10be0d311e..386f97a2aef 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -420,22 +420,6 @@ describe('lorem', () => { expect(actual).toBeTypeOf('string'); expect(actual).toHaveLength(77); }); - - it('should return text with a length in [33, 66]', () => { - const actual = faker.lorem.text({ length: { min: 33, max: 66 } }); - - expect(actual).toBeTypeOf('string'); - expect(actual.length).toBeGreaterThanOrEqual(33); - expect(actual.length).toBeLessThanOrEqual(66); - }); - - it('should return text with a length in [0, 51]', () => { - const actual = faker.lorem.text({ length: { min: 0, max: 51 } }); - - expect(actual).toBeTypeOf('string'); - expect(actual.length).toBeGreaterThanOrEqual(0); - expect(actual.length).toBeLessThanOrEqual(51); - }); }); describe('lines()', () => { From 056886acce37f80a8089e9874beb33d6b392990f Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 18:23:22 +0200 Subject: [PATCH 18/51] feat(lorem): remove tests for checks that were removed --- test/modules/lorem.spec.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index 386f97a2aef..0cde2fe15a7 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -353,36 +353,12 @@ describe('lorem', () => { expect(actual.length).toBeLessThanOrEqual(40); }); - it('should throw an error for a negative length in the options object', () => { - expect(() => faker.lorem.text({ length: -3 })).toThrowError( - /^Length -3 should be a non-negative integer.$/ - ); - }); - - it('should throw an error for a negative length in the quick primitive argument', () => { - expect(() => faker.lorem.text(-3)).toThrowError( - /^Length -3 should be a non-negative integer.$/ - ); - }); - - it('should throw an error if min is negative', () => { - expect(() => - faker.lorem.text({ length: { min: -11, max: 100 } }) - ).toThrowError(/^Min -11 should be a non-negative integer.$/); - }); - it('should throw an error if min is greater than max', () => { expect(() => faker.lorem.text({ length: { min: 3, max: 1 } }) ).toThrowError(/^Max 1 should be greater than min 3.$/); }); - it('should throw an error if max is negative', () => { - expect(() => - faker.lorem.text({ length: { min: 100, max: -11 } }) - ).toThrowError(/^Max -11 should be a non-negative integer.$/); - }); - it('should return an empty string for length zero', () => { const actual = faker.lorem.text({ length: 0 }); From 1fbb6daaa614e71d0afe9d90f2016fd9eaef3b2e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 20 Aug 2023 18:23:55 +0200 Subject: [PATCH 19/51] feat(lorem): simplify code --- src/modules/lorem/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 9f33c3a3f91..72c6455dfa3 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -372,12 +372,12 @@ export class LoremModule { return ''; } - let text = `${this[method]()}`; - while (text.length <= length) { - text = `${text} ${this[method]()}`; - } + let text = ''; + do { + text = `${text}${this[method]()} `; + } while (text.length <= length + 1); - return `${text.substring(0, length - 1)}.`; + return `${text.trim().substring(0, length - 1)}.`; } /** From 0cffbb968e254c9fe48c1be228f8651de0e4837f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 03:29:15 -0400 Subject: [PATCH 20/51] chore(deps): update vitest to ~0.34.2 (#2329) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 76 +++++++++++++++++++++++++------------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index 67955eb2303..a8312813bae 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@typescript-eslint/eslint-plugin": "~6.4.0", "@typescript-eslint/parser": "~6.4.0", "@vitest/coverage-v8": "~0.34.1", - "@vitest/ui": "~0.34.1", + "@vitest/ui": "~0.34.2", "@vueuse/core": "~10.3.0", "conventional-changelog-cli": "~3.0.0", "cypress": "~12.17.4", @@ -124,7 +124,7 @@ "validator": "~13.11.0", "vite": "~4.4.9", "vitepress": "1.0.0-beta.7", - "vitest": "~0.34.1", + "vitest": "~0.34.2", "vue": "~3.3.4" }, "packageManager": "pnpm@8.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ca526fb4719..7a604c9f712 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,10 +30,10 @@ devDependencies: version: 6.4.0(eslint@8.47.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.1 - version: 0.34.1(vitest@0.34.1) + version: 0.34.1(vitest@0.34.2) '@vitest/ui': - specifier: ~0.34.1 - version: 0.34.1(vitest@0.34.1) + specifier: ~0.34.2 + version: 0.34.2(vitest@0.34.2) '@vueuse/core': specifier: ~10.3.0 version: 10.3.0(vue@3.3.4) @@ -69,7 +69,7 @@ devDependencies: version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.1) eslint-plugin-vitest: specifier: ~0.2.8 - version: 0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.1) + version: 0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2) glob: specifier: ~10.3.3 version: 10.3.3 @@ -113,8 +113,8 @@ devDependencies: specifier: 1.0.0-beta.7 version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.0)(search-insights@2.7.0) vitest: - specifier: ~0.34.1 - version: 0.34.1(@vitest/ui@0.34.1) + specifier: ~0.34.2 + version: 0.34.2(@vitest/ui@0.34.2) vue: specifier: ~3.3.4 version: 3.3.4 @@ -1640,7 +1640,7 @@ packages: vue: 3.3.4 dev: true - /@vitest/coverage-v8@0.34.1(vitest@0.34.1): + /@vitest/coverage-v8@0.34.1(vitest@0.34.2): resolution: {integrity: sha512-lRgUwjTMr8idXEbUPSNH4jjRZJXJCVY3BqUa+LDXyJVe3pldxYMn/r0HMqatKUGTp0Kyf1j5LfFoY6kRqRp7jw==} peerDependencies: vitest: '>=0.32.0 <1' @@ -1656,58 +1656,58 @@ packages: std-env: 3.3.3 test-exclude: 6.0.0 v8-to-istanbul: 9.1.0 - vitest: 0.34.1(@vitest/ui@0.34.1) + vitest: 0.34.2(@vitest/ui@0.34.2) transitivePeerDependencies: - supports-color dev: true - /@vitest/expect@0.34.1: - resolution: {integrity: sha512-q2CD8+XIsQ+tHwypnoCk8Mnv5e6afLFvinVGCq3/BOT4kQdVQmY6rRfyKkwcg635lbliLPqbunXZr+L1ssUWiQ==} + /@vitest/expect@0.34.2: + resolution: {integrity: sha512-EZm2dMNlLyIfDMha17QHSQcg2KjeAZaXd65fpPzXY5bvnfx10Lcaz3N55uEe8PhF+w4pw+hmrlHLLlRn9vkBJg==} dependencies: - '@vitest/spy': 0.34.1 - '@vitest/utils': 0.34.1 + '@vitest/spy': 0.34.2 + '@vitest/utils': 0.34.2 chai: 4.3.7 dev: true - /@vitest/runner@0.34.1: - resolution: {integrity: sha512-YfQMpYzDsYB7yqgmlxZ06NI4LurHWfrH7Wy3Pvf/z/vwUSgq1zLAb1lWcItCzQG+NVox+VvzlKQrYEXb47645g==} + /@vitest/runner@0.34.2: + resolution: {integrity: sha512-8ydGPACVX5tK3Dl0SUwxfdg02h+togDNeQX3iXVFYgzF5odxvaou7HnquALFZkyVuYskoaHUOqOyOLpOEj5XTA==} dependencies: - '@vitest/utils': 0.34.1 + '@vitest/utils': 0.34.2 p-limit: 4.0.0 pathe: 1.1.1 dev: true - /@vitest/snapshot@0.34.1: - resolution: {integrity: sha512-0O9LfLU0114OqdF8lENlrLsnn024Tb1CsS9UwG0YMWY2oGTQfPtkW+B/7ieyv0X9R2Oijhi3caB1xgGgEgclSQ==} + /@vitest/snapshot@0.34.2: + resolution: {integrity: sha512-qhQ+xy3u4mwwLxltS4Pd4SR+XHv4EajiTPNY3jkIBLUApE6/ce72neJPSUQZ7bL3EBuKI+NhvzhGj3n5baRQUQ==} dependencies: magic-string: 0.30.2 pathe: 1.1.1 pretty-format: 29.6.2 dev: true - /@vitest/spy@0.34.1: - resolution: {integrity: sha512-UT4WcI3EAPUNO8n6y9QoEqynGGEPmmRxC+cLzneFFXpmacivjHZsNbiKD88KUScv5DCHVDgdBsLD7O7s1enFcQ==} + /@vitest/spy@0.34.2: + resolution: {integrity: sha512-yd4L9OhfH6l0Av7iK3sPb3MykhtcRN5c5K5vm1nTbuN7gYn+yvUVVsyvzpHrjqS7EWqn9WsPJb7+0c3iuY60tA==} dependencies: tinyspy: 2.1.1 dev: true - /@vitest/ui@0.34.1(vitest@0.34.1): - resolution: {integrity: sha512-bwmkgMjDcMr3pg0UXLwfwZ/WI1fq2N+5DUisqHkY9bvnNRnpT6QiewtSS/VhmN61ixgNpSKbEGVboml2GLuxfA==} + /@vitest/ui@0.34.2(vitest@0.34.2): + resolution: {integrity: sha512-UXylkcts4Ete3dQ1niwG6Xpp4lNxiSI1ZzjpcJ0+aWz57yNSzuS8+UMTFbYTClBet9XUqzSK9VvGe+ntCHGQbg==} peerDependencies: vitest: '>=0.30.1 <1' dependencies: - '@vitest/utils': 0.34.1 + '@vitest/utils': 0.34.2 fast-glob: 3.3.1 fflate: 0.8.0 flatted: 3.2.7 pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.34.1(@vitest/ui@0.34.1) + vitest: 0.34.2(@vitest/ui@0.34.2) dev: true - /@vitest/utils@0.34.1: - resolution: {integrity: sha512-/ql9dsFi4iuEbiNcjNHQWXBum7aL8pyhxvfnD9gNtbjR9fUKAjxhj4AA3yfLXg6gJpMGGecvtF8Au2G9y3q47Q==} + /@vitest/utils@0.34.2: + resolution: {integrity: sha512-Lzw+kAsTPubhoQDp1uVAOP6DhNia1GMDsI9jgB0yMn+/nDaPieYQ88lKqz/gGjSHL4zwOItvpehec9OY+rS73w==} dependencies: diff-sequences: 29.4.3 loupe: 2.3.6 @@ -3246,7 +3246,7 @@ packages: synckit: 0.8.5 dev: true - /eslint-plugin-vitest@0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.1): + /eslint-plugin-vitest@0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2): resolution: {integrity: sha512-q8s4tStyKtn3gXf+8nf1ZYTHhoCXKdnozZzp6u8b4ni5v68Y4vxhNh4Z8njUfNjEY8HoPBB77MazHMR23IPb+g==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3260,7 +3260,7 @@ packages: '@typescript-eslint/utils': 6.2.0(eslint@8.47.0)(typescript@4.9.5) eslint: 8.47.0 vite: 4.4.9(@types/node@20.5.0) - vitest: 0.34.1(@vitest/ui@0.34.1) + vitest: 0.34.2(@vitest/ui@0.34.2) transitivePeerDependencies: - supports-color - typescript @@ -6060,8 +6060,8 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.1(@types/node@20.5.0): - resolution: {integrity: sha512-odAZAL9xFMuAg8aWd7nSPT+hU8u2r9gU3LRm9QKjxBEF2rRdWpMuqkrkjvyVQEdNFiBctqr2Gg4uJYizm5Le6w==} + /vite-node@0.34.2(@types/node@20.5.0): + resolution: {integrity: sha512-JtW249Zm3FB+F7pQfH56uWSdlltCo1IOkZW5oHBzeQo0iX4jtC7o1t9aILMGd9kVekXBP2lfJBEQt9rBh07ebA==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: @@ -6162,8 +6162,8 @@ packages: - universal-cookie dev: true - /vitest@0.34.1(@vitest/ui@0.34.1): - resolution: {integrity: sha512-G1PzuBEq9A75XSU88yO5G4vPT20UovbC/2osB2KEuV/FisSIIsw7m5y2xMdB7RsAGHAfg2lPmp2qKr3KWliVlQ==} + /vitest@0.34.2(@vitest/ui@0.34.2): + resolution: {integrity: sha512-WgaIvBbjsSYMq/oiMlXUI7KflELmzM43BEvkdC/8b5CAod4ryAiY2z8uR6Crbi5Pjnu5oOmhKa9sy7uk6paBxQ==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -6196,12 +6196,12 @@ packages: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 '@types/node': 20.5.0 - '@vitest/expect': 0.34.1 - '@vitest/runner': 0.34.1 - '@vitest/snapshot': 0.34.1 - '@vitest/spy': 0.34.1 - '@vitest/ui': 0.34.1(vitest@0.34.1) - '@vitest/utils': 0.34.1 + '@vitest/expect': 0.34.2 + '@vitest/runner': 0.34.2 + '@vitest/snapshot': 0.34.2 + '@vitest/spy': 0.34.2 + '@vitest/ui': 0.34.2(vitest@0.34.2) + '@vitest/utils': 0.34.2 acorn: 8.10.0 acorn-walk: 8.2.0 cac: 6.7.14 @@ -6216,7 +6216,7 @@ packages: tinybench: 2.5.0 tinypool: 0.7.0 vite: 4.4.9(@types/node@20.5.0) - vite-node: 0.34.1(@types/node@20.5.0) + vite-node: 0.34.2(@types/node@20.5.0) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 11d58ba76cab421abeb9b49ca5a8555f33b90094 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 07:41:52 +0000 Subject: [PATCH 21/51] chore(deps): update dependency prettier to v3.0.2 (#2327) 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 a8312813bae..145d3a585b9 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "eslint-plugin-vitest": "~0.2.8", "glob": "~10.3.3", "npm-run-all": "~4.1.5", - "prettier": "3.0.1", + "prettier": "3.0.2", "prettier-plugin-organize-imports": "~3.2.3", "rimraf": "~5.0.1", "sanitize-html": "~2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7a604c9f712..9b772b2c51a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,7 +66,7 @@ devDependencies: version: 46.4.6(eslint@8.47.0) eslint-plugin-prettier: specifier: ~5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.1) + version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2) eslint-plugin-vitest: specifier: ~0.2.8 version: 0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2) @@ -77,11 +77,11 @@ devDependencies: specifier: ~4.1.5 version: 4.1.5 prettier: - specifier: 3.0.1 - version: 3.0.1 + specifier: 3.0.2 + version: 3.0.2 prettier-plugin-organize-imports: specifier: ~3.2.3 - version: 3.2.3(prettier@3.0.1)(typescript@4.9.5) + version: 3.2.3(prettier@3.0.2)(typescript@4.9.5) rimraf: specifier: ~5.0.1 version: 5.0.1 @@ -3225,7 +3225,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.1): + /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2): resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3241,7 +3241,7 @@ packages: dependencies: eslint: 8.47.0 eslint-config-prettier: 9.0.0(eslint@8.47.0) - prettier: 3.0.1 + prettier: 3.0.2 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true @@ -5031,7 +5031,7 @@ packages: fast-diff: 1.3.0 dev: true - /prettier-plugin-organize-imports@3.2.3(prettier@3.0.1)(typescript@4.9.5): + /prettier-plugin-organize-imports@3.2.3(prettier@3.0.2)(typescript@4.9.5): resolution: {integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -5044,12 +5044,12 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.0.1 + prettier: 3.0.2 typescript: 4.9.5 dev: true - /prettier@3.0.1: - resolution: {integrity: sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==} + /prettier@3.0.2: + resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==} engines: {node: '>=14'} hasBin: true dev: true From 6094a5e94c5b0edf5d33b17516b63b297d82e9e0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 04:22:55 -0400 Subject: [PATCH 22/51] chore(deps): update devdependencies (#2328) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 6 +++--- pnpm-lock.yaml | 52 +++++++++++++++++++++++++------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/package.json b/package.json index 145d3a585b9..bf7b20e238a 100644 --- a/package.json +++ b/package.json @@ -90,13 +90,13 @@ "@actions/github": "~5.1.1", "@algolia/client-search": "~4.19.1", "@types/markdown-it": "~13.0.0", - "@types/node": "~20.5.0", + "@types/node": "~20.5.4", "@types/sanitize-html": "~2.9.0", "@types/semver": "~7.5.0", "@types/validator": "~13.11.1", "@typescript-eslint/eslint-plugin": "~6.4.0", "@typescript-eslint/parser": "~6.4.0", - "@vitest/coverage-v8": "~0.34.1", + "@vitest/coverage-v8": "~0.34.2", "@vitest/ui": "~0.34.2", "@vueuse/core": "~10.3.0", "conventional-changelog-cli": "~3.0.0", @@ -107,7 +107,7 @@ "eslint-define-config": "~1.23.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~1.5.0", - "eslint-plugin-jsdoc": "~46.4.6", + "eslint-plugin-jsdoc": "~46.5.0", "eslint-plugin-prettier": "~5.0.0", "eslint-plugin-vitest": "~0.2.8", "glob": "~10.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b772b2c51a..9daa7f0fda6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ devDependencies: specifier: ~13.0.0 version: 13.0.0 '@types/node': - specifier: ~20.5.0 - version: 20.5.0 + specifier: ~20.5.4 + version: 20.5.4 '@types/sanitize-html': specifier: ~2.9.0 version: 2.9.0 @@ -29,8 +29,8 @@ devDependencies: specifier: ~6.4.0 version: 6.4.0(eslint@8.47.0)(typescript@4.9.5) '@vitest/coverage-v8': - specifier: ~0.34.1 - version: 0.34.1(vitest@0.34.2) + specifier: ~0.34.2 + version: 0.34.2(vitest@0.34.2) '@vitest/ui': specifier: ~0.34.2 version: 0.34.2(vitest@0.34.2) @@ -62,8 +62,8 @@ devDependencies: specifier: ~1.5.0 version: 1.5.0(eslint@8.47.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~46.4.6 - version: 46.4.6(eslint@8.47.0) + specifier: ~46.5.0 + version: 46.5.0(eslint@8.47.0) eslint-plugin-prettier: specifier: ~5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2) @@ -108,10 +108,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.4.9 - version: 4.4.9(@types/node@20.5.0) + version: 4.4.9(@types/node@20.5.4) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.0)(search-insights@2.7.0) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.4)(search-insights@2.7.0) vitest: specifier: ~0.34.2 version: 0.34.2(@vitest/ui@0.34.2) @@ -1333,8 +1333,8 @@ packages: resolution: {integrity: sha512-8q9ZexmdYYyc5/cfujaXb4YOucpQxAV4RMG0himLyDUOEr8Mr79VrqsFI+cQ2M2h89YIuy95lbxuYjxT4Hk4kQ==} dev: true - /@types/node@20.5.0: - resolution: {integrity: sha512-Mgq7eCtoTjT89FqNoTzzXg2XvCi5VMhRV6+I2aYanc6kQCBImeNaAYRs/DyoVqk1YEUJK5gN9VO7HRIdz4Wo3Q==} + /@types/node@20.5.4: + resolution: {integrity: sha512-Y9vbIAoM31djQZrPYjpTLo0XlaSwOIsrlfE3LpulZeRblttsLQRFRlBAppW0LOxyT3ALj2M5vU1ucQQayQH3jA==} dev: true /@types/normalize-package-data@2.4.1: @@ -1371,7 +1371,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 20.5.0 + '@types/node': 20.5.4 dev: true optional: true @@ -1636,12 +1636,12 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.9(@types/node@20.5.0) + vite: 4.4.9(@types/node@20.5.4) vue: 3.3.4 dev: true - /@vitest/coverage-v8@0.34.1(vitest@0.34.2): - resolution: {integrity: sha512-lRgUwjTMr8idXEbUPSNH4jjRZJXJCVY3BqUa+LDXyJVe3pldxYMn/r0HMqatKUGTp0Kyf1j5LfFoY6kRqRp7jw==} + /@vitest/coverage-v8@0.34.2(vitest@0.34.2): + resolution: {integrity: sha512-3VuDZPeGGd1zWtc0Tdj9cHSbFc8IQ0ffnWp9MlhItOkziN6HEf219meZ9cZheg/hJXrXb+Fi2bMu7GeCAfL4yA==} peerDependencies: vitest: '>=0.32.0 <1' dependencies: @@ -3205,8 +3205,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.4.6(eslint@8.47.0): - resolution: {integrity: sha512-z4SWYnJfOqftZI+b3RM9AtWL1vF/sLWE/LlO9yOKDof9yN2+n3zOdOJTGX/pRE/xnPsooOLG2Rq6e4d+XW3lNw==} + /eslint-plugin-jsdoc@46.5.0(eslint@8.47.0): + resolution: {integrity: sha512-aulXdA4I1dyWpzyS1Nh/GNoS6PavzeucxEapnMR4JUERowWvaEk2Y4A5irpHAcdXtBBHLVe8WIhdXNjoAlGQgA==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -3259,7 +3259,7 @@ packages: dependencies: '@typescript-eslint/utils': 6.2.0(eslint@8.47.0)(typescript@4.9.5) eslint: 8.47.0 - vite: 4.4.9(@types/node@20.5.0) + vite: 4.4.9(@types/node@20.5.4) vitest: 0.34.2(@vitest/ui@0.34.2) transitivePeerDependencies: - supports-color @@ -6060,7 +6060,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.2(@types/node@20.5.0): + /vite-node@0.34.2(@types/node@20.5.4): resolution: {integrity: sha512-JtW249Zm3FB+F7pQfH56uWSdlltCo1IOkZW5oHBzeQo0iX4jtC7o1t9aILMGd9kVekXBP2lfJBEQt9rBh07ebA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6070,7 +6070,7 @@ packages: mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.5.0) + vite: 4.4.9(@types/node@20.5.4) transitivePeerDependencies: - '@types/node' - less @@ -6082,7 +6082,7 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.5.0): + /vite@4.4.9(@types/node@20.5.4): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6110,7 +6110,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.5.0 + '@types/node': 20.5.4 esbuild: 0.18.18 postcss: 8.4.27 rollup: 3.27.2 @@ -6118,7 +6118,7 @@ packages: fsevents: 2.3.2 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.0)(search-insights@2.7.0): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.4)(search-insights@2.7.0): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: @@ -6133,7 +6133,7 @@ packages: mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.3 - vite: 4.4.9(@types/node@20.5.0) + vite: 4.4.9(@types/node@20.5.4) vue: 3.3.4 transitivePeerDependencies: - '@algolia/client-search' @@ -6195,7 +6195,7 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 20.5.0 + '@types/node': 20.5.4 '@vitest/expect': 0.34.2 '@vitest/runner': 0.34.2 '@vitest/snapshot': 0.34.2 @@ -6215,8 +6215,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.0 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.5.0) - vite-node: 0.34.2(@types/node@20.5.0) + vite: 4.4.9(@types/node@20.5.4) + vite-node: 0.34.2(@types/node@20.5.4) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 3c839bf081f96bbf08796133714931f8a451f170 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sat, 26 Aug 2023 14:17:40 +0700 Subject: [PATCH 23/51] docs: add github sponsor link (#2347) --- docs/about/team/members.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/about/team/members.json b/docs/about/team/members.json index c5cfb6a9b18..9e05b9c4367 100644 --- a/docs/about/team/members.json +++ b/docs/about/team/members.json @@ -94,7 +94,10 @@ "name": "Matt Mayer", "title": "Contributor", "desc": "", - "links": [{ "icon": "github", "link": "https://github.com/matthewmayer" }] + "links": [ + { "icon": "github", "link": "https://github.com/matthewmayer" } + ], + "sponsor": "https://github.com/sponsors/matthewmayer" }, { "avatar": "https://github.com/pkuczynski.png", From f195e06905a8384965990e686440c3714976445c Mon Sep 17 00:00:00 2001 From: Robin van der Vliet Date: Sat, 26 Aug 2023 13:54:33 +0200 Subject: [PATCH 24/51] fix(location): Dutch postal codes can never start with '0' (#2326) --- src/locales/nl/location/postcode.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/locales/nl/location/postcode.ts b/src/locales/nl/location/postcode.ts index f888da9f585..9dbd36918ac 100644 --- a/src/locales/nl/location/postcode.ts +++ b/src/locales/nl/location/postcode.ts @@ -1 +1,11 @@ -export default ['#### ??']; +export default [ + '1### ??', + '2### ??', + '3### ??', + '4### ??', + '5### ??', + '6### ??', + '7### ??', + '8### ??', + '9### ??', +]; From e0d422a03f6b07134741dab4724f01456cecc0dc Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sat, 26 Aug 2023 19:08:11 +0700 Subject: [PATCH 25/51] docs: simplify localization docs (#2342) --- docs/guide/localization.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/localization.md b/docs/guide/localization.md index d8f454ce05a..df1aa0e04e0 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -4,11 +4,11 @@ Did you know Faker supports many different locales? When using our default instance `import { faker } from '@faker-js/faker'` you get English data. -However, we also provide pre-built instances for more than 50 other locales. +However, we also provide pre-built instances for [more than 60 available locales](#available-locales). -`import { fakerDE as faker } from '@faker-js/faker'` +For example, you can import the German locale: -See below for a list of available locales. +`import { fakerDE as faker } from '@faker-js/faker'` ::: tip Note You can also build your own Faker instances, with custom locales/overwrites. From b103c63e72738c0437e60519d735a4ee1936954d Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Sat, 26 Aug 2023 08:20:15 -0400 Subject: [PATCH 26/51] docs(guide): replace deprecated faker.name with faker.person (#2345) --- docs/guide/frameworks.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guide/frameworks.md b/docs/guide/frameworks.md index cd2a3a20698..e7151638b65 100644 --- a/docs/guide/frameworks.md +++ b/docs/guide/frameworks.md @@ -18,8 +18,8 @@ import { faker } from '@faker-js/faker/locale/en'; describe('reverse array', () => { it('should reverse the array', () => { - const title = faker.name.jobTitle(); - const name = faker.name.fullName(); + const title = faker.person.jobTitle(); + const name = faker.person.fullName(); const animal = faker.animal.bear(); const array = [title, name, animal]; @@ -36,7 +36,7 @@ These are especially useful in tests that are meant to be deterministic, such as - [Snapshots in Jest](https://jestjs.io/docs/snapshot-testing) ```ts -import { describe, it, expect } from 'vitest'; +import { afterEach, describe, it, expect } from 'vitest'; import { faker } from '@faker-js/faker/locale/en'; // We might want other tests to *not* be seeded. This will re-seed our faker instance after each test. @@ -48,8 +48,8 @@ describe('reverse array', () => { it('should reverse the array', () => { // Seed our faker instance with some static number. faker.seed(1234); - const title = faker.name.jobTitle(); - const name = faker.name.fullName(); + const title = faker.person.jobTitle(); + const name = faker.person.fullName(); const animal = faker.animal.bear(); const array = [title, name, animal]; From d91057ddfd36b15af783ab6bcb1d679cf5202347 Mon Sep 17 00:00:00 2001 From: Robin van der Vliet Date: Sat, 26 Aug 2023 14:35:01 +0200 Subject: [PATCH 27/51] feat(locale): add Esperanto (#2230) --- docs/guide/localization.md | 1 + src/locale/eo.ts | 13 + src/locale/index.ts | 3 + src/locales/eo/animal/bear.ts | 10 + src/locales/eo/animal/crocodilia.ts | 18 + src/locales/eo/animal/index.ts | 18 + src/locales/eo/animal/lion.ts | 9 + src/locales/eo/animal/type.ts | 15 + src/locales/eo/color/human.ts | 27 + src/locales/eo/color/index.ts | 12 + src/locales/eo/commerce/index.ts | 12 + src/locales/eo/commerce/product_name.ts | 68 +++ src/locales/eo/database/column.ts | 12 + src/locales/eo/database/index.ts | 12 + src/locales/eo/date/index.ts | 14 + src/locales/eo/date/month.ts | 31 + src/locales/eo/date/weekday.ts | 13 + src/locales/eo/hacker/adjective.ts | 27 + src/locales/eo/hacker/index.ts | 20 + src/locales/eo/hacker/ingverb.ts | 27 + src/locales/eo/hacker/noun.ts | 32 + src/locales/eo/hacker/phrase.ts | 11 + src/locales/eo/hacker/verb.ts | 27 + src/locales/eo/index.ts | 32 + src/locales/eo/location/city_pattern.ts | 4 + src/locales/eo/location/city_prefix.ts | 9 + src/locales/eo/location/city_suffix.ts | 18 + src/locales/eo/location/country.ts | 251 ++++++++ src/locales/eo/location/default_country.ts | 1 + src/locales/eo/location/direction.ts | 10 + src/locales/eo/location/direction_abbr.ts | 1 + src/locales/eo/location/index.ts | 34 ++ src/locales/eo/location/secondary_address.ts | 1 + src/locales/eo/location/street_address.ts | 4 + src/locales/eo/location/street_pattern.ts | 6 + src/locales/eo/location/street_prefix.ts | 23 + src/locales/eo/location/street_suffix.ts | 23 + src/locales/eo/metadata.ts | 12 + src/locales/eo/person/bio_part.ts | 102 ++++ src/locales/eo/person/bio_pattern.ts | 8 + src/locales/eo/person/female_first_name.ts | 92 +++ src/locales/eo/person/female_prefix.ts | 1 + src/locales/eo/person/first_name.ts | 5 + src/locales/eo/person/gender.ts | 27 + src/locales/eo/person/index.ts | 38 ++ src/locales/eo/person/last_name.ts | 106 ++++ src/locales/eo/person/last_name_pattern.ts | 4 + src/locales/eo/person/male_first_name.ts | 92 +++ src/locales/eo/person/male_prefix.ts | 1 + src/locales/eo/person/name.ts | 7 + src/locales/eo/person/prefix.ts | 5 + src/locales/eo/person/sex.ts | 1 + src/locales/eo/person/western_zodiac_sign.ts | 14 + src/locales/eo/science/chemicalElement.ts | 592 +++++++++++++++++++ src/locales/eo/science/index.ts | 14 + src/locales/eo/science/unit.ts | 118 ++++ src/locales/eo/vehicle/fuel.ts | 1 + src/locales/eo/vehicle/index.ts | 12 + src/locales/index.ts | 1 + test/all_functional.spec.ts | 1 + 60 files changed, 2103 insertions(+) create mode 100644 src/locale/eo.ts create mode 100644 src/locales/eo/animal/bear.ts create mode 100644 src/locales/eo/animal/crocodilia.ts create mode 100644 src/locales/eo/animal/index.ts create mode 100644 src/locales/eo/animal/lion.ts create mode 100644 src/locales/eo/animal/type.ts create mode 100644 src/locales/eo/color/human.ts create mode 100644 src/locales/eo/color/index.ts create mode 100644 src/locales/eo/commerce/index.ts create mode 100644 src/locales/eo/commerce/product_name.ts create mode 100644 src/locales/eo/database/column.ts create mode 100644 src/locales/eo/database/index.ts create mode 100644 src/locales/eo/date/index.ts create mode 100644 src/locales/eo/date/month.ts create mode 100644 src/locales/eo/date/weekday.ts create mode 100644 src/locales/eo/hacker/adjective.ts create mode 100644 src/locales/eo/hacker/index.ts create mode 100644 src/locales/eo/hacker/ingverb.ts create mode 100644 src/locales/eo/hacker/noun.ts create mode 100644 src/locales/eo/hacker/phrase.ts create mode 100644 src/locales/eo/hacker/verb.ts create mode 100644 src/locales/eo/index.ts create mode 100644 src/locales/eo/location/city_pattern.ts create mode 100644 src/locales/eo/location/city_prefix.ts create mode 100644 src/locales/eo/location/city_suffix.ts create mode 100644 src/locales/eo/location/country.ts create mode 100644 src/locales/eo/location/default_country.ts create mode 100644 src/locales/eo/location/direction.ts create mode 100644 src/locales/eo/location/direction_abbr.ts create mode 100644 src/locales/eo/location/index.ts create mode 100644 src/locales/eo/location/secondary_address.ts create mode 100644 src/locales/eo/location/street_address.ts create mode 100644 src/locales/eo/location/street_pattern.ts create mode 100644 src/locales/eo/location/street_prefix.ts create mode 100644 src/locales/eo/location/street_suffix.ts create mode 100644 src/locales/eo/metadata.ts create mode 100644 src/locales/eo/person/bio_part.ts create mode 100644 src/locales/eo/person/bio_pattern.ts create mode 100644 src/locales/eo/person/female_first_name.ts create mode 100644 src/locales/eo/person/female_prefix.ts create mode 100644 src/locales/eo/person/first_name.ts create mode 100644 src/locales/eo/person/gender.ts create mode 100644 src/locales/eo/person/index.ts create mode 100644 src/locales/eo/person/last_name.ts create mode 100644 src/locales/eo/person/last_name_pattern.ts create mode 100644 src/locales/eo/person/male_first_name.ts create mode 100644 src/locales/eo/person/male_prefix.ts create mode 100644 src/locales/eo/person/name.ts create mode 100644 src/locales/eo/person/prefix.ts create mode 100644 src/locales/eo/person/sex.ts create mode 100644 src/locales/eo/person/western_zodiac_sign.ts create mode 100644 src/locales/eo/science/chemicalElement.ts create mode 100644 src/locales/eo/science/index.ts create mode 100644 src/locales/eo/science/unit.ts create mode 100644 src/locales/eo/vehicle/fuel.ts create mode 100644 src/locales/eo/vehicle/index.ts diff --git a/docs/guide/localization.md b/docs/guide/localization.md index df1aa0e04e0..b3610c4d604 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -98,6 +98,7 @@ In this example there are 5 locales. Each of these is checked in order, and the | `en_NG` | English (Nigeria) | `fakerEN_NG` | | `en_US` | English (United States) | `fakerEN_US` | | `en_ZA` | English (South Africa) | `fakerEN_ZA` | +| `eo` | Esperanto | `fakerEO` | | `es` | Spanish | `fakerES` | | `es_MX` | Spanish (Mexico) | `fakerES_MX` | | `fa` | Farsi/Persian | `fakerFA` | diff --git a/src/locale/eo.ts b/src/locale/eo.ts new file mode 100644 index 00000000000..c2344b4caba --- /dev/null +++ b/src/locale/eo.ts @@ -0,0 +1,13 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ + +import { Faker } from '../faker'; +import base from '../locales/base'; +import en from '../locales/en'; +import eo from '../locales/eo'; + +export const faker = new Faker({ + locale: [eo, en, base], +}); diff --git a/src/locale/index.ts b/src/locale/index.ts index 54eb96d154c..c39d89d7f1f 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -27,6 +27,7 @@ import { faker as fakerEN_IN } from './en_IN'; import { faker as fakerEN_NG } from './en_NG'; import { faker as fakerEN_US } from './en_US'; import { faker as fakerEN_ZA } from './en_ZA'; +import { faker as fakerEO } from './eo'; import { faker as fakerES } from './es'; import { faker as fakerES_MX } from './es_MX'; import { faker as fakerFA } from './fa'; @@ -94,6 +95,7 @@ export { fakerEN_NG, fakerEN_US, fakerEN_ZA, + fakerEO, fakerES, fakerES_MX, fakerFA, @@ -162,6 +164,7 @@ export const allFakers = { en_NG: fakerEN_NG, en_US: fakerEN_US, en_ZA: fakerEN_ZA, + eo: fakerEO, es: fakerES, es_MX: fakerES_MX, fa: fakerFA, diff --git a/src/locales/eo/animal/bear.ts b/src/locales/eo/animal/bear.ts new file mode 100644 index 00000000000..66c4341ae02 --- /dev/null +++ b/src/locales/eo/animal/bear.ts @@ -0,0 +1,10 @@ +export default [ + 'amerika nigra urso', + 'azia nigra urso', + 'blanka urso', + 'bruna urso', + 'granda pando', + 'longlipa urso', + 'malaja urso', + 'okulvitra urso', +]; diff --git a/src/locales/eo/animal/crocodilia.ts b/src/locales/eo/animal/crocodilia.ts new file mode 100644 index 00000000000..58e3953ded3 --- /dev/null +++ b/src/locales/eo/animal/crocodilia.ts @@ -0,0 +1,18 @@ +export default [ + 'amerika krokodilo', + 'aŭstralia krokodilo', + 'ĉina aligatoro', + 'filipina krokodilo', + 'gavialo', + 'kuba krokodilo', + 'mara krokodilo', + 'marĉa krokodilo', + 'meksika krokodilo', + 'misisipa aligatoro', + 'nana krokodilo', + 'nigra kajmano', + 'nila krokodilo', + 'okcidentafrika krokodilo', + 'orinoka krokodilo', + 'siama krokodilo', +]; diff --git a/src/locales/eo/animal/index.ts b/src/locales/eo/animal/index.ts new file mode 100644 index 00000000000..c030ebf5573 --- /dev/null +++ b/src/locales/eo/animal/index.ts @@ -0,0 +1,18 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { AnimalDefinition } from '../../..'; +import bear from './bear'; +import crocodilia from './crocodilia'; +import lion from './lion'; +import type_ from './type'; + +const animal: AnimalDefinition = { + bear, + crocodilia, + lion, + type: type_, +}; + +export default animal; diff --git a/src/locales/eo/animal/lion.ts b/src/locales/eo/animal/lion.ts new file mode 100644 index 00000000000..6a6ea5ddd9e --- /dev/null +++ b/src/locales/eo/animal/lion.ts @@ -0,0 +1,9 @@ +export default [ + 'azia leono', + 'berbera leono', + 'kaba leono', + 'masaja leono', + 'okcidentafrika leono', + 'senegala leono', + 'transvala leono', +]; diff --git a/src/locales/eo/animal/type.ts b/src/locales/eo/animal/type.ts new file mode 100644 index 00000000000..43894e98bda --- /dev/null +++ b/src/locales/eo/animal/type.ts @@ -0,0 +1,15 @@ +export default [ + 'birdo', + 'bovo', + 'cetaco', + 'ĉevalo', + 'fiŝo', + 'hundo', + 'insekto', + 'kato', + 'krokodilulo', + 'kuniklo', + 'leono', + 'serpento', + 'urso', +]; diff --git a/src/locales/eo/color/human.ts b/src/locales/eo/color/human.ts new file mode 100644 index 00000000000..d9690767719 --- /dev/null +++ b/src/locales/eo/color/human.ts @@ -0,0 +1,27 @@ +export default [ + 'arĝenta', + 'blanka', + 'blua', + 'bruna', + 'cejana', + 'ebura', + 'flava', + 'griza', + 'indiga', + 'kakia', + 'lavenda', + 'lazura', + 'malva', + 'maĝenta', + 'nigra', + 'okra', + 'ora', + 'oranĝa', + 'purpura', + 'roza', + 'ruĝa', + 'sukcena', + 'turkisa', + 'verda', + 'viola', +]; diff --git a/src/locales/eo/color/index.ts b/src/locales/eo/color/index.ts new file mode 100644 index 00000000000..e7cf1e89436 --- /dev/null +++ b/src/locales/eo/color/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { ColorDefinition } from '../../..'; +import human from './human'; + +const color: ColorDefinition = { + human, +}; + +export default color; diff --git a/src/locales/eo/commerce/index.ts b/src/locales/eo/commerce/index.ts new file mode 100644 index 00000000000..84d972793ec --- /dev/null +++ b/src/locales/eo/commerce/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CommerceDefinition } from '../../..'; +import product_name from './product_name'; + +const commerce: CommerceDefinition = { + product_name, +}; + +export default commerce; diff --git a/src/locales/eo/commerce/product_name.ts b/src/locales/eo/commerce/product_name.ts new file mode 100644 index 00000000000..644bb0646d4 --- /dev/null +++ b/src/locales/eo/commerce/product_name.ts @@ -0,0 +1,68 @@ +export default { + adjective: [ + 'bela', + 'bona', + 'eleganta', + 'elektra', + 'ergonomia', + 'inteligenta', + 'luksa', + 'malaĉa', + 'malgranda', + 'manfarita', + 'mirinda', + 'moderna', + 'mojosa', + 'nekredebla', + 'oportuna', + 'ordinara', + 'populara', + 'praktika', + 'rafinita', + 'recikligita', + 'rustika', + 'senmarka', + 'tajlorita', + 'taŭga', + 'unika', + ], + material: [ + 'betona', + 'bronza', + 'ceramika', + 'freŝa', + 'frostigita', + 'granita', + 'kartona', + 'kaŭĉuka', + 'kotona', + 'ligna', + 'metala', + 'plasta', + 'ŝtala', + 'trikita', + 'vitra', + ], + product: [ + 'aŭto', + 'biciklo', + 'ĉapelo', + 'ĉemizo', + 'ekrano', + 'flago', + 'ganto', + 'klavaro', + 'komputilo', + 'mantuko', + 'muso', + 'nomŝildo', + 'pantalono', + 'pilko', + 'sako', + 'sapo', + 'seĝo', + 'ŝuo', + 'tablo', + 'valizo', + ], +}; diff --git a/src/locales/eo/database/column.ts b/src/locales/eo/database/column.ts new file mode 100644 index 00000000000..084ff296d07 --- /dev/null +++ b/src/locales/eo/database/column.ts @@ -0,0 +1,12 @@ +export default [ + 'identigilo', + 'titolo', + 'nomo', + 'telefonnumero', + 'grupo', + 'kategorio', + 'pasvorto', + 'komento', + 'profilbildo', + 'stato', +]; diff --git a/src/locales/eo/database/index.ts b/src/locales/eo/database/index.ts new file mode 100644 index 00000000000..181778e0ae6 --- /dev/null +++ b/src/locales/eo/database/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DatabaseDefinition } from '../../..'; +import column from './column'; + +const database: DatabaseDefinition = { + column, +}; + +export default database; diff --git a/src/locales/eo/date/index.ts b/src/locales/eo/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/eo/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/eo/date/month.ts b/src/locales/eo/date/month.ts new file mode 100644 index 00000000000..a886e6455f5 --- /dev/null +++ b/src/locales/eo/date/month.ts @@ -0,0 +1,31 @@ +export default { + wide: [ + 'januaro', + 'februaro', + 'marto', + 'aprilo', + 'majo', + 'junio', + 'julio', + 'aŭgusto', + 'septembro', + 'oktobro', + 'novembro', + 'decembro', + ], + + abbr: [ + 'jan', + 'feb', + 'mar', + 'apr', + 'maj', + 'jun', + 'jul', + 'aŭg', + 'sep', + 'okt', + 'nov', + 'dec', + ], +}; diff --git a/src/locales/eo/date/weekday.ts b/src/locales/eo/date/weekday.ts new file mode 100644 index 00000000000..7984fbb12c5 --- /dev/null +++ b/src/locales/eo/date/weekday.ts @@ -0,0 +1,13 @@ +export default { + wide: [ + 'dimanĉo', + 'lundo', + 'mardo', + 'merkredo', + 'ĵaŭdo', + 'vendredo', + 'sabato', + ], + + abbr: ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'], +}; diff --git a/src/locales/eo/hacker/adjective.ts b/src/locales/eo/hacker/adjective.ts new file mode 100644 index 00000000000..706284104f0 --- /dev/null +++ b/src/locales/eo/hacker/adjective.ts @@ -0,0 +1,27 @@ +export default [ + 'altkvalita', + 'aŭtomata', + 'bludenta', + 'cifereca', + 'ĉefa', + 'defaŭlta', + 'enreta', + 'helpa', + 'hibrida', + 'interna', + 'malfermitkoda', + 'nesinkrona', + 'neŭrona', + 'nuba', + 'optika', + 'plenekrana', + 'plurbajta', + 'plurplatforma', + 'portebla', + 'realtempa', + 'redunda', + 'sendrata', + 'solidstata', + 'universala', + 'virtuala', +]; diff --git a/src/locales/eo/hacker/index.ts b/src/locales/eo/hacker/index.ts new file mode 100644 index 00000000000..899f98b33ea --- /dev/null +++ b/src/locales/eo/hacker/index.ts @@ -0,0 +1,20 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { HackerDefinition } from '../../..'; +import adjective from './adjective'; +import ingverb from './ingverb'; +import noun from './noun'; +import phrase from './phrase'; +import verb from './verb'; + +const hacker: HackerDefinition = { + adjective, + ingverb, + noun, + phrase, + verb, +}; + +export default hacker; diff --git a/src/locales/eo/hacker/ingverb.ts b/src/locales/eo/hacker/ingverb.ts new file mode 100644 index 00000000000..c4b69b067f7 --- /dev/null +++ b/src/locales/eo/hacker/ingverb.ts @@ -0,0 +1,27 @@ +export default [ + 'analizado', + 'arĥivado', + 'bitigado', + 'densigado', + 'enigado', + 'generado', + 'indeksado', + 'interŝanĝado', + 'kalkulado', + 'kodrompado', + 'kodumado', + 'kompilado', + 'konektado', + 'kopiado', + 'muntado', + 'nuligado', + 'preterpasado', + 'programado', + 'restartigado', + 'savkopiado', + 'sinkronigado', + 'sintezado', + 'transpasado', + 'transsendado', + 'validigado', +]; diff --git a/src/locales/eo/hacker/noun.ts b/src/locales/eo/hacker/noun.ts new file mode 100644 index 00000000000..7185c65e7e3 --- /dev/null +++ b/src/locales/eo/hacker/noun.ts @@ -0,0 +1,32 @@ +export default [ + 'alarmo', + 'aplikaĵo', + 'bendlarĝo', + 'buso', + 'cirkvito', + 'datumbazo', + 'datumcentro', + 'disko', + 'dosiero', + 'ekrano', + 'fajroŝirmilo', + 'fluo', + 'interfaco', + 'karto', + 'kondensilo', + 'konektilo', + 'konektingo', + 'konekto', + 'matrico', + 'operaciumo', + 'panelo', + 'pelilo', + 'programo', + 'protokolo', + 'rastrumero', + 'reto', + 'sentilo', + 'servilo', + 'sistemo', + 'transsendilo', +]; diff --git a/src/locales/eo/hacker/phrase.ts b/src/locales/eo/hacker/phrase.ts new file mode 100644 index 00000000000..4d3a8b35a6c --- /dev/null +++ b/src/locales/eo/hacker/phrase.ts @@ -0,0 +1,11 @@ +export default [ + 'Se ni povus {{verb}} la {{noun}}n, ni povus aliri la {{abbreviation}}-{{noun}}n per la {{adjective}} {{abbreviation}}-{{noun}}!', + 'Ni devas {{verb}} la {{adjective}}n {{abbreviation}}-{{noun}}n!', + 'Provu {{verb}} la {{abbreviation}}-{{noun}}n, eble ni sukcesos {{verb}} la {{adjective}}n {{noun}}n!', + 'Vi ne povas {{verb}} la {{noun}}n sen {{ingverb}} de la {{adjective}} {{abbreviation}}-{{noun}}!', + 'Uzu la {{adjective}}n {{abbreviation}}-{{noun}}n, poste vi povos {{verb}} la {{adjective}}n {{noun}}n!', + 'La {{abbreviation}}-{{noun}} ne funkcias, provu {{verb}} la {{adjective}}n {{noun}}n, por ke ni povu {{verb}} la {{abbreviation}}-{{noun}}n!', + 'Ne funkcios {{ingverb}} de la {{noun}}, ni devas {{verb}} la {{adjective}}n {{abbreviation}}-{{noun}}n!', + 'Mi provos {{verb}} la {{adjective}}n {{abbreviation}}-{{noun}}n, tio devus {{verb}} la {{abbreviation}}-{{noun}}n!', + 'Ne gravas, se ni ne povus {{verb}} la {{noun}}n, ni devas nur {{verb}} la {{adjective}}n {{abbreviation}}-{{noun}}!', +]; diff --git a/src/locales/eo/hacker/verb.ts b/src/locales/eo/hacker/verb.ts new file mode 100644 index 00000000000..82557c8d774 --- /dev/null +++ b/src/locales/eo/hacker/verb.ts @@ -0,0 +1,27 @@ +export default [ + 'analizi', + 'arĥivi', + 'bitigi', + 'densigi', + 'enigi', + 'generi', + 'indeksi', + 'interŝanĝi', + 'kalkuli', + 'kodrompi', + 'kodumi', + 'kompili', + 'konekti', + 'kopii', + 'munti', + 'nuligi', + 'preterpasi', + 'programi', + 'restartigi', + 'savkopii', + 'sinkronigi', + 'sintezi', + 'transpasi', + 'transsendi', + 'validigi', +]; diff --git a/src/locales/eo/index.ts b/src/locales/eo/index.ts new file mode 100644 index 00000000000..83141fb2217 --- /dev/null +++ b/src/locales/eo/index.ts @@ -0,0 +1,32 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocaleDefinition } from '../..'; +import animal from './animal'; +import color from './color'; +import commerce from './commerce'; +import database from './database'; +import date from './date'; +import hacker from './hacker'; +import location from './location'; +import metadata from './metadata'; +import person from './person'; +import science from './science'; +import vehicle from './vehicle'; + +const eo: LocaleDefinition = { + animal, + color, + commerce, + database, + date, + hacker, + location, + metadata, + person, + science, + vehicle, +}; + +export default eo; diff --git a/src/locales/eo/location/city_pattern.ts b/src/locales/eo/location/city_pattern.ts new file mode 100644 index 00000000000..b8f541f2bca --- /dev/null +++ b/src/locales/eo/location/city_pattern.ts @@ -0,0 +1,4 @@ +export default [ + '{{location.city_prefix}} {{person.first_name}}{{location.city_suffix}}', + '{{person.first_name}}{{location.city_suffix}}', +]; diff --git a/src/locales/eo/location/city_prefix.ts b/src/locales/eo/location/city_prefix.ts new file mode 100644 index 00000000000..9406c8740fc --- /dev/null +++ b/src/locales/eo/location/city_prefix.ts @@ -0,0 +1,9 @@ +export default [ + 'Norda', + 'Orienta', + 'Suda', + 'Okcidenta', + 'Bona', + 'Nova', + 'Malnova', +]; diff --git a/src/locales/eo/location/city_suffix.ts b/src/locales/eo/location/city_suffix.ts new file mode 100644 index 00000000000..7e327083b98 --- /dev/null +++ b/src/locales/eo/location/city_suffix.ts @@ -0,0 +1,18 @@ +export default [ + 'burgo', + 'damo', + 'fildo', + 'forto', + 'fuorto', + 'grado', + 'haveno', + 'porto', + 'stado', + 'ŝiro', + 'urbo', + 'valo', + 'viko', + 'vilao', + 'vilaĝo', + 'vilo', +]; diff --git a/src/locales/eo/location/country.ts b/src/locales/eo/location/country.ts new file mode 100644 index 00000000000..f2da1c2a990 --- /dev/null +++ b/src/locales/eo/location/country.ts @@ -0,0 +1,251 @@ +export default [ + 'Afganio', + 'Alando', + 'Albanio', + 'Alĝerio', + 'Andoro', + 'Angolo', + 'Angvilo', + 'Antarkto', + 'Antigvo kaj Barbudo', + 'Argentino', + 'Armenio', + 'Arubo', + 'Aŭstralio', + 'Aŭstrio', + 'Azerbajĝano', + 'Bahamoj', + 'Bangladeŝo', + 'Barato', + 'Barbado', + 'Barejno', + 'Belgio', + 'Belizo', + 'Belorusio', + 'Benino', + 'Bermudo', + 'Bocvano', + 'Bolivio', + 'Bosnio kaj Hercegovino', + 'Brazilo', + 'Brita Hindoceana Teritorio', + 'Britaj Virgulinsuloj', + 'Brunejo', + 'Bulgario', + 'Burkino', + 'Burundo', + 'Butano', + 'Buvet-Insulo', + 'Ĉado', + 'Ĉeĥio', + 'Centr-Afrika Respubliko', + 'Ĉilio', + 'Ĉinio', + 'Danio', + 'Dominika Respubliko', + 'Dominiko', + 'Ebur-Bordo', + 'Egiptio', + 'Ekvadoro', + 'Ekvatora Gvineo', + 'Eritreo', + 'Estonio', + 'Etiopio', + 'Falklandaj Insuloj', + 'Ferooj', + 'Fiĝioj', + 'Filipinoj', + 'Finnlando', + 'Franca Gujano', + 'Franca Polinezio', + 'Francaj Sudaj kaj Antarktaj Teritorioj', + 'Francio', + 'Gabono', + 'Gambio', + 'Ganao', + 'Germanio', + 'Ĝibraltaro', + 'Ĝibutio', + 'Grekio', + 'Grenado', + 'Gronlando', + 'Gujano', + 'Gvadelupo', + 'Gvamo', + 'Gvatemalo', + 'Gvernsejo', + 'Gvineo', + 'Gvineo-Bisaŭo', + 'Haitio', + 'Herda kaj Makdonaldaj Insuloj', + 'Hispanio', + 'Honduro', + 'Honkongo', + 'Hungario', + 'Indonezio', + 'Irako', + 'Irano', + 'Irlando', + 'Islando', + 'Israelo', + 'Italio', + 'Jamajko', + 'Japanio', + 'Jemeno', + 'Ĵersejo', + 'Jordanio', + 'Kaboverdo', + 'Kajmaninsuloj', + 'Kamboĝo', + 'Kameruno', + 'Kanado', + 'Kariba Nederlando', + 'Kartvelio', + 'Kataro', + 'Kazaĥio', + 'Kenjo', + 'Kipro', + 'Kirgizio', + 'Kiribato', + 'Kokosinsuloj', + 'Kolombio', + 'Komoroj', + 'Kongo Brazavila', + 'Kongo Kinŝasa', + 'Kostariko', + 'Kristnaskinsulo', + 'Kroatio', + 'Kubo', + 'Kukinsuloj', + 'Kuracao', + 'Kuvajto', + 'Laoso', + 'Latvio', + 'Lesoto', + 'Libano', + 'Liberio', + 'Libio', + 'Liĥtenŝtejno', + 'Litovio', + 'Luksemburgo', + 'Madagaskaro', + 'Majoto', + 'Makao', + 'Malajzio', + 'Malavio', + 'Maldivoj', + 'Malio', + 'Malto', + 'Manksinsulo', + 'Maroko', + 'Marŝalaj Insuloj', + 'Martiniko', + 'Maŭricio', + 'Maŭritanio', + 'Meksiko', + 'Mikronezio', + 'Mjanmao', + 'Moldavio', + 'Monako', + 'Moncerato', + 'Mongolio', + 'Montenegro', + 'Mozambiko', + 'Namibio', + 'Nauro', + 'Nederlando', + 'Nepalo', + 'Niĝerio', + 'Niĝero', + 'Nikaragvo', + 'Niuo', + 'Nord-Koreio', + 'Nord-Makedonio', + 'Nord-Marianoj', + 'Norfolkinsulo', + 'Norvegio', + 'Nov-Kaledonio', + 'Nov-Zelando', + 'Okcidenta Saharo', + 'Omano', + 'Orienta Timoro', + 'Pakistano', + 'Palaŭo', + 'Palestino', + 'Panamo', + 'Papuo-Nov-Gvineo', + 'Paragvajo', + 'Peruo', + 'Pitkarna Insularo', + 'Pollando', + 'Portugalio', + 'Puertoriko', + 'Reunio', + 'Ruando', + 'Rumanio', + 'Rusio', + 'Salomonoj', + 'Salvadoro', + 'Samoo', + 'Sankta Bartolomeo', + 'Sankta Heleno', + 'Sankta Kristoforo kaj Neviso', + 'Sankta Lucio', + 'Sankta Marteno (franca)', + 'Sankta Marteno (nederlanda)', + 'Sankta Piero kaj Mikelono', + 'Sankta Vincento kaj Grenadinoj', + 'Sanmarino', + 'Santomeo kaj Principeo', + 'Sauda Arabio', + 'Sejŝeloj', + 'Senegalo', + 'Serbio', + 'Sieraleono', + 'Singapuro', + 'Sirio', + 'Slovakio', + 'Slovenio', + 'Somalio', + 'Srilanko', + 'Sud-Afriko', + 'Sud-Georgio kaj Sud-Sandviĉinsuloj', + 'Sud-Koreio', + 'Sud-Sudano', + 'Sudano', + 'Surinamo', + 'Svalbardo kaj Janmajeno', + 'Svazilando', + 'Svedio', + 'Svislando', + 'Taĝikio', + 'Tajlando', + 'Tajvano', + 'Tanzanio', + 'Togolando', + 'Tokelao', + 'Tongo', + 'Trinidado kaj Tobago', + 'Tunizio', + 'Turkio', + 'Turkmenio', + 'Turkoj kaj Kajkoj', + 'Tuvalo', + 'Ugando', + 'Ukrainio', + 'Unuiĝinta Reĝlando', + 'Unuiĝintaj Arabaj Emirlandoj', + 'Urugvajo', + 'Usona Samoo', + 'Usonaj Malgrandaj Insuloj', + 'Usonaj Virgulinsuloj', + 'Usono', + 'Uzbekio', + 'Valiso kaj Futuno', + 'Vanuatuo', + 'Vatikano', + 'Venezuelo', + 'Vjetnamio', + 'Zambio', + 'Zimbabvo', +]; diff --git a/src/locales/eo/location/default_country.ts b/src/locales/eo/location/default_country.ts new file mode 100644 index 00000000000..d59f7c9dfde --- /dev/null +++ b/src/locales/eo/location/default_country.ts @@ -0,0 +1 @@ +export default ['Esperantujo']; diff --git a/src/locales/eo/location/direction.ts b/src/locales/eo/location/direction.ts new file mode 100644 index 00000000000..49d1a497ceb --- /dev/null +++ b/src/locales/eo/location/direction.ts @@ -0,0 +1,10 @@ +export default [ + 'nordo', + 'oriento', + 'sudo', + 'okcidento', + 'nordoriento', + 'nordokcidenta', + 'sudoriento', + 'sudokcidento', +]; diff --git a/src/locales/eo/location/direction_abbr.ts b/src/locales/eo/location/direction_abbr.ts new file mode 100644 index 00000000000..9f677a368cf --- /dev/null +++ b/src/locales/eo/location/direction_abbr.ts @@ -0,0 +1 @@ +export default ['N', 'E', 'S', 'U', 'NE', 'NU', 'SE', 'SU']; diff --git a/src/locales/eo/location/index.ts b/src/locales/eo/location/index.ts new file mode 100644 index 00000000000..d1f731a1584 --- /dev/null +++ b/src/locales/eo/location/index.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocationDefinition } from '../../..'; +import city_pattern from './city_pattern'; +import city_prefix from './city_prefix'; +import city_suffix from './city_suffix'; +import country from './country'; +import default_country from './default_country'; +import direction from './direction'; +import direction_abbr from './direction_abbr'; +import secondary_address from './secondary_address'; +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 = { + city_pattern, + city_prefix, + city_suffix, + country, + default_country, + direction, + direction_abbr, + secondary_address, + street_address, + street_pattern, + street_prefix, + street_suffix, +}; + +export default location; diff --git a/src/locales/eo/location/secondary_address.ts b/src/locales/eo/location/secondary_address.ts new file mode 100644 index 00000000000..3ce9ac95fa8 --- /dev/null +++ b/src/locales/eo/location/secondary_address.ts @@ -0,0 +1 @@ +export default ['apartamento ###', 'ĉambro ###']; diff --git a/src/locales/eo/location/street_address.ts b/src/locales/eo/location/street_address.ts new file mode 100644 index 00000000000..437f20dd91a --- /dev/null +++ b/src/locales/eo/location/street_address.ts @@ -0,0 +1,4 @@ +export default { + normal: '{{location.street}} {{location.buildingNumber}}', + full: '{{location.street}} {{location.buildingNumber}} {{location.secondaryAddress}}', +}; diff --git a/src/locales/eo/location/street_pattern.ts b/src/locales/eo/location/street_pattern.ts new file mode 100644 index 00000000000..e867b223b5a --- /dev/null +++ b/src/locales/eo/location/street_pattern.ts @@ -0,0 +1,6 @@ +export default [ + '{{location.street_prefix}} de {{person.first_name}}', + '{{location.street_prefix}} de {{person.last_name}}', + '{{person.first_name}}{{location.street_suffix}}', + '{{location.city_prefix}} {{person.first_name}}{{location.street_suffix}}', +]; diff --git a/src/locales/eo/location/street_prefix.ts b/src/locales/eo/location/street_prefix.ts new file mode 100644 index 00000000000..7c8f16031c6 --- /dev/null +++ b/src/locales/eo/location/street_prefix.ts @@ -0,0 +1,23 @@ +// This list contains the same words as 'street_suffix.ts', but starting with uppercase letters. + +export default [ + 'Aleo', + 'Arbaro', + 'Avenuo', + 'Bulvardo', + 'Digo', + 'Ĝardeno', + 'Insulo', + 'Kampo', + 'Klifo', + 'Lago', + 'Monto', + 'Parko', + 'Placo', + 'Ponto', + 'Rivero', + 'Strato', + 'Tunelo', + 'Viadukto', + 'Vojo', +]; diff --git a/src/locales/eo/location/street_suffix.ts b/src/locales/eo/location/street_suffix.ts new file mode 100644 index 00000000000..07d4dd3bd99 --- /dev/null +++ b/src/locales/eo/location/street_suffix.ts @@ -0,0 +1,23 @@ +// This list contains the same words as 'street_prefix.ts', but starting with lowercase letters. + +export default [ + 'aleo', + 'arbaro', + 'avenuo', + 'bulvardo', + 'digo', + 'ĝardeno', + 'insulo', + 'kampo', + 'klifo', + 'lago', + 'monto', + 'parko', + 'placo', + 'ponto', + 'rivero', + 'strato', + 'tunelo', + 'viadukto', + 'vojo', +]; diff --git a/src/locales/eo/metadata.ts b/src/locales/eo/metadata.ts new file mode 100644 index 00000000000..faccaefb271 --- /dev/null +++ b/src/locales/eo/metadata.ts @@ -0,0 +1,12 @@ +import type { PreBuiltMetadataDefinition } from '../../definitions/metadata'; + +const metadata: PreBuiltMetadataDefinition = { + title: 'Esperanto', + code: 'eo', + language: 'eo', + endonym: 'Esperanto', + dir: 'ltr', + script: 'Latn', +}; + +export default metadata; diff --git a/src/locales/eo/person/bio_part.ts b/src/locales/eo/person/bio_part.ts new file mode 100644 index 00000000000..2457a2c2fde --- /dev/null +++ b/src/locales/eo/person/bio_part.ts @@ -0,0 +1,102 @@ +export default [ + 'aktivulo', + 'aktoro', + 'akuŝisto', + 'amiko', + 'artisto', + 'astronomo', + 'aŭtoro', + 'bakisto', + 'biciklisto', + 'bloganto', + 'ĉokoladisto', + 'dancisto', + 'dentisto', + 'desegnisto', + 'dezajnisto', + 'dietisto', + 'diplomato', + 'direktoro', + 'edukisto', + 'ekologo', + 'eldonisto', + 'entreprenisto', + 'esperantisto', + 'esploristo', + 'estrarano', + 'farbisto', + 'fervojisto', + 'filmamanto', + 'filmisto', + 'filozofo', + 'fizikisto', + 'fondinto', + 'fotisto', + 'gepatro', + 'gimnasto', + 'ginekologo', + 'gitaristo', + 'GLAT-ulo', + 'gvidanto', + 'ĥemiisto', + 'ĥirurgo', + 'idisto', + 'inĝeniero', + 'instruisto', + 'inventinto', + 'ĵurnalisto', + 'kantisto', + 'kasisto', + 'komercisto', + 'komitatano', + 'kreanto', + 'kuiristo', + 'kuracisto', + 'laboristo', + 'leganto', + 'lingvisto', + 'ludanto', + 'manlaboristo', + 'maristo', + 'matematikisto', + 'modelo', + 'muzikisto', + 'nerdo', + 'novulo', + 'oficisto', + 'okulkuracisto', + 'parolanto', + 'patrioto', + 'pensiulo', + 'pentristo', + 'pianisto', + 'poligloto', + 'politikisto', + 'poŝtisto', + 'presisto', + 'prezidanto', + 'programisto', + 'psikologo', + 'revulo', + 'sciencisto', + 'sekretario', + 'senlaborulo', + 'staĝanto', + 'stenografisto', + 'studento', + 'tabloludanto', + 'terapiisto', + 'terkulturisto', + 'trejnisto', + 'urbestro', + 'vartisto', + 'vendisto', + 'verdulo', + 'verkisto', + 'veterano', + 'videobloganto', + 'videoludanto', + 'vojaĝanto', + 'volapukisto', + 'volontulo', +]; diff --git a/src/locales/eo/person/bio_pattern.ts b/src/locales/eo/person/bio_pattern.ts new file mode 100644 index 00000000000..59668efc6f1 --- /dev/null +++ b/src/locales/eo/person/bio_pattern.ts @@ -0,0 +1,8 @@ +export default [ + '{{person.bio_part}}', + '{{person.bio_part}} {{internet.emoji}}', + '{{person.bio_part}}, {{person.bio_part}}', + '{{person.bio_part}}, {{person.bio_part}} {{internet.emoji}}', + '{{person.bio_part}}, {{person.bio_part}}, {{person.bio_part}}', + '{{person.bio_part}}, {{person.bio_part}}, {{person.bio_part}} {{internet.emoji}}', +]; diff --git a/src/locales/eo/person/female_first_name.ts b/src/locales/eo/person/female_first_name.ts new file mode 100644 index 00000000000..48cde0b90ea --- /dev/null +++ b/src/locales/eo/person/female_first_name.ts @@ -0,0 +1,92 @@ +export default [ + 'Agripino', + 'Albertino', + 'Alcestiso', + 'Alekso', + 'Alfonsino', + 'Alico', + 'Amalio', + 'Anastazio', + 'Angelino', + 'Anno', + 'Aŭgustino', + 'Baŭcido', + 'Beatrico', + 'Berenico', + 'Berto', + 'Brigito', + 'Ĉarloto', + 'Cecilio', + 'Doroteo', + 'Eleonoro', + 'Elizabeto', + 'Elizo', + 'Emilio', + 'Ernestino', + 'Evelino', + 'Evo', + 'Fatimo', + 'Filipino', + 'Gertrudo', + 'Gustavino', + 'Hedvigo', + 'Heleno', + 'Henrieto', + 'Hermiono', + 'Ĥimeno', + 'Ilzo', + 'Ireno', + 'Izoldo', + 'Jakelino', + 'Jakobino', + 'Janjo', + 'Johanino', + 'Joŝiko', + 'Jozefino', + 'Judito', + 'Julieto', + 'Juliino', + 'Karmeno', + 'Karolino', + 'Katerino', + 'Klanjo', + 'Klaro', + 'Klaŭdino', + 'Klementino', + 'Kleopatro', + 'Klitemnestro', + 'Klotildo', + 'Kreuzo', + 'Krimhildo', + 'Kristino', + 'Ksantipo', + 'Laŭro', + 'Leopoldino', + 'Lilio', + 'Ludovikino', + 'Magdaleno', + 'Malvino', + 'Manjo', + 'Margareto', + 'Marinjo', + 'Mario', + 'Miriamo', + 'Mirto', + 'Moniko', + 'Olimpio', + 'Paŭlino', + 'Perpetuo', + 'Raĥelo', + 'Rebeko', + 'Rozo', + 'Sabino', + 'Sofinjo', + 'Sofio', + 'Sonjo', + 'Stefanino', + 'Susano', + 'Terezo', + 'Ursulo', + 'Veroniko', + 'Vilhelmino', +]; diff --git a/src/locales/eo/person/female_prefix.ts b/src/locales/eo/person/female_prefix.ts new file mode 100644 index 00000000000..4571e0e8a25 --- /dev/null +++ b/src/locales/eo/person/female_prefix.ts @@ -0,0 +1 @@ +export default ['s-ino', 'd-ro', 'd-ino', 'prof.']; diff --git a/src/locales/eo/person/first_name.ts b/src/locales/eo/person/first_name.ts new file mode 100644 index 00000000000..3c787970a71 --- /dev/null +++ b/src/locales/eo/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/eo/person/gender.ts b/src/locales/eo/person/gender.ts new file mode 100644 index 00000000000..1eafc86b051 --- /dev/null +++ b/src/locales/eo/person/gender.ts @@ -0,0 +1,27 @@ +export default [ + 'androgino', + 'cisgenra virino', + 'cisgenra viro', + 'cisgenrulo', + 'cisulo', + 'cisvirino', + 'cisviro', + 'dugenrulo', + 'duspiritulo', + 'genrokviro', + 'hiĝro', + 'interseksulo', + 'kviro', + 'neduumulo', + 'sengenrulo', + 'transgenra virino', + 'transgenra viro', + 'transgenrulo', + 'transulo', + 'transvirino', + 'transviro', + 'travesĉio', + 'trigenrulo', + 'virino', + 'viro', +]; diff --git a/src/locales/eo/person/index.ts b/src/locales/eo/person/index.ts new file mode 100644 index 00000000000..3abc78603a1 --- /dev/null +++ b/src/locales/eo/person/index.ts @@ -0,0 +1,38 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { PersonDefinition } from '../../..'; +import bio_part from './bio_part'; +import bio_pattern from './bio_pattern'; +import female_first_name from './female_first_name'; +import female_prefix from './female_prefix'; +import first_name from './first_name'; +import gender from './gender'; +import last_name from './last_name'; +import last_name_pattern from './last_name_pattern'; +import male_first_name from './male_first_name'; +import male_prefix from './male_prefix'; +import name_ from './name'; +import prefix from './prefix'; +import sex from './sex'; +import western_zodiac_sign from './western_zodiac_sign'; + +const person: PersonDefinition = { + bio_part, + bio_pattern, + female_first_name, + female_prefix, + first_name, + gender, + last_name, + last_name_pattern, + male_first_name, + male_prefix, + name: name_, + prefix, + sex, + western_zodiac_sign, +}; + +export default person; diff --git a/src/locales/eo/person/last_name.ts b/src/locales/eo/person/last_name.ts new file mode 100644 index 00000000000..d10e0edd0b5 --- /dev/null +++ b/src/locales/eo/person/last_name.ts @@ -0,0 +1,106 @@ +// Esperanto has a diverse community of speakers, so rather than using the English-only fallback list, +// we chose to use the family names of deceased people who were important to Esperanto and its community. +// The list contains 100 family names from several languages. + +export default [ + 'Atanasov', + 'Auld', + 'Aymonier', + 'Baghy', + 'Bailey', + 'Bastien', + 'Beauchemin', + 'Becker', + 'Bein', + 'Bennemann', + 'Bicknell', + 'Boirac', + 'Boulton', + 'Bourlet', + 'Bouwes', + 'Bulthuis', + 'Cart', + 'Cederblad', + 'Christaller', + 'Corret', + 'Cseh', + 'Dirksen', + 'Dor', + 'Droogendijk', + 'Elb', + 'Ellis', + 'Enderby', + 'Engholm', + 'Evstifejev', + 'Frenkel', + 'Gasse', + 'Geurts', + 'Grabowski', + 'Grosjean', + 'Hermelin', + 'Hideo', + 'Hodler', + 'Holmes', + 'Huet', + 'Isbrücker', + 'Junck', + 'Kalocsay', + 'Kotzin', + 'Krijt', + 'Kriss', + 'Kühnl', + 'Kürsteiner', + 'Lagrange', + 'Lapenna', + 'Lengyel', + 'Liniger', + 'Lippmann', + 'Luyken', + 'Makkink', + 'Malmgren', + 'Matton', + 'Meyer', + 'Migliorini', + 'Millidge', + 'Milsom', + 'Mirski', + 'Moscheles', + 'Motteau', + 'Mudie', + 'Mybs', + 'Noël', + 'Nourmont', + 'Nylén', + 'Pikover', + 'Piron', + 'Pollen', + 'Privat', + 'Renard', + 'Rhodes', + 'Riisberg', + 'Rittenberg', + 'Rossetti', + 'Sabadell', + 'Schafer', + 'Schleyer', + 'Schmid', + 'Schmidt', + 'Schröder', + 'Schulz', + 'Schwartz', + 'Setälä', + 'Simon', + 'Sofer', + 'Stamatiadis', + 'Stettler', + 'Sturmer', + 'Thisell', + 'Uitterdijk', + 'Vallienne', + 'Verax', + 'Villanueva', + 'Wackrill', + 'Zaleski', + 'Zamenhof', + 'Zimmermann', +]; diff --git a/src/locales/eo/person/last_name_pattern.ts b/src/locales/eo/person/last_name_pattern.ts new file mode 100644 index 00000000000..2676cc52d5d --- /dev/null +++ b/src/locales/eo/person/last_name_pattern.ts @@ -0,0 +1,4 @@ +export default [ + { value: '{{person.last_name}}', weight: 95 }, + { value: '{{person.last_name}}-{{person.last_name}}', weight: 5 }, +]; diff --git a/src/locales/eo/person/male_first_name.ts b/src/locales/eo/person/male_first_name.ts new file mode 100644 index 00000000000..b7df56187b0 --- /dev/null +++ b/src/locales/eo/person/male_first_name.ts @@ -0,0 +1,92 @@ +export default [ + 'Abrahamo', + 'Adolfo', + 'Aleksandro', + 'Alekso', + 'Alfredo', + 'Andreo', + 'Anĝelo', + 'Antono', + 'Arturo', + 'Aŭguĉjo', + 'Bartolomeo', + 'Bertilo', + 'Bruno', + 'Dagoberto', + 'Danielo', + 'Donaldo', + 'Edgaro', + 'Eduardo', + 'Emiliano', + 'Erneĉjo', + 'Ernesto', + 'Ferdinando', + 'Fernando', + 'Francisko', + 'Frederiko', + 'Gabrielo', + 'Gastono', + 'Georgo', + 'Gilberto', + 'Gustavo', + 'Hasano', + 'Hektoro', + 'Huberto', + 'Hugo', + 'Iŝmaelo', + 'Ivano', + 'Ivo', + 'Izako', + 'Jakobo', + 'Jano', + 'Ĵeromo', + 'Joakimo', + 'Joĉjo', + 'Johanĉjo', + 'Johano', + 'Jonatano', + 'Josuo', + 'Jozefo', + 'Justeno', + 'Karlo', + 'Karolo', + 'Klaŭdo', + 'Knuto', + 'Lamberto', + 'Laŭrenco', + 'Leono', + 'Leopoldo', + 'Ludoviko', + 'Luko', + 'Maksimo', + 'Makso', + 'Marko', + 'Marteno', + 'Mateo', + 'Miĉjo', + 'Moseo', + 'Muhamado', + 'Nikolao', + 'Nikolĉjo', + 'Noaĥo', + 'Oskaro', + 'Osvaldo', + 'Pablo', + 'Patriko', + 'Petro', + 'Rafaelo', + 'Roberto', + 'Rolando', + 'Rudolfo', + 'Samuelo', + 'Sebastiano', + 'Simono', + 'Stanislao', + 'Stefano', + 'Tiberio', + 'Tomaso', + 'Viktoro', + 'Vilĉjo', + 'Vilhelmo', + 'Vladimiro', +]; diff --git a/src/locales/eo/person/male_prefix.ts b/src/locales/eo/person/male_prefix.ts new file mode 100644 index 00000000000..6f835151153 --- /dev/null +++ b/src/locales/eo/person/male_prefix.ts @@ -0,0 +1 @@ +export default ['s-ro', 'd-ro', 'prof.']; diff --git a/src/locales/eo/person/name.ts b/src/locales/eo/person/name.ts new file mode 100644 index 00000000000..4bc2ba83ee4 --- /dev/null +++ b/src/locales/eo/person/name.ts @@ -0,0 +1,7 @@ +export default [ + { value: '{{person.firstName}} {{person.lastName}}', weight: 7 }, + { + value: '{{person.prefix}} {{person.firstName}} {{person.lastName}}', + weight: 1, + }, +]; diff --git a/src/locales/eo/person/prefix.ts b/src/locales/eo/person/prefix.ts new file mode 100644 index 00000000000..cb1d846e0d6 --- /dev/null +++ b/src/locales/eo/person/prefix.ts @@ -0,0 +1,5 @@ +import { mergeArrays } from './../../../internal/merge'; +import female_prefix from './female_prefix'; +import male_prefix from './male_prefix'; + +export default mergeArrays(female_prefix, male_prefix); diff --git a/src/locales/eo/person/sex.ts b/src/locales/eo/person/sex.ts new file mode 100644 index 00000000000..cb02ae1eae6 --- /dev/null +++ b/src/locales/eo/person/sex.ts @@ -0,0 +1 @@ +export default ['vira', 'ina']; diff --git a/src/locales/eo/person/western_zodiac_sign.ts b/src/locales/eo/person/western_zodiac_sign.ts new file mode 100644 index 00000000000..950ae722e33 --- /dev/null +++ b/src/locales/eo/person/western_zodiac_sign.ts @@ -0,0 +1,14 @@ +export default [ + 'Akvisto', + 'Fiŝoj', + 'Ŝafo', + 'Bovo', + 'Ĝemeloj', + 'Kankro', + 'Leono', + 'Virgulo', + 'Pesilo', + 'Skorpio', + 'Pafisto', + 'Kaprikorno', +]; diff --git a/src/locales/eo/science/chemicalElement.ts b/src/locales/eo/science/chemicalElement.ts new file mode 100644 index 00000000000..33736ed5893 --- /dev/null +++ b/src/locales/eo/science/chemicalElement.ts @@ -0,0 +1,592 @@ +export default Object.freeze([ + { + symbol: 'H', + name: 'hidrogeno', + atomicNumber: 1, + }, + { + symbol: 'He', + name: 'heliumo', + atomicNumber: 2, + }, + { + symbol: 'Li', + name: 'litio', + atomicNumber: 3, + }, + { + symbol: 'Be', + name: 'berilio', + atomicNumber: 4, + }, + { + symbol: 'B', + name: 'boro', + atomicNumber: 5, + }, + { + symbol: 'C', + name: 'karbono', + atomicNumber: 6, + }, + { + symbol: 'N', + name: 'nitrogeno', + atomicNumber: 7, + }, + { + symbol: 'O', + name: 'oksigeno', + atomicNumber: 8, + }, + { + symbol: 'F', + name: 'fluoro', + atomicNumber: 9, + }, + { + symbol: 'Ne', + name: 'neono', + atomicNumber: 10, + }, + { + symbol: 'Na', + name: 'natrio', + atomicNumber: 11, + }, + { + symbol: 'Mg', + name: 'magnezio', + atomicNumber: 12, + }, + { + symbol: 'Al', + name: 'aluminio', + atomicNumber: 13, + }, + { + symbol: 'Si', + name: 'silicio', + atomicNumber: 14, + }, + { + symbol: 'P', + name: 'fosforo', + atomicNumber: 15, + }, + { + symbol: 'S', + name: 'sulfuro', + atomicNumber: 16, + }, + { + symbol: 'Cl', + name: 'kloro', + atomicNumber: 17, + }, + { + symbol: 'Ar', + name: 'argono', + atomicNumber: 18, + }, + { + symbol: 'K', + name: 'kalio', + atomicNumber: 19, + }, + { + symbol: 'Ca', + name: 'kalcio', + atomicNumber: 20, + }, + { + symbol: 'Sc', + name: 'skandio', + atomicNumber: 21, + }, + { + symbol: 'Ti', + name: 'titano', + atomicNumber: 22, + }, + { + symbol: 'V', + name: 'vanado', + atomicNumber: 23, + }, + { + symbol: 'Cr', + name: 'kromo', + atomicNumber: 24, + }, + { + symbol: 'Mn', + name: 'mangano', + atomicNumber: 25, + }, + { + symbol: 'Fe', + name: 'fero', + atomicNumber: 26, + }, + { + symbol: 'Co', + name: 'kobalto', + atomicNumber: 27, + }, + { + symbol: 'Ni', + name: 'nikelo', + atomicNumber: 28, + }, + { + symbol: 'Cu', + name: 'kupro', + atomicNumber: 29, + }, + { + symbol: 'Zn', + name: 'zinko', + atomicNumber: 30, + }, + { + symbol: 'Ga', + name: 'galiumo', + atomicNumber: 31, + }, + { + symbol: 'Ge', + name: 'germaniumo', + atomicNumber: 32, + }, + { + symbol: 'As', + name: 'arseno', + atomicNumber: 33, + }, + { + symbol: 'Se', + name: 'seleno', + atomicNumber: 34, + }, + { + symbol: 'Br', + name: 'bromo', + atomicNumber: 35, + }, + { + symbol: 'Kr', + name: 'kriptono', + atomicNumber: 36, + }, + { + symbol: 'Rb', + name: 'rubidio', + atomicNumber: 37, + }, + { + symbol: 'Sr', + name: 'stroncio', + atomicNumber: 38, + }, + { + symbol: 'Y', + name: 'itrio', + atomicNumber: 39, + }, + { + symbol: 'Zr', + name: 'zirkonio', + atomicNumber: 40, + }, + { + symbol: 'Nb', + name: 'niobo', + atomicNumber: 41, + }, + { + symbol: 'Mo', + name: 'molibdeno', + atomicNumber: 42, + }, + { + symbol: 'Tc', + name: 'teknecio', + atomicNumber: 43, + }, + { + symbol: 'Ru', + name: 'rutenio', + atomicNumber: 44, + }, + { + symbol: 'Rh', + name: 'rodio', + atomicNumber: 45, + }, + { + symbol: 'Pd', + name: 'paladio', + atomicNumber: 46, + }, + { + symbol: 'Ag', + name: 'arĝento', + atomicNumber: 47, + }, + { + symbol: 'Cd', + name: 'kadmio', + atomicNumber: 48, + }, + { + symbol: 'In', + name: 'indio', + atomicNumber: 49, + }, + { + symbol: 'Sn', + name: 'stano', + atomicNumber: 50, + }, + { + symbol: 'Sb', + name: 'antimono', + atomicNumber: 51, + }, + { + symbol: 'Te', + name: 'teluro', + atomicNumber: 52, + }, + { + symbol: 'I', + name: 'jodo', + atomicNumber: 53, + }, + { + symbol: 'Xe', + name: 'ksenono', + atomicNumber: 54, + }, + { + symbol: 'Cs', + name: 'cezio', + atomicNumber: 55, + }, + { + symbol: 'Ba', + name: 'bario', + atomicNumber: 56, + }, + { + symbol: 'La', + name: 'lantano', + atomicNumber: 57, + }, + { + symbol: 'Ce', + name: 'cerio', + atomicNumber: 58, + }, + { + symbol: 'Pr', + name: 'prazeodimo', + atomicNumber: 59, + }, + { + symbol: 'Nd', + name: 'neodimo', + atomicNumber: 60, + }, + { + symbol: 'Pm', + name: 'prometio', + atomicNumber: 61, + }, + { + symbol: 'Sm', + name: 'samario', + atomicNumber: 62, + }, + { + symbol: 'Eu', + name: 'eŭropio', + atomicNumber: 63, + }, + { + symbol: 'Gd', + name: 'gadolinio', + atomicNumber: 64, + }, + { + symbol: 'Tb', + name: 'terbio', + atomicNumber: 65, + }, + { + symbol: 'Dy', + name: 'disprozio', + atomicNumber: 66, + }, + { + symbol: 'Ho', + name: 'holmio', + atomicNumber: 67, + }, + { + symbol: 'Er', + name: 'erbio', + atomicNumber: 68, + }, + { + symbol: 'Tm', + name: 'tulio', + atomicNumber: 69, + }, + { + symbol: 'Yb', + name: 'iterbio', + atomicNumber: 70, + }, + { + symbol: 'Lu', + name: 'lutecio', + atomicNumber: 71, + }, + { + symbol: 'Hf', + name: 'hafnio', + atomicNumber: 72, + }, + { + symbol: 'Ta', + name: 'tantalo', + atomicNumber: 73, + }, + { + symbol: 'W', + name: 'volframo', + atomicNumber: 74, + }, + { + symbol: 'Re', + name: 'renio', + atomicNumber: 75, + }, + { + symbol: 'Os', + name: 'osmio', + atomicNumber: 76, + }, + { + symbol: 'Ir', + name: 'iridio', + atomicNumber: 77, + }, + { + symbol: 'Pt', + name: 'plateno', + atomicNumber: 78, + }, + { + symbol: 'Au', + name: 'oro', + atomicNumber: 79, + }, + { + symbol: 'Hg', + name: 'hidrargo', + atomicNumber: 80, + }, + { + symbol: 'Tl', + name: 'talio', + atomicNumber: 81, + }, + { + symbol: 'Pb', + name: 'plumbo', + atomicNumber: 82, + }, + { + symbol: 'Bi', + name: 'bismuto', + atomicNumber: 83, + }, + { + symbol: 'Po', + name: 'polonio', + atomicNumber: 84, + }, + { + symbol: 'At', + name: 'astato', + atomicNumber: 85, + }, + { + symbol: 'Rn', + name: 'radono', + atomicNumber: 86, + }, + { + symbol: 'Fr', + name: 'franciumo', + atomicNumber: 87, + }, + { + symbol: 'Ra', + name: 'radiumo', + atomicNumber: 88, + }, + { + symbol: 'Ac', + name: 'aktiniumo', + atomicNumber: 89, + }, + { + symbol: 'Th', + name: 'torio', + atomicNumber: 90, + }, + { + symbol: 'Pa', + name: 'protaktinio', + atomicNumber: 91, + }, + { + symbol: 'U', + name: 'uranio', + atomicNumber: 92, + }, + { + symbol: 'Np', + name: 'neptunio', + atomicNumber: 93, + }, + { + symbol: 'Pu', + name: 'plutonio', + atomicNumber: 94, + }, + { + symbol: 'Am', + name: 'americio', + atomicNumber: 95, + }, + { + symbol: 'Cm', + name: 'kuriumo', + atomicNumber: 96, + }, + { + symbol: 'Bk', + name: 'berkelio', + atomicNumber: 97, + }, + { + symbol: 'Cf', + name: 'kaliforniumo', + atomicNumber: 98, + }, + { + symbol: 'Es', + name: 'ejnŝtejnio', + atomicNumber: 99, + }, + { + symbol: 'Fm', + name: 'fermio', + atomicNumber: 100, + }, + { + symbol: 'Md', + name: 'mendelevio', + atomicNumber: 101, + }, + { + symbol: 'No', + name: 'nobelio', + atomicNumber: 102, + }, + { + symbol: 'Lr', + name: 'laŭrencio', + atomicNumber: 103, + }, + { + symbol: 'Rf', + name: 'ruterfordio', + atomicNumber: 104, + }, + { + symbol: 'Db', + name: 'dubnio', + atomicNumber: 105, + }, + { + symbol: 'Sg', + name: 'seborgio', + atomicNumber: 106, + }, + { + symbol: 'Bh', + name: 'borio', + atomicNumber: 107, + }, + { + symbol: 'Hs', + name: 'hasio', + atomicNumber: 108, + }, + { + symbol: 'Mt', + name: 'mejtnerio', + atomicNumber: 109, + }, + { + symbol: 'Ds', + name: 'darmŝtatio', + atomicNumber: 110, + }, + { + symbol: 'Rg', + name: 'rentgenio', + atomicNumber: 111, + }, + { + symbol: 'Cn', + name: 'kopernicio', + atomicNumber: 112, + }, + { + symbol: 'Nh', + name: 'nihonio', + atomicNumber: 113, + }, + { + symbol: 'Fl', + name: 'flerovio', + atomicNumber: 114, + }, + { + symbol: 'Mc', + name: 'moskovio', + atomicNumber: 115, + }, + { + symbol: 'Lv', + name: 'livermorio', + atomicNumber: 116, + }, + { + symbol: 'Ts', + name: 'teneso', + atomicNumber: 117, + }, + { + symbol: 'Og', + name: 'oganesono', + atomicNumber: 118, + }, +]); diff --git a/src/locales/eo/science/index.ts b/src/locales/eo/science/index.ts new file mode 100644 index 00000000000..86f8dd2f47e --- /dev/null +++ b/src/locales/eo/science/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { ScienceDefinition } from '../../..'; +import chemicalElement from './chemicalElement'; +import unit from './unit'; + +const science: ScienceDefinition = { + chemicalElement, + unit, +}; + +export default science; diff --git a/src/locales/eo/science/unit.ts b/src/locales/eo/science/unit.ts new file mode 100644 index 00000000000..25c9296cc0d --- /dev/null +++ b/src/locales/eo/science/unit.ts @@ -0,0 +1,118 @@ +export default Object.freeze([ + { + name: 'metro', + symbol: 'm', + }, + { + name: 'sekundo', + symbol: 's', + }, + { + name: 'molo', + symbol: 'mol', + }, + { + name: 'ampero', + symbol: 'A', + }, + { + name: 'kelvino', + symbol: 'K', + }, + { + name: 'kandelo', + symbol: 'cd', + }, + { + name: 'kilogramo', + symbol: 'kg', + }, + { + name: 'radiano', + symbol: 'rad', + }, + { + name: 'herco', + symbol: 'Hz', + }, + { + name: 'neŭtono', + symbol: 'N', + }, + { + name: 'paskalo', + symbol: 'Pa', + }, + { + name: 'ĵulo', + symbol: 'J', + }, + { + name: 'vato', + symbol: 'W', + }, + { + name: 'kulombo', + symbol: 'C', + }, + { + name: 'volto', + symbol: 'V', + }, + { + name: 'omo', + symbol: 'Ω', + }, + { + name: 'teslo', + symbol: 'T', + }, + { + name: 'celsia grado', + symbol: '°C', + }, + { + name: 'lumeno', + symbol: 'lm', + }, + { + name: 'bekerelo', + symbol: 'Bq', + }, + { + name: 'grajo', + symbol: 'Gy', + }, + { + name: 'siverto', + symbol: 'Sv', + }, + { + name: 'steradiano', + symbol: 'sr', + }, + { + name: 'farado', + symbol: 'F', + }, + { + name: 'simenso', + symbol: 'S', + }, + { + name: 'vebero', + symbol: 'Wb', + }, + { + name: 'henro', + symbol: 'H', + }, + { + name: 'lukso', + symbol: 'lx', + }, + { + name: 'katalo', + symbol: 'kat', + }, +]); diff --git a/src/locales/eo/vehicle/fuel.ts b/src/locales/eo/vehicle/fuel.ts new file mode 100644 index 00000000000..ff8a01cad2e --- /dev/null +++ b/src/locales/eo/vehicle/fuel.ts @@ -0,0 +1 @@ +export default ['benzina', 'dizela', 'elektra', 'hibrida']; diff --git a/src/locales/eo/vehicle/index.ts b/src/locales/eo/vehicle/index.ts new file mode 100644 index 00000000000..05d02703b06 --- /dev/null +++ b/src/locales/eo/vehicle/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { VehicleDefinition } from '../../..'; +import fuel from './fuel'; + +const vehicle: VehicleDefinition = { + fuel, +}; + +export default vehicle; diff --git a/src/locales/index.ts b/src/locales/index.ts index 65d33f55701..b30ff124c18 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -27,6 +27,7 @@ export { default as en_IN } from './en_IN'; export { default as en_NG } from './en_NG'; export { default as en_US } from './en_US'; export { default as en_ZA } from './en_ZA'; +export { default as eo } from './eo'; export { default as es } from './es'; export { default as es_MX } from './es_MX'; export { default as fa } from './fa'; diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index ec3bcd40b2d..43f34571a1f 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -48,6 +48,7 @@ const BROKEN_LOCALE_METHODS = { 'en_NG', 'en_US', 'en_ZA', + 'eo', 'es', 'fa', 'fi', From 466b8043577a14c54545a942c05ade343a9ca260 Mon Sep 17 00:00:00 2001 From: Anton Stonor Date: Sat, 26 Aug 2023 14:52:45 +0200 Subject: [PATCH 28/51] feat(locale): add da person category (#2331) --- src/locales/da/index.ts | 2 + src/locales/da/person/female_first_name.ts | 111 ++++++++++++++++++ src/locales/da/person/female_middle_name.ts | 3 + src/locales/da/person/female_prefix.ts | 1 + src/locales/da/person/first_name.ts | 8 ++ src/locales/da/person/index.ts | 36 ++++++ src/locales/da/person/last_name.ts | 108 ++++++++++++++++++ src/locales/da/person/last_name_pattern.ts | 4 + src/locales/da/person/male_first_name.ts | 120 ++++++++++++++++++++ src/locales/da/person/male_middle_name.ts | 3 + src/locales/da/person/male_prefix.ts | 1 + src/locales/da/person/middle_name.ts | 32 ++++++ src/locales/da/person/name.ts | 7 ++ src/locales/da/person/prefix.ts | 5 + src/locales/da/person/sex.ts | 1 + 15 files changed, 442 insertions(+) create mode 100644 src/locales/da/person/female_first_name.ts create mode 100644 src/locales/da/person/female_middle_name.ts create mode 100644 src/locales/da/person/female_prefix.ts create mode 100644 src/locales/da/person/first_name.ts create mode 100644 src/locales/da/person/index.ts create mode 100644 src/locales/da/person/last_name.ts create mode 100644 src/locales/da/person/last_name_pattern.ts create mode 100644 src/locales/da/person/male_first_name.ts create mode 100644 src/locales/da/person/male_middle_name.ts create mode 100644 src/locales/da/person/male_prefix.ts create mode 100644 src/locales/da/person/middle_name.ts create mode 100644 src/locales/da/person/name.ts create mode 100644 src/locales/da/person/prefix.ts create mode 100644 src/locales/da/person/sex.ts diff --git a/src/locales/da/index.ts b/src/locales/da/index.ts index 7a4da6f845d..ec4e17bc802 100644 --- a/src/locales/da/index.ts +++ b/src/locales/da/index.ts @@ -5,10 +5,12 @@ import type { LocaleDefinition } from '../..'; import location from './location'; import metadata from './metadata'; +import person from './person'; const da: LocaleDefinition = { location, metadata, + person, }; export default da; diff --git a/src/locales/da/person/female_first_name.ts b/src/locales/da/person/female_first_name.ts new file mode 100644 index 00000000000..f11c4c6ed44 --- /dev/null +++ b/src/locales/da/person/female_first_name.ts @@ -0,0 +1,111 @@ +export default [ + 'Agnes', + 'Alberte', + 'Alexandrea', + 'Alice', + 'Alma', + 'Amanda', + 'Anita', + 'Anna', + 'Anne', + 'Annette', + 'Astrid', + 'Bente', + 'Betina', + 'Birgitte', + 'Britt', + 'Camilla', + 'Caroline', + 'Cecilie', + 'Charlotte', + 'Christina', + 'Clara', + 'Ditte-Marie', + 'Dorit', + 'Dorthe', + 'Ea', + 'Elisabeth', + 'Elise', + 'Ella', + 'Ellen-Margrethe', + 'Else', + 'Emilie', + 'Emma', + 'Eva', + 'Fatima', + 'Freja', + 'Frida', + 'Gitte', + 'Gry', + 'Hanne', + 'Hedvig', + 'Helene', + 'Helle', + 'Hilda', + 'Ida', + 'Ingrid', + 'Isabella', + 'Janni', + 'Jeanette', + 'Jette', + 'Johanne', + 'Josefine', + 'Julie', + 'Karen', + 'Karla', + 'Kathrine', + 'Katrine', + 'Kirsten', + 'Laila', + 'Lene', + 'Lillian', + 'Line', + 'Lis', + 'Lisa', + 'Lisbeth', + 'Liv', + 'Lone', + 'Louise', + 'Luna', + 'Lykke', + 'Maja', + 'Malene', + 'Maren', + 'Maria', + 'Marianne', + 'Mathilde', + 'Merete', + 'Mette', + 'Mia', + 'Mille', + 'Mona', + 'Nadia', + 'Nanna', + 'Nicoline', + 'Nina', + 'Pia', + 'Rebecca', + 'Regitze', + 'Rikke', + 'Rosa-Maria', + 'Ruth', + 'Sabrina', + 'Sandra', + 'Sanne', + 'Sara', + 'Sarah', + 'Signe', + 'Silje', + 'Simone', + 'Sofie', + 'Stine', + 'Susanne', + 'Therese', + 'Tina', + 'Tine', + 'Trine', + 'Vibeke', + 'Viktoria', + 'Yasmin', + 'Zara', +]; diff --git a/src/locales/da/person/female_middle_name.ts b/src/locales/da/person/female_middle_name.ts new file mode 100644 index 00000000000..901525b1c82 --- /dev/null +++ b/src/locales/da/person/female_middle_name.ts @@ -0,0 +1,3 @@ +import middle_name from './middle_name'; + +export default middle_name; diff --git a/src/locales/da/person/female_prefix.ts b/src/locales/da/person/female_prefix.ts new file mode 100644 index 00000000000..c712bc44f44 --- /dev/null +++ b/src/locales/da/person/female_prefix.ts @@ -0,0 +1 @@ +export default ['fr.']; diff --git a/src/locales/da/person/first_name.ts b/src/locales/da/person/first_name.ts new file mode 100644 index 00000000000..40a647ec054 --- /dev/null +++ b/src/locales/da/person/first_name.ts @@ -0,0 +1,8 @@ +// We don't have a generic first name list for this locale +// So simply concatenate male and female lists and remove any duplicates +// This avoids falling back to fallback locale +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/da/person/index.ts b/src/locales/da/person/index.ts new file mode 100644 index 00000000000..82cad6fe5f0 --- /dev/null +++ b/src/locales/da/person/index.ts @@ -0,0 +1,36 @@ +/* + * 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 female_middle_name from './female_middle_name'; +import female_prefix from './female_prefix'; +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 male_middle_name from './male_middle_name'; +import male_prefix from './male_prefix'; +import middle_name from './middle_name'; +import name_ from './name'; +import prefix from './prefix'; +import sex from './sex'; + +const person: PersonDefinition = { + female_first_name, + female_middle_name, + female_prefix, + first_name, + last_name, + last_name_pattern, + male_first_name, + male_middle_name, + male_prefix, + middle_name, + name: name_, + prefix, + sex, +}; + +export default person; diff --git a/src/locales/da/person/last_name.ts b/src/locales/da/person/last_name.ts new file mode 100644 index 00000000000..15bffb65039 --- /dev/null +++ b/src/locales/da/person/last_name.ts @@ -0,0 +1,108 @@ +export default [ + 'Abbas', + 'Abdi', + 'Andersen', + 'Andresen', + 'Bak', + 'Bang', + 'Bech', + 'Beckmann', + 'Berg', + 'Bertelsen', + 'Bisgaard', + 'Bjerregaard', + 'Blom', + 'Bonde', + 'Brandt', + 'Brix', + 'Bruun', + 'Buch', + 'Buhl', + 'Bundgaard', + 'Carlsen', + 'Christensen', + 'Christiansen', + 'Clausen', + 'Dahl', + 'Dalgaard', + 'Dam', + 'Damm', + 'Davidsen', + 'Dupont', + 'Esbensen', + 'Fischer', + 'Foged', + 'Frandsen', + 'Frederiksen', + 'Gade', + 'Garcia', + 'Gregersen', + 'Hald', + 'Hansen', + 'Haugaard', + 'Hedegaard', + 'Henriksen', + 'Hermansen', + 'Hjort', + 'Hjorth', + 'Holm', + 'Iversen', + 'Jakobsen', + 'Jensen', + 'Jeppesen', + 'Jespersen', + 'Johannessen', + 'Johannsen', + 'Johansen', + 'Juhl', + 'Justesen', + 'Jørgensen', + 'Karlsen', + 'Khan', + 'Kjeldsen', + 'Kjær', + 'Klausen', + 'Knudsen', + 'Kristensen', + 'Krogh', + 'Larsen', + 'Lauridsen', + 'Laursen', + 'Lorentzen', + 'Lund', + 'Madsen', + 'Magnussen', + 'Marcussen', + 'Mortensen', + 'Munch', + 'Munk', + 'Møller', + 'Nguyen', + 'Nielsen', + 'Nissen', + 'Nygaard', + 'Olsen', + 'Pallesen', + 'Pedersen', + 'Petersen', + 'Pham', + 'Poulsen', + 'Rasmussen', + 'Ravn', + 'Richter', + 'Schmidt', + 'Schrøder', + 'Simonsen', + 'Skov', + 'Steffensen', + 'Storm', + 'Svendsen', + 'Svensson', + 'Sørensen', + 'Thomsen', + 'Toft', + 'Vestergaard', + 'Villadsen', + 'Vinther', + 'Winther', +]; diff --git a/src/locales/da/person/last_name_pattern.ts b/src/locales/da/person/last_name_pattern.ts new file mode 100644 index 00000000000..2676cc52d5d --- /dev/null +++ b/src/locales/da/person/last_name_pattern.ts @@ -0,0 +1,4 @@ +export default [ + { value: '{{person.last_name}}', weight: 95 }, + { value: '{{person.last_name}}-{{person.last_name}}', weight: 5 }, +]; diff --git a/src/locales/da/person/male_first_name.ts b/src/locales/da/person/male_first_name.ts new file mode 100644 index 00000000000..a0cc9d49e96 --- /dev/null +++ b/src/locales/da/person/male_first_name.ts @@ -0,0 +1,120 @@ +export default [ + 'Adam', + 'Adrian', + 'Ahmad', + 'Aksel', + 'Albert', + 'Alexander', + 'Alfred', + 'Ali', + 'Anders', + 'Andreas', + 'Anton', + 'Arthur', + 'Arunthavanathan', + 'August', + 'Benjamin', + 'Bjørn', + 'Brian', + 'Carl', + 'Christian', + 'Christopher', + 'Claus', + 'Daniel', + 'David', + 'Elias', + 'Elliot', + 'Emil', + 'Erik', + 'Esben', + 'Felix', + 'Frank', + 'Frederik', + 'Georg', + 'Hakim', + 'Hans', + 'Harald', + 'Henrik', + 'Ib', + 'Ivan', + 'Jacob', + 'Jakob', + 'Jan', + 'Jens', + 'Jeppe', + 'Jesper', + 'Johan', + 'John', + 'Jonas', + 'Jonathan', + 'Jørgen', + 'Kaj', + 'Karl-Emil', + 'Karl-Johan', + 'Karl', + 'Kasper', + 'Kevin', + 'Kim', + 'Kurt', + 'Lars', + 'Lasse', + 'Leif', + 'Leo', + 'Linus', + 'Lucas', + 'Lukas', + 'Mads', + 'Magnus', + 'Malthe', + 'Mark', + 'Martin', + 'Mathias', + 'Mathis', + 'Max', + 'Michael', + 'Mikkel', + 'Mohammad', + 'Morten', + 'Nicklas', + 'Niels-Christian', + 'Niels', + 'Niklas', + 'Noah', + 'Ole', + 'Oliver', + 'Oscar', + 'Otto', + 'Patrick', + 'Per', + 'Peter', + 'Philip', + 'Poul', + 'Rasmus', + 'Robert', + 'Samuel', + 'Sebastian', + 'Sigurd', + 'Simon', + 'Steen', + 'Stefan', + 'Stig', + 'Sune', + 'Svend', + 'Søren', + 'Theo', + 'Thomas', + 'Tim', + 'Tobias', + 'Troels', + 'Uffe', + 'Ulrik', + 'Vagn', + 'Valdemar', + 'Victor', + 'Viggo', + 'Viktor', + 'Vilhelm', + 'Villy', + 'Vincent', + 'William', +]; diff --git a/src/locales/da/person/male_middle_name.ts b/src/locales/da/person/male_middle_name.ts new file mode 100644 index 00000000000..901525b1c82 --- /dev/null +++ b/src/locales/da/person/male_middle_name.ts @@ -0,0 +1,3 @@ +import middle_name from './middle_name'; + +export default middle_name; diff --git a/src/locales/da/person/male_prefix.ts b/src/locales/da/person/male_prefix.ts new file mode 100644 index 00000000000..341185284cf --- /dev/null +++ b/src/locales/da/person/male_prefix.ts @@ -0,0 +1 @@ +export default ['hr.']; diff --git a/src/locales/da/person/middle_name.ts b/src/locales/da/person/middle_name.ts new file mode 100644 index 00000000000..2dbe009afd6 --- /dev/null +++ b/src/locales/da/person/middle_name.ts @@ -0,0 +1,32 @@ +export default [ + 'Birk', + 'Bjerg', + 'Bjerre', + 'Bundgaard', + 'Dahl', + 'Dal', + 'Dam', + 'Feldt', + 'Frost', + 'Grøn', + 'Hald', + 'Hjorth', + 'Holm', + 'Husum', + 'Jul', + 'Kjær', + 'Klit', + 'Koch', + 'Krog', + 'Linde', + 'Lund', + 'Mose', + 'Mølgaard', + 'Nord', + 'Præst', + 'Rosen', + 'Skov', + 'Smed', + 'Vestergaard', + 'Østergaard', +]; diff --git a/src/locales/da/person/name.ts b/src/locales/da/person/name.ts new file mode 100644 index 00000000000..ff423717ee7 --- /dev/null +++ b/src/locales/da/person/name.ts @@ -0,0 +1,7 @@ +export default [ + { value: '{{person.firstName}} {{person.lastName}}', weight: 50 }, + { + value: '{{person.firstName}} {{person.middleName}} {{person.lastName}}', + weight: 50, + }, +]; diff --git a/src/locales/da/person/prefix.ts b/src/locales/da/person/prefix.ts new file mode 100644 index 00000000000..cb1d846e0d6 --- /dev/null +++ b/src/locales/da/person/prefix.ts @@ -0,0 +1,5 @@ +import { mergeArrays } from './../../../internal/merge'; +import female_prefix from './female_prefix'; +import male_prefix from './male_prefix'; + +export default mergeArrays(female_prefix, male_prefix); diff --git a/src/locales/da/person/sex.ts b/src/locales/da/person/sex.ts new file mode 100644 index 00000000000..8325f91a502 --- /dev/null +++ b/src/locales/da/person/sex.ts @@ -0,0 +1 @@ +export default ['mand', 'kvinde']; From 87d3423960d326494d1710946f29fb3930d1a300 Mon Sep 17 00:00:00 2001 From: CoolPlayLin Date: Sat, 26 Aug 2023 21:18:29 +0800 Subject: [PATCH 29/51] feat(locale): improve persons and locations for zh_CN (#2318) --- src/locales/zh_CN/internet/free_email.ts | 2 + src/locales/zh_CN/location/state.ts | 13 +- src/locales/zh_CN/location/state_abbr.ts | 65 +- src/locales/zh_CN/person/female_first_name.ts | 25 +- src/locales/zh_CN/person/first_name.ts | 40 + src/locales/zh_CN/person/last_name.ts | 1061 +++++++++++++++-- src/locales/zh_CN/person/male_first_name.ts | 22 + 7 files changed, 1099 insertions(+), 129 deletions(-) diff --git a/src/locales/zh_CN/internet/free_email.ts b/src/locales/zh_CN/internet/free_email.ts index 034f87e2616..8fffb1f0a4e 100644 --- a/src/locales/zh_CN/internet/free_email.ts +++ b/src/locales/zh_CN/internet/free_email.ts @@ -13,4 +13,6 @@ export default [ 'yahoo.cn', 'yahoo.com.cn', 'yeah.net', + 'foxmail.com', + 'outlook.com', ]; diff --git a/src/locales/zh_CN/location/state.ts b/src/locales/zh_CN/location/state.ts index ed157239d11..4f467f54507 100644 --- a/src/locales/zh_CN/location/state.ts +++ b/src/locales/zh_CN/location/state.ts @@ -6,13 +6,13 @@ export default [ '黑龙江省', '吉林省', '辽宁省', - '内蒙古', + '内蒙古自治区', '河北省', - '新疆', + '新疆维吾尔自治区', '甘肃省', '青海省', '陕西省', - '宁夏', + '宁夏回族自治区', '河南省', '山东省', '山西省', @@ -23,14 +23,11 @@ export default [ '四川省', '贵州省', '云南省', - '广西省', - '西藏', + '广西壮族自治区', + '西藏自治区', '浙江省', '江西省', '广东省', '福建省', - '台湾省', '海南省', - '香港', - '澳门', ]; diff --git a/src/locales/zh_CN/location/state_abbr.ts b/src/locales/zh_CN/location/state_abbr.ts index a7eb292137f..a07039db187 100644 --- a/src/locales/zh_CN/location/state_abbr.ts +++ b/src/locales/zh_CN/location/state_abbr.ts @@ -1,36 +1,33 @@ export default [ - '京', - '沪', - '津', - '渝', - '黑', - '吉', - '辽', - '蒙', - '冀', - '新', - '甘', - '青', - '陕', - '宁', - '豫', - '鲁', - '晋', - '皖', - '鄂', - '湘', - '苏', - '川', - '黔', - '滇', - '桂', - '藏', - '浙', - '赣', - '粤', - '闽', - '台', - '琼', - '港', - '澳', + '北京', + '上海', + '天津', + '重庆', + '黑龙江', + '吉林', + '辽阳', + '内蒙古', + '河北', + '新疆', + '甘肃', + '青海', + '陕西', + '宁夏', + '河南', + '山东', + '山西', + '合肥', + '湖北', + '湖南', + '苏州', + '四川', + '贵州', + '云南', + '广西', + '西藏', + '浙江', + '江西', + '广东', + '福建', + '海南', ]; diff --git a/src/locales/zh_CN/person/female_first_name.ts b/src/locales/zh_CN/person/female_first_name.ts index 71993df5a7c..8a9642a1106 100644 --- a/src/locales/zh_CN/person/female_first_name.ts +++ b/src/locales/zh_CN/person/female_first_name.ts @@ -11,7 +11,6 @@ export default [ '凤英', '兰英', '婷婷', - '海燕', '国英', '国珍', '国华', @@ -23,6 +22,7 @@ export default [ '国香', '英', '萍', + '蒙', '红', '丽', '敏', @@ -36,11 +36,14 @@ export default [ '丹', '玲', '婷', + '珈', '雪', '倩', '悦', '颖', '洁', + '慧', + '开慧', '丽芬', '丽芳', '丽萍', @@ -61,4 +64,24 @@ export default [ '语汐', '雨涵', '雨欣', + '诗雨', + '婷方', + '美方', + '雅婷', + '紫林', + '天娇', + '万佳', + '子欣', + '海燕', + '乙萍', + '安琪', + '馨羽', + '馥君', + '思佳', + '雅鑫', + '静怡', + '晨阳', + '佳琪', + '雯静', + '榕融', ]; diff --git a/src/locales/zh_CN/person/first_name.ts b/src/locales/zh_CN/person/first_name.ts index 640767839ec..1d8fe38e55b 100644 --- a/src/locales/zh_CN/person/first_name.ts +++ b/src/locales/zh_CN/person/first_name.ts @@ -123,4 +123,44 @@ export default [ '鹤轩', '鹭洋', '黎昕', + '诗雨', + '婷方', + '美方', + '雅婷', + '紫林', + '天娇', + '万佳', + '子欣', + '海燕', + '乙萍', + '安琪', + '馨羽', + '馥君', + '思佳', + '雅鑫', + '静怡', + '晨阳', + '佳琪', + '雯静', + '榕融', + '浩辰', + '癸霖', + '一全', + '三锋', + '义轩', + '俊凯', + '子豪', + '振东', + '智杰', + '哲新', + '中海', + '超栋', + '治涛', + '治文', + '文韬', + '敬彪', + '敬阳', + '政君', + '立伟', + '呈轩', ]; diff --git a/src/locales/zh_CN/person/last_name.ts b/src/locales/zh_CN/person/last_name.ts index 6addc935941..16b918e9565 100644 --- a/src/locales/zh_CN/person/last_name.ts +++ b/src/locales/zh_CN/person/last_name.ts @@ -1,113 +1,1002 @@ export default [ - '王', - '李', - '张', - '刘', - '陈', - '杨', - '黄', - '吴', '赵', - '周', - '徐', + '钱', '孙', - '马', - '朱', - '胡', - '林', - '郭', - '何', - '高', - '罗', + '李', + '周', + '吴', '郑', - '梁', - '谢', - '宋', - '唐', - '许', - '邓', + '王', '冯', + '陈', + '褚', + '卫', + '蒋', + '沈', '韩', + '杨', + '朱', + '秦', + '尤', + '许', + '何', + '吕', + '施', + '张', + '孔', '曹', - '曾', - '彭', - '萧', - '蔡', - '潘', - '田', - '董', - '袁', - '于', - '余', - '叶', - '蒋', - '杜', - '苏', + '严', + '华', + '金', '魏', - '程', - '吕', - '丁', - '沈', - '任', - '姚', - '卢', - '傅', - '钟', + '陶', '姜', - '崔', - '谭', - '廖', + '戚', + '谢', + '邹', + '喻', + '柏', + '水', + '窦', + '章', + '云', + '苏', + '潘', + '葛', + '奚', '范', - '汪', - '陆', - '金', - '石', - '戴', - '贾', + '彭', + '郎', + '鲁', '韦', - '夏', - '邱', + '昌', + '马', + '苗', + '凤', + '花', '方', - '侯', - '邹', - '熊', - '孟', - '秦', - '白', - '江', - '阎', + '俞', + '任', + '袁', + '柳', + '酆', + '鲍', + '史', + '唐', + '费', + '廉', + '岑', '薛', - '尹', - '段', '雷', - '黎', - '史', - '龙', - '陶', '贺', - '顾', - '毛', + '倪', + '汤', + '滕', + '殷', + '罗', + '毕', '郝', - '龚', + '邬', + '安', + '常', + '乐', + '于', + '时', + '傅', + '皮', + '卞', + '齐', + '康', + '伍', + '余', + '元', + '卜', + '顾', + '孟', + '平', + '黄', + '和', + '穆', + '萧', + '尹', + '姚', '邵', - '万', - '钱', - '严', - '赖', + '湛', + '汪', + '祁', + '毛', + '禹', + '狄', + '米', + '贝', + '明', + '臧', + '计', + '伏', + '成', + '戴', + '谈', + '宋', + '茅', + '庞', + '熊', + '纪', + '舒', + '屈', + '项', + '祝', + '董', + '梁', + '杜', + '阮', + '蓝', + '闵', + '席', + '季', + '麻', + '强', + '贾', + '路', + '娄', + '危', + '江', + '童', + '颜', + '郭', + '梅', + '盛', + '林', + '刁', + '锺', + '徐', + '邱', + '骆', + '高', + '夏', + '蔡', + '田', + '樊', + '胡', + '凌', + '蹇', + '称', + '诺', + '来', + '多', + '繁', + '戊', + '朴', + '回', + '毓', + '税', + '荤', + '靖', + '绪', + '愈', + '硕', + '牢', + '买', + '但', + '巧', + '枚', + '撒', + '泰', + '秘', + '亥', + '绍', + '以', + '壬', + '森', + '斋', + '释', + '奕', + '姒', + '朋', + '求', + '羽', + '用', + '占', + '真', + '穰', + '翦', + '闾', + '漆', + '贵', + '代', + '贯', + '旁', + '崇', + '栋', + '告', + '休', + '褒', + '谏', + '锐', + '皋', + '闳', + '在', + '歧', + '禾', + '示', + '是', + '委', + '钊', + '频', + '嬴', + '呼', + '大', + '威', + '昂', + '律', + '冒', + '保', + '系', + '抄', + '定', + '化', + '莱', + '校', + '么', + '抗', + '祢', + '綦', + '悟', + '宏', + '功', + '庚', + '务', + '敏', + '捷', + '拱', + '兆', + '丑', + '丙', + '畅', + '苟', + '随', + '类', + '卯', + '俟', + '友', + '答', + '乙', + '允', + '甲', + '留', + '尾', + '佼', + '玄', + '乘', + '裔', + '延', + '植', + '环', + '矫', + '赛', + '昔', + '侍', + '度', + '旷', + '遇', + '偶', + '前', + '由', + '咎', + '塞', + '敛', + '受', + '泷', + '袭', + '衅', + '叔', + '圣', + '御', + '夫', + '仆', + '镇', + '藩', + '邸', + '府', + '掌', + '首', + '员', + '焉', + '戏', + '可', + '智', + '尔', + '凭', + '悉', + '进', + '笃', + '厚', + '仁', + '业', + '肇', + '资', + '合', + '仍', + '九', + '衷', + '哀', + '刑', + '俎', + '仵', + '圭', + '夷', + '徭', + '蛮', + '汗', + '孛', + '乾', + '帖', + '罕', + '洛', + '淦', + '洋', + '邶', + '郸', + '郯', + '邗', + '邛', + '剑', + '虢', + '隋', + '蒿', + '茆', + '菅', + '苌', + '树', + '桐', + '锁', + '钟', + '机', + '盘', + '铎', + '斛', + '玉', + '线', + '针', + '箕', + '庹', + '绳', + '磨', + '蒉', + '瓮', + '弭', + '刀', + '疏', + '牵', + '浑', + '恽', + '势', + '世', + '仝', + '同', + '蚁', + '止', + '戢', + '睢', + '冼', + '种', + '涂', + '肖', + '己', + '泣', + '潜', + '卷', + '脱', + '谬', + '蹉', + '赧', + '浮', + '顿', + '说', + '次', + '错', + '念', + '夙', + '斯', + '完', + '丹', + '表', + '聊', + '源', + '姓', + '吾', + '寻', + '展', + '出', + '不', + '户', + '闭', + '才', + '无', + '书', + '学', + '愚', + '本', + '性', + '雪', + '霜', + '烟', + '寒', + '少', + '字', + '桥', + '板', + '斐', + '独', + '千', + '诗', + '嘉', + '扬', + '善', + '揭', + '祈', + '析', + '赤', + '紫', + '青', + '柔', + '刚', + '奇', + '拜', + '佛', + '陀', + '弥', + '阿', + '素', + '长', + '僧', + '隐', + '仙', + '隽', + '宇', + '祭', + '酒', + '淡', + '塔', + '琦', + '闪', + '始', + '星', + '南', + '天', + '接', + '波', + '碧', + '速', + '禚', + '腾', + '潮', + '镜', + '似', + '澄', + '潭', + '謇', + '纵', + '渠', + '奈', + '风', + '春', + '濯', + '沐', + '茂', + '英', + '兰', + '檀', + '藤', + '枝', + '检', + '生', + '折', + '登', + '驹', + '骑', + '貊', + '虎', + '肥', + '鹿', + '雀', + '野', + '禽', + '飞', + '节', + '宜', + '鲜', + '粟', + '栗', + '豆', + '帛', + '官', + '布', + '衣', + '藏', + '宝', + '钞', + '银', + '门', + '盈', + '庆', + '喜', + '及', + '普', + '建', + '营', + '巨', + '望', + '希', + '道', + '载', + '声', + '漫', + '犁', + '力', + '贸', + '勤', + '革', + '改', + '兴', + '亓', + '睦', + '修', + '信', + '闽', + '北', + '守', + '坚', + '勇', + '汉', + '练', + '尉', + '士', + '旅', + '五', + '令', + '将', + '旗', + '军', + '行', + '奉', + '敬', + '恭', + '仪', + '母', + '堂', + '丘', + '义', + '礼', + '慈', + '孝', + '理', + '伦', + '卿', + '问', + '永', + '辉', + '位', + '让', + '尧', + '依', + '犹', + '介', + '承', + '市', + '所', + '苑', + '杞', + '剧', + '第', + '零', + '谌', + '招', + '续', + '达', + '忻', + '六', + '鄞', + '战', + '迟', + '候', + '宛', + '励', + '粘', + '萨', + '邝', '覃', + '辜', + '初', + '楼', + '城', + '区', + '局', + '台', + '原', + '考', + '妫', + '纳', + '泉', + '老', + '清', + '德', + '卑', + '过', + '麦', + '曲', + '竹', + '百', + '福', + '言', + '霍', + '虞', + '万', + '支', + '柯', + '昝', + '管', + '卢', + '莫', + '经', + '房', + '裘', + '缪', + '干', + '解', + '应', + '宗', + '丁', + '宣', + '贲', + '邓', + '单', + '杭', '洪', + '包', + '诸', + '左', + '石', + '崔', + '吉', + '钮', + '龚', + '程', + '嵇', + '邢', + '滑', + '裴', + '陆', + '荣', + '翁', + '荀', + '羊', + '於', + '惠', + '甄', + '麴', + '家', + '封', + '芮', + '羿', + '储', + '靳', + '汲', + '邴', + '糜', + '松', + '井', + '段', + '富', + '巫', + '乌', + '焦', + '巴', + '弓', + '牧', + '隗', + '山', + '谷', + '车', + '侯', + '宓', + '蓬', + '全', + '郗', + '班', + '仰', + '秋', + '仲', + '伊', + '宫', + '宁', + '仇', + '栾', + '暴', + '甘', + '钭', + '历', + '戎', + '祖', '武', - '莫', - '孔', - '欧阳', - '慕容', + '符', + '刘', + '景', + '詹', + '束', + '龙', + '叶', + '幸', + '司', + '韶', + '郜', + '黎', + '蓟', + '溥', + '印', + '宿', + '白', + '怀', + '蒲', + '邰', + '召', + '有', + '舜', + '拉', + '丛', + '岳', + '寸', + '贰', + '皇', + '侨', + '彤', + '竭', + '端', + '赫', + '实', + '甫', + '集', + '象', + '翠', + '狂', + '辟', + '典', + '良', + '函', + '芒', + '苦', + '其', + '京', + '中', + '夕', + '之', + '从', + '鄂', + '索', + '咸', + '籍', + '赖', + '卓', + '蔺', + '屠', + '蒙', + '池', + '乔', + '阳', + '郁', + '胥', + '能', + '苍', + '双', + '闻', + '莘', + '党', + '翟', + '谭', + '贡', + '劳', + '逄', + '姬', + '申', + '扶', + '堵', + '冉', + '宰', + '郦', + '雍', + '却', + '璩', + '桑', + '桂', + '濮', + '牛', + '寿', + '通', + '边', + '扈', + '燕', + '冀', + '僪', + '浦', + '尚', + '农', + '温', + '别', + '庄', + '晏', + '柴', + '瞿', + '阎', + '充', + '慕', + '连', + '茹', + '习', + '宦', + '艾', + '鱼', + '容', + '向', + '古', + '易', + '慎', + '戈', + '廖', + '庾', + '终', + '暨', + '居', + '衡', + '步', + '都', + '耿', + '满', + '弘', + '匡', + '国', + '文', + '琴', + '况', + '亢', + '缑', + '帅', + '寇', + '广', + '禄', + '阙', + '东', + '欧', + '殳', + '沃', + '利', + '蔚', + '越', + '夔', + '隆', + '师', + '巩', + '厍', + '聂', + '晁', + '勾', + '敖', + '融', + '冷', + '訾', + '辛', + '阚', + '那', + '简', + '饶', + '空', + '曾', + '毋', + '沙', + '乜', + '养', + '鞠', + '须', + '丰', + '巢', + '关', + '蒯', + '相', + '查', + '后', + '荆', + '红', + '游', + '特', + '察', + '竺', + '冠', + '宾', + '香', + '赏', + '伯', + '佴', + '佘', + '佟', + '爱', + '年', + '笪', + '谯', + '哈', + '墨', + '牟', + '商', + '海', + '归', + '钦', + '鄢', + '汝', + '法', + '闫', + '楚', + '晋', + '督', + '仉', + '盖', + '逯', + '库', + '郏', + '逢', + '阴', + '薄', + '厉', + '稽', + '开', + '光', + '操', + '瑞', + '眭', + '泥', + '运', + '摩', + '伟', + '铁', + '迮', + '果', + '权', + '逮', + '盍', + '益', + '桓', + '公', + '万俟', '司马', - '令狐', + '上官', + '欧阳', + '夏侯', + '诸葛', + '闻人', + '东方', + '赫连', + '皇甫', + '尉迟', + '公羊', + '澹台', + '公冶', + '宗政', + '濮阳', + '淳于', + '单于', + '太叔', + '申屠', + '公孙', '仲孙', + '轩辕', + '令狐', '钟离', - '长孙', '宇文', + '长孙', + '慕容', '司徒', - '鲜于', '司空', + '章佳', + '那拉', + '觉罗', + '纳喇', + '乌雅', + '范姜', + '碧鲁', ]; diff --git a/src/locales/zh_CN/person/male_first_name.ts b/src/locales/zh_CN/person/male_first_name.ts index 509ac38a3cb..a0647cd8cc6 100644 --- a/src/locales/zh_CN/person/male_first_name.ts +++ b/src/locales/zh_CN/person/male_first_name.ts @@ -32,6 +32,7 @@ export default [ '民', '明', '阳', + '瑜', '熙成', '熙瑶', '家豪', @@ -55,4 +56,25 @@ export default [ '梓豪', '梓睿', '梓浩', + '浩辰', + '癸霖', + '一全', + '三锋', + '义轩', + '俊凯', + '子豪', + '振东', + '智杰', + '哲新', + '文昊', + '中海', + '超栋', + '治涛', + '治文', + '文韬', + '敬彪', + '敬阳', + '政君', + '立伟', + '呈轩', ]; From 28bc32cb8c7fb5f99a352c96af6dcb976985e3c0 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:19:19 +0700 Subject: [PATCH 30/51] chore: ignore dotfiles in generate locales (#2348) --- scripts/generateLocales.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index 3c1cb8db7dd..81cf4331506 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -162,6 +162,7 @@ async function generateLocalesIndexFile( depth: number ): Promise { let modules = readdirSync(path); + modules = modules.filter((file) => !file.startsWith('.')); modules = removeIndexTs(modules); modules = removeTsSuffix(modules); modules.sort(); From c75ae6afd9edf4fa7ed4c2ecc1f08d1342eb3283 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:07:04 +0700 Subject: [PATCH 31/51] docs: remove repeated reference to Ruby, Python, Perl (#2343) --- docs/guide/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/index.md b/docs/guide/index.md index 58a9b974fba..ac7e1704464 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -9,13 +9,13 @@ Faker is a popular library that generates fake (but reasonable) data that can be - Building Demos - Working without a completed backend -Faker was originally written in [Perl](https://metacpan.org/dist/Data-Faker) and this is the JavaScript port. Language bindings also exist for [Ruby](https://github.com/faker-ruby/faker), [Java](https://github.com/DiUS/java-faker), and [Python](https://github.com/joke2k/faker). +Faker was originally written in [Perl](https://metacpan.org/dist/Data-Faker) and this is the JavaScript port. Faker is also available as a library for [Ruby](https://github.com/faker-ruby/faker), [Java](https://github.com/DiUS/java-faker), and [Python](https://github.com/joke2k/faker). This documentation only covers the JavaScript implementation of Faker. ## Environments -You can run Faker in the Browser, within Node, or the many other languages supported by Faker. ([Perl](https://metacpan.org/dist/Data-Faker), [Ruby](https://github.com/faker-ruby/faker), [Java](https://github.com/DiUS/java-faker), and [Python](https://github.com/joke2k/faker)) +You can run Faker in the browser, or in Node.js. Faker v8.0 requires Node.js version 14 or above. Both ESM and CommonJS imports are available. ## Installation From 77dbb7a48579210c489329aa374c7f9131f6b866 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 13:25:18 +0200 Subject: [PATCH 32/51] chore(deps): update devdependencies (#2351) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 10 +-- pnpm-lock.yaml | 200 +++++++++++++++++++++++++++---------------------- 2 files changed, 115 insertions(+), 95 deletions(-) diff --git a/package.json b/package.json index bf7b20e238a..1b4886c5885 100644 --- a/package.json +++ b/package.json @@ -89,20 +89,20 @@ "devDependencies": { "@actions/github": "~5.1.1", "@algolia/client-search": "~4.19.1", - "@types/markdown-it": "~13.0.0", - "@types/node": "~20.5.4", + "@types/markdown-it": "~13.0.1", + "@types/node": "~20.5.7", "@types/sanitize-html": "~2.9.0", "@types/semver": "~7.5.0", "@types/validator": "~13.11.1", "@typescript-eslint/eslint-plugin": "~6.4.0", "@typescript-eslint/parser": "~6.4.0", - "@vitest/coverage-v8": "~0.34.2", + "@vitest/coverage-v8": "~0.34.3", "@vitest/ui": "~0.34.2", - "@vueuse/core": "~10.3.0", + "@vueuse/core": "~10.4.1", "conventional-changelog-cli": "~3.0.0", "cypress": "~12.17.4", "esbuild": "~0.19.2", - "eslint": "~8.47.0", + "eslint": "~8.48.0", "eslint-config-prettier": "~9.0.0", "eslint-define-config": "~1.23.0", "eslint-gitignore": "~0.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9daa7f0fda6..9bce0950068 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,11 +8,11 @@ devDependencies: specifier: ~4.19.1 version: 4.19.1 '@types/markdown-it': - specifier: ~13.0.0 - version: 13.0.0 + specifier: ~13.0.1 + version: 13.0.1 '@types/node': - specifier: ~20.5.4 - version: 20.5.4 + specifier: ~20.5.7 + version: 20.5.7 '@types/sanitize-html': specifier: ~2.9.0 version: 2.9.0 @@ -24,19 +24,19 @@ devDependencies: version: 13.11.1 '@typescript-eslint/eslint-plugin': specifier: ~6.4.0 - version: 6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.47.0)(typescript@4.9.5) + version: 6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/parser': specifier: ~6.4.0 - version: 6.4.0(eslint@8.47.0)(typescript@4.9.5) + version: 6.4.0(eslint@8.48.0)(typescript@4.9.5) '@vitest/coverage-v8': - specifier: ~0.34.2 - version: 0.34.2(vitest@0.34.2) + specifier: ~0.34.3 + version: 0.34.3(vitest@0.34.2) '@vitest/ui': specifier: ~0.34.2 version: 0.34.2(vitest@0.34.2) '@vueuse/core': - specifier: ~10.3.0 - version: 10.3.0(vue@3.3.4) + specifier: ~10.4.1 + version: 10.4.1(vue@3.3.4) conventional-changelog-cli: specifier: ~3.0.0 version: 3.0.0 @@ -47,29 +47,29 @@ devDependencies: specifier: ~0.19.2 version: 0.19.2 eslint: - specifier: ~8.47.0 - version: 8.47.0 + specifier: ~8.48.0 + version: 8.48.0 eslint-config-prettier: specifier: ~9.0.0 - version: 9.0.0(eslint@8.47.0) + version: 9.0.0(eslint@8.48.0) eslint-define-config: specifier: ~1.23.0 version: 1.23.0 eslint-gitignore: specifier: ~0.1.0 - version: 0.1.0(eslint@8.47.0) + version: 0.1.0(eslint@8.48.0) eslint-plugin-deprecation: specifier: ~1.5.0 - version: 1.5.0(eslint@8.47.0)(typescript@4.9.5) + version: 1.5.0(eslint@8.48.0)(typescript@4.9.5) eslint-plugin-jsdoc: specifier: ~46.5.0 - version: 46.5.0(eslint@8.47.0) + version: 46.5.0(eslint@8.48.0) eslint-plugin-prettier: specifier: ~5.0.0 - version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2) + version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2) eslint-plugin-vitest: specifier: ~0.2.8 - version: 0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2) + version: 0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2) glob: specifier: ~10.3.3 version: 10.3.3 @@ -108,10 +108,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.4.9 - version: 4.4.9(@types/node@20.5.4) + version: 4.4.9(@types/node@20.5.7) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.4)(search-insights@2.7.0) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0) vitest: specifier: ~0.34.2 version: 0.34.2(@vitest/ui@0.34.2) @@ -1036,14 +1036,14 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.47.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.48.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.47.0 - eslint-visitor-keys: 3.4.2 + eslint: 8.48.0 + eslint-visitor-keys: 3.4.3 dev: true /@eslint-community/regexpp@4.6.2: @@ -1068,8 +1068,8 @@ packages: - supports-color dev: true - /@eslint/js@8.47.0: - resolution: {integrity: sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og==} + /@eslint/js@8.48.0: + resolution: {integrity: sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -1314,8 +1314,8 @@ packages: resolution: {integrity: sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==} dev: true - /@types/markdown-it@13.0.0: - resolution: {integrity: sha512-mPTaUl5glYfzdJFeCsvhXQwZKdyszNAZcMm5ZTP5SfpTu+vIbog7J3z8Fa4x/Fzv5TB4R6OA/pHBYIYmkYOWGQ==} + /@types/markdown-it@13.0.1: + resolution: {integrity: sha512-SUEb8Frsxs3D5Gg9xek6i6EG6XQ5s+O+ZdQzIPESZVZw3Pv3CPQfjCJBI+RgqZd1IBeu18S0Rn600qpPnEK37w==} dependencies: '@types/linkify-it': 3.0.2 '@types/mdurl': 1.0.2 @@ -1333,8 +1333,8 @@ packages: resolution: {integrity: sha512-8q9ZexmdYYyc5/cfujaXb4YOucpQxAV4RMG0himLyDUOEr8Mr79VrqsFI+cQ2M2h89YIuy95lbxuYjxT4Hk4kQ==} dev: true - /@types/node@20.5.4: - resolution: {integrity: sha512-Y9vbIAoM31djQZrPYjpTLo0XlaSwOIsrlfE3LpulZeRblttsLQRFRlBAppW0LOxyT3ALj2M5vU1ucQQayQH3jA==} + /@types/node@20.5.7: + resolution: {integrity: sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==} dev: true /@types/normalize-package-data@2.4.1: @@ -1371,11 +1371,11 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 20.5.4 + '@types/node': 20.5.7 dev: true optional: true - /@typescript-eslint/eslint-plugin@6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.47.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-62o2Hmc7Gs3p8SLfbXcipjWAa6qk2wZGChXG2JbBtYpwSRmti/9KHLqfbLs9uDigOexG+3PaQ9G2g3201FWLKg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1387,13 +1387,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.4.0(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 6.4.0 - '@typescript-eslint/type-utils': 6.4.0(eslint@8.47.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.4.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.4.0(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.4.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.47.0 + eslint: 8.48.0 graphemer: 1.4.0 ignore: 5.2.4 natural-compare: 1.4.0 @@ -1404,7 +1404,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.4.0(eslint@8.47.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.4.0(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-I1Ah1irl033uxjxO9Xql7+biL3YD7w9IU8zF+xlzD/YxY6a4b7DYA08PXUUCbm2sEljwJF6ERFy2kTGAGcNilg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1419,7 +1419,7 @@ packages: '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.4.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.47.0 + eslint: 8.48.0 typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -1449,7 +1449,7 @@ packages: '@typescript-eslint/visitor-keys': 6.4.0 dev: true - /@typescript-eslint/type-utils@6.4.0(eslint@8.47.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.4.0(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-TvqrUFFyGY0cX3WgDHcdl2/mMCWCDv/0thTtx/ODMY1QhEiyFtv/OlLaNIiYLwRpAxAtOLOY9SUf1H3Q3dlwAg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1460,9 +1460,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.4.0(eslint@8.48.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.47.0 + eslint: 8.48.0 ts-api-utils: 1.0.1(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: @@ -1547,19 +1547,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.62.0(eslint@8.47.0)(typescript@4.9.5): + /@typescript-eslint/utils@5.62.0(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) - eslint: 8.47.0 + eslint: 8.48.0 eslint-scope: 5.1.1 semver: 7.5.4 transitivePeerDependencies: @@ -1567,38 +1567,38 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.2.0(eslint@8.47.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.2.0(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-RCFrC1lXiX1qEZN8LmLrxYRhOkElEsPKTVSNout8DMzf8PeWoQG7Rxz2SadpJa3VSh5oYKGwt7j7X/VRg+Y3OQ==} 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.47.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 6.2.0 '@typescript-eslint/types': 6.2.0 '@typescript-eslint/typescript-estree': 6.2.0(typescript@4.9.5) - eslint: 8.47.0 + eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/utils@6.4.0(eslint@8.47.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.4.0(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-BvvwryBQpECPGo8PwF/y/q+yacg8Hn/2XS+DqL/oRsOPK+RPt29h5Ui5dqOKHDlbXrAeHUTnyG3wZA0KTDxRZw==} 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.47.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 6.4.0 '@typescript-eslint/types': 6.4.0 '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) - eslint: 8.47.0 + eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -1610,7 +1610,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: '@typescript-eslint/types': 5.62.0 - eslint-visitor-keys: 3.4.2 + eslint-visitor-keys: 3.4.3 dev: true /@typescript-eslint/visitor-keys@6.2.0: @@ -1618,7 +1618,7 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dependencies: '@typescript-eslint/types': 6.2.0 - eslint-visitor-keys: 3.4.2 + eslint-visitor-keys: 3.4.3 dev: true /@typescript-eslint/visitor-keys@6.4.0: @@ -1626,7 +1626,7 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dependencies: '@typescript-eslint/types': 6.4.0 - eslint-visitor-keys: 3.4.2 + eslint-visitor-keys: 3.4.3 dev: true /@vitejs/plugin-vue@4.2.3(vite@4.4.9)(vue@3.3.4): @@ -1636,12 +1636,12 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.9(@types/node@20.5.4) + vite: 4.4.9(@types/node@20.5.7) vue: 3.3.4 dev: true - /@vitest/coverage-v8@0.34.2(vitest@0.34.2): - resolution: {integrity: sha512-3VuDZPeGGd1zWtc0Tdj9cHSbFc8IQ0ffnWp9MlhItOkziN6HEf219meZ9cZheg/hJXrXb+Fi2bMu7GeCAfL4yA==} + /@vitest/coverage-v8@0.34.3(vitest@0.34.2): + resolution: {integrity: sha512-bNjP0RHe8UxdklCigZlk6FVCNbOiqVjWnpZJ1zKixpvb7YHSaZiN/w+mzpvXIoqyxyePzKC+L+G1oj7SB20PJw==} peerDependencies: vitest: '>=0.32.0 <1' dependencies: @@ -1813,6 +1813,18 @@ packages: - vue dev: true + /@vueuse/core@10.4.1(vue@3.3.4): + resolution: {integrity: sha512-DkHIfMIoSIBjMgRRvdIvxsyboRZQmImofLyOHADqiVbQVilP8VVHDhBX2ZqoItOgu7dWa8oXiNnScOdPLhdEXg==} + dependencies: + '@types/web-bluetooth': 0.0.17 + '@vueuse/metadata': 10.4.1 + '@vueuse/shared': 10.4.1(vue@3.3.4) + vue-demi: 0.14.5(vue@3.3.4) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + /@vueuse/integrations@10.3.0(focus-trap@7.5.2)(vue@3.3.4): resolution: {integrity: sha512-Jgiv7oFyIgC6BxmDtiyG/fxyGysIds00YaY7sefwbhCZ2/tjEx1W/1WcsISSJPNI30in28+HC2J4uuU8184ekg==} peerDependencies: @@ -1867,6 +1879,10 @@ packages: resolution: {integrity: sha512-Ema3YhNOa4swDsV0V7CEY5JXvK19JI/o1szFO1iWxdFg3vhdFtCtSTP26PCvbUpnUtNHBY2wx5y3WDXND5Pvnw==} dev: true + /@vueuse/metadata@10.4.1: + resolution: {integrity: sha512-2Sc8X+iVzeuMGHr6O2j4gv/zxvQGGOYETYXEc41h0iZXIRnRbJZGmY/QP8dvzqUelf8vg0p/yEA5VpCEu+WpZg==} + dev: true + /@vueuse/shared@10.3.0(vue@3.3.4): resolution: {integrity: sha512-kGqCTEuFPMK4+fNWy6dUOiYmxGcUbtznMwBZLC1PubidF4VZY05B+Oht7Jh7/6x4VOWGpvu3R37WHi81cKpiqg==} dependencies: @@ -1876,6 +1892,15 @@ packages: - vue dev: true + /@vueuse/shared@10.4.1(vue@3.3.4): + resolution: {integrity: sha512-vz5hbAM4qA0lDKmcr2y3pPdU+2EVw/yzfRsBdu+6+USGa4PxqSQRYIUC9/NcT06y+ZgaTsyURw2I9qOFaaXHAg==} + dependencies: + vue-demi: 0.14.5(vue@3.3.4) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + /JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true @@ -3162,13 +3187,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@9.0.0(eslint@8.47.0): + /eslint-config-prettier@9.0.0(eslint@8.48.0): resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.47.0 + eslint: 8.48.0 dev: true /eslint-define-config@1.23.0: @@ -3176,7 +3201,7 @@ packages: engines: {node: ^16.13.0 || >=18.0.0, npm: '>=7.0.0', pnpm: '>= 8.6.0'} dev: true - /eslint-gitignore@0.1.0(eslint@8.47.0): + /eslint-gitignore@0.1.0(eslint@8.48.0): resolution: {integrity: sha512-VFvY5Wyjuz5xXDC/NeONHzsh4YQNok2Gzg4SftAAuhkbrdHv5CChjfiFyLKhRlgOdCJr5kBquaLXHtuDBTW2/Q==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -3184,20 +3209,20 @@ packages: dependencies: array.prototype.flatmap: 1.3.1 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.47.0 + eslint: 8.48.0 fast-glob: 3.3.1 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-deprecation@1.5.0(eslint@8.47.0)(typescript@4.9.5): + /eslint-plugin-deprecation@1.5.0(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-mRcssI/tLROueBQ6yf4LnnGTijbMsTCPIpbRbPj5R5wGYVCpk1zDmAS0SEkgcUDXOPc22qMNFR24Qw7vSPrlTA==} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 typescript: ^3.7.5 || ^4.0.0 || ^5.0.0 dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@8.47.0)(typescript@4.9.5) - eslint: 8.47.0 + '@typescript-eslint/utils': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + eslint: 8.48.0 tslib: 2.6.1 tsutils: 3.21.0(typescript@4.9.5) typescript: 4.9.5 @@ -3205,7 +3230,7 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.5.0(eslint@8.47.0): + /eslint-plugin-jsdoc@46.5.0(eslint@8.48.0): resolution: {integrity: sha512-aulXdA4I1dyWpzyS1Nh/GNoS6PavzeucxEapnMR4JUERowWvaEk2Y4A5irpHAcdXtBBHLVe8WIhdXNjoAlGQgA==} engines: {node: '>=16'} peerDependencies: @@ -3216,7 +3241,7 @@ packages: comment-parser: 1.4.0 debug: 4.3.4(supports-color@8.1.1) escape-string-regexp: 4.0.0 - eslint: 8.47.0 + eslint: 8.48.0 esquery: 1.5.0 is-builtin-module: 3.2.1 semver: 7.5.4 @@ -3225,7 +3250,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2): + /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2): resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3239,14 +3264,14 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.47.0 - eslint-config-prettier: 9.0.0(eslint@8.47.0) + eslint: 8.48.0 + eslint-config-prettier: 9.0.0(eslint@8.48.0) prettier: 3.0.2 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true - /eslint-plugin-vitest@0.2.8(eslint@8.47.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2): + /eslint-plugin-vitest@0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2): resolution: {integrity: sha512-q8s4tStyKtn3gXf+8nf1ZYTHhoCXKdnozZzp6u8b4ni5v68Y4vxhNh4Z8njUfNjEY8HoPBB77MazHMR23IPb+g==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3257,9 +3282,9 @@ packages: vite: optional: true dependencies: - '@typescript-eslint/utils': 6.2.0(eslint@8.47.0)(typescript@4.9.5) - eslint: 8.47.0 - vite: 4.4.9(@types/node@20.5.4) + '@typescript-eslint/utils': 6.2.0(eslint@8.48.0)(typescript@4.9.5) + eslint: 8.48.0 + vite: 4.4.9(@types/node@20.5.7) vitest: 0.34.2(@vitest/ui@0.34.2) transitivePeerDependencies: - supports-color @@ -3282,25 +3307,20 @@ packages: estraverse: 5.3.0 dev: true - /eslint-visitor-keys@3.4.2: - resolution: {integrity: sha512-8drBzUEyZ2llkpCA67iYrgEssKDUu68V8ChqqOfFupIaG/LCVPUT+CoGJpT77zJprs4T/W7p07LP7zAIMuweVw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - /eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.47.0: - resolution: {integrity: sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==} + /eslint@8.48.0: + resolution: {integrity: sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@eslint-community/regexpp': 4.6.2 '@eslint/eslintrc': 2.1.2 - '@eslint/js': 8.47.0 + '@eslint/js': 8.48.0 '@humanwhocodes/config-array': 0.11.10 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -6060,7 +6080,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.2(@types/node@20.5.4): + /vite-node@0.34.2(@types/node@20.5.7): resolution: {integrity: sha512-JtW249Zm3FB+F7pQfH56uWSdlltCo1IOkZW5oHBzeQo0iX4jtC7o1t9aILMGd9kVekXBP2lfJBEQt9rBh07ebA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6070,7 +6090,7 @@ packages: mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.5.4) + vite: 4.4.9(@types/node@20.5.7) transitivePeerDependencies: - '@types/node' - less @@ -6082,7 +6102,7 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.5.4): + /vite@4.4.9(@types/node@20.5.7): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6110,7 +6130,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.5.4 + '@types/node': 20.5.7 esbuild: 0.18.18 postcss: 8.4.27 rollup: 3.27.2 @@ -6118,7 +6138,7 @@ packages: fsevents: 2.3.2 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.4)(search-insights@2.7.0): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: @@ -6126,14 +6146,14 @@ packages: '@docsearch/js': 3.5.1(@algolia/client-search@4.19.1)(search-insights@2.7.0) '@vitejs/plugin-vue': 4.2.3(vite@4.4.9)(vue@3.3.4) '@vue/devtools-api': 6.5.0 - '@vueuse/core': 10.3.0(vue@3.3.4) + '@vueuse/core': 10.4.1(vue@3.3.4) '@vueuse/integrations': 10.3.0(focus-trap@7.5.2)(vue@3.3.4) body-scroll-lock: 4.0.0-beta.0 focus-trap: 7.5.2 mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.3 - vite: 4.4.9(@types/node@20.5.4) + vite: 4.4.9(@types/node@20.5.7) vue: 3.3.4 transitivePeerDependencies: - '@algolia/client-search' @@ -6195,7 +6215,7 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 20.5.4 + '@types/node': 20.5.7 '@vitest/expect': 0.34.2 '@vitest/runner': 0.34.2 '@vitest/snapshot': 0.34.2 @@ -6215,8 +6235,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.0 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.5.4) - vite-node: 0.34.2(@types/node@20.5.4) + vite: 4.4.9(@types/node@20.5.7) + vite-node: 0.34.2(@types/node@20.5.7) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 75893b795b28953277868fc6d2f48b43aa73bfdd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 13:48:43 +0200 Subject: [PATCH 33/51] chore(deps): update typescript-eslint to ~6.4.1 (#2352) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 78 +++++++++++++++++++++++++------------------------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 1b4886c5885..d3a6d9db35e 100644 --- a/package.json +++ b/package.json @@ -94,8 +94,8 @@ "@types/sanitize-html": "~2.9.0", "@types/semver": "~7.5.0", "@types/validator": "~13.11.1", - "@typescript-eslint/eslint-plugin": "~6.4.0", - "@typescript-eslint/parser": "~6.4.0", + "@typescript-eslint/eslint-plugin": "~6.4.1", + "@typescript-eslint/parser": "~6.4.1", "@vitest/coverage-v8": "~0.34.3", "@vitest/ui": "~0.34.2", "@vueuse/core": "~10.4.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9bce0950068..c60f40cd4a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,11 +23,11 @@ devDependencies: specifier: ~13.11.1 version: 13.11.1 '@typescript-eslint/eslint-plugin': - specifier: ~6.4.0 - version: 6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.48.0)(typescript@4.9.5) + specifier: ~6.4.1 + version: 6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.4.0 - version: 6.4.0(eslint@8.48.0)(typescript@4.9.5) + specifier: ~6.4.1 + version: 6.4.1(eslint@8.48.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.3 version: 0.34.3(vitest@0.34.2) @@ -1375,8 +1375,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-62o2Hmc7Gs3p8SLfbXcipjWAa6qk2wZGChXG2JbBtYpwSRmti/9KHLqfbLs9uDigOexG+3PaQ9G2g3201FWLKg==} + /@typescript-eslint/eslint-plugin@6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-3F5PtBzUW0dYlq77Lcqo13fv+58KDwUib3BddilE8ajPJT+faGgxmI9Sw+I8ZS22BYwoir9ZhNXcLi+S+I2bkw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1387,11 +1387,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.4.0(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.4.0 - '@typescript-eslint/type-utils': 6.4.0(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.0(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.4.0 + '@typescript-eslint/parser': 6.4.1(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.4.1 + '@typescript-eslint/type-utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.4.1 debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 graphemer: 1.4.0 @@ -1404,8 +1404,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.4.0(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-I1Ah1irl033uxjxO9Xql7+biL3YD7w9IU8zF+xlzD/YxY6a4b7DYA08PXUUCbm2sEljwJF6ERFy2kTGAGcNilg==} + /@typescript-eslint/parser@6.4.1(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-610G6KHymg9V7EqOaNBMtD1GgpAmGROsmfHJPXNLCU9bfIuLrkdOygltK784F6Crboyd5tBFayPB7Sf0McrQwg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1414,10 +1414,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.4.0 - '@typescript-eslint/types': 6.4.0 - '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.4.0 + '@typescript-eslint/scope-manager': 6.4.1 + '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.4.1 debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 typescript: 4.9.5 @@ -1441,16 +1441,16 @@ packages: '@typescript-eslint/visitor-keys': 6.2.0 dev: true - /@typescript-eslint/scope-manager@6.4.0: - resolution: {integrity: sha512-TUS7vaKkPWDVvl7GDNHFQMsMruD+zhkd3SdVW0d7b+7Zo+bd/hXJQ8nsiUZMi1jloWo6c9qt3B7Sqo+flC1nig==} + /@typescript-eslint/scope-manager@6.4.1: + resolution: {integrity: sha512-p/OavqOQfm4/Hdrr7kvacOSFjwQ2rrDVJRPxt/o0TOWdFnjJptnjnZ+sYDR7fi4OimvIuKp+2LCkc+rt9fIW+A==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.4.0 - '@typescript-eslint/visitor-keys': 6.4.0 + '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/visitor-keys': 6.4.1 dev: true - /@typescript-eslint/type-utils@6.4.0(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-TvqrUFFyGY0cX3WgDHcdl2/mMCWCDv/0thTtx/ODMY1QhEiyFtv/OlLaNIiYLwRpAxAtOLOY9SUf1H3Q3dlwAg==} + /@typescript-eslint/type-utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-7ON8M8NXh73SGZ5XvIqWHjgX2f+vvaOarNliGhjrJnv1vdjG0LVIz+ToYfPirOoBi56jxAKLfsLm40+RvxVVXA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1459,8 +1459,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) + '@typescript-eslint/utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 ts-api-utils: 1.0.1(typescript@4.9.5) @@ -1479,8 +1479,8 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.4.0: - resolution: {integrity: sha512-+FV9kVFrS7w78YtzkIsNSoYsnOtrYVnKWSTVXoL1761CsCRv5wpDOINgsXpxD67YCLZtVQekDDyaxfjVWUJmmg==} + /@typescript-eslint/types@6.4.1: + resolution: {integrity: sha512-zAAopbNuYu++ijY1GV2ylCsQsi3B8QvfPHVqhGdDcbx/NK5lkqMnCGU53amAjccSpk+LfeONxwzUhDzArSfZJg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1526,8 +1526,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.4.0(typescript@4.9.5): - resolution: {integrity: sha512-iDPJArf/K2sxvjOR6skeUCNgHR/tCQXBsa+ee1/clRKr3olZjZ/dSkXPZjG6YkPtnW6p5D1egeEPMCW6Gn4yLA==} + /@typescript-eslint/typescript-estree@6.4.1(typescript@4.9.5): + resolution: {integrity: sha512-xF6Y7SatVE/OyV93h1xGgfOkHr2iXuo8ip0gbfzaKeGGuKiAnzS+HtVhSPx8Www243bwlW8IF7X0/B62SzFftg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1535,8 +1535,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.4.0 - '@typescript-eslint/visitor-keys': 6.4.0 + '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/visitor-keys': 6.4.1 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1586,8 +1586,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.4.0(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-BvvwryBQpECPGo8PwF/y/q+yacg8Hn/2XS+DqL/oRsOPK+RPt29h5Ui5dqOKHDlbXrAeHUTnyG3wZA0KTDxRZw==} + /@typescript-eslint/utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-F/6r2RieNeorU0zhqZNv89s9bDZSovv3bZQpUNOmmQK1L80/cV4KEu95YUJWi75u5PhboFoKUJBnZ4FQcoqhDw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1595,9 +1595,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.4.0 - '@typescript-eslint/types': 6.4.0 - '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.4.1 + '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: @@ -1621,11 +1621,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.4.0: - resolution: {integrity: sha512-yJSfyT+uJm+JRDWYRYdCm2i+pmvXJSMtPR9Cq5/XQs4QIgNoLcoRtDdzsLbLsFM/c6um6ohQkg/MLxWvoIndJA==} + /@typescript-eslint/visitor-keys@6.4.1: + resolution: {integrity: sha512-y/TyRJsbZPkJIZQXrHfdnxVnxyKegnpEvnRGNam7s3TRR2ykGefEWOhaef00/UUN3IZxizS7BTO3svd3lCOJRQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.4.0 + '@typescript-eslint/types': 6.4.1 eslint-visitor-keys: 3.4.3 dev: true From 1bd3f6e68067c3dc4f1d4de57fe438bb7f05ce9a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:12:55 +0200 Subject: [PATCH 34/51] chore(deps): update vitest to ~0.34.3 (#2353) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 76 +++++++++++++++++++++++++------------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index d3a6d9db35e..ffcd93095d3 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@typescript-eslint/eslint-plugin": "~6.4.1", "@typescript-eslint/parser": "~6.4.1", "@vitest/coverage-v8": "~0.34.3", - "@vitest/ui": "~0.34.2", + "@vitest/ui": "~0.34.3", "@vueuse/core": "~10.4.1", "conventional-changelog-cli": "~3.0.0", "cypress": "~12.17.4", @@ -124,7 +124,7 @@ "validator": "~13.11.0", "vite": "~4.4.9", "vitepress": "1.0.0-beta.7", - "vitest": "~0.34.2", + "vitest": "~0.34.3", "vue": "~3.3.4" }, "packageManager": "pnpm@8.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c60f40cd4a2..2d403920e8e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,10 +30,10 @@ devDependencies: version: 6.4.1(eslint@8.48.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.3 - version: 0.34.3(vitest@0.34.2) + version: 0.34.3(vitest@0.34.3) '@vitest/ui': - specifier: ~0.34.2 - version: 0.34.2(vitest@0.34.2) + specifier: ~0.34.3 + version: 0.34.3(vitest@0.34.3) '@vueuse/core': specifier: ~10.4.1 version: 10.4.1(vue@3.3.4) @@ -69,7 +69,7 @@ devDependencies: version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2) eslint-plugin-vitest: specifier: ~0.2.8 - version: 0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2) + version: 0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.3) glob: specifier: ~10.3.3 version: 10.3.3 @@ -113,8 +113,8 @@ devDependencies: specifier: 1.0.0-beta.7 version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0) vitest: - specifier: ~0.34.2 - version: 0.34.2(@vitest/ui@0.34.2) + specifier: ~0.34.3 + version: 0.34.3(@vitest/ui@0.34.3) vue: specifier: ~3.3.4 version: 3.3.4 @@ -1640,7 +1640,7 @@ packages: vue: 3.3.4 dev: true - /@vitest/coverage-v8@0.34.3(vitest@0.34.2): + /@vitest/coverage-v8@0.34.3(vitest@0.34.3): resolution: {integrity: sha512-bNjP0RHe8UxdklCigZlk6FVCNbOiqVjWnpZJ1zKixpvb7YHSaZiN/w+mzpvXIoqyxyePzKC+L+G1oj7SB20PJw==} peerDependencies: vitest: '>=0.32.0 <1' @@ -1656,58 +1656,58 @@ packages: std-env: 3.3.3 test-exclude: 6.0.0 v8-to-istanbul: 9.1.0 - vitest: 0.34.2(@vitest/ui@0.34.2) + vitest: 0.34.3(@vitest/ui@0.34.3) transitivePeerDependencies: - supports-color dev: true - /@vitest/expect@0.34.2: - resolution: {integrity: sha512-EZm2dMNlLyIfDMha17QHSQcg2KjeAZaXd65fpPzXY5bvnfx10Lcaz3N55uEe8PhF+w4pw+hmrlHLLlRn9vkBJg==} + /@vitest/expect@0.34.3: + resolution: {integrity: sha512-F8MTXZUYRBVsYL1uoIft1HHWhwDbSzwAU9Zgh8S6WFC3YgVb4AnFV2GXO3P5Em8FjEYaZtTnQYoNwwBrlOMXgg==} dependencies: - '@vitest/spy': 0.34.2 - '@vitest/utils': 0.34.2 + '@vitest/spy': 0.34.3 + '@vitest/utils': 0.34.3 chai: 4.3.7 dev: true - /@vitest/runner@0.34.2: - resolution: {integrity: sha512-8ydGPACVX5tK3Dl0SUwxfdg02h+togDNeQX3iXVFYgzF5odxvaou7HnquALFZkyVuYskoaHUOqOyOLpOEj5XTA==} + /@vitest/runner@0.34.3: + resolution: {integrity: sha512-lYNq7N3vR57VMKMPLVvmJoiN4bqwzZ1euTW+XXYH5kzr3W/+xQG3b41xJn9ChJ3AhYOSoweu974S1V3qDcFESA==} dependencies: - '@vitest/utils': 0.34.2 + '@vitest/utils': 0.34.3 p-limit: 4.0.0 pathe: 1.1.1 dev: true - /@vitest/snapshot@0.34.2: - resolution: {integrity: sha512-qhQ+xy3u4mwwLxltS4Pd4SR+XHv4EajiTPNY3jkIBLUApE6/ce72neJPSUQZ7bL3EBuKI+NhvzhGj3n5baRQUQ==} + /@vitest/snapshot@0.34.3: + resolution: {integrity: sha512-QyPaE15DQwbnIBp/yNJ8lbvXTZxS00kRly0kfFgAD5EYmCbYcA+1EEyRalc93M0gosL/xHeg3lKAClIXYpmUiQ==} dependencies: magic-string: 0.30.2 pathe: 1.1.1 pretty-format: 29.6.2 dev: true - /@vitest/spy@0.34.2: - resolution: {integrity: sha512-yd4L9OhfH6l0Av7iK3sPb3MykhtcRN5c5K5vm1nTbuN7gYn+yvUVVsyvzpHrjqS7EWqn9WsPJb7+0c3iuY60tA==} + /@vitest/spy@0.34.3: + resolution: {integrity: sha512-N1V0RFQ6AI7CPgzBq9kzjRdPIgThC340DGjdKdPSE8r86aUSmeliTUgkTqLSgtEwWWsGfBQ+UetZWhK0BgJmkQ==} dependencies: tinyspy: 2.1.1 dev: true - /@vitest/ui@0.34.2(vitest@0.34.2): - resolution: {integrity: sha512-UXylkcts4Ete3dQ1niwG6Xpp4lNxiSI1ZzjpcJ0+aWz57yNSzuS8+UMTFbYTClBet9XUqzSK9VvGe+ntCHGQbg==} + /@vitest/ui@0.34.3(vitest@0.34.3): + resolution: {integrity: sha512-iNcOQ0xML9znOReiwpKJrTLSj5zFxmveD3VCxIJNqnsaMYpONSbSiiJLC1Y1dYlkmiHylp+ElNcUZYIMWdxRvA==} peerDependencies: vitest: '>=0.30.1 <1' dependencies: - '@vitest/utils': 0.34.2 + '@vitest/utils': 0.34.3 fast-glob: 3.3.1 fflate: 0.8.0 flatted: 3.2.7 pathe: 1.1.1 picocolors: 1.0.0 sirv: 2.0.3 - vitest: 0.34.2(@vitest/ui@0.34.2) + vitest: 0.34.3(@vitest/ui@0.34.3) dev: true - /@vitest/utils@0.34.2: - resolution: {integrity: sha512-Lzw+kAsTPubhoQDp1uVAOP6DhNia1GMDsI9jgB0yMn+/nDaPieYQ88lKqz/gGjSHL4zwOItvpehec9OY+rS73w==} + /@vitest/utils@0.34.3: + resolution: {integrity: sha512-kiSnzLG6m/tiT0XEl4U2H8JDBjFtwVlaE8I3QfGiMFR0QvnRDfYfdP3YvTBWM/6iJDAyaPY6yVQiCTUc7ZzTHA==} dependencies: diff-sequences: 29.4.3 loupe: 2.3.6 @@ -3271,7 +3271,7 @@ packages: synckit: 0.8.5 dev: true - /eslint-plugin-vitest@0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.2): + /eslint-plugin-vitest@0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.3): resolution: {integrity: sha512-q8s4tStyKtn3gXf+8nf1ZYTHhoCXKdnozZzp6u8b4ni5v68Y4vxhNh4Z8njUfNjEY8HoPBB77MazHMR23IPb+g==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3285,7 +3285,7 @@ packages: '@typescript-eslint/utils': 6.2.0(eslint@8.48.0)(typescript@4.9.5) eslint: 8.48.0 vite: 4.4.9(@types/node@20.5.7) - vitest: 0.34.2(@vitest/ui@0.34.2) + vitest: 0.34.3(@vitest/ui@0.34.3) transitivePeerDependencies: - supports-color - typescript @@ -6080,8 +6080,8 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.2(@types/node@20.5.7): - resolution: {integrity: sha512-JtW249Zm3FB+F7pQfH56uWSdlltCo1IOkZW5oHBzeQo0iX4jtC7o1t9aILMGd9kVekXBP2lfJBEQt9rBh07ebA==} + /vite-node@0.34.3(@types/node@20.5.7): + resolution: {integrity: sha512-+0TzJf1g0tYXj6tR2vEyiA42OPq68QkRZCu/ERSo2PtsDJfBpDyEfuKbRvLmZqi/CgC7SCBtyC+WjTGNMRIaig==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: @@ -6182,8 +6182,8 @@ packages: - universal-cookie dev: true - /vitest@0.34.2(@vitest/ui@0.34.2): - resolution: {integrity: sha512-WgaIvBbjsSYMq/oiMlXUI7KflELmzM43BEvkdC/8b5CAod4ryAiY2z8uR6Crbi5Pjnu5oOmhKa9sy7uk6paBxQ==} + /vitest@0.34.3(@vitest/ui@0.34.3): + resolution: {integrity: sha512-7+VA5Iw4S3USYk+qwPxHl8plCMhA5rtfwMjgoQXMT7rO5ldWcdsdo3U1QD289JgglGK4WeOzgoLTsGFu6VISyQ==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -6216,12 +6216,12 @@ packages: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 '@types/node': 20.5.7 - '@vitest/expect': 0.34.2 - '@vitest/runner': 0.34.2 - '@vitest/snapshot': 0.34.2 - '@vitest/spy': 0.34.2 - '@vitest/ui': 0.34.2(vitest@0.34.2) - '@vitest/utils': 0.34.2 + '@vitest/expect': 0.34.3 + '@vitest/runner': 0.34.3 + '@vitest/snapshot': 0.34.3 + '@vitest/spy': 0.34.3 + '@vitest/ui': 0.34.3(vitest@0.34.3) + '@vitest/utils': 0.34.3 acorn: 8.10.0 acorn-walk: 8.2.0 cac: 6.7.14 @@ -6236,7 +6236,7 @@ packages: tinybench: 2.5.0 tinypool: 0.7.0 vite: 4.4.9(@types/node@20.5.7) - vite-node: 0.34.2(@types/node@20.5.7) + vite-node: 0.34.3(@types/node@20.5.7) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From 372f055f27d2c95669fc49352831a31a9709f051 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 28 Aug 2023 14:31:28 +0200 Subject: [PATCH 35/51] infra: update renovate config for vitest (#2330) --- .github/renovate.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 601c821a2d7..a4dfb985ca8 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -37,7 +37,7 @@ }, { "groupName": "vitest", - "matchPackageNames": ["@vitest/coverage-c8", "@vitest/ui", "vitest"] + "matchPackageNames": ["@vitest/coverage-v8", "@vitest/ui", "vitest"] }, { "groupName": "prettier", From 141add07cad6df5ff522dc46860fa6d4542c3b3f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 23:51:09 +0200 Subject: [PATCH 36/51] chore(deps): update dependency conventional-changelog-cli to v4 (#2354) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 335 +++++++++++++++++++++++++++++++++---------------- 2 files changed, 226 insertions(+), 111 deletions(-) diff --git a/package.json b/package.json index ffcd93095d3..17e1b0c6de0 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "@vitest/coverage-v8": "~0.34.3", "@vitest/ui": "~0.34.3", "@vueuse/core": "~10.4.1", - "conventional-changelog-cli": "~3.0.0", + "conventional-changelog-cli": "~4.0.0", "cypress": "~12.17.4", "esbuild": "~0.19.2", "eslint": "~8.48.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2d403920e8e..14b6b1bf476 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,8 +38,8 @@ devDependencies: specifier: ~10.4.1 version: 10.4.1(vue@3.3.4) conventional-changelog-cli: - specifier: ~3.0.0 - version: 3.0.0 + specifier: ~4.0.0 + version: 4.0.0 cypress: specifier: ~12.17.4 version: 12.17.4 @@ -1098,6 +1098,11 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@hutson/parse-repository-url@5.0.0: + resolution: {integrity: sha512-e5+YUKENATs1JgYHMzTr2MW/NDcXGfYFAuOQU8gJgF/kEh4EqKgfGrfLI67bMD4tbhZVlkigz/9YYwWcbOFthg==} + engines: {node: '>=10.13.0'} + dev: true + /@isaacs/cliui@8.0.2: resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -2406,9 +2411,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-angular@6.0.0: - resolution: {integrity: sha512-6qLgrBF4gueoC7AFVHu51nHL9pF9FRjXrH+ceVf7WmAfH3gs+gEYOkvxhjMPjZu57I4AGUGoNTY8V7Hrgf1uqg==} - engines: {node: '>=14'} + /conventional-changelog-angular@7.0.0: + resolution: {integrity: sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==} + engines: {node: '>=16'} dependencies: compare-func: 2.0.0 dev: true @@ -2420,20 +2425,20 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-atom@3.0.0: - resolution: {integrity: sha512-pnN5bWpH+iTUWU3FaYdw5lJmfWeqSyrUkG+wyHBI9tC1dLNnHkbAOg1SzTQ7zBqiFrfo55h40VsGXWMdopwc5g==} - engines: {node: '>=14'} + /conventional-changelog-atom@4.0.0: + resolution: {integrity: sha512-q2YtiN7rnT1TGwPTwjjBSIPIzDJCRE+XAUahWxnh+buKK99Kks4WLMHoexw38GXx9OUxAsrp44f9qXe5VEMYhw==} + engines: {node: '>=16'} dev: true - /conventional-changelog-cli@3.0.0: - resolution: {integrity: sha512-3zMYi0IrfNd6AAHdPMrcgCg5DbcffiqNaEBf8cYrlntXPbBIXaELTbnRmUy5TQAe0Hkgi0J6+/VmRCkkJQflcQ==} - engines: {node: '>=14'} + /conventional-changelog-cli@4.0.0: + resolution: {integrity: sha512-BRI/4/MmQi1KKSpXx+jync+vS81A3LO1dtiZGufUatcTgkxD6w3tlRSaoqGlGX/Oggj9aezcH/Xj3lgBtiEQkA==} + engines: {node: '>=16'} hasBin: true dependencies: add-stream: 1.0.0 - conventional-changelog: 4.0.0 - meow: 8.1.2 - tempfile: 3.0.0 + conventional-changelog: 5.0.0 + meow: 12.1.1 + tempfile: 5.0.0 dev: true /conventional-changelog-codemirror@2.0.8: @@ -2443,9 +2448,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-codemirror@3.0.0: - resolution: {integrity: sha512-wzchZt9HEaAZrenZAUUHMCFcuYzGoZ1wG/kTRMICxsnW5AXohYMRxnyecP9ob42Gvn5TilhC0q66AtTPRSNMfw==} - engines: {node: '>=14'} + /conventional-changelog-codemirror@4.0.0: + resolution: {integrity: sha512-hQSojc/5imn1GJK3A75m9hEZZhc3urojA5gMpnar4JHmgLnuM3CUIARPpEk86glEKr3c54Po3WV/vCaO/U8g3Q==} + engines: {node: '>=16'} dev: true /conventional-changelog-config-spec@2.1.0: @@ -2461,9 +2466,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-conventionalcommits@6.1.0: - resolution: {integrity: sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==} - engines: {node: '>=14'} + /conventional-changelog-conventionalcommits@7.0.1: + resolution: {integrity: sha512-VfFJxBmi+LYXeb4pIfZGbuaFCpWZh0qXbUAKP/s6B8tigV6R4D8j5PDlTtMMWawa7+DcNySVoF7kPWz0EMYuCQ==} + engines: {node: '>=16'} dependencies: compare-func: 2.0.0 dev: true @@ -2488,21 +2493,21 @@ packages: through2: 4.0.2 dev: true - /conventional-changelog-core@5.0.2: - resolution: {integrity: sha512-RhQOcDweXNWvlRwUDCpaqXzbZemKPKncCWZG50Alth72WITVd6nhVk9MJ6w1k9PFNBcZ3YwkdkChE+8+ZwtUug==} - engines: {node: '>=14'} + /conventional-changelog-core@6.0.0: + resolution: {integrity: sha512-7WPwzTp3eRMot/2mbTAHF8m/0Ue4F/R/sMpSjmhBYi/+xnW2SqnXL/FMuYqEpNC2v3rjzRZ4p+9tYcKfHn02Cg==} + engines: {node: '>=16'} dependencies: + '@hutson/parse-repository-url': 5.0.0 add-stream: 1.0.0 - conventional-changelog-writer: 6.0.1 - conventional-commits-parser: 4.0.0 - dateformat: 3.0.3 - get-pkg-repo: 4.2.1 - git-raw-commits: 3.0.0 + conventional-changelog-writer: 7.0.0 + conventional-commits-parser: 5.0.0 + git-raw-commits: 4.0.0 git-remote-origin-url: 2.0.0 - git-semver-tags: 5.0.1 - normalize-package-data: 3.0.3 - read-pkg: 3.0.0 - read-pkg-up: 3.0.0 + git-semver-tags: 6.0.0 + hosted-git-info: 7.0.0 + normalize-package-data: 6.0.0 + read-pkg: 8.1.0 + read-pkg-up: 10.1.0 dev: true /conventional-changelog-ember@2.0.9: @@ -2512,9 +2517,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-ember@3.0.0: - resolution: {integrity: sha512-7PYthCoSxIS98vWhVcSphMYM322OxptpKAuHYdVspryI0ooLDehRXWeRWgN+zWSBXKl/pwdgAg8IpLNSM1/61A==} - engines: {node: '>=14'} + /conventional-changelog-ember@4.0.0: + resolution: {integrity: sha512-D0IMhwcJUg1Y8FSry6XAplEJcljkHVlvAZddhhsdbL1rbsqRsMfGx/PIkPYq0ru5aDgn+OxhQ5N5yR7P9mfsvA==} + engines: {node: '>=16'} dev: true /conventional-changelog-eslint@3.0.9: @@ -2524,9 +2529,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-eslint@4.0.0: - resolution: {integrity: sha512-nEZ9byP89hIU0dMx37JXQkE1IpMmqKtsaR24X7aM3L6Yy/uAtbb+ogqthuNYJkeO1HyvK7JsX84z8649hvp43Q==} - engines: {node: '>=14'} + /conventional-changelog-eslint@5.0.0: + resolution: {integrity: sha512-6JtLWqAQIeJLn/OzUlYmzd9fKeNSWmQVim9kql+v4GrZwLx807kAJl3IJVc3jTYfVKWLxhC3BGUxYiuVEcVjgA==} + engines: {node: '>=16'} dev: true /conventional-changelog-express@2.0.6: @@ -2536,9 +2541,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-express@3.0.0: - resolution: {integrity: sha512-HqxihpUMfIuxvlPvC6HltA4ZktQEUan/v3XQ77+/zbu8No/fqK3rxSZaYeHYant7zRxQNIIli7S+qLS9tX9zQA==} - engines: {node: '>=14'} + /conventional-changelog-express@4.0.0: + resolution: {integrity: sha512-yWyy5c7raP9v7aTvPAWzqrztACNO9+FEI1FSYh7UP7YT1AkWgv5UspUeB5v3Ibv4/o60zj2o9GF2tqKQ99lIsw==} + engines: {node: '>=16'} dev: true /conventional-changelog-jquery@3.0.11: @@ -2548,9 +2553,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-jquery@4.0.0: - resolution: {integrity: sha512-TTIN5CyzRMf8PUwyy4IOLmLV2DFmPtasKN+x7EQKzwSX8086XYwo+NeaeA3VUT8bvKaIy5z/JoWUvi7huUOgaw==} - engines: {node: '>=14'} + /conventional-changelog-jquery@5.0.0: + resolution: {integrity: sha512-slLjlXLRNa/icMI3+uGLQbtrgEny3RgITeCxevJB+p05ExiTgHACP5p3XiMKzjBn80n+Rzr83XMYfRInEtCPPw==} + engines: {node: '>=16'} dev: true /conventional-changelog-jshint@2.0.9: @@ -2561,9 +2566,9 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-jshint@3.0.0: - resolution: {integrity: sha512-bQof4byF4q+n+dwFRkJ/jGf9dCNUv4/kCDcjeCizBvfF81TeimPZBB6fT4HYbXgxxfxWXNl/i+J6T0nI4by6DA==} - engines: {node: '>=14'} + /conventional-changelog-jshint@4.0.0: + resolution: {integrity: sha512-LyXq1bbl0yG0Ai1SbLxIk8ZxUOe3AjnlwE6sVRQmMgetBk+4gY9EO3d00zlEt8Y8gwsITytDnPORl8al7InTjg==} + engines: {node: '>=16'} dependencies: compare-func: 2.0.0 dev: true @@ -2573,9 +2578,9 @@ packages: engines: {node: '>=10'} dev: true - /conventional-changelog-preset-loader@3.0.0: - resolution: {integrity: sha512-qy9XbdSLmVnwnvzEisjxdDiLA4OmV3o8db+Zdg4WiFw14fP3B6XNz98X0swPPpkTd/pc1K7+adKgEDM1JCUMiA==} - engines: {node: '>=14'} + /conventional-changelog-preset-loader@4.0.0: + resolution: {integrity: sha512-xYGvKMkJs8o6vnKDbo2v5VcalZmH54lVU+OCvFQvxj3AQKRMJhbKwvBVsSXfQSuhaG9r6mdK8TIMOaiwiStasg==} + engines: {node: '>=16'} dev: true /conventional-changelog-writer@5.0.1: @@ -2594,18 +2599,17 @@ packages: through2: 4.0.2 dev: true - /conventional-changelog-writer@6.0.1: - resolution: {integrity: sha512-359t9aHorPw+U+nHzUXHS5ZnPBOizRxfQsWT5ZDHBfvfxQOAik+yfuhKXG66CN5LEWPpMNnIMHUTCKeYNprvHQ==} - engines: {node: '>=14'} + /conventional-changelog-writer@7.0.0: + resolution: {integrity: sha512-9/6vTDd3wDbH9yayZNOq53UWI4QqYlbiLBtWf+alsQA/bBFHG+k3KnQ8Fu/xzHqsbQfzPg3w1H1piWYn/GD9Tw==} + engines: {node: '>=16'} hasBin: true dependencies: - conventional-commits-filter: 3.0.0 - dateformat: 3.0.3 + conventional-commits-filter: 4.0.0 handlebars: 4.7.8 json-stringify-safe: 5.0.1 - meow: 8.1.2 + meow: 12.1.1 semver: 7.5.4 - split: 1.0.1 + split2: 4.2.0 dev: true /conventional-changelog@3.1.25: @@ -2625,21 +2629,21 @@ packages: conventional-changelog-preset-loader: 2.3.4 dev: true - /conventional-changelog@4.0.0: - resolution: {integrity: sha512-JbZjwE1PzxQCvm+HUTIr+pbSekS8qdOZzMakdFyPtdkEWwFvwEJYONzjgMm0txCb2yBcIcfKDmg8xtCKTdecNQ==} - engines: {node: '>=14'} + /conventional-changelog@5.0.0: + resolution: {integrity: sha512-k0c3lCtY3+k75gyrIoO7WEyBd4HLxu8QmTTPxM4D+vKk9wN06GZ/iaVJXQsGZae3Cezb02Is5PJ70fia3zZG8Q==} + engines: {node: '>=16'} dependencies: - conventional-changelog-angular: 6.0.0 - conventional-changelog-atom: 3.0.0 - conventional-changelog-codemirror: 3.0.0 - conventional-changelog-conventionalcommits: 6.1.0 - conventional-changelog-core: 5.0.2 - conventional-changelog-ember: 3.0.0 - conventional-changelog-eslint: 4.0.0 - conventional-changelog-express: 3.0.0 - conventional-changelog-jquery: 4.0.0 - conventional-changelog-jshint: 3.0.0 - conventional-changelog-preset-loader: 3.0.0 + conventional-changelog-angular: 7.0.0 + conventional-changelog-atom: 4.0.0 + conventional-changelog-codemirror: 4.0.0 + conventional-changelog-conventionalcommits: 7.0.1 + conventional-changelog-core: 6.0.0 + conventional-changelog-ember: 4.0.0 + conventional-changelog-eslint: 5.0.0 + conventional-changelog-express: 4.0.0 + conventional-changelog-jquery: 5.0.0 + conventional-changelog-jshint: 4.0.0 + conventional-changelog-preset-loader: 4.0.0 dev: true /conventional-commits-filter@2.0.7: @@ -2650,12 +2654,9 @@ packages: modify-values: 1.0.1 dev: true - /conventional-commits-filter@3.0.0: - resolution: {integrity: sha512-1ymej8b5LouPx9Ox0Dw/qAO2dVdfpRFq28e5Y0jJEU8ZrLdy0vOSkkIInwmxErFGhg6SALro60ZrwYFVTUDo4Q==} - engines: {node: '>=14'} - dependencies: - lodash.ismatch: 4.4.0 - modify-values: 1.0.1 + /conventional-commits-filter@4.0.0: + resolution: {integrity: sha512-rnpnibcSOdFcdclpFwWa+pPlZJhXE7l+XK04zxhbWrhgpR96h33QLz8hITTXbcYICxVr3HZFtbtUAQ+4LdBo9A==} + engines: {node: '>=16'} dev: true /conventional-commits-parser@3.2.4: @@ -2671,15 +2672,15 @@ packages: through2: 4.0.2 dev: true - /conventional-commits-parser@4.0.0: - resolution: {integrity: sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg==} - engines: {node: '>=14'} + /conventional-commits-parser@5.0.0: + resolution: {integrity: sha512-ZPMl0ZJbw74iS9LuX9YIAiW8pfM5p3yh2o/NbXHbkFuZzY5jvdi5jFycEOkmBW5H5I7nA+D6f3UcsCLP2vvSEA==} + engines: {node: '>=16'} hasBin: true dependencies: JSONStream: 1.3.5 - is-text-path: 1.0.1 - meow: 8.1.2 - split2: 3.2.2 + is-text-path: 2.0.0 + meow: 12.1.1 + split2: 4.2.0 dev: true /conventional-recommended-bump@6.1.0: @@ -2789,6 +2790,11 @@ packages: engines: {node: '>=8'} dev: true + /dargs@8.1.0: + resolution: {integrity: sha512-wAV9QHOsNbwnWdNW2FYvE1P56wtgSbM+3SZcdGiWQILwVjACCXDCI3Ai8QlCjMDB8YK5zySiXZYBiwGmNY3lnw==} + engines: {node: '>=12'} + dev: true + /dashdash@1.14.1: resolution: {integrity: sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==} engines: {node: '>=0.10'} @@ -3573,6 +3579,14 @@ packages: path-exists: 4.0.0 dev: true + /find-up@6.3.0: + resolution: {integrity: sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + locate-path: 7.2.0 + path-exists: 5.0.0 + dev: true + /flat-cache@3.0.4: resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -3737,14 +3751,14 @@ packages: through2: 4.0.2 dev: true - /git-raw-commits@3.0.0: - resolution: {integrity: sha512-b5OHmZ3vAgGrDn/X0kS+9qCfNKWe4K/jFnhwzVWWg0/k5eLa3060tZShrRg8Dja5kPc+YjS0Gc6y7cRr44Lpjw==} - engines: {node: '>=14'} + /git-raw-commits@4.0.0: + resolution: {integrity: sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==} + engines: {node: '>=16'} hasBin: true dependencies: - dargs: 7.0.0 - meow: 8.1.2 - split2: 3.2.2 + dargs: 8.1.0 + meow: 12.1.1 + split2: 4.2.0 dev: true /git-remote-origin-url@2.0.0: @@ -3764,12 +3778,12 @@ packages: semver: 6.3.1 dev: true - /git-semver-tags@5.0.1: - resolution: {integrity: sha512-hIvOeZwRbQ+7YEUmCkHqo8FOLQZCEn18yevLHADlFPZY02KJGsu5FZt9YW/lybfK2uhWFI7Qg/07LekJiTv7iA==} - engines: {node: '>=14'} + /git-semver-tags@6.0.0: + resolution: {integrity: sha512-v5BL6psuUy+Ftuo99141XlOIDoJtKw5+YyDANS7fknSP0iT4cVIanc3toDsH4K+VpIWc19l2/xkwQmXMfloeUA==} + engines: {node: '>=16'} hasBin: true dependencies: - meow: 8.1.2 + meow: 12.1.1 semver: 7.5.4 dev: true @@ -3936,6 +3950,13 @@ packages: lru-cache: 6.0.0 dev: true + /hosted-git-info@7.0.0: + resolution: {integrity: sha512-ICclEpTLhHj+zCuSb2/usoNXSVkxUSIopre+b1w8NDY9Dntp9LO4vLdHYI336TH8sAqwrRgnSfdkBG2/YpisHA==} + engines: {node: ^16.14.0 || >=18.0.0} + dependencies: + lru-cache: 10.0.1 + dev: true + /html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: true @@ -4214,6 +4235,13 @@ packages: text-extensions: 1.9.0 dev: true + /is-text-path@2.0.0: + resolution: {integrity: sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==} + engines: {node: '>=8'} + dependencies: + text-extensions: 2.4.0 + dev: true + /is-typed-array@1.1.12: resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} engines: {node: '>= 0.4'} @@ -4329,6 +4357,11 @@ packages: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true + /json-parse-even-better-errors@3.0.0: + resolution: {integrity: sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true @@ -4394,6 +4427,11 @@ packages: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true + /lines-and-columns@2.0.3: + resolution: {integrity: sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + /listr2@3.14.0(enquirer@2.4.1): resolution: {integrity: sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==} engines: {node: '>=10.0.0'} @@ -4459,6 +4497,13 @@ packages: p-locate: 5.0.0 dev: true + /locate-path@7.2.0: + resolution: {integrity: sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + p-locate: 6.0.0 + dev: true + /lodash.ismatch@4.4.0: resolution: {integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==} dev: true @@ -4499,8 +4544,8 @@ packages: get-func-name: 2.0.0 dev: true - /lru-cache@10.0.0: - resolution: {integrity: sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==} + /lru-cache@10.0.1: + resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} engines: {node: 14 || >=16.14} dev: true @@ -4554,6 +4599,11 @@ packages: engines: {node: '>= 0.10.0'} dev: true + /meow@12.1.1: + resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==} + engines: {node: '>=16.10'} + dev: true + /meow@8.1.2: resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} engines: {node: '>=10'} @@ -4726,6 +4776,16 @@ packages: validate-npm-package-license: 3.0.4 dev: true + /normalize-package-data@6.0.0: + resolution: {integrity: sha512-UL7ELRVxYBHBgYEtZCXjxuD5vPxnmvMGq0jp/dGPKKrN7tfsBh2IY7TlJ15WWwdjRWD3RJbnsygUurTK3xkPkg==} + engines: {node: ^16.14.0 || >=18.0.0} + dependencies: + hosted-git-info: 7.0.0 + is-core-module: 2.13.0 + semver: 7.5.4 + validate-npm-package-license: 3.0.4 + dev: true + /npm-run-all@4.1.5: resolution: {integrity: sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==} engines: {node: '>= 4'} @@ -4877,6 +4937,13 @@ packages: p-limit: 3.1.0 dev: true + /p-locate@6.0.0: + resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + p-limit: 4.0.0 + dev: true + /p-map@4.0.0: resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} engines: {node: '>=10'} @@ -4919,6 +4986,17 @@ packages: lines-and-columns: 1.2.4 dev: true + /parse-json@7.0.0: + resolution: {integrity: sha512-kP+TQYAzAiVnzOlWOe0diD6L35s9bJh0SCn95PIbZFKrOYuIRQsQkeWEYxzVDuHTt9V9YqvYCJ2Qo4z9wdfZPw==} + engines: {node: '>=16'} + dependencies: + '@babel/code-frame': 7.22.5 + error-ex: 1.3.2 + json-parse-even-better-errors: 3.0.0 + lines-and-columns: 2.0.3 + type-fest: 3.13.1 + dev: true + /parse-srcset@1.0.2: resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==} dev: true @@ -4933,6 +5011,11 @@ packages: engines: {node: '>=8'} dev: true + /path-exists@5.0.0: + resolution: {integrity: sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + /path-is-absolute@1.0.1: resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} engines: {node: '>=0.10.0'} @@ -4961,7 +5044,7 @@ packages: resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} engines: {node: '>=16 || 14 >=14.17'} dependencies: - lru-cache: 10.0.0 + lru-cache: 10.0.1 minipass: 7.0.2 dev: true @@ -5146,6 +5229,15 @@ packages: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true + /read-pkg-up@10.1.0: + resolution: {integrity: sha512-aNtBq4jR8NawpKJQldrQcSW9y/d+KWH4v24HWkHljOZ7H0av+YTGANBzRh9A5pw7v/bLVsLVPpOhJ7gHNVy8lA==} + engines: {node: '>=16'} + dependencies: + find-up: 6.3.0 + read-pkg: 8.1.0 + type-fest: 4.3.1 + dev: true + /read-pkg-up@3.0.0: resolution: {integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==} engines: {node: '>=4'} @@ -5182,6 +5274,16 @@ packages: type-fest: 0.6.0 dev: true + /read-pkg@8.1.0: + resolution: {integrity: sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==} + engines: {node: '>=16'} + dependencies: + '@types/normalize-package-data': 2.4.1 + normalize-package-data: 6.0.0 + parse-json: 7.0.0 + type-fest: 4.3.1 + dev: true + /readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} dependencies: @@ -5511,6 +5613,11 @@ packages: readable-stream: 3.6.2 dev: true + /split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + dev: true + /split@1.0.1: resolution: {integrity: sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==} dependencies: @@ -5716,17 +5823,16 @@ packages: resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==} dev: true - /temp-dir@2.0.0: - resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==} - engines: {node: '>=8'} + /temp-dir@3.0.0: + resolution: {integrity: sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==} + engines: {node: '>=14.16'} dev: true - /tempfile@3.0.0: - resolution: {integrity: sha512-uNFCg478XovRi85iD42egu+eSFUmmka750Jy7L5tfHI5hQKKtbPnxaSaXAbBqCDYrw3wx4tXjKwci4/QmsZJxw==} - engines: {node: '>=8'} + /tempfile@5.0.0: + resolution: {integrity: sha512-bX655WZI/F7EoTDw9JvQURqAXiPHi8o8+yFxPF2lWYyz1aHnmMRuXWqL6YB6GmeO0o4DIYWHLgGNi/X64T+X4Q==} + engines: {node: '>=14.18'} dependencies: - temp-dir: 2.0.0 - uuid: 3.4.0 + temp-dir: 3.0.0 dev: true /test-exclude@6.0.0: @@ -5743,6 +5849,11 @@ packages: engines: {node: '>=0.10'} dev: true + /text-extensions@2.4.0: + resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} + engines: {node: '>=8'} + dev: true + /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true @@ -5920,6 +6031,16 @@ packages: engines: {node: '>=8'} dev: true + /type-fest@3.13.1: + resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==} + engines: {node: '>=14.16'} + dev: true + + /type-fest@4.3.1: + resolution: {integrity: sha512-pphNW/msgOUSkJbH58x8sqpq8uQj6b0ZKGxEsLKMUnGorRcDjrUaLS+39+/ub41JNTwrrMyJcUB8+YZs3mbwqw==} + engines: {node: '>=16'} + dev: true + /typed-array-buffer@1.0.0: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} engines: {node: '>= 0.4'} @@ -6039,12 +6160,6 @@ packages: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} dev: true - /uuid@3.4.0: - resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==} - deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. - hasBin: true - dev: true - /uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true From 16faa2aad1fee0a7b2f668ad6561fa8025cc839f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 30 Aug 2023 08:07:02 +0200 Subject: [PATCH 37/51] chore(deps): update dependency cypress to v13 (#2358) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 17e1b0c6de0..491cb1273e4 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "@vitest/ui": "~0.34.3", "@vueuse/core": "~10.4.1", "conventional-changelog-cli": "~4.0.0", - "cypress": "~12.17.4", + "cypress": "~13.0.0", "esbuild": "~0.19.2", "eslint": "~8.48.0", "eslint-config-prettier": "~9.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14b6b1bf476..bb7b9de3814 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,8 +41,8 @@ devDependencies: specifier: ~4.0.0 version: 4.0.0 cypress: - specifier: ~12.17.4 - version: 12.17.4 + specifier: ~13.0.0 + version: 13.0.0 esbuild: specifier: ~0.19.2 version: 0.19.2 @@ -339,8 +339,8 @@ packages: dev: true optional: true - /@cypress/request@2.88.12: - resolution: {integrity: sha512-tOn+0mDZxASFM+cuAP9szGUGPI1HwWVSvdzm7V4cCsPdFTx6qMj29CwaQmRAMIEhORIUBFBsYROYJcveK4uOjA==} + /@cypress/request@3.0.0: + resolution: {integrity: sha512-GKFCqwZwMYmL3IBoNeR2MM1SnxRIGERsQOTWeQKoYBt2JLqcqiy7JXqO894FLrpjZYqGxW92MNwRH2BN56obdQ==} engines: {node: '>= 6'} dependencies: aws-sign2: 0.7.0 @@ -2734,13 +2734,13 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@12.17.4: - resolution: {integrity: sha512-gAN8Pmns9MA5eCDFSDJXWKUpaL3IDd89N9TtIupjYnzLSmlpVr+ZR+vb4U/qaMp+lB6tBvAmt7504c3Z4RU5KQ==} - engines: {node: ^14.0.0 || ^16.0.0 || >=18.0.0} + /cypress@13.0.0: + resolution: {integrity: sha512-nWHU5dUxP2Wm/zrMd8SWTTl706aJex/l+H4vi/tbu2SWUr17BUcd/sIYeqyxeoSPW1JFV2pT1pf4JEImH/POMg==} + engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true dependencies: - '@cypress/request': 2.88.12 + '@cypress/request': 3.0.0 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) '@types/node': 16.18.39 '@types/sinonjs__fake-timers': 8.1.1 From 8e4ea6790df4b987d1a8c6d32d1eee6db924bed3 Mon Sep 17 00:00:00 2001 From: CoolPlayLin Date: Wed, 30 Aug 2023 14:26:20 +0800 Subject: [PATCH 38/51] feat(locale): add bio, animal, word, music for zh_CN (#2332) --- src/locales/zh_CN/animal/bear.ts | 10 ++ src/locales/zh_CN/animal/cat.ts | 22 +++++ src/locales/zh_CN/animal/dog.ts | 32 +++++++ src/locales/zh_CN/animal/fish.ts | 13 +++ src/locales/zh_CN/animal/horse.ts | 1 + src/locales/zh_CN/animal/index.ts | 22 +++++ src/locales/zh_CN/animal/type.ts | 1 + src/locales/zh_CN/index.ts | 6 ++ src/locales/zh_CN/music/genre.ts | 20 ++++ src/locales/zh_CN/music/index.ts | 14 +++ src/locales/zh_CN/music/song_name.ts | 112 ++++++++++++++++++++++ src/locales/zh_CN/person/bio_part.ts | 40 ++++++++ src/locales/zh_CN/person/bio_pattern.ts | 10 ++ src/locales/zh_CN/person/bio_supporter.ts | 9 ++ src/locales/zh_CN/person/index.ts | 6 ++ src/locales/zh_CN/word/adjective.ts | 50 ++++++++++ src/locales/zh_CN/word/adverb.ts | 75 +++++++++++++++ src/locales/zh_CN/word/index.ts | 16 ++++ src/locales/zh_CN/word/verb.ts | 103 ++++++++++++++++++++ 19 files changed, 562 insertions(+) create mode 100644 src/locales/zh_CN/animal/bear.ts create mode 100644 src/locales/zh_CN/animal/cat.ts create mode 100644 src/locales/zh_CN/animal/dog.ts create mode 100644 src/locales/zh_CN/animal/fish.ts create mode 100644 src/locales/zh_CN/animal/horse.ts create mode 100644 src/locales/zh_CN/animal/index.ts create mode 100644 src/locales/zh_CN/animal/type.ts create mode 100644 src/locales/zh_CN/music/genre.ts create mode 100644 src/locales/zh_CN/music/index.ts create mode 100644 src/locales/zh_CN/music/song_name.ts create mode 100644 src/locales/zh_CN/person/bio_part.ts create mode 100644 src/locales/zh_CN/person/bio_pattern.ts create mode 100644 src/locales/zh_CN/person/bio_supporter.ts create mode 100644 src/locales/zh_CN/word/adjective.ts create mode 100644 src/locales/zh_CN/word/adverb.ts create mode 100644 src/locales/zh_CN/word/index.ts create mode 100644 src/locales/zh_CN/word/verb.ts diff --git a/src/locales/zh_CN/animal/bear.ts b/src/locales/zh_CN/animal/bear.ts new file mode 100644 index 00000000000..f79ac50a58a --- /dev/null +++ b/src/locales/zh_CN/animal/bear.ts @@ -0,0 +1,10 @@ +export default [ + '大熊猫', + '眼镜熊', + '太阳熊', + '懒熊', + '美洲黑熊', + '亚洲黑熊', + '棕熊', + '北极熊', +]; diff --git a/src/locales/zh_CN/animal/cat.ts b/src/locales/zh_CN/animal/cat.ts new file mode 100644 index 00000000000..fccf0afb277 --- /dev/null +++ b/src/locales/zh_CN/animal/cat.ts @@ -0,0 +1,22 @@ +export default [ + '中华田园猫', + '中国狸花猫', + '山东狮子猫', + '玄猫', + '黑白花猫', + '三花猫', + '玳瑁猫', + '橘猫', + '四川简州猫', + '中国大白猫', + '美国短毛猫', + '英国短毛猫', + '加菲猫', + '波斯猫', + '布偶猫', + '苏格兰折耳猫', + '暹罗猫', + '斯芬克斯猫', + '德文卷毛猫', + '阿比西尼亚猫', +]; diff --git a/src/locales/zh_CN/animal/dog.ts b/src/locales/zh_CN/animal/dog.ts new file mode 100644 index 00000000000..02377ef9ca7 --- /dev/null +++ b/src/locales/zh_CN/animal/dog.ts @@ -0,0 +1,32 @@ +export default [ + '藏獒', + '袖狗', + '拉萨狮子犬', + '西藏狮子犬', + '松狮犬', + '中国冠毛犬', + '西施犬', + '沙皮犬', + '八哥犬', + '西藏獚', + '中华田园犬', + '下司犬', + '北京犬', + '西藏梗', + '柴犬', + '哈士奇', + '德国牧羊犬', + '边境牧羊犬', + '贵兵犬', + '秋田犬', + '罗威纳犬', + '蝴蝶犬', + '英国斗牛犬', + '阿富汗猎犬', + '萨摩耶犬', + '大白熊犬', + '比利时牧羊犬', + '美国爱斯基摩犬', + '彭布罗克威尔士柯基犬', + '墨西哥无毛犬', +]; diff --git a/src/locales/zh_CN/animal/fish.ts b/src/locales/zh_CN/animal/fish.ts new file mode 100644 index 00000000000..2c476d42cdb --- /dev/null +++ b/src/locales/zh_CN/animal/fish.ts @@ -0,0 +1,13 @@ +export default [ + '草鱼', + '鲶鱼', + '鳙鱼', + '鲤鱼', + '金鱼', + '胭脂鱼', + '中华鲟', + '长江白鲟', + '新疆大头鱼', + '青鱼', + '鲫鱼', +]; diff --git a/src/locales/zh_CN/animal/horse.ts b/src/locales/zh_CN/animal/horse.ts new file mode 100644 index 00000000000..0bd2ab836e4 --- /dev/null +++ b/src/locales/zh_CN/animal/horse.ts @@ -0,0 +1 @@ +export default ['蒙古马', '伊利马', '三河马', '河曲马']; diff --git a/src/locales/zh_CN/animal/index.ts b/src/locales/zh_CN/animal/index.ts new file mode 100644 index 00000000000..e5c139b584a --- /dev/null +++ b/src/locales/zh_CN/animal/index.ts @@ -0,0 +1,22 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { AnimalDefinition } from '../../..'; +import bear from './bear'; +import cat from './cat'; +import dog from './dog'; +import fish from './fish'; +import horse from './horse'; +import type_ from './type'; + +const animal: AnimalDefinition = { + bear, + cat, + dog, + fish, + horse, + type: type_, +}; + +export default animal; diff --git a/src/locales/zh_CN/animal/type.ts b/src/locales/zh_CN/animal/type.ts new file mode 100644 index 00000000000..375f80d0154 --- /dev/null +++ b/src/locales/zh_CN/animal/type.ts @@ -0,0 +1 @@ +export default ['熊', '猫', '狗', '鱼', '马']; diff --git a/src/locales/zh_CN/index.ts b/src/locales/zh_CN/index.ts index b1b4e21eb2b..3dd37f2eb6f 100644 --- a/src/locales/zh_CN/index.ts +++ b/src/locales/zh_CN/index.ts @@ -3,24 +3,30 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import animal from './animal'; import color from './color'; import company from './company'; import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; +import music from './music'; import person from './person'; import phone_number from './phone_number'; +import word from './word'; const zh_CN: LocaleDefinition = { + animal, color, company, date, internet, location, metadata, + music, person, phone_number, + word, }; export default zh_CN; diff --git a/src/locales/zh_CN/music/genre.ts b/src/locales/zh_CN/music/genre.ts new file mode 100644 index 00000000000..6977f65a123 --- /dev/null +++ b/src/locales/zh_CN/music/genre.ts @@ -0,0 +1,20 @@ +export default [ + '摇滚', + '流行', + '重金属', + '电子', + '民谣', + '世界', + '乡村', + '爵士', + '放克', + '灵魂', + '嘻哈', + '经典', + '拉丁', + '牙买加', + '蓝调', + '非音乐', + '说唱', + '舞台与银幕', +]; diff --git a/src/locales/zh_CN/music/index.ts b/src/locales/zh_CN/music/index.ts new file mode 100644 index 00000000000..53971764ef6 --- /dev/null +++ b/src/locales/zh_CN/music/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { MusicDefinition } from '../../..'; +import genre from './genre'; +import song_name from './song_name'; + +const music: MusicDefinition = { + genre, + song_name, +}; + +export default music; diff --git a/src/locales/zh_CN/music/song_name.ts b/src/locales/zh_CN/music/song_name.ts new file mode 100644 index 00000000000..c5331c78c6c --- /dev/null +++ b/src/locales/zh_CN/music/song_name.ts @@ -0,0 +1,112 @@ +export default [ + '白月光与朱砂痣', + '孤勇者', + '稻香', + '起风了', + '纪念', + '晴天', + '兰亭序', + '我流泪情绪零碎', + '七里香', + '花海', + '反方向的钟', + '一路向北', + '蒲公英的约定', + '夜曲', + '搁浅', + '海底', + '105度的你', + '明明就', + '爱在西元前', + '我如此相信', + '枫', + '青花瓷', + '半岛铁盒', + '说了再见', + '暗号', + '退后', + '最长的电影', + '等你下课', + '烟花易冷', + '不该', + '告白气球', + '说好不哭', + '轨迹', + '红尘客栈', + '不能说的秘密', + '珊瑚海', + '给我一首歌的时间', + '你听得到', + '简单的爱', + '龙卷风', + '发如雪', + '园游会', + '听妈妈的话', + '夜的第七章', + '接口', + '手写从前', + '安静', + '爱情废材', + '以父之名', + '我不配', + '最伟大的作品', + '可爱女人', + '彩虹', + '回到过去', + '听悲伤的情话', + '把回忆拼好给你', + '东风破', + '黑色毛衣', + '本草纲目', + '开不了口', + '霍元甲', + '爱的飞行日记', + '大本钟', + '断了的弦', + '爷爷泡的茶', + '星晴', + '甜甜的', + '红颜如霜', + '粉色海洋', + '她的睫毛', + '雨下一整晚', + '白色风车', + '还在流浪', + '阳光宅男', + '算什么男人', + '菊花台', + '千里之外', + '错过的烟火', + '倒影', + '听见下雨的声音', + '黑色幽默', + '默', + '不爱我拉倒', + '之战之殇', + '布拉格广场', + '美人鱼', + '分裂', + '心雨', + '米兰的小铁匠', + '世界末日', + '一点点', + '外婆', + '画沙', + '哪里都是你', + '刀马旦', + '超人不会飞', + '牛仔很忙', + '周大侠', + '飘移', + '忍者', + '夏日妄想', + '铃芽之旅', + '玫瑰少年', + '大鱼', + '灯火里的中国', + '义勇军进行曲', + '调查中', + '少年', + '堕', + '在你身边', +]; diff --git a/src/locales/zh_CN/person/bio_part.ts b/src/locales/zh_CN/person/bio_part.ts new file mode 100644 index 00000000000..ce3c113ad4f --- /dev/null +++ b/src/locales/zh_CN/person/bio_part.ts @@ -0,0 +1,40 @@ +export default [ + '活动家', + '艺术家', + '作家', + '博主', + '企业家', + '教练', + '发明家', + '设计师', + '开发者', + '教育家', + '工程师', + '企业主', + '环保主义者', + '电影爱好者', + '电影制片人', + '美食家', + '创始人', + '朋友', + '玩家', + '极客', + '毕业生', + '创造者', + '领导者', + '模特', + '脑力爱好者', + '父母', + '爱国者', + '个人', + '哲学家', + '摄影爱好者', + '公众演说家', + '科学家', + '梦想家', + '学生', + '老师', + '旅行家', + '退伍军人', + '作者', +]; diff --git a/src/locales/zh_CN/person/bio_pattern.ts b/src/locales/zh_CN/person/bio_pattern.ts new file mode 100644 index 00000000000..6c76228f444 --- /dev/null +++ b/src/locales/zh_CN/person/bio_pattern.ts @@ -0,0 +1,10 @@ +export default [ + '{{person.bio_part}}', + '{{person.bio_part}},{{person.bio_part}}', + '{{person.bio_part}},{{person.bio_part}},{{person.bio_part}}', + '{{person.bio_part}},{{person.bio_part}},{{person.bio_part}}{{internet.emoji}}', + '{{word.noun}}{{person.bio_supporter}}', + '{{word.noun}}{{person.bio_supporter}}{{internet.emoji}}', + '{{word.noun}}{{person.bio_supporter}},{{person.bio_part}}', + '{{word.noun}}{{person.bio_supporter}},{{person.bio_part}}{{internet.emoji}}', +]; diff --git a/src/locales/zh_CN/person/bio_supporter.ts b/src/locales/zh_CN/person/bio_supporter.ts new file mode 100644 index 00000000000..2416eaa8f52 --- /dev/null +++ b/src/locales/zh_CN/person/bio_supporter.ts @@ -0,0 +1,9 @@ +export default [ + '倡导者', + '贡献者', + '发烧友', + '粉丝', + '狂热者', + '爱好者', + '支持者', +]; diff --git a/src/locales/zh_CN/person/index.ts b/src/locales/zh_CN/person/index.ts index 9c2d4241aa5..13abaeefb19 100644 --- a/src/locales/zh_CN/person/index.ts +++ b/src/locales/zh_CN/person/index.ts @@ -3,6 +3,9 @@ * Run 'pnpm run generate:locales' to update. */ import type { PersonDefinition } from '../../..'; +import bio_part from './bio_part'; +import bio_pattern from './bio_pattern'; +import bio_supporter from './bio_supporter'; import female_first_name from './female_first_name'; import female_prefix from './female_prefix'; import first_name from './first_name'; @@ -14,6 +17,9 @@ import name_ from './name'; import prefix from './prefix'; const person: PersonDefinition = { + bio_part, + bio_pattern, + bio_supporter, female_first_name, female_prefix, first_name, diff --git a/src/locales/zh_CN/word/adjective.ts b/src/locales/zh_CN/word/adjective.ts new file mode 100644 index 00000000000..306249e0441 --- /dev/null +++ b/src/locales/zh_CN/word/adjective.ts @@ -0,0 +1,50 @@ +export default [ + '长', + '短', + '大', + '小', + '粗', + '细', + '红', + '绿', + '平坦', + '整齐', + '雪白', + '笔直', + '绿油油', + '血淋淋', + '骨碌碌', + '黑不溜秋', + '好', + '坏', + '伟大', + '勇敢', + '优秀', + '聪明', + '老实', + '鲁莽', + '大方', + '软', + '硬', + '苦', + '甜', + '冷', + '热', + '坚固', + '平常', + '快', + '慢', + '生动', + '熟练', + '轻松', + '清楚', + '马虎', + '干脆', + '许多', + '好些', + '全部', + '全', + '整', + '多', + '少', +]; diff --git a/src/locales/zh_CN/word/adverb.ts b/src/locales/zh_CN/word/adverb.ts new file mode 100644 index 00000000000..ab7db366548 --- /dev/null +++ b/src/locales/zh_CN/word/adverb.ts @@ -0,0 +1,75 @@ +export default [ + '都', + '全', + '单', + '共', + '光', + '尽', + '净', + '仅', + '就', + '只', + '一共', + '一起', + '一同', + '一道', + '一齐', + '一概', + '一味', + '统统', + '总共', + '仅仅', + '惟独', + '可', + '倒', + '一定', + '必定', + '必然', + '却', + '幸亏', + '难道', + '何尝', + '偏偏', + '索性', + '简直', + '反正', + '多亏', + '也许', + '大约', + '好在', + '敢情', + '不', + '没', + '没有', + '别', + '仿佛', + '渐渐', + '百般', + '特地', + '互相', + '擅自', + '几乎', + '逐渐', + '逐步', + '猛然', + '依然', + '仍然', + '当然', + '毅然', + '果然', + '差点儿', + '很', + '极', + '最', + '太', + '更', + '更加', + '格外', + '十分', + '极其', + '比较', + '相当', + '稍微', + '略微', + '多么', +]; diff --git a/src/locales/zh_CN/word/index.ts b/src/locales/zh_CN/word/index.ts new file mode 100644 index 00000000000..8a054c0a572 --- /dev/null +++ b/src/locales/zh_CN/word/index.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { WordDefinition } from '../../..'; +import adjective from './adjective'; +import adverb from './adverb'; +import verb from './verb'; + +const word: WordDefinition = { + adjective, + adverb, + verb, +}; + +export default word; diff --git a/src/locales/zh_CN/word/verb.ts b/src/locales/zh_CN/word/verb.ts new file mode 100644 index 00000000000..016b48815e3 --- /dev/null +++ b/src/locales/zh_CN/word/verb.ts @@ -0,0 +1,103 @@ +export default [ + '打', + '吃', + '抿', + '做', + '坐', + '跑', + '跳', + '走', + '飞', + '爬', + '开', + '滑', + '切', + '拆', + '咬', + '吞', + '吐', + '吮', + '吸', + '啃', + '喝', + '咀', + '嚼', + '搀', + '抱', + '搂', + '扶', + '捉', + '擒', + '掐', + '推', + '拿', + '抽', + '撕', + '摘', + '拣', + '捡', + '播', + '击', + '捏', + '撒', + '按', + '弹', + '撞', + '提', + '扭', + '捶', + '持', + '揍', + '披', + '捣', + '搜', + '托', + '举', + '拖', + '擦', + '敲', + '挖', + '抛', + '掘', + '抬', + '插', + '扔', + '写', + '抄', + '抓', + '捧', + '掷', + '撑', + '摊', + '倒', + '摔', + '劈', + '画', + '搔', + '撬', + '挥', + '揽', + '挡', + '捺', + '抚', + '搡', + '拉', + '摸', + '拍', + '摇', + '剪', + '拎', + '拔', + '拧', + '拨', + '舞', + '握', + '攥', + '驾驶', + '移动', + '转动', + '操作', + '蠕动', + '启动', + '关闭', +]; From 8e5bc222c67cad38fd406823f5aade91a409e12a Mon Sep 17 00:00:00 2001 From: Anton Stonor Date: Fri, 1 Sep 2023 20:30:00 +0200 Subject: [PATCH 39/51] feat(locale): add word category for da (#2359) --- src/locales/da/index.ts | 2 + src/locales/da/word/adjective.ts | 159 ++++++++++++++++++++ src/locales/da/word/adverb.ts | 43 ++++++ src/locales/da/word/conjunction.ts | 36 +++++ src/locales/da/word/index.ts | 24 +++ src/locales/da/word/interjection.ts | 20 +++ src/locales/da/word/noun.ts | 218 ++++++++++++++++++++++++++++ src/locales/da/word/preposition.ts | 27 ++++ src/locales/da/word/verb.ts | 112 ++++++++++++++ 9 files changed, 641 insertions(+) create mode 100644 src/locales/da/word/adjective.ts create mode 100644 src/locales/da/word/adverb.ts create mode 100644 src/locales/da/word/conjunction.ts create mode 100644 src/locales/da/word/index.ts create mode 100644 src/locales/da/word/interjection.ts create mode 100644 src/locales/da/word/noun.ts create mode 100644 src/locales/da/word/preposition.ts create mode 100644 src/locales/da/word/verb.ts diff --git a/src/locales/da/index.ts b/src/locales/da/index.ts index ec4e17bc802..546a561dd89 100644 --- a/src/locales/da/index.ts +++ b/src/locales/da/index.ts @@ -6,11 +6,13 @@ import type { LocaleDefinition } from '../..'; import location from './location'; import metadata from './metadata'; import person from './person'; +import word from './word'; const da: LocaleDefinition = { location, metadata, person, + word, }; export default da; diff --git a/src/locales/da/word/adjective.ts b/src/locales/da/word/adjective.ts new file mode 100644 index 00000000000..a2e966c530f --- /dev/null +++ b/src/locales/da/word/adjective.ts @@ -0,0 +1,159 @@ +export default [ + 'aktiv', + 'akut', + 'alvorlig', + 'anderledes', + 'ansvarlig', + 'automatisk', + 'bekymret', + 'beslutsom', + 'betagende', + 'betydelig', + 'bevidst', + 'billig', + 'blød', + 'bred', + 'charmerende', + 'dynamisk', + 'dyr', + 'dårlig', + 'effektiv', + 'elegant', + 'energisk', + 'enestående', + 'enkel', + 'entusiastisk', + 'fantastisk', + 'farlig', + 'farverig', + 'fattig', + 'fleksibel', + 'flittig', + 'flydende', + 'forbløffende', + 'fordelagtig', + 'forfærdelig', + 'fornuftig', + 'forstående', + 'fremragende', + 'frisk', + 'frodig', + 'frugtbar', + 'fuldstændig', + 'følsom', + 'førsteklasses', + 'glad', + 'glamourøs', + 'grundig', + 'grusom', + 'gæv', + 'gådefuld', + 'hastig', + 'hensynsfuld', + 'hjertelig', + 'hurtig', + 'hård', + 'imponerende', + 'intelligent', + 'intens', + 'interessant', + 'ivrig', + 'kendt', + 'klog', + 'kold', + 'komfortabel', + 'kompleks', + 'konkurrencedygtig', + 'kraftfuld', + 'kreativ', + 'krydret', + 'kærlig', + 'larmende', + 'lav', + 'ledig', + 'let', + 'loyal', + 'lun', + 'lækker', + 'mager', + 'magtfuld', + 'meget', + 'mild', + 'modig', + 'mærkelig', + 'møjsommelig', + 'naturtro', + 'nyttig', + 'nødvendig', + 'nøjagtig', + 'omhyggelig', + 'omtænksom', + 'original', + 'overraskende', + 'parat', + 'positiv', + 'praktisk', + 'præcis', + 'rask', + 'rimelig', + 'rolig', + 'rund', + 'rå', + 'sammenhængende', + 'selvsikker', + 'sikker', + 'simpel', + 'sjov', + 'skarp', + 'skræmmende', + 'skøn', + 'slank', + 'smagfuld', + 'smuk', + 'snedig', + 'solid', + 'spændende', + 'stille', + 'stolt', + 'strålende', + 'stærk', + 'sund', + 'svag', + 'sød', + 'tapper', + 'tilfreds', + 'tilgængelig', + 'trofast', + 'trænet', + 'tydelig', + 'tålmodig', + 'uafhængig', + 'ubegrænset', + 'ubekymret', + 'uenig', + 'uformel', + 'uhindret', + 'uhøflig', + 'ulige', + 'ulykkelig', + 'umiddelbar', + 'umulig', + 'unik', + 'unnaturlig', + 'usædvanlig', + 'utrolig', + 'utålmodig', + 'varm', + 'venlig', + 'vigtig', + 'vild', + 'virkelig', + 'vis', + 'vittig', + 'ægte', + 'ærgerlig', + 'øm', + 'ønskelig', + 'åben', + 'åbenhjertig', +]; diff --git a/src/locales/da/word/adverb.ts b/src/locales/da/word/adverb.ts new file mode 100644 index 00000000000..7af3de05d58 --- /dev/null +++ b/src/locales/da/word/adverb.ts @@ -0,0 +1,43 @@ +export default [ + 'aldrig', + 'allerede', + 'altid', + 'andensteds', + 'baglæns', + 'bestemt', + 'derefter', + 'endelig', + 'forbi', + 'forgæves', + 'først', + 'hastigt', + 'heldigvis', + 'her', + 'igen', + 'imidlertid', + 'imorgen', + 'indimellem', + 'jo', + 'kun', + 'lige', + 'meget', + 'måske', + 'næppe', + 'næsten', + 'ofte', + 'også', + 'omhyggeligt', + 'overalt', + 'pludselig', + 'sammen', + 'sandsynligvis', + 'selvfølgelig', + 'snart', + 'stadig', + 'straks', + 'tit', + 'udenfor', + 'undervejs', + 'uskadt', + 'vanligvis', +]; diff --git a/src/locales/da/word/conjunction.ts b/src/locales/da/word/conjunction.ts new file mode 100644 index 00000000000..9f6e7c6aafe --- /dev/null +++ b/src/locales/da/word/conjunction.ts @@ -0,0 +1,36 @@ +export default [ + 'altså', + 'at', + 'da', + 'der', + 'dog', + 'efter', + 'efterhånden', + 'eller', + 'end', + 'enten', + 'for', + 'fordi', + 'før', + 'hvad', + 'hvem', + 'hvis', + 'hvor', + 'hvordan', + 'hvorfor', + 'hvorvidt', + 'idet', + 'imens', + 'indtil', + 'ligesom', + 'men', + 'mens', + 'når', + 'og', + 'om', + 'selvom', + 'siden', + 'skønt', + 'som', + 'så', +]; diff --git a/src/locales/da/word/index.ts b/src/locales/da/word/index.ts new file mode 100644 index 00000000000..3aa438b70ce --- /dev/null +++ b/src/locales/da/word/index.ts @@ -0,0 +1,24 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { WordDefinition } from '../../..'; +import adjective from './adjective'; +import adverb from './adverb'; +import conjunction from './conjunction'; +import interjection from './interjection'; +import noun from './noun'; +import preposition from './preposition'; +import verb from './verb'; + +const word: WordDefinition = { + adjective, + adverb, + conjunction, + interjection, + noun, + preposition, + verb, +}; + +export default word; diff --git a/src/locales/da/word/interjection.ts b/src/locales/da/word/interjection.ts new file mode 100644 index 00000000000..82391bae5da --- /dev/null +++ b/src/locales/da/word/interjection.ts @@ -0,0 +1,20 @@ +export default [ + 'ah', + 'av', + 'haha', + 'hallo', + 'hej', + 'hov', + 'hurra', + 'ih', + 'ja', + 'nej', + 'oh', + 'pyha', + 'tja', + 'uf', + 'uh', + 'wow', + 'æv', + 'øv', +]; diff --git a/src/locales/da/word/noun.ts b/src/locales/da/word/noun.ts new file mode 100644 index 00000000000..28bccc6baf9 --- /dev/null +++ b/src/locales/da/word/noun.ts @@ -0,0 +1,218 @@ +export default [ + 'afsnit', + 'afstand', + 'aften', + 'alderdom', + 'antal', + 'arbejde', + 'artikel', + 'avis', + 'bad', + 'balkon', + 'bank', + 'bar', + 'barn', + 'beslutning', + 'betydning', + 'bibliotek', + 'bil', + 'billede', + 'billet', + 'bjerg', + 'blomst', + 'blyant', + 'bog', + 'bord', + 'bredde', + 'brev', + 'bro', + 'bund', + 'butik', + 'by', + 'bygning', + 'børnehave', + 'cafe', + 'center', + 'chance', + 'computer', + 'cykel', + 'dag', + 'dal', + 'del', + 'dybde', + 'dør', + 'effekt', + 'efterår', + 'elevator', + 'erhverv', + 'farve', + 'fase', + 'ferie', + 'fest', + 'film', + 'fisk', + 'fjernsyn', + 'flade', + 'flod', + 'folk', + 'forår', + 'fugl', + 'funktion', + 'fødsel', + 'gade', + 'galakse', + 'grund', + 'gruppe', + 'gulv', + 'hav', + 'have', + 'havn', + 'historie', + 'hjørne', + 'hospital', + 'hotel', + 'hund', + 'hus', + 'højde', + 'indhold', + 'institution', + 'job', + 'kant', + 'kapitel', + 'karriere', + 'kat', + 'kategori', + 'kilde', + 'kirke', + 'klasse', + 'klima', + 'klub', + 'konsekvens', + 'konto', + 'kort', + 'kredit', + 'kulde', + 'kultur', + 'kunst', + 'kælder', + 'køkken', + 'land', + 'lejlighed', + 'linje', + 'liv', + 'lufthavn', + 'lyn', + 'længde', + 'løsning', + 'lån', + 'magasin', + 'maleri', + 'metode', + 'middag', + 'miljø', + 'minut', + 'morgen', + 'moske', + 'mulighed', + 'museum', + 'musik', + 'myndighed', + 'mængde', + 'mønt', + 'mål', + 'måne', + 'måned', + 'nat', + 'nation', + 'natur', + 'ord', + 'organisation', + 'papir', + 'park', + 'pen', + 'penge', + 'planet', + 'pris', + 'problem', + 'proces', + 'profession', + 'punkt', + 'radio', + 'regering', + 'regn', + 'restaurant', + 'resultat', + 'retning', + 'risiko', + 'rolle', + 'rum', + 'samfund', + 'scene', + 'seddel', + 'sekund', + 'selskab', + 'serie', + 'side', + 'skole', + 'skov', + 'skulptur', + 'sky', + 'sne', + 'sol', + 'sommer', + 'soveværelse', + 'spil', + 'spørgsmål', + 'stat', + 'station', + 'stjerne', + 'stol', + 'storm', + 'strand', + 'stue', + 'størrelse', + 'supermarked', + 'svar', + 'synagoge', + 'system', + 'sætning', + 'sø', + 'tag', + 'teater', + 'tegning', + 'tempel', + 'temperatur', + 'terrasse', + 'tid', + 'time', + 'top', + 'torden', + 'tradition', + 'trappe', + 'trin', + 'træ', + 'tunnel', + 'type', + 'udstilling', + 'uge', + 'ungdom', + 'univers', + 'universitet', + 'valg', + 'varme', + 'vej', + 'vejr', + 'video', + 'vind', + 'vindue', + 'vinter', + 'virksomhed', + 'voksen', + 'væg', + 'vægt', + 'værdi', + 'ø', + 'år', + 'årsag', + 'årstid', +]; diff --git a/src/locales/da/word/preposition.ts b/src/locales/da/word/preposition.ts new file mode 100644 index 00000000000..ad20f8a3b44 --- /dev/null +++ b/src/locales/da/word/preposition.ts @@ -0,0 +1,27 @@ +export default [ + 'ad', + 'af', + 'bag', + 'efter', + 'for', + 'fra', + 'før', + 'gennem', + 'henover', + 'hos', + 'i', + 'imod', + 'langs', + 'med', + 'mellem', + 'mod', + 'om', + 'omkring', + 'over', + 'på', + 'til', + 'tværs', + 'uden', + 'under', + 'ved', +]; diff --git a/src/locales/da/word/verb.ts b/src/locales/da/word/verb.ts new file mode 100644 index 00000000000..329ec94cecf --- /dev/null +++ b/src/locales/da/word/verb.ts @@ -0,0 +1,112 @@ +export default [ + 'absorbere', + 'acceptere', + 'anbefale', + 'anerkende', + 'anmelde', + 'anmode', + 'anvende', + 'arbejde', + 'besøge', + 'betale', + 'bo', + 'bruge', + 'brænde', + 'bygge', + 'bære', + 'bøje', + 'cykle', + 'danne', + 'danse', + 'deltage', + 'diskutere', + 'drikke', + 'drive', + 'drømme', + 'dykke', + 'elske', + 'estimere', + 'etablere', + 'falde', + 'fange', + 'finde', + 'fjerne', + 'forstå', + 'forsøge', + 'føle', + 'få', + 'gemme', + 'gide', + 'give', + 'gnide', + 'gøgle', + 'gøre', + 'gå', + 'have', + 'hjælpe', + 'holde', + 'høre', + 'kalde', + 'knipse', + 'koge', + 'komme', + 'kunne', + 'købe', + 'lave', + 'leve', + 'lytte', + 'lære', + 'læse', + 'løbe', + 'løfte', + 'male', + 'mene', + 'miste', + 'motivere', + 'møde', + 'måle', + 'nive', + 'nyde', + 'nægte', + 'nævne', + 'pege', + 'pjække', + 'plante', + 'plukke', + 'prøve', + 'pynte', + 'rejse', + 'ringe', + 'rive', + 'se', + 'sige', + 'skrive', + 'sove', + 'spille', + 'spise', + 'spørge', + 'starte', + 'svømme', + 'synes', + 'synge', + 'sætte', + 'søge', + 'tage', + 'tale', + 'tjene', + 'træne', + 'tænke', + 'udforske', + 'udføre', + 'udgive', + 'udleje', + 'undervise', + 'vandre', + 'vide', + 'ville', + 'vise', + 'vokse', + 'vælge', + 'være', + 'ønske', +]; From 6bb4775747288130c1bbca5fe02eccc549465682 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Sat, 2 Sep 2023 01:43:15 +0700 Subject: [PATCH 40/51] feat(location): update en county list (#2238) --- src/locales/en/location/county.ts | 102 ++++++++++++++++++ .../__snapshots__/location.spec.ts.snap | 6 +- 2 files changed, 105 insertions(+), 3 deletions(-) diff --git a/src/locales/en/location/county.ts b/src/locales/en/location/county.ts index ed4d7ba0c7a..de496db1c32 100644 --- a/src/locales/en/location/county.ts +++ b/src/locales/en/location/county.ts @@ -1,8 +1,110 @@ +// This is a combination of sample en_US and en_GB county names +// https://github.com/faker-js/faker/pull/2238#issuecomment-1682737025 export default [ + 'Adams County', + 'Calhoun County', + 'Carroll County', + 'Clark County', + 'Clay County', + 'Crawford County', + 'Douglas County', + 'Fayette County', + 'Franklin County', + 'Grant County', + 'Greene County', + 'Hamilton County', + 'Hancock County', + 'Henry County', + 'Jackson County', + 'Jefferson County', + 'Johnson County', + 'Lake County', + 'Lawrence County', + 'Lee County', + 'Lincoln County', + 'Logan County', + 'Madison County', + 'Marion County', + 'Marshall County', + 'Monroe County', + 'Montgomery County', + 'Morgan County', + 'Perry County', + 'Pike County', + 'Polk County', + 'Scott County', + 'Union County', + 'Warren County', + 'Washington County', + 'Wayne County', 'Avon', 'Bedfordshire', 'Berkshire', 'Borders', 'Buckinghamshire', 'Cambridgeshire', + 'Central', + 'Cheshire', + 'Cleveland', + 'Clwyd', + 'Cornwall', + 'County Antrim', + 'County Armagh', + 'County Down', + 'County Fermanagh', + 'County Londonderry', + 'County Tyrone', + 'Cumbria', + 'Derbyshire', + 'Devon', + 'Dorset', + 'Dumfries and Galloway', + 'Durham', + 'Dyfed', + 'East Sussex', + 'Essex', + 'Fife', + 'Gloucestershire', + 'Grampian', + 'Greater Manchester', + 'Gwent', + 'Gwynedd County', + 'Hampshire', + 'Herefordshire', + 'Hertfordshire', + 'Highlands and Islands', + 'Humberside', + 'Isle of Wight', + 'Kent', + 'Lancashire', + 'Leicestershire', + 'Lincolnshire', + 'Lothian', + 'Merseyside', + 'Mid Glamorgan', + 'Norfolk', + 'North Yorkshire', + 'Northamptonshire', + 'Northumberland', + 'Nottinghamshire', + 'Oxfordshire', + 'Powys', + 'Rutland', + 'Shropshire', + 'Somerset', + 'South Glamorgan', + 'South Yorkshire', + 'Staffordshire', + 'Strathclyde', + 'Suffolk', + 'Surrey', + 'Tayside', + 'Tyne and Wear', + 'Warwickshire', + 'West Glamorgan', + 'West Midlands', + 'West Sussex', + 'West Yorkshire', + 'Wiltshire', + 'Worcestershire', ]; diff --git a/test/modules/__snapshots__/location.spec.ts.snap b/test/modules/__snapshots__/location.spec.ts.snap index 586009521bf..6d693c9c5c9 100644 --- a/test/modules/__snapshots__/location.spec.ts.snap +++ b/test/modules/__snapshots__/location.spec.ts.snap @@ -20,7 +20,7 @@ exports[`location > 42 > countryCode > with alphaCode option 1`] = `"GUY"`; exports[`location > 42 > countryCode > with string 1`] = `"GY"`; -exports[`location > 42 > county 1`] = `"Berkshire"`; +exports[`location > 42 > county 1`] = `"Borders"`; exports[`location > 42 > direction > noArgs 1`] = `"South"`; @@ -172,7 +172,7 @@ exports[`location > 1211 > countryCode > with alphaCode option 1`] = `"UMI"`; exports[`location > 1211 > countryCode > with string 1`] = `"UM"`; -exports[`location > 1211 > county 1`] = `"Cambridgeshire"`; +exports[`location > 1211 > county 1`] = `"Tyne and Wear"`; exports[`location > 1211 > direction > noArgs 1`] = `"Southwest"`; @@ -324,7 +324,7 @@ exports[`location > 1337 > countryCode > with alphaCode option 1`] = `"ESH"`; exports[`location > 1337 > countryCode > with string 1`] = `"EH"`; -exports[`location > 1337 > county 1`] = `"Bedfordshire"`; +exports[`location > 1337 > county 1`] = `"Morgan County"`; exports[`location > 1337 > direction > noArgs 1`] = `"South"`; From 76886ad96d694268856de83747d7c754b6504050 Mon Sep 17 00:00:00 2001 From: 0xfatherstreet <43332042+mrsimi@users.noreply.github.com> Date: Sun, 3 Sep 2023 07:56:11 +0100 Subject: [PATCH 41/51] feat(locale): add person data for yo locale (#2363) --- docs/guide/localization.md | 1 + src/locale/index.ts | 3 + src/locale/yo_NG.ts | 13 +++ src/locales/index.ts | 1 + src/locales/yo_NG/index.ts | 14 +++ src/locales/yo_NG/metadata.ts | 13 +++ src/locales/yo_NG/person/female_first_name.ts | 86 +++++++++++++++ src/locales/yo_NG/person/first_name.ts | 63 +++++++++++ src/locales/yo_NG/person/index.ts | 20 ++++ src/locales/yo_NG/person/last_name.ts | 100 ++++++++++++++++++ src/locales/yo_NG/person/last_name_pattern.ts | 1 + src/locales/yo_NG/person/male_first_name.ts | 88 +++++++++++++++ test/all_functional.spec.ts | 1 + 13 files changed, 404 insertions(+) create mode 100644 src/locale/yo_NG.ts create mode 100644 src/locales/yo_NG/index.ts create mode 100644 src/locales/yo_NG/metadata.ts create mode 100644 src/locales/yo_NG/person/female_first_name.ts create mode 100644 src/locales/yo_NG/person/first_name.ts create mode 100644 src/locales/yo_NG/person/index.ts create mode 100644 src/locales/yo_NG/person/last_name.ts create mode 100644 src/locales/yo_NG/person/last_name_pattern.ts create mode 100644 src/locales/yo_NG/person/male_first_name.ts diff --git a/docs/guide/localization.md b/docs/guide/localization.md index b3610c4d604..44392f977ab 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -137,6 +137,7 @@ In this example there are 5 locales. Each of these is checked in order, and the | `uk` | Ukrainian | `fakerUK` | | `ur` | Urdu | `fakerUR` | | `vi` | Vietnamese | `fakerVI` | +| `yo_NG` | Yoruba (Nigeria) | `fakerYO_NG` | | `zh_CN` | Chinese (China) | `fakerZH_CN` | | `zh_TW` | Chinese (Taiwan) | `fakerZH_TW` | | `zu_ZA` | Zulu (South Africa) | `fakerZU_ZA` | diff --git a/src/locale/index.ts b/src/locale/index.ts index c39d89d7f1f..733e41dfeb9 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -66,6 +66,7 @@ import { faker as fakerTR } from './tr'; import { faker as fakerUK } from './uk'; import { faker as fakerUR } from './ur'; import { faker as fakerVI } from './vi'; +import { faker as fakerYO_NG } from './yo_NG'; import { faker as fakerZH_CN } from './zh_CN'; import { faker as fakerZH_TW } from './zh_TW'; import { faker as fakerZU_ZA } from './zu_ZA'; @@ -134,6 +135,7 @@ export { fakerUK, fakerUR, fakerVI, + fakerYO_NG, fakerZH_CN, fakerZH_TW, fakerZU_ZA, @@ -203,6 +205,7 @@ export const allFakers = { uk: fakerUK, ur: fakerUR, vi: fakerVI, + yo_NG: fakerYO_NG, zh_CN: fakerZH_CN, zh_TW: fakerZH_TW, zu_ZA: fakerZU_ZA, diff --git a/src/locale/yo_NG.ts b/src/locale/yo_NG.ts new file mode 100644 index 00000000000..27e03f5642a --- /dev/null +++ b/src/locale/yo_NG.ts @@ -0,0 +1,13 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ + +import { Faker } from '../faker'; +import base from '../locales/base'; +import en from '../locales/en'; +import yo_NG from '../locales/yo_NG'; + +export const faker = new Faker({ + locale: [yo_NG, en, base], +}); diff --git a/src/locales/index.ts b/src/locales/index.ts index b30ff124c18..04109822e84 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -66,6 +66,7 @@ export { default as tr } from './tr'; export { default as uk } from './uk'; export { default as ur } from './ur'; export { default as vi } from './vi'; +export { default as yo_NG } from './yo_NG'; export { default as zh_CN } from './zh_CN'; export { default as zh_TW } from './zh_TW'; export { default as zu_ZA } from './zu_ZA'; diff --git a/src/locales/yo_NG/index.ts b/src/locales/yo_NG/index.ts new file mode 100644 index 00000000000..967e785c2fd --- /dev/null +++ b/src/locales/yo_NG/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocaleDefinition } from '../..'; +import metadata from './metadata'; +import person from './person'; + +const yo_NG: LocaleDefinition = { + metadata, + person, +}; + +export default yo_NG; diff --git a/src/locales/yo_NG/metadata.ts b/src/locales/yo_NG/metadata.ts new file mode 100644 index 00000000000..fbd465f44da --- /dev/null +++ b/src/locales/yo_NG/metadata.ts @@ -0,0 +1,13 @@ +import type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/metadata'; + +const metadata: PreBuiltMetadataDefinitionForCountry = { + title: 'Yoruba (Nigeria)', + code: 'yo_NG', + country: 'NG', + language: 'yo', + endonym: 'Yoruba (Naijiria)', + dir: 'ltr', + script: 'Latn', +}; + +export default metadata; diff --git a/src/locales/yo_NG/person/female_first_name.ts b/src/locales/yo_NG/person/female_first_name.ts new file mode 100644 index 00000000000..fd9eb08c2a0 --- /dev/null +++ b/src/locales/yo_NG/person/female_first_name.ts @@ -0,0 +1,86 @@ +export default [ + 'Aanuoluwapo', + 'Abebi', + 'Abeni', + 'Abosede', + 'Adebukola', + 'Adenike', + 'Adepeju', + 'Adesewa', + 'Adesua', + 'Adetoke', + 'Adetoun', + 'Adunni', + 'Ajoke', + 'Amoke', + 'Amope', + 'Arike', + 'Arinola', + 'Asake', + 'Atinuke', + 'Awero', + 'Ayinke', + 'Ayoka', + 'Bolatito', + 'Boluwatife', + 'Bunmi', + 'Doyinsola', + 'Eniola', + 'Ewatomi', + 'Fadekemi', + 'Faderera', + 'Fehintola', + 'Fibikemi', + 'Fikayomi', + 'Folashade', + 'Ibironke', + 'Iretioluwa', + 'Iyabode', + 'Iyadunni', + 'Kikelomo', + 'Modupe', + 'Mofifoluwa', + 'Mojisola', + 'Mojisoluwa', + 'Moradeke', + 'Morayo', + 'Morenike', + 'Morolake', + 'Mosinmileoluwa', + 'Mosunmola', + 'Motunrayo', + 'Moyosore', + 'Ninioluwa', + 'Olajumoke', + 'Olasunmbo', + 'Ololade', + 'Olufunke', + 'Olufunmilayo', + 'Oluwakemi', + 'Omobolanle', + 'Omodunni', + 'Omolabake', + 'Omolara', + 'Omosalewa', + 'Omotara', + 'Omotola', + 'Omotoun', + 'Omowumi', + 'Oreofe', + 'Oyenike', + 'Oyindasola', + 'Radeke', + 'Ronke', + 'Segilola', + 'Similoluwa', + 'Simisola', + 'Sowande', + 'Subomi', + 'Titilayo', + 'Tolulope', + 'Toluwanimi', + 'Wuraola', + 'Yejide', + 'Yetunde', + 'Yewande', +]; diff --git a/src/locales/yo_NG/person/first_name.ts b/src/locales/yo_NG/person/first_name.ts new file mode 100644 index 00000000000..ad582205665 --- /dev/null +++ b/src/locales/yo_NG/person/first_name.ts @@ -0,0 +1,63 @@ +export default [ + 'Abimbola', + 'Abiola', + 'Ade', + 'Adebankole', + 'Adebola', + 'Adedaramola', + 'Adedoyin', + 'Adeola', + 'Alaba', + 'Ara', + 'Ayomide', + 'Ayomikun', + 'Ayotude', + 'Busayo', + 'Damilola', + 'Damola', + 'Darasimi', + 'Ebunoluwa', + 'FolaFoluwa', + 'Ibukunoluwa', + 'Idowu', + 'Ifeoluwa', + 'Imoleoluwa', + 'Iremide', + 'Itunuoluwa', + 'Iyanuoluwa', + 'Iyinoluwa', + 'Kehinde', + 'Mobolaji', + 'Odunayo', + 'Okiki', + 'Ola', + 'Oladara', + 'Olamide', + 'Olaoluwa', + 'Olatunbosun', + 'Olayinka', + 'Olufeyisayo', + 'Olusola', + 'Olutomiwa', + 'Oluwasemilore', + 'Oluwaseun', + 'Oluwaseyi', + 'Oluwatimilehin', + 'Oluwatobiloba', + 'Oluwatofunmi', + 'Oluwatosin', + 'Oluwatoyosi', + 'Oluwatumise', + 'Omolola', + 'Omotolani', + 'Opemipo', + 'Opeoluwa', + 'Opeyemi', + 'Oyindamola', + 'Pelumi', + 'Shola', + 'Taiwo', + 'Tejumola', + 'Temitope', + 'Toluwalope', +]; diff --git a/src/locales/yo_NG/person/index.ts b/src/locales/yo_NG/person/index.ts new file mode 100644 index 00000000000..cd8f015509c --- /dev/null +++ b/src/locales/yo_NG/person/index.ts @@ -0,0 +1,20 @@ +/* + * 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'; + +const person: PersonDefinition = { + female_first_name, + first_name, + last_name, + last_name_pattern, + male_first_name, +}; + +export default person; diff --git a/src/locales/yo_NG/person/last_name.ts b/src/locales/yo_NG/person/last_name.ts new file mode 100644 index 00000000000..2aefcdcf6bb --- /dev/null +++ b/src/locales/yo_NG/person/last_name.ts @@ -0,0 +1,100 @@ +export default [ + 'Adebisi', + 'Adegbite', + 'Adegoke', + 'Adekunle', + 'Adelakun', + 'Adeleke', + 'Adelusi', + 'Ademiluyi', + 'Aderibigbe', + 'Aderogba', + 'Adesiyan', + 'Adeyemo', + 'Adisa', + 'Afolabi', + 'Afolayan', + 'Afonja', + 'Ajao', + 'Ajayi', + 'Ajewole', + 'Akinrinola', + 'Alabi', + 'Aloba', + 'Awodiran', + 'Awolowo', + 'Ayandokun', + 'Ayoola', + 'Babtunde', + 'Bakare', + 'Balogun', + 'Bamidele', + 'Bamiloye', + 'Edun', + 'Fadipe', + 'Fagunwa', + 'Fajimi', + 'Falabi', + 'Faleti', + 'Faloye', + 'Fasasi', + 'Ibikunle', + 'Ilori', + 'Ilupeju', + 'Iyanda', + 'Jaiyeola', + 'Kolade', + 'Kosoko', + 'Koya', + 'Makinde', + 'Makinwa', + 'Morawo', + 'Ninalowo', + 'Odetola', + 'Odunsi', + 'Ogindan', + 'Oginni', + 'Ogulana', + 'Ogunbamigbe', + 'Ogunbiyi', + 'Ogunbo', + 'Ogunde', + 'Ogunwobi', + 'Ogunyeye', + 'Ojo', + 'Ojua', + 'Olabode', + 'Oladipupo', + 'Olaiya', + 'Olasupo', + 'Olowokeere', + 'Oloyede', + 'Olubode', + 'Olugbayila', + 'Olujimi', + 'Olukotun', + 'Olukunga', + 'Olusanya', + 'Oluwagbemi', + 'Omidina', + 'Omojola', + 'Omotoso', + 'Oparinde', + 'Oshin', + 'Osuntokun', + 'Owokoniran', + 'Owolabi', + 'Owoyemi', + 'Oyadiran', + 'Oyaifo', + 'Oyeniyi', + 'Oyetoro', + 'Oyeyemi', + 'Oyinlola', + 'Paimo', + 'Salako', + 'Salami', + 'Shekoni', + 'Sobowale', + 'Soyinka', +]; diff --git a/src/locales/yo_NG/person/last_name_pattern.ts b/src/locales/yo_NG/person/last_name_pattern.ts new file mode 100644 index 00000000000..c66a770f4e3 --- /dev/null +++ b/src/locales/yo_NG/person/last_name_pattern.ts @@ -0,0 +1 @@ +export default [{ value: '{{person.last_name}}', weight: 1 }]; diff --git a/src/locales/yo_NG/person/male_first_name.ts b/src/locales/yo_NG/person/male_first_name.ts new file mode 100644 index 00000000000..ec1e059e06e --- /dev/null +++ b/src/locales/yo_NG/person/male_first_name.ts @@ -0,0 +1,88 @@ +export default [ + 'Abayomi', + 'Abiodun', + 'Abiona', + 'Adebiyi', + 'Adebowale', + 'Adedayo', + 'Adedeji', + 'Adekitan', + 'Adekola', + 'Adekunle', + 'Adeleke', + 'Adeniyi', + 'Adeolu', + 'Adeoti', + 'Aderopo', + 'Adeshina', + 'Adesoji', + 'Adetayo', + 'Adeyi', + 'Adigun', + 'Afolarin', + 'Ajala', + 'Ajani', + 'Akanmu', + 'Akinkunmi', + 'Akinlabi', + 'Akinwale', + 'Alade', + 'Alamu', + 'Anjolaoluwa', + 'Ayinde', + 'Ayodeji', + 'Ayodele', + 'Babasola', + 'Babatunji', + 'Babawale', + 'Damife', + 'Demilade', + 'Durodola', + 'Ekundayo', + 'Esupofo', + 'Folu', + 'Gbadebo', + 'Gbolahan', + 'Gbowoade', + 'Ibidapo', + 'Ige', + 'Ikeoluwa', + 'Inioluwa', + 'Iseoluwa', + 'Ishola', + 'Juwon', + 'Keji', + 'Kolawole', + 'Korede', + 'Leke', + 'Lere', + 'Niyilolawa', + 'Oba', + 'ObaniJesu', + 'Ogooluwa', + 'Oke', + 'Oladare', + 'Oladimeji', + 'Olakunle', + 'Olanrewaju', + 'Olansile', + 'Olumorotimi', + 'Oluwafemi', + 'Oluwagbemiga', + 'Oluwamumibori', + 'Oluwamuyiwa', + 'Oluwasanmi', + 'Oluwasegun', + 'Oluwole', + 'Omobobola', + 'Omotayo', + 'Osunleke', + 'Seye', + 'Shekoni', + 'Sijuade', + 'Tade', + 'Temidayo', + 'Toki', + 'Tokunbo', + 'Tomori', +]; diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index 43f34571a1f..c63592d2069 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -70,6 +70,7 @@ const BROKEN_LOCALE_METHODS = { 'pt_PT', 'ur', 'vi', + 'yo_NG', 'zh_CN', 'zh_TW', 'zu_ZA', From 9176fcbaa74cf0a341374bb44340e410255e0917 Mon Sep 17 00:00:00 2001 From: CoolPlayLin Date: Mon, 4 Sep 2023 00:50:16 +0800 Subject: [PATCH 42/51] feat(locale): add hacker for zh_CN (#2337) --- src/locales/zh_CN/hacker/adjective.ts | 19 +++++++++++++++++++ src/locales/zh_CN/hacker/index.ts | 18 ++++++++++++++++++ src/locales/zh_CN/hacker/noun.ts | 26 ++++++++++++++++++++++++++ src/locales/zh_CN/hacker/phrase.ts | 10 ++++++++++ src/locales/zh_CN/hacker/verb.ts | 20 ++++++++++++++++++++ src/locales/zh_CN/index.ts | 2 ++ 6 files changed, 95 insertions(+) create mode 100644 src/locales/zh_CN/hacker/adjective.ts create mode 100644 src/locales/zh_CN/hacker/index.ts create mode 100644 src/locales/zh_CN/hacker/noun.ts create mode 100644 src/locales/zh_CN/hacker/phrase.ts create mode 100644 src/locales/zh_CN/hacker/verb.ts diff --git a/src/locales/zh_CN/hacker/adjective.ts b/src/locales/zh_CN/hacker/adjective.ts new file mode 100644 index 00000000000..963cbf92485 --- /dev/null +++ b/src/locales/zh_CN/hacker/adjective.ts @@ -0,0 +1,19 @@ +export default [ + '辅助', + '主要', + '后端', + '开源', + '虚拟', + '跨平台', + '冗余', + '在线', + '触控', + '多字节', + '蓝牙', + '无线', + '全高清', + '神经元', + '光学', + '固态', + '移动', +]; diff --git a/src/locales/zh_CN/hacker/index.ts b/src/locales/zh_CN/hacker/index.ts new file mode 100644 index 00000000000..213224f11bb --- /dev/null +++ b/src/locales/zh_CN/hacker/index.ts @@ -0,0 +1,18 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { HackerDefinition } from '../../..'; +import adjective from './adjective'; +import noun from './noun'; +import phrase from './phrase'; +import verb from './verb'; + +const hacker: HackerDefinition = { + adjective, + noun, + phrase, + verb, +}; + +export default hacker; diff --git a/src/locales/zh_CN/hacker/noun.ts b/src/locales/zh_CN/hacker/noun.ts new file mode 100644 index 00000000000..49d9c9ced36 --- /dev/null +++ b/src/locales/zh_CN/hacker/noun.ts @@ -0,0 +1,26 @@ +export default [ + '驱动', + '协议', + '带宽', + '面板', + '芯片', + '程序', + '端口', + '卡片', + '数组', + '接口', + '系统', + '传感器', + '防火墙', + '硬盘', + '像素', + '警报', + '提要', + '监视器', + '应用', + '发送端', + '总线', + '电路', + '电容器', + '矩阵', +]; diff --git a/src/locales/zh_CN/hacker/phrase.ts b/src/locales/zh_CN/hacker/phrase.ts new file mode 100644 index 00000000000..6515965dfb5 --- /dev/null +++ b/src/locales/zh_CN/hacker/phrase.ts @@ -0,0 +1,10 @@ +export default [ + '倘若我们{{verb}}{{noun}},我们就可以通过{{adjective}}{{abbreviation}}{{noun}}获得{{abbreviation}}{{noun}}!', + '我们需要{{verb}}{{adjective}}{{abbreviation}}{{noun}}!', + '尝试{{verb}}{{abbreviation}}{{noun}},也许会{{verb}}{{adjective}}{{noun}}!', + '在没有{{verb}}{{adjective}}{{abbreviation}}{{noun}}的情况下,你不能{{verb}}{{noun}}!', + '使用{{adjective}}{{abbreviation}}{{noun}},然后你就能{{verb}}{{adjective}}{{noun}}!', + '{{abbreviation}}{{noun}}已关闭,因为{{adjective}}{{noun}}所以我们能{{verb}}{{abbreviation}}{{noun}}!', + '{{verb}}{{noun}}是无济于事的,我们需要{{verb}}{{adjective}}{{abbreviation}}{{noun}}!', + '我将{{verb}}{{adjective}}{{abbreviation}}{{noun}},那是应该{{noun}}{{abbreviation}}{{noun}}!', +]; diff --git a/src/locales/zh_CN/hacker/verb.ts b/src/locales/zh_CN/hacker/verb.ts new file mode 100644 index 00000000000..06759b7c3a5 --- /dev/null +++ b/src/locales/zh_CN/hacker/verb.ts @@ -0,0 +1,20 @@ +export default [ + '备份', + '绕过', + '入侵', + '覆盖', + '压缩', + '复制', + '导航', + '索引', + '链接', + '生成', + '量化', + '计算', + '合成', + '输入', + '传输', + '编程', + '重启', + '解析', +]; diff --git a/src/locales/zh_CN/index.ts b/src/locales/zh_CN/index.ts index 3dd37f2eb6f..54604d23938 100644 --- a/src/locales/zh_CN/index.ts +++ b/src/locales/zh_CN/index.ts @@ -7,6 +7,7 @@ import animal from './animal'; import color from './color'; import company from './company'; import date from './date'; +import hacker from './hacker'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -20,6 +21,7 @@ const zh_CN: LocaleDefinition = { color, company, date, + hacker, internet, location, metadata, From 9c359e48e6280911032c343036abd5cfde53c711 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 12:39:10 +0200 Subject: [PATCH 43/51] chore(deps): update devdependencies (#2376) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 14 +- pnpm-lock.yaml | 439 +++++++++++++++++++++++++------------------------ 2 files changed, 234 insertions(+), 219 deletions(-) diff --git a/package.json b/package.json index 491cb1273e4..30486c6502c 100644 --- a/package.json +++ b/package.json @@ -90,9 +90,9 @@ "@actions/github": "~5.1.1", "@algolia/client-search": "~4.19.1", "@types/markdown-it": "~13.0.1", - "@types/node": "~20.5.7", + "@types/node": "~20.5.9", "@types/sanitize-html": "~2.9.0", - "@types/semver": "~7.5.0", + "@types/semver": "~7.5.1", "@types/validator": "~13.11.1", "@typescript-eslint/eslint-plugin": "~6.4.1", "@typescript-eslint/parser": "~6.4.1", @@ -100,17 +100,17 @@ "@vitest/ui": "~0.34.3", "@vueuse/core": "~10.4.1", "conventional-changelog-cli": "~4.0.0", - "cypress": "~13.0.0", + "cypress": "~13.1.0", "esbuild": "~0.19.2", "eslint": "~8.48.0", "eslint-config-prettier": "~9.0.0", "eslint-define-config": "~1.23.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~1.5.0", - "eslint-plugin-jsdoc": "~46.5.0", + "eslint-plugin-jsdoc": "~46.5.1", "eslint-plugin-prettier": "~5.0.0", - "eslint-plugin-vitest": "~0.2.8", - "glob": "~10.3.3", + "eslint-plugin-vitest": "~0.3.1", + "glob": "~10.3.4", "npm-run-all": "~4.1.5", "prettier": "3.0.2", "prettier-plugin-organize-imports": "~3.2.3", @@ -118,7 +118,7 @@ "sanitize-html": "~2.11.0", "semver": "~7.5.4", "standard-version": "~9.5.0", - "tsx": "~3.12.7", + "tsx": "~3.12.8", "typedoc": "~0.24.8", "typescript": "~4.9.5", "validator": "~13.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb7b9de3814..b2e08610c95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,14 +11,14 @@ devDependencies: specifier: ~13.0.1 version: 13.0.1 '@types/node': - specifier: ~20.5.7 - version: 20.5.7 + specifier: ~20.5.9 + version: 20.5.9 '@types/sanitize-html': specifier: ~2.9.0 version: 2.9.0 '@types/semver': - specifier: ~7.5.0 - version: 7.5.0 + specifier: ~7.5.1 + version: 7.5.1 '@types/validator': specifier: ~13.11.1 version: 13.11.1 @@ -41,8 +41,8 @@ devDependencies: specifier: ~4.0.0 version: 4.0.0 cypress: - specifier: ~13.0.0 - version: 13.0.0 + specifier: ~13.1.0 + version: 13.1.0 esbuild: specifier: ~0.19.2 version: 0.19.2 @@ -62,17 +62,17 @@ devDependencies: specifier: ~1.5.0 version: 1.5.0(eslint@8.48.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~46.5.0 - version: 46.5.0(eslint@8.48.0) + specifier: ~46.5.1 + version: 46.5.1(eslint@8.48.0) eslint-plugin-prettier: specifier: ~5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2) eslint-plugin-vitest: - specifier: ~0.2.8 - version: 0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.3) + specifier: ~0.3.1 + version: 0.3.1(@typescript-eslint/eslint-plugin@6.4.1)(eslint@8.48.0)(vitest@0.34.3) glob: - specifier: ~10.3.3 - version: 10.3.3 + specifier: ~10.3.4 + version: 10.3.4 npm-run-all: specifier: ~4.1.5 version: 4.1.5 @@ -95,8 +95,8 @@ devDependencies: specifier: ~9.5.0 version: 9.5.0 tsx: - specifier: ~3.12.7 - version: 3.12.7 + specifier: ~3.12.8 + version: 3.12.8 typedoc: specifier: ~0.24.8 version: 0.24.8(typescript@4.9.5) @@ -108,10 +108,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.4.9 - version: 4.4.9(@types/node@20.5.7) + version: 4.4.9(@types/node@20.5.9) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.9)(search-insights@2.7.0) vitest: specifier: ~0.34.3 version: 0.34.3(@vitest/ui@0.34.3) @@ -424,26 +424,26 @@ packages: /@esbuild-kit/cjs-loader@2.4.2: resolution: {integrity: sha512-BDXFbYOJzT/NBEtp71cvsrGPwGAMGRB/349rwKuoxNSiKjPraNNnlK6MIIabViCjqZugu6j+xeMDlEkWdHHJSg==} dependencies: - '@esbuild-kit/core-utils': 3.1.0 + '@esbuild-kit/core-utils': 3.2.2 get-tsconfig: 4.6.2 dev: true - /@esbuild-kit/core-utils@3.1.0: - resolution: {integrity: sha512-Uuk8RpCg/7fdHSceR1M6XbSZFSuMrxcePFuGgyvsBn+u339dk5OeL4jv2EojwTN2st/unJGsVm4qHWjWNmJ/tw==} + /@esbuild-kit/core-utils@3.2.2: + resolution: {integrity: sha512-Ub6LaRaAgF80dTSzUdXpFLM1pVDdmEVB9qb5iAzSpyDlX/mfJTFGOnZ516O05p5uWWteNviMKi4PAyEuRxI5gA==} dependencies: - esbuild: 0.17.19 + esbuild: 0.18.20 source-map-support: 0.5.21 dev: true /@esbuild-kit/esm-loader@2.5.5: resolution: {integrity: sha512-Qwfvj/qoPbClxCRNuac1Du01r9gvNOT+pMYtJDapfB1eoGN1YlJ1BixLyL9WVENRx5RXgNLdfYdx/CuswlGhMw==} dependencies: - '@esbuild-kit/core-utils': 3.1.0 + '@esbuild-kit/core-utils': 3.2.2 get-tsconfig: 4.6.2 dev: true - /@esbuild/android-arm64@0.17.19: - resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} + /@esbuild/android-arm64@0.18.18: + resolution: {integrity: sha512-dkAPYzRHq3dNXIzOyAknYOzsx8o3KWaNiuu56B2rP9IFPmFWMS58WQcTlUQi6iloku8ZyHHMluCe5sTWhKq/Yw==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -451,8 +451,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.18.18: - resolution: {integrity: sha512-dkAPYzRHq3dNXIzOyAknYOzsx8o3KWaNiuu56B2rP9IFPmFWMS58WQcTlUQi6iloku8ZyHHMluCe5sTWhKq/Yw==} + /@esbuild/android-arm64@0.18.20: + resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -469,8 +469,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.17.19: - resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} + /@esbuild/android-arm@0.18.18: + resolution: {integrity: sha512-oBymf7ZwplAawSxmiSlBCf+FMcY0f4bs5QP2jn43JKUf0M9DnrUTjqa5RvFPl1elw+sMfcpfBRPK+rb+E1q7zg==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -478,8 +478,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.18.18: - resolution: {integrity: sha512-oBymf7ZwplAawSxmiSlBCf+FMcY0f4bs5QP2jn43JKUf0M9DnrUTjqa5RvFPl1elw+sMfcpfBRPK+rb+E1q7zg==} + /@esbuild/android-arm@0.18.20: + resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -496,8 +496,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.17.19: - resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} + /@esbuild/android-x64@0.18.18: + resolution: {integrity: sha512-r7/pVcrUQMYkjvtE/1/n6BxhWM+/9tvLxDG1ev1ce4z3YsqoxMK9bbOM6bFcj0BowMeGQvOZWcBV182lFFKmrw==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -505,8 +505,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.18.18: - resolution: {integrity: sha512-r7/pVcrUQMYkjvtE/1/n6BxhWM+/9tvLxDG1ev1ce4z3YsqoxMK9bbOM6bFcj0BowMeGQvOZWcBV182lFFKmrw==} + /@esbuild/android-x64@0.18.20: + resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -523,8 +523,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.17.19: - resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} + /@esbuild/darwin-arm64@0.18.18: + resolution: {integrity: sha512-MSe2iV9MAH3wfP0g+vzN9bp36rtPPuCSk+bT5E2vv/d8krvW5uB/Pi/Q5+txUZuxsG3GcO8dhygjnFq0wJU9hQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -532,8 +532,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.18.18: - resolution: {integrity: sha512-MSe2iV9MAH3wfP0g+vzN9bp36rtPPuCSk+bT5E2vv/d8krvW5uB/Pi/Q5+txUZuxsG3GcO8dhygjnFq0wJU9hQ==} + /@esbuild/darwin-arm64@0.18.20: + resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -550,8 +550,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.17.19: - resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} + /@esbuild/darwin-x64@0.18.18: + resolution: {integrity: sha512-ARFYISOWkaifjcr48YtO70gcDNeOf1H2RnmOj6ip3xHIj66f3dAbhcd5Nph5np6oHI7DhHIcr9MWO18RvUL1bw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -559,8 +559,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.18.18: - resolution: {integrity: sha512-ARFYISOWkaifjcr48YtO70gcDNeOf1H2RnmOj6ip3xHIj66f3dAbhcd5Nph5np6oHI7DhHIcr9MWO18RvUL1bw==} + /@esbuild/darwin-x64@0.18.20: + resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -577,8 +577,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.17.19: - resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} + /@esbuild/freebsd-arm64@0.18.18: + resolution: {integrity: sha512-BHnXmexzEWRU2ZySJosU0Ts0NRnJnNrMB6t4EiIaOSel73I8iLsNiTPLH0rJulAh19cYZutsB5XHK6N8fi5eMg==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -586,8 +586,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.18.18: - resolution: {integrity: sha512-BHnXmexzEWRU2ZySJosU0Ts0NRnJnNrMB6t4EiIaOSel73I8iLsNiTPLH0rJulAh19cYZutsB5XHK6N8fi5eMg==} + /@esbuild/freebsd-arm64@0.18.20: + resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -604,8 +604,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.17.19: - resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} + /@esbuild/freebsd-x64@0.18.18: + resolution: {integrity: sha512-n823w35wm0ZOobbuE//0sJjuz1Qj619+AwjgOcAJMN2pomZhH9BONCtn+KlfrmM/NWZ+27yB/eGVFzUIWLeh3w==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -613,8 +613,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.18.18: - resolution: {integrity: sha512-n823w35wm0ZOobbuE//0sJjuz1Qj619+AwjgOcAJMN2pomZhH9BONCtn+KlfrmM/NWZ+27yB/eGVFzUIWLeh3w==} + /@esbuild/freebsd-x64@0.18.20: + resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -631,8 +631,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.17.19: - resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} + /@esbuild/linux-arm64@0.18.18: + resolution: {integrity: sha512-zANxnwF0sCinDcAqoMohGoWBK9QaFJ65Vgh0ZE+RXtURaMwx+RfmfLElqtnn7X8OYNckMoIXSg7u+tZ3tqTlrA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -640,8 +640,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.18.18: - resolution: {integrity: sha512-zANxnwF0sCinDcAqoMohGoWBK9QaFJ65Vgh0ZE+RXtURaMwx+RfmfLElqtnn7X8OYNckMoIXSg7u+tZ3tqTlrA==} + /@esbuild/linux-arm64@0.18.20: + resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -658,8 +658,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.17.19: - resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} + /@esbuild/linux-arm@0.18.18: + resolution: {integrity: sha512-Kck3jxPLQU4VeAGwe8Q4NU+IWIx+suULYOFUI9T0C2J1+UQlOHJ08ITN+MaJJ+2youzJOmKmcphH/t3SJxQ1Tw==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -667,8 +667,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.18.18: - resolution: {integrity: sha512-Kck3jxPLQU4VeAGwe8Q4NU+IWIx+suULYOFUI9T0C2J1+UQlOHJ08ITN+MaJJ+2youzJOmKmcphH/t3SJxQ1Tw==} + /@esbuild/linux-arm@0.18.20: + resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -685,8 +685,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.17.19: - resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} + /@esbuild/linux-ia32@0.18.18: + resolution: {integrity: sha512-+VHz2sIRlY5u8IlaLJpdf5TL2kM76yx186pW7bpTB+vLWpzcFQVP04L842ZB2Ty13A1VXUvy3DbU1jV65P2skg==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -694,8 +694,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.18.18: - resolution: {integrity: sha512-+VHz2sIRlY5u8IlaLJpdf5TL2kM76yx186pW7bpTB+vLWpzcFQVP04L842ZB2Ty13A1VXUvy3DbU1jV65P2skg==} + /@esbuild/linux-ia32@0.18.20: + resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -712,8 +712,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.17.19: - resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} + /@esbuild/linux-loong64@0.18.18: + resolution: {integrity: sha512-fXPEPdeGBvguo/1+Na8OIWz3667BN1cwbGtTEZWTd0qdyTsk5gGf9jVX8MblElbDb/Cpw6y5JiaQuL96YmvBwQ==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -721,8 +721,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.18.18: - resolution: {integrity: sha512-fXPEPdeGBvguo/1+Na8OIWz3667BN1cwbGtTEZWTd0qdyTsk5gGf9jVX8MblElbDb/Cpw6y5JiaQuL96YmvBwQ==} + /@esbuild/linux-loong64@0.18.20: + resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -739,8 +739,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.17.19: - resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} + /@esbuild/linux-mips64el@0.18.18: + resolution: {integrity: sha512-dLvRB87pIBIRnEIC32LIcgwK1JzlIuADIRjLKdUIpxauKwMuS/xMpN+cFl+0nN4RHNYOZ57DmXFFmQAcdlFOmw==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -748,8 +748,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.18.18: - resolution: {integrity: sha512-dLvRB87pIBIRnEIC32LIcgwK1JzlIuADIRjLKdUIpxauKwMuS/xMpN+cFl+0nN4RHNYOZ57DmXFFmQAcdlFOmw==} + /@esbuild/linux-mips64el@0.18.20: + resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -766,8 +766,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.17.19: - resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} + /@esbuild/linux-ppc64@0.18.18: + resolution: {integrity: sha512-fRChqIJZ7hLkXSKfBLYgsX9Ssb5OGCjk3dzCETF5QSS1qjTgayLv0ALUdJDB9QOh/nbWwp+qfLZU6md4XcjL7w==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -775,8 +775,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.18.18: - resolution: {integrity: sha512-fRChqIJZ7hLkXSKfBLYgsX9Ssb5OGCjk3dzCETF5QSS1qjTgayLv0ALUdJDB9QOh/nbWwp+qfLZU6md4XcjL7w==} + /@esbuild/linux-ppc64@0.18.20: + resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -793,8 +793,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.17.19: - resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} + /@esbuild/linux-riscv64@0.18.18: + resolution: {integrity: sha512-ALK/BT3u7Hoa/vHjow6W6+MKF0ohYcVcVA1EpskI4bkBPVuDLrUDqt2YFifg5UcZc8qup0CwQqWmFUd6VMNgaA==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -802,8 +802,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.18.18: - resolution: {integrity: sha512-ALK/BT3u7Hoa/vHjow6W6+MKF0ohYcVcVA1EpskI4bkBPVuDLrUDqt2YFifg5UcZc8qup0CwQqWmFUd6VMNgaA==} + /@esbuild/linux-riscv64@0.18.20: + resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -820,8 +820,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.17.19: - resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} + /@esbuild/linux-s390x@0.18.18: + resolution: {integrity: sha512-crT7jtOXd9iirY65B+mJQ6W0HWdNy8dtkZqKGWNcBnunpLcTCfne5y5bKic9bhyYzKpQEsO+C/VBPD8iF0RhRw==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -829,8 +829,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.18.18: - resolution: {integrity: sha512-crT7jtOXd9iirY65B+mJQ6W0HWdNy8dtkZqKGWNcBnunpLcTCfne5y5bKic9bhyYzKpQEsO+C/VBPD8iF0RhRw==} + /@esbuild/linux-s390x@0.18.20: + resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -847,8 +847,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.17.19: - resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} + /@esbuild/linux-x64@0.18.18: + resolution: {integrity: sha512-/NSgghjBOW9ELqjXDYxOCCIsvQUZpvua1/6NdnA9Vnrp9UzEydyDdFXljUjMMS9p5KxMzbMO9frjHYGVHBfCHg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -856,8 +856,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.18.18: - resolution: {integrity: sha512-/NSgghjBOW9ELqjXDYxOCCIsvQUZpvua1/6NdnA9Vnrp9UzEydyDdFXljUjMMS9p5KxMzbMO9frjHYGVHBfCHg==} + /@esbuild/linux-x64@0.18.20: + resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -874,8 +874,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.17.19: - resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} + /@esbuild/netbsd-x64@0.18.18: + resolution: {integrity: sha512-8Otf05Vx5sZjLLDulgr5QS5lsWXMplKZEyHMArH9/S4olLlhzmdhQBPhzhJTNwaL2FJNdWcUPNGAcoD5zDTfUA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -883,8 +883,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.18.18: - resolution: {integrity: sha512-8Otf05Vx5sZjLLDulgr5QS5lsWXMplKZEyHMArH9/S4olLlhzmdhQBPhzhJTNwaL2FJNdWcUPNGAcoD5zDTfUA==} + /@esbuild/netbsd-x64@0.18.20: + resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -901,8 +901,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.17.19: - resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} + /@esbuild/openbsd-x64@0.18.18: + resolution: {integrity: sha512-tFiFF4kT5L5qhVrWJUNxEXWvvX8nK/UX9ZrB7apuTwY3f6+Xy4aFMBPwAVrBYtBd5MOUuyOVHK6HBZCAHkwUlw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -910,8 +910,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.18.18: - resolution: {integrity: sha512-tFiFF4kT5L5qhVrWJUNxEXWvvX8nK/UX9ZrB7apuTwY3f6+Xy4aFMBPwAVrBYtBd5MOUuyOVHK6HBZCAHkwUlw==} + /@esbuild/openbsd-x64@0.18.20: + resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -928,8 +928,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.17.19: - resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} + /@esbuild/sunos-x64@0.18.18: + resolution: {integrity: sha512-MPogVV8Bzh8os4OM+YDGGsSzCzmNRiyKGtHoJyZLtI4BMmd6EcxmGlcEGK1uM46h1BiOyi7Z7teUtzzQhvkC+w==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -937,8 +937,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.18.18: - resolution: {integrity: sha512-MPogVV8Bzh8os4OM+YDGGsSzCzmNRiyKGtHoJyZLtI4BMmd6EcxmGlcEGK1uM46h1BiOyi7Z7teUtzzQhvkC+w==} + /@esbuild/sunos-x64@0.18.20: + resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -955,8 +955,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.17.19: - resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} + /@esbuild/win32-arm64@0.18.18: + resolution: {integrity: sha512-YKD6LF/XXY9REu+ZL5RAsusiG48n602qxsMVh/E8FFD9hp4OyTQaL9fpE1ovxwQXqFio+tT0ITUGjDSSSPN13w==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -964,8 +964,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.18.18: - resolution: {integrity: sha512-YKD6LF/XXY9REu+ZL5RAsusiG48n602qxsMVh/E8FFD9hp4OyTQaL9fpE1ovxwQXqFio+tT0ITUGjDSSSPN13w==} + /@esbuild/win32-arm64@0.18.20: + resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -982,8 +982,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.17.19: - resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} + /@esbuild/win32-ia32@0.18.18: + resolution: {integrity: sha512-NjSBmBsyZBTsZB6ga6rA6PfG/RHnwruUz/9YEVXcm4STGauFWvhYhOMhEyw1yU5NVgYYm8CH5AltCm77TS21/Q==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -991,8 +991,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.18.18: - resolution: {integrity: sha512-NjSBmBsyZBTsZB6ga6rA6PfG/RHnwruUz/9YEVXcm4STGauFWvhYhOMhEyw1yU5NVgYYm8CH5AltCm77TS21/Q==} + /@esbuild/win32-ia32@0.18.20: + resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -1009,8 +1009,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.17.19: - resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} + /@esbuild/win32-x64@0.18.18: + resolution: {integrity: sha512-eTSg/gC3p3tdjj4roDhe5xu94l1s2jMazP8u2FsYO8SEKvSpPOO71EucprDn/IuErDPvTFUhV9lTw5z5WJCRKQ==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1018,8 +1018,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.18.18: - resolution: {integrity: sha512-eTSg/gC3p3tdjj4roDhe5xu94l1s2jMazP8u2FsYO8SEKvSpPOO71EucprDn/IuErDPvTFUhV9lTw5z5WJCRKQ==} + /@esbuild/win32-x64@0.18.20: + resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1338,8 +1338,8 @@ packages: resolution: {integrity: sha512-8q9ZexmdYYyc5/cfujaXb4YOucpQxAV4RMG0himLyDUOEr8Mr79VrqsFI+cQ2M2h89YIuy95lbxuYjxT4Hk4kQ==} dev: true - /@types/node@20.5.7: - resolution: {integrity: sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==} + /@types/node@20.5.9: + resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} dev: true /@types/normalize-package-data@2.4.1: @@ -1352,8 +1352,8 @@ packages: htmlparser2: 8.0.2 dev: true - /@types/semver@7.5.0: - resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} + /@types/semver@7.5.1: + resolution: {integrity: sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==} dev: true /@types/sinonjs__fake-timers@8.1.1: @@ -1376,7 +1376,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 20.5.7 + '@types/node': 20.5.9 dev: true optional: true @@ -1438,14 +1438,6 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/scope-manager@6.2.0: - resolution: {integrity: sha512-1ZMNVgm5nnHURU8ZSJ3snsHzpFeNK84rdZjluEVBGNu7jDymfqceB3kdIZ6A4xCfEFFhRIB6rF8q/JIqJd2R0Q==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.2.0 - '@typescript-eslint/visitor-keys': 6.2.0 - dev: true - /@typescript-eslint/scope-manager@6.4.1: resolution: {integrity: sha512-p/OavqOQfm4/Hdrr7kvacOSFjwQ2rrDVJRPxt/o0TOWdFnjJptnjnZ+sYDR7fi4OimvIuKp+2LCkc+rt9fIW+A==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1454,6 +1446,14 @@ packages: '@typescript-eslint/visitor-keys': 6.4.1 dev: true + /@typescript-eslint/scope-manager@6.5.0: + resolution: {integrity: sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/visitor-keys': 6.5.0 + dev: true + /@typescript-eslint/type-utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): resolution: {integrity: sha512-7ON8M8NXh73SGZ5XvIqWHjgX2f+vvaOarNliGhjrJnv1vdjG0LVIz+ToYfPirOoBi56jxAKLfsLm40+RvxVVXA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1479,13 +1479,13 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@6.2.0: - resolution: {integrity: sha512-1nRRaDlp/XYJQLvkQJG5F3uBTno5SHPT7XVcJ5n1/k2WfNI28nJsvLakxwZRNY5spuatEKO7d5nZWsQpkqXwBA==} + /@typescript-eslint/types@6.4.1: + resolution: {integrity: sha512-zAAopbNuYu++ijY1GV2ylCsQsi3B8QvfPHVqhGdDcbx/NK5lkqMnCGU53amAjccSpk+LfeONxwzUhDzArSfZJg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/types@6.4.1: - resolution: {integrity: sha512-zAAopbNuYu++ijY1GV2ylCsQsi3B8QvfPHVqhGdDcbx/NK5lkqMnCGU53amAjccSpk+LfeONxwzUhDzArSfZJg==} + /@typescript-eslint/types@6.5.0: + resolution: {integrity: sha512-eqLLOEF5/lU8jW3Bw+8auf4lZSbbljHR2saKnYqON12G/WsJrGeeDHWuQePoEf9ro22+JkbPfWQwKEC5WwLQ3w==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1510,8 +1510,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.2.0(typescript@4.9.5): - resolution: {integrity: sha512-Mts6+3HQMSM+LZCglsc2yMIny37IhUgp1Qe8yJUYVyO6rHP7/vN0vajKu3JvHCBIy8TSiKddJ/Zwu80jhnGj1w==} + /@typescript-eslint/typescript-estree@6.4.1(typescript@4.9.5): + resolution: {integrity: sha512-xF6Y7SatVE/OyV93h1xGgfOkHr2iXuo8ip0gbfzaKeGGuKiAnzS+HtVhSPx8Www243bwlW8IF7X0/B62SzFftg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1519,8 +1519,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.2.0 - '@typescript-eslint/visitor-keys': 6.2.0 + '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/visitor-keys': 6.4.1 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1531,8 +1531,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.4.1(typescript@4.9.5): - resolution: {integrity: sha512-xF6Y7SatVE/OyV93h1xGgfOkHr2iXuo8ip0gbfzaKeGGuKiAnzS+HtVhSPx8Www243bwlW8IF7X0/B62SzFftg==} + /@typescript-eslint/typescript-estree@6.5.0(typescript@5.2.2): + resolution: {integrity: sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1540,14 +1540,14 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/visitor-keys': 6.5.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.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.0.1(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true @@ -1560,7 +1560,7 @@ packages: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 + '@types/semver': 7.5.1 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) @@ -1572,18 +1572,18 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.2.0(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-RCFrC1lXiX1qEZN8LmLrxYRhOkElEsPKTVSNout8DMzf8PeWoQG7Rxz2SadpJa3VSh5oYKGwt7j7X/VRg+Y3OQ==} + /@typescript-eslint/utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-F/6r2RieNeorU0zhqZNv89s9bDZSovv3bZQpUNOmmQK1L80/cV4KEu95YUJWi75u5PhboFoKUJBnZ4FQcoqhDw==} 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.48.0) '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.2.0 - '@typescript-eslint/types': 6.2.0 - '@typescript-eslint/typescript-estree': 6.2.0(typescript@4.9.5) + '@types/semver': 7.5.1 + '@typescript-eslint/scope-manager': 6.4.1 + '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: @@ -1591,18 +1591,18 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-F/6r2RieNeorU0zhqZNv89s9bDZSovv3bZQpUNOmmQK1L80/cV4KEu95YUJWi75u5PhboFoKUJBnZ4FQcoqhDw==} + /@typescript-eslint/utils@6.5.0(eslint@8.48.0)(typescript@5.2.2): + resolution: {integrity: sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==} 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.48.0) '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) + '@types/semver': 7.5.1 + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/typescript-estree': 6.5.0(typescript@5.2.2) eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: @@ -1618,19 +1618,19 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.2.0: - resolution: {integrity: sha512-QbaYUQVKKo9bgCzpjz45llCfwakyoxHetIy8CAvYCtd16Zu1KrpzNHofwF8kGkpPOxZB2o6kz+0nqH8ZkIzuoQ==} + /@typescript-eslint/visitor-keys@6.4.1: + resolution: {integrity: sha512-y/TyRJsbZPkJIZQXrHfdnxVnxyKegnpEvnRGNam7s3TRR2ykGefEWOhaef00/UUN3IZxizS7BTO3svd3lCOJRQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.2.0 + '@typescript-eslint/types': 6.4.1 eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.4.1: - resolution: {integrity: sha512-y/TyRJsbZPkJIZQXrHfdnxVnxyKegnpEvnRGNam7s3TRR2ykGefEWOhaef00/UUN3IZxizS7BTO3svd3lCOJRQ==} + /@typescript-eslint/visitor-keys@6.5.0: + resolution: {integrity: sha512-yCB/2wkbv3hPsh02ZS8dFQnij9VVQXJMN/gbQsaaY+zxALkZnxa/wagvLEFsAWMPv7d7lxQmNsIzGU1w/T/WyA==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/types': 6.5.0 eslint-visitor-keys: 3.4.3 dev: true @@ -1641,7 +1641,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.9(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) vue: 3.3.4 dev: true @@ -2734,8 +2734,8 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@13.0.0: - resolution: {integrity: sha512-nWHU5dUxP2Wm/zrMd8SWTTl706aJex/l+H4vi/tbu2SWUr17BUcd/sIYeqyxeoSPW1JFV2pT1pf4JEImH/POMg==} + /cypress@13.1.0: + resolution: {integrity: sha512-LUKxCYlB973QBFls1Up4FAE9QIYobT+2I8NvvAwMfQS2YwsWbr6yx7y9hmsk97iqbHkKwZW3MRjoK1RToBFVdQ==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -3088,36 +3088,6 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild@0.17.19: - resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/android-arm': 0.17.19 - '@esbuild/android-arm64': 0.17.19 - '@esbuild/android-x64': 0.17.19 - '@esbuild/darwin-arm64': 0.17.19 - '@esbuild/darwin-x64': 0.17.19 - '@esbuild/freebsd-arm64': 0.17.19 - '@esbuild/freebsd-x64': 0.17.19 - '@esbuild/linux-arm': 0.17.19 - '@esbuild/linux-arm64': 0.17.19 - '@esbuild/linux-ia32': 0.17.19 - '@esbuild/linux-loong64': 0.17.19 - '@esbuild/linux-mips64el': 0.17.19 - '@esbuild/linux-ppc64': 0.17.19 - '@esbuild/linux-riscv64': 0.17.19 - '@esbuild/linux-s390x': 0.17.19 - '@esbuild/linux-x64': 0.17.19 - '@esbuild/netbsd-x64': 0.17.19 - '@esbuild/openbsd-x64': 0.17.19 - '@esbuild/sunos-x64': 0.17.19 - '@esbuild/win32-arm64': 0.17.19 - '@esbuild/win32-ia32': 0.17.19 - '@esbuild/win32-x64': 0.17.19 - dev: true - /esbuild@0.18.18: resolution: {integrity: sha512-UckDPWvdVJLNT0npk5AMTpVwGRQhS76rWFLmHwEtgNvWlR9sgVV1eyc/oeBtM86q9s8ABBLMmm0CwNxhVemOiw==} engines: {node: '>=12'} @@ -3148,6 +3118,36 @@ packages: '@esbuild/win32-x64': 0.18.18 dev: true + /esbuild@0.18.20: + resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.18.20 + '@esbuild/android-arm64': 0.18.20 + '@esbuild/android-x64': 0.18.20 + '@esbuild/darwin-arm64': 0.18.20 + '@esbuild/darwin-x64': 0.18.20 + '@esbuild/freebsd-arm64': 0.18.20 + '@esbuild/freebsd-x64': 0.18.20 + '@esbuild/linux-arm': 0.18.20 + '@esbuild/linux-arm64': 0.18.20 + '@esbuild/linux-ia32': 0.18.20 + '@esbuild/linux-loong64': 0.18.20 + '@esbuild/linux-mips64el': 0.18.20 + '@esbuild/linux-ppc64': 0.18.20 + '@esbuild/linux-riscv64': 0.18.20 + '@esbuild/linux-s390x': 0.18.20 + '@esbuild/linux-x64': 0.18.20 + '@esbuild/netbsd-x64': 0.18.20 + '@esbuild/openbsd-x64': 0.18.20 + '@esbuild/sunos-x64': 0.18.20 + '@esbuild/win32-arm64': 0.18.20 + '@esbuild/win32-ia32': 0.18.20 + '@esbuild/win32-x64': 0.18.20 + dev: true + /esbuild@0.19.2: resolution: {integrity: sha512-G6hPax8UbFakEj3hWO0Vs52LQ8k3lnBhxZWomUJDxfz3rZTLqF5k/FCzuNdLx2RbpBiQQF9H9onlDDH1lZsnjg==} engines: {node: '>=12'} @@ -3236,8 +3236,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.5.0(eslint@8.48.0): - resolution: {integrity: sha512-aulXdA4I1dyWpzyS1Nh/GNoS6PavzeucxEapnMR4JUERowWvaEk2Y4A5irpHAcdXtBBHLVe8WIhdXNjoAlGQgA==} + /eslint-plugin-jsdoc@46.5.1(eslint@8.48.0): + resolution: {integrity: sha512-CPbvKprmEuJYoxMj5g8gXfPqUGgcqMM6jpH06Kp4pn5Uy5MrPkFKzoD7UFp2E4RBzfXbJz1+TeuEivwFVMkXBg==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -3277,24 +3277,24 @@ packages: synckit: 0.8.5 dev: true - /eslint-plugin-vitest@0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.3): - resolution: {integrity: sha512-q8s4tStyKtn3gXf+8nf1ZYTHhoCXKdnozZzp6u8b4ni5v68Y4vxhNh4Z8njUfNjEY8HoPBB77MazHMR23IPb+g==} + /eslint-plugin-vitest@0.3.1(@typescript-eslint/eslint-plugin@6.4.1)(eslint@8.48.0)(vitest@0.34.3): + resolution: {integrity: sha512-GeR3zISHmqUGWK2sfW+eyCZivMqiQYzPf9UttHXBiEyMveS/jkKLHCrHUllwr3Hz1+i0zoseANd2xL0cFha8Eg==} engines: {node: 14.x || >= 16} peerDependencies: + '@typescript-eslint/eslint-plugin': '*' eslint: '>=8.0.0' - vite: '*' vitest: '*' peerDependenciesMeta: - vite: + '@typescript-eslint/eslint-plugin': optional: true dependencies: - '@typescript-eslint/utils': 6.2.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@5.2.2) eslint: 8.48.0 - vite: 4.4.9(@types/node@20.5.7) + typescript: 5.2.2 vitest: 0.34.3(@vitest/ui@0.34.3) transitivePeerDependencies: - supports-color - - typescript dev: true /eslint-scope@5.1.1: @@ -3807,8 +3807,8 @@ packages: is-glob: 4.0.3 dev: true - /glob@10.3.3: - resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} + /glob@10.3.4: + resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==} engines: {node: '>=16 || 14 >=14.17'} hasBin: true dependencies: @@ -5384,7 +5384,7 @@ packages: engines: {node: '>=14'} hasBin: true dependencies: - glob: 10.3.3 + glob: 10.3.4 dev: true /rollup@3.27.2: @@ -5950,6 +5950,15 @@ packages: typescript: 4.9.5 dev: true + /ts-api-utils@1.0.1(typescript@5.2.2): + resolution: {integrity: sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.2.2 + dev: true + /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true @@ -5968,12 +5977,12 @@ packages: typescript: 4.9.5 dev: true - /tsx@3.12.7: - resolution: {integrity: sha512-C2Ip+jPmqKd1GWVQDvz/Eyc6QJbGfE7NrR3fx5BpEHMZsEHoIxHL1j+lKdGobr8ovEyqeNkPLSKp6SCSOt7gmw==} + /tsx@3.12.8: + resolution: {integrity: sha512-Lt9KYaRGF023tlLInPj8rgHwsZU8qWLBj4iRXNWxTfjIkU7canGL806AqKear1j722plHuiYNcL2ZCo6uS9UJA==} hasBin: true dependencies: '@esbuild-kit/cjs-loader': 2.4.2 - '@esbuild-kit/core-utils': 3.1.0 + '@esbuild-kit/core-utils': 3.2.2 '@esbuild-kit/esm-loader': 2.5.5 optionalDependencies: fsevents: 2.3.2 @@ -6103,6 +6112,12 @@ packages: hasBin: true dev: true + /typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + /ufo@1.2.0: resolution: {integrity: sha512-RsPyTbqORDNDxqAdQPQBpgqhWle1VcTSou/FraClYlHf6TZnQcGslpLcAphNR+sQW4q5lLWLbOsRlh9j24baQg==} dev: true @@ -6195,7 +6210,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.3(@types/node@20.5.7): + /vite-node@0.34.3(@types/node@20.5.9): resolution: {integrity: sha512-+0TzJf1g0tYXj6tR2vEyiA42OPq68QkRZCu/ERSo2PtsDJfBpDyEfuKbRvLmZqi/CgC7SCBtyC+WjTGNMRIaig==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6205,7 +6220,7 @@ packages: mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) transitivePeerDependencies: - '@types/node' - less @@ -6217,7 +6232,7 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.5.7): + /vite@4.4.9(@types/node@20.5.9): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6245,7 +6260,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.5.7 + '@types/node': 20.5.9 esbuild: 0.18.18 postcss: 8.4.27 rollup: 3.27.2 @@ -6253,7 +6268,7 @@ packages: fsevents: 2.3.2 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.9)(search-insights@2.7.0): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: @@ -6268,7 +6283,7 @@ packages: mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.3 - vite: 4.4.9(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) vue: 3.3.4 transitivePeerDependencies: - '@algolia/client-search' @@ -6330,7 +6345,7 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 20.5.7 + '@types/node': 20.5.9 '@vitest/expect': 0.34.3 '@vitest/runner': 0.34.3 '@vitest/snapshot': 0.34.3 @@ -6350,8 +6365,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.0 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.5.7) - vite-node: 0.34.3(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) + vite-node: 0.34.3(@types/node@20.5.9) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From f71cc1cde9f016405830a6db1ffd78e4f1988a55 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:42:14 +0200 Subject: [PATCH 44/51] chore(deps): update typescript-eslint to ~6.5.0 (#2377) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 87 +++++++++++++++++++------------------------------- 2 files changed, 35 insertions(+), 56 deletions(-) diff --git a/package.json b/package.json index 30486c6502c..fc7b8d13a08 100644 --- a/package.json +++ b/package.json @@ -94,8 +94,8 @@ "@types/sanitize-html": "~2.9.0", "@types/semver": "~7.5.1", "@types/validator": "~13.11.1", - "@typescript-eslint/eslint-plugin": "~6.4.1", - "@typescript-eslint/parser": "~6.4.1", + "@typescript-eslint/eslint-plugin": "~6.5.0", + "@typescript-eslint/parser": "~6.5.0", "@vitest/coverage-v8": "~0.34.3", "@vitest/ui": "~0.34.3", "@vueuse/core": "~10.4.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2e08610c95..66c7e08184e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,11 +23,11 @@ devDependencies: specifier: ~13.11.1 version: 13.11.1 '@typescript-eslint/eslint-plugin': - specifier: ~6.4.1 - version: 6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5) + specifier: ~6.5.0 + version: 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.4.1 - version: 6.4.1(eslint@8.48.0)(typescript@4.9.5) + specifier: ~6.5.0 + version: 6.5.0(eslint@8.48.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.3 version: 0.34.3(vitest@0.34.3) @@ -69,7 +69,7 @@ devDependencies: version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2) eslint-plugin-vitest: specifier: ~0.3.1 - version: 0.3.1(@typescript-eslint/eslint-plugin@6.4.1)(eslint@8.48.0)(vitest@0.34.3) + version: 0.3.1(@typescript-eslint/eslint-plugin@6.5.0)(eslint@8.48.0)(vitest@0.34.3) glob: specifier: ~10.3.4 version: 10.3.4 @@ -1380,8 +1380,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-3F5PtBzUW0dYlq77Lcqo13fv+58KDwUib3BddilE8ajPJT+faGgxmI9Sw+I8ZS22BYwoir9ZhNXcLi+S+I2bkw==} + /@typescript-eslint/eslint-plugin@6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-2pktILyjvMaScU6iK3925uvGU87E+N9rh372uGZgiMYwafaw9SXq86U04XPq3UH6tzRvNgBsub6x2DacHc33lw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1392,11 +1392,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.4.1(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/type-utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/parser': 6.5.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/type-utils': 6.5.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 graphemer: 1.4.0 @@ -1409,8 +1409,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-610G6KHymg9V7EqOaNBMtD1GgpAmGROsmfHJPXNLCU9bfIuLrkdOygltK784F6Crboyd5tBFayPB7Sf0McrQwg==} + /@typescript-eslint/parser@6.5.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1419,10 +1419,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/typescript-estree': 6.5.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 typescript: 4.9.5 @@ -1438,14 +1438,6 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/scope-manager@6.4.1: - resolution: {integrity: sha512-p/OavqOQfm4/Hdrr7kvacOSFjwQ2rrDVJRPxt/o0TOWdFnjJptnjnZ+sYDR7fi4OimvIuKp+2LCkc+rt9fIW+A==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/visitor-keys': 6.4.1 - dev: true - /@typescript-eslint/scope-manager@6.5.0: resolution: {integrity: sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1454,8 +1446,8 @@ packages: '@typescript-eslint/visitor-keys': 6.5.0 dev: true - /@typescript-eslint/type-utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-7ON8M8NXh73SGZ5XvIqWHjgX2f+vvaOarNliGhjrJnv1vdjG0LVIz+ToYfPirOoBi56jxAKLfsLm40+RvxVVXA==} + /@typescript-eslint/type-utils@6.5.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1464,8 +1456,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.5.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 ts-api-utils: 1.0.1(typescript@4.9.5) @@ -1479,11 +1471,6 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@6.4.1: - resolution: {integrity: sha512-zAAopbNuYu++ijY1GV2ylCsQsi3B8QvfPHVqhGdDcbx/NK5lkqMnCGU53amAjccSpk+LfeONxwzUhDzArSfZJg==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/types@6.5.0: resolution: {integrity: sha512-eqLLOEF5/lU8jW3Bw+8auf4lZSbbljHR2saKnYqON12G/WsJrGeeDHWuQePoEf9ro22+JkbPfWQwKEC5WwLQ3w==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1510,8 +1497,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.4.1(typescript@4.9.5): - resolution: {integrity: sha512-xF6Y7SatVE/OyV93h1xGgfOkHr2iXuo8ip0gbfzaKeGGuKiAnzS+HtVhSPx8Www243bwlW8IF7X0/B62SzFftg==} + /@typescript-eslint/typescript-estree@6.5.0(typescript@4.9.5): + resolution: {integrity: sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1519,8 +1506,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1572,8 +1559,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-F/6r2RieNeorU0zhqZNv89s9bDZSovv3bZQpUNOmmQK1L80/cV4KEu95YUJWi75u5PhboFoKUJBnZ4FQcoqhDw==} + /@typescript-eslint/utils@6.5.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1581,9 +1568,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.1 - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/typescript-estree': 6.5.0(typescript@4.9.5) eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: @@ -1618,14 +1605,6 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.4.1: - resolution: {integrity: sha512-y/TyRJsbZPkJIZQXrHfdnxVnxyKegnpEvnRGNam7s3TRR2ykGefEWOhaef00/UUN3IZxizS7BTO3svd3lCOJRQ==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.4.1 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/visitor-keys@6.5.0: resolution: {integrity: sha512-yCB/2wkbv3hPsh02ZS8dFQnij9VVQXJMN/gbQsaaY+zxALkZnxa/wagvLEFsAWMPv7d7lxQmNsIzGU1w/T/WyA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -3277,7 +3256,7 @@ packages: synckit: 0.8.5 dev: true - /eslint-plugin-vitest@0.3.1(@typescript-eslint/eslint-plugin@6.4.1)(eslint@8.48.0)(vitest@0.34.3): + /eslint-plugin-vitest@0.3.1(@typescript-eslint/eslint-plugin@6.5.0)(eslint@8.48.0)(vitest@0.34.3): resolution: {integrity: sha512-GeR3zISHmqUGWK2sfW+eyCZivMqiQYzPf9UttHXBiEyMveS/jkKLHCrHUllwr3Hz1+i0zoseANd2xL0cFha8Eg==} engines: {node: 14.x || >= 16} peerDependencies: @@ -3288,7 +3267,7 @@ packages: '@typescript-eslint/eslint-plugin': optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@5.2.2) eslint: 8.48.0 typescript: 5.2.2 From 05fc62ba0d1c73cb867b326c179a8f9fc7392472 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 4 Sep 2023 20:11:30 +0200 Subject: [PATCH 45/51] chore(lorem): simplify code and remove unnecessary tests --- src/modules/lorem/index.ts | 4 ++-- test/modules/lorem.spec.ts | 24 ------------------------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 72c6455dfa3..59061535bd5 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -375,9 +375,9 @@ export class LoremModule { let text = ''; do { text = `${text}${this[method]()} `; - } while (text.length <= length + 1); + } while (text.length < length); - return `${text.trim().substring(0, length - 1)}.`; + return `${text.trim().substring(0, length).replace(/.$/, '.')}`; } /** diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index 0cde2fe15a7..9b5574b34b8 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -372,30 +372,6 @@ describe('lorem', () => { expect(actual).toBeTypeOf('string'); expect(actual).toBe('.'); }); - - it('should return a string of length 0 or length 1 for [0, 1]', () => { - const actual = faker.lorem.text({ length: { min: 0, max: 1 } }); - - expect(actual).toBeTypeOf('string'); - expect(actual.length).toBeGreaterThanOrEqual(0); - expect(actual.length).toBeLessThanOrEqual(1); - }); - - it('should return text with length between 0 and 32 for [0, 32]', () => { - const actual = faker.lorem.text({ length: { min: 0, max: 32 } }); - - expect(actual).toBeTypeOf('string'); - expect(actual.length).toBeGreaterThanOrEqual(0); - expect(actual.length).toBeLessThanOrEqual(32); - }); - - it('should return a string of length 77 for [77, 77]', () => { - const actual = faker.lorem.text({ length: { min: 77, max: 77 } }); - - expect(actual).toBeTruthy(); - expect(actual).toBeTypeOf('string'); - expect(actual).toHaveLength(77); - }); }); describe('lines()', () => { From 869b9b49e77848f2ad9677e54b4ab6db6cf5c58b Mon Sep 17 00:00:00 2001 From: inkedtree <137215765+inkedtree@users.noreply.github.com> Date: Tue, 5 Sep 2023 09:25:37 +0200 Subject: [PATCH 46/51] feat(image): add image dataUri with base64 (#2273) --- src/modules/image/index.ts | 25 ++++++++++-- test/modules/__snapshots__/image.spec.ts.snap | 20 ++++++++-- test/modules/image.spec.ts | 40 +++++++++++++++++++ 3 files changed, 78 insertions(+), 7 deletions(-) diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index cfefdb8a486..bec9e98ca51 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -348,15 +348,17 @@ export class ImageModule { } /** - * Generates a random data uri containing an svg image. + * Generates a random data uri containing an URL-encoded SVG image or a Base64-encoded SVG image. * * @param options Options for generating a data uri. * @param options.width The width of the image. Defaults to `640`. * @param options.height The height of the image. Defaults to `480`. * @param options.color The color of the image. Defaults to `grey`. + * @param options.type The type of the image. Defaults to `'svg-uri'`. * * @example * faker.image.dataUri() // 'data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http...' + * faker.image.dataUri({ type: 'svg-base64' }) // 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3...' * * @since 4.0.0 */ @@ -380,9 +382,21 @@ export class ImageModule { * @default 'grey' */ color?: string; + /** + * The type of the image to return. Consisting of + * the file extension and the used encoding. + * + * @default 'svg-uri' + */ + type?: 'svg-uri' | 'svg-base64'; } = {} ): string { - const { width = 640, height = 480, color = 'grey' } = options; + const { + width = 640, + height = 480, + color = 'grey', + type = 'svg-uri', + } = options; const svgString = `${width}x${height}`; - const rawPrefix = 'data:image/svg+xml;charset=UTF-8,'; - return rawPrefix + encodeURIComponent(svgString); + return type === 'svg-uri' + ? `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(svgString)}` + : `data:image/svg+xml;base64,${Buffer.from(svgString).toString( + 'base64' + )}`; } /** diff --git a/test/modules/__snapshots__/image.spec.ts.snap b/test/modules/__snapshots__/image.spec.ts.snap index d1d1d9e318e..b71269e56c2 100644 --- a/test/modules/__snapshots__/image.spec.ts.snap +++ b/test/modules/__snapshots__/image.spec.ts.snap @@ -8,12 +8,14 @@ exports[`image > 42 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3 exports[`image > 42 > dataUri > noArgs 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; -exports[`image > 42 > dataUri > with all options 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 42 > dataUri > with all options 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJibHVlIi8+PHRleHQgeD0iNjQiIHk9IjY0IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyOHgxMjg8L3RleHQ+PC9zdmc+"`; exports[`image > 42 > dataUri > with color 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 42 > dataUri > with height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 42 > dataUri > with type 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDgwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iMzIwIiB5PSIyNDAiIGZvbnQtc2l6ZT0iMjAiIGFsaWdubWVudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSI+NjQweDQ4MDwvdGV4dD48L3N2Zz4="`; + exports[`image > 42 > dataUri > with width 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 42 > dataUri > with width and height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; @@ -80,12 +82,14 @@ exports[`image > 1211 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qm exports[`image > 1211 > dataUri > noArgs 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; -exports[`image > 1211 > dataUri > with all options 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1211 > dataUri > with all options 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJibHVlIi8+PHRleHQgeD0iNjQiIHk9IjY0IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyOHgxMjg8L3RleHQ+PC9zdmc+"`; exports[`image > 1211 > dataUri > with color 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1211 > dataUri > with height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1211 > dataUri > with type 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDgwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iMzIwIiB5PSIyNDAiIGZvbnQtc2l6ZT0iMjAiIGFsaWdubWVudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSI+NjQweDQ4MDwvdGV4dD48L3N2Zz4="`; + exports[`image > 1211 > dataUri > with width 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1211 > dataUri > with width and height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; @@ -152,12 +156,14 @@ exports[`image > 1337 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qm exports[`image > 1337 > dataUri > noArgs 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; -exports[`image > 1337 > dataUri > with all options 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1337 > dataUri > with all options 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJibHVlIi8+PHRleHQgeD0iNjQiIHk9IjY0IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyOHgxMjg8L3RleHQ+PC9zdmc+"`; exports[`image > 1337 > dataUri > with color 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1337 > dataUri > with height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1337 > dataUri > with type 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDgwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iMzIwIiB5PSIyNDAiIGZvbnQtc2l6ZT0iMjAiIGFsaWdubWVudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSI+NjQweDQ4MDwvdGV4dD48L3N2Zz4="`; + exports[`image > 1337 > dataUri > with width 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1337 > dataUri > with width and height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; @@ -218,4 +224,12 @@ exports[`image > 1337 > urlPlaceholder > with width and height 1`] = `"https://v exports[`image > dataUri > should return a background color data URI 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22200%22%20height%3D%22300%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22red%22%2F%3E%3Ctext%20x%3D%22100%22%20y%3D%22150%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E200x300%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > dataUri > should return a background color svg-base64 data URI 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI0NDQiIGhlaWdodD0iMzAiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9ImdyZWVuIi8+PHRleHQgeD0iMjIyIiB5PSIxNSIgZm9udC1zaXplPSIyMCIgYWxpZ25tZW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIj40NDR4MzA8L3RleHQ+PC9zdmc+"`; + +exports[`image > dataUri > should return a background color svg-uri data URI 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%221%22%20height%3D%221234%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22yellow%22%2F%3E%3Ctext%20x%3D%220.5%22%20y%3D%22617%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E1x1234%3C%2Ftext%3E%3C%2Fsvg%3E"`; + exports[`image > dataUri > should return a blank data 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22200%22%20height%3D%22300%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22100%22%20y%3D%22150%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E200x300%3C%2Ftext%3E%3C%2Fsvg%3E"`; + +exports[`image > dataUri > should return a blank svg-base64 data 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjMiIGhlaWdodD0iNDU2Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iNjEuNSIgeT0iMjI4IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyM3g0NTY8L3RleHQ+PC9zdmc+"`; + +exports[`image > dataUri > should return a blank svg-uri data 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22456%22%20height%3D%22789%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22228%22%20y%3D%22394.5%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E456x789%3C%2Ftext%3E%3C%2Fsvg%3E"`; diff --git a/test/modules/image.spec.ts b/test/modules/image.spec.ts index a0e2c862ac9..fc4498289c5 100644 --- a/test/modules/image.spec.ts +++ b/test/modules/image.spec.ts @@ -74,10 +74,12 @@ describe('image', () => { .it('with height', { height: 128 }) .it('with width and height', { width: 128, height: 128 }) .it('with color', { color: 'blue' }) + .it('with type', { type: 'svg-base64' }) .it('with all options', { width: 128, height: 128, color: 'blue', + type: 'svg-base64', }); }); @@ -495,5 +497,43 @@ describe('image', () => { }); expect(dataUri).toMatchSnapshot(); }); + + it('should return a blank svg-uri data', () => { + const dataUri = faker.image.dataUri({ + width: 456, + height: 789, + type: 'svg-uri', + }); + expect(dataUri).toMatchSnapshot(); + }); + + it('should return a background color svg-uri data URI', () => { + const dataUri = faker.image.dataUri({ + width: 1, + height: 1234, + color: 'yellow', + type: 'svg-uri', + }); + expect(dataUri).toMatchSnapshot(); + }); + + it('should return a blank svg-base64 data', () => { + const dataUri = faker.image.dataUri({ + width: 123, + height: 456, + type: 'svg-base64', + }); + expect(dataUri).toMatchSnapshot(); + }); + + it('should return a background color svg-base64 data URI', () => { + const dataUri = faker.image.dataUri({ + width: 444, + height: 30, + color: 'green', + type: 'svg-base64', + }); + expect(dataUri).toMatchSnapshot(); + }); }); }); From 630375b6903719417c47db59844d7bc36d0b1269 Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:46:06 +0700 Subject: [PATCH 47/51] chore(finance): remove defunct credit card issuers (#2356) --- src/locales/en/finance/credit_card/index.ts | 8 -------- src/locales/en/finance/credit_card/instapayment.ts | 1 - src/locales/en/finance/credit_card/laser.ts | 10 ---------- src/locales/en/finance/credit_card/solo.ts | 5 ----- src/locales/en/finance/credit_card/switch.ts | 5 ----- test/modules/__snapshots__/finance.spec.ts.snap | 8 ++++---- test/modules/finance.spec.ts | 8 -------- 7 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 src/locales/en/finance/credit_card/instapayment.ts delete mode 100644 src/locales/en/finance/credit_card/laser.ts delete mode 100644 src/locales/en/finance/credit_card/solo.ts delete mode 100644 src/locales/en/finance/credit_card/switch.ts diff --git a/src/locales/en/finance/credit_card/index.ts b/src/locales/en/finance/credit_card/index.ts index 653195c7f8d..47f674c703c 100644 --- a/src/locales/en/finance/credit_card/index.ts +++ b/src/locales/en/finance/credit_card/index.ts @@ -6,26 +6,18 @@ import type { FinanceDefinition } from '../../../..'; import american_express from './american_express'; import diners_club from './diners_club'; import discover from './discover'; -import instapayment from './instapayment'; import jcb from './jcb'; -import laser from './laser'; import maestro from './maestro'; import mastercard from './mastercard'; -import solo from './solo'; -import switch_ from './switch'; import visa from './visa'; const credit_card: FinanceDefinition['credit_card'] = { american_express, diners_club, discover, - instapayment, jcb, - laser, maestro, mastercard, - solo, - switch: switch_, visa, }; diff --git a/src/locales/en/finance/credit_card/instapayment.ts b/src/locales/en/finance/credit_card/instapayment.ts deleted file mode 100644 index f1b68517800..00000000000 --- a/src/locales/en/finance/credit_card/instapayment.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['63[7-9]#-####-####-###L']; diff --git a/src/locales/en/finance/credit_card/laser.ts b/src/locales/en/finance/credit_card/laser.ts deleted file mode 100644 index 9c1eb2575d4..00000000000 --- a/src/locales/en/finance/credit_card/laser.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default [ - '6304###########L', - '6706###########L', - '6771###########L', - '6709###########L', - '6304#########{5,6}L', - '6706#########{5,6}L', - '6771#########{5,6}L', - '6709#########{5,6}L', -]; diff --git a/src/locales/en/finance/credit_card/solo.ts b/src/locales/en/finance/credit_card/solo.ts deleted file mode 100644 index 8114d66b8b7..00000000000 --- a/src/locales/en/finance/credit_card/solo.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default [ - '6767-####-####-###L', - '6767-####-####-####-#L', - '6767-####-####-####-##L', -]; diff --git a/src/locales/en/finance/credit_card/switch.ts b/src/locales/en/finance/credit_card/switch.ts deleted file mode 100644 index 3c4b0962cb6..00000000000 --- a/src/locales/en/finance/credit_card/switch.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default [ - '6759-####-####-###L', - '6759-####-####-####-#L', - '6759-####-####-####-##L', -]; diff --git a/test/modules/__snapshots__/finance.spec.ts.snap b/test/modules/__snapshots__/finance.spec.ts.snap index 69d73820a1d..6f80a2edce1 100644 --- a/test/modules/__snapshots__/finance.spec.ts.snap +++ b/test/modules/__snapshots__/finance.spec.ts.snap @@ -40,9 +40,9 @@ exports[`finance > 42 > bitcoinAddress 1`] = `"3XbJMAAara64sSkA9HD24YHQWd1bZbB"` exports[`finance > 42 > creditCardCVV 1`] = `"379"`; -exports[`finance > 42 > creditCardIssuer 1`] = `"jcb"`; +exports[`finance > 42 > creditCardIssuer 1`] = `"discover"`; -exports[`finance > 42 > creditCardNumber > noArgs 1`] = `"3581-7755-1410-0484"`; +exports[`finance > 42 > creditCardNumber > noArgs 1`] = `"6591-6277-5514-1004-8364"`; exports[`finance > 42 > creditCardNumber > with issuer 1`] = `"4791775514102"`; @@ -256,9 +256,9 @@ exports[`finance > 1337 > bitcoinAddress 1`] = `"3adhxs2jewAgkYgJi7No6Cn8JZarS"` exports[`finance > 1337 > creditCardCVV 1`] = `"251"`; -exports[`finance > 1337 > creditCardIssuer 1`] = `"discover"`; +exports[`finance > 1337 > creditCardIssuer 1`] = `"diners_club"`; -exports[`finance > 1337 > creditCardNumber > noArgs 1`] = `"6011-6212-2540-3255-2398"`; +exports[`finance > 1337 > creditCardNumber > noArgs 1`] = `"3612-254032-5529"`; exports[`finance > 1337 > creditCardNumber > with issuer 1`] = `"4512254032550"`; diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index c5c38a58caf..a783f0731f5 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -472,16 +472,8 @@ describe('finance', () => { expect(diners_club).toSatisfy(luhnCheck); const jcb = faker.finance.creditCardNumber('jcb'); expect(jcb).toSatisfy(luhnCheck); - const switchC = faker.finance.creditCardNumber('mastercard'); - expect(switchC).toSatisfy(luhnCheck); - const solo = faker.finance.creditCardNumber('solo'); - expect(solo).toSatisfy(luhnCheck); const maestro = faker.finance.creditCardNumber('maestro'); expect(maestro).toSatisfy(luhnCheck); - const laser = faker.finance.creditCardNumber('laser'); - expect(laser).toSatisfy(luhnCheck); - const instapayment = faker.finance.creditCardNumber('instapayment'); - expect(instapayment).toSatisfy(luhnCheck); }); it('should return custom formatted strings', () => { From 8d7de9f6f639fc36bbd5b4324cc9b25df9c30f52 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 8 Sep 2023 11:30:21 +0200 Subject: [PATCH 48/51] docs: mention file limits for locale PRs (#2322) --- CONTRIBUTING.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aebcf40438e..75ce7166dbc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -42,6 +42,11 @@ If adding new data definitions to Faker, you'll often need to find source data. - But if you are compiling a list of, for example, popular personal names or cities, don't copy directly from a single source (Wikipedia, 'most popular' articles, government data sites etc). A compilation of facts [can be copyrighted](https://en.wikipedia.org/wiki/Copyright_in_compilation). - It's best to refer to multiple sources and use your own judgement/knowledge to make a sample list of data. +## Adding new locale or updating existing one + +After adding new or updating existing locale data, you need to run `pnpm run generate:locales` to generate/update the related files. +If you change more than 20 locale files, please consider splitting your PR into one per category (e.g. person, location). + ## Building Faker The project is being built by [esbuild](https://esbuild.github.io) (see [bundle.ts](scripts/bundle.ts)) @@ -163,10 +168,6 @@ describe('someModule', () => { }); ``` -## Adding new locale or updating existing one - -After adding new or updating existing locale data, you need to run `pnpm run generate:locales` to generate/update the related files. - ## Deprecation workflow If you ever find yourself deprecating something in the source code, you can follow these steps to save yourself (and the reviewers) some trouble. From 604d52d9874db1763c185483ed182199f7a00f4f Mon Sep 17 00:00:00 2001 From: Anton Stonor Date: Sat, 9 Sep 2023 08:29:48 +0200 Subject: [PATCH 49/51] feat(locale): added commerce and company data for da (#2378) --- src/locales/da/commerce/department.ts | 23 +++ src/locales/da/commerce/index.ts | 16 ++ .../da/commerce/product_description.ts | 21 +++ src/locales/da/commerce/product_name.ts | 67 +++++++ src/locales/da/company/adjective.ts | 76 ++++++++ src/locales/da/company/buzz_adjective.ts | 54 ++++++ src/locales/da/company/buzz_noun.ts | 40 +++++ src/locales/da/company/buzz_verb.ts | 53 ++++++ src/locales/da/company/company_name.ts | 163 ++++++++++++++++++ src/locales/da/company/descriptor.ts | 95 ++++++++++ src/locales/da/company/index.ts | 28 +++ src/locales/da/company/name_pattern.ts | 4 + src/locales/da/company/noun.ts | 96 +++++++++++ src/locales/da/company/suffix.ts | 1 + src/locales/da/index.ts | 4 + 15 files changed, 741 insertions(+) create mode 100644 src/locales/da/commerce/department.ts create mode 100644 src/locales/da/commerce/index.ts create mode 100644 src/locales/da/commerce/product_description.ts create mode 100644 src/locales/da/commerce/product_name.ts create mode 100644 src/locales/da/company/adjective.ts create mode 100644 src/locales/da/company/buzz_adjective.ts create mode 100644 src/locales/da/company/buzz_noun.ts create mode 100644 src/locales/da/company/buzz_verb.ts create mode 100644 src/locales/da/company/company_name.ts create mode 100644 src/locales/da/company/descriptor.ts create mode 100644 src/locales/da/company/index.ts create mode 100644 src/locales/da/company/name_pattern.ts create mode 100644 src/locales/da/company/noun.ts create mode 100644 src/locales/da/company/suffix.ts diff --git a/src/locales/da/commerce/department.ts b/src/locales/da/commerce/department.ts new file mode 100644 index 00000000000..6a07dae8f7e --- /dev/null +++ b/src/locales/da/commerce/department.ts @@ -0,0 +1,23 @@ +export default [ + 'Baby', + 'Bil', + 'Bolig', + 'Bøger', + 'Dagligvarer', + 'Elektronik', + 'Film', + 'Fritid', + 'Have', + 'Hvidevarer', + 'Legetøj', + 'Musik', + 'Personlig pleje', + 'Sko', + 'Smykker', + 'Spil', + 'Sport', + 'Sundhed', + 'Tasker', + 'Tøj', + 'Værktøj', +]; diff --git a/src/locales/da/commerce/index.ts b/src/locales/da/commerce/index.ts new file mode 100644 index 00000000000..29c9eeb2006 --- /dev/null +++ b/src/locales/da/commerce/index.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CommerceDefinition } from '../../..'; +import department from './department'; +import product_description from './product_description'; +import product_name from './product_name'; + +const commerce: CommerceDefinition = { + department, + product_description, + product_name, +}; + +export default commerce; diff --git a/src/locales/da/commerce/product_description.ts b/src/locales/da/commerce/product_description.ts new file mode 100644 index 00000000000..0cefa124891 --- /dev/null +++ b/src/locales/da/commerce/product_description.ts @@ -0,0 +1,21 @@ +export default [ + 'Apollotech B340 er en prisbillig trådløs mus med pålidelig forbindelse, 12 måneders batterilevetid og moderne design', + 'Bilens design består af aerodynamiske linjer og moderne detaljer, der kombinerer stilfuld æstetik med effektiv brændstoføkonomi', + 'Bogen "Eventyrets Veje" er en medrivende roman, der væver magi og virkelighed sammen i en tankevækkende fortælling, som appellerer til læsere på tværs af aldre', + 'Denne klassiske og tidløse ring er en perfekt tilføjelse til enhver smykkesamling og kan bæres til enhver lejlighed', + 'Denne smukke og elegante halskæde er designet med en enkelt, glitrende diamant, der er indkapslet i en klassisk 18 karat guldfatning', + 'Det slanke og enkle Maple Gaming Keyboard byder på responsiv mekanisk feedback, RGB-belysning og en robust konstruktion, der sikrer en optimal spiloplevelse', + 'Dobbeltsengen er konstrueret med robust træramme og en blød, støttende madras, der sikrer en behagelig nattesøvn, og dens elegante design passer perfekt ind i ethvert moderne soveværelse', + 'Ergonomisk ledersæde polstret med luksuriøs hukommelsesskum giver optimal støtte og komfort gennem hele arbejdsdagen', + 'Fodbolden er designet til professionel spil med dens holdbare materialer, optimal vægtfordeling og præcise syninger, der sikrer en ensartet ydeevne på alle typer spilleflader', + 'Målmandshandskerne er udstyret med en skridsikker polstring og fleksibel pasform, der giver en exceptionel greb og bevægelsesfrihed, hvilket gør dem til et uundværligt redskab for enhver seriøs målmand', + 'Nagasaki Lander er en motorcykel designet med en kraftfuld motor, slanke linjer og avancerede sikkerhedsfunktioner, der tilbyder en spændende og samtidig sikker køreoplevelse', + 'Ny ABC 13 tommer bærbar computer leverer imponerende ydeevne med sin nyeste generation processor, højopløselig skærm og slankt, letvægtsdesign, ideel til både arbejde og underholdning', + 'Ny kollektion af formelle skjorter er designet med dig i tankerne. Med pasform og styling, der vil få dig til at skille dig ud', + 'Osten Gamle Morten er kendt for sin skarpe og markante smag, en rig tekstur, og dens unikke modningsproces, der gør den til et yndet valg blandt feinschmeckere og ostekendere', + 'Papirflyet er et simpelt og fascinerende legetøj, der kombinerer let tilgængelige materialer med aerodynamiske principper, og som kan bringe timevis af kreativ underholdning for børn og voksne', + 'Perfumen er sammensat af en unik blanding af blomster-, citrus- og trænoter, der resulterer i en sofistikeret og forførende duft, som appellerer til både daglig brug og specielle lejligheder', + 'Sejlbåden Molly er en smukt håndbygget fartøj, udstyret med avancerede navigationsinstrumenter og et rummeligt dæk, der kombinerer klassisk elegance med moderne bekvemmeligheder for en uforglemmelig sejladsoplevelse', + 'Skarp er en køkkenkniv fremstillet af høj-kvalitets stål, designet med en ergonomisk håndtag og præcisions-slebet blad, der garanterer en uovertruffen skæreoplevelse i madlavningen', + 'Super Sandaler er behagelige og stilfulde fodtøj, designet med en polstret sål og justerbare stropper, der passer til enhver fodform og giver ultimativ komfort gennem hele dagen', +]; diff --git a/src/locales/da/commerce/product_name.ts b/src/locales/da/commerce/product_name.ts new file mode 100644 index 00000000000..0fd09461a4d --- /dev/null +++ b/src/locales/da/commerce/product_name.ts @@ -0,0 +1,67 @@ +export default { + adjective: [ + 'Elegant', + 'Elektronisk', + 'Ergonomisk', + 'Fantastisk', + 'Forfinet', + 'Genbrugt', + 'Generisk', + 'Hjemmelavet', + 'Håndlavet', + 'Intelligent', + 'Licenseret', + 'Lille', + 'Luksuriøs', + 'Lækker', + 'Moderne', + 'Orientalsk', + 'Praktisk', + 'Primitiv', + 'Skræddersyet', + 'Slank', + 'Smuk', + 'Ubranded', + 'Utrolig', + ], + material: [ + 'Beton', + 'Blød', + 'Bomuld', + 'Bronze', + 'Fersk', + 'Frossen', + 'Granit', + 'Gummi', + 'Metal', + 'Plastik', + 'Stål', + 'Træ', + ], + product: [ + 'Bacon', + 'Bil', + 'Bold', + 'Bord', + 'Computer', + 'Cykel', + 'Fisk', + 'Handske', + 'Hat', + 'Håndklæde', + 'Kylling', + 'Lysestage', + 'Mus', + 'Ost', + 'Pizza', + 'Pølse', + 'Salat', + 'Skjorte', + 'Sko', + 'Slips', + 'Stol', + 'Sæbe', + 'Tastatur', + 'Tun', + ], +}; diff --git a/src/locales/da/company/adjective.ts b/src/locales/da/company/adjective.ts new file mode 100644 index 00000000000..6e18c565032 --- /dev/null +++ b/src/locales/da/company/adjective.ts @@ -0,0 +1,76 @@ +export default [ + 'Adaptiv', + 'Alsidig', + 'Automatiseret', + 'Avanceret', + 'Balanceret', + 'Brugercentreret', + 'Brugervenlig', + 'Centraliseret', + 'Cross-platform', + 'Decentraliseret', + 'Delbar', + 'Digitaliseret', + 'Distribueret', + 'Eksklusiv', + 'Ergonomisk', + 'Face-to-face', + 'Fokuseret', + 'Forbedret', + 'Forebyggende', + 'Forretningsfokuseret', + 'Forstærket', + 'Fremtidssikret', + 'Fundamental', + 'Horisontal', + 'Implementeret', + 'Innovativ', + 'Integreret', + 'Intuitiv', + 'Klonet', + 'Kompatibel', + 'Konfigurerbar', + 'Kundefokuseret', + 'Kvalitetsfokuseret', + 'Multi-kanal', + 'Multilateral', + 'Nedskaleret', + 'Netværket', + 'Objektbaseret', + 'Obligatorisk', + 'Open-source', + 'Operativ', + 'Opgraderbar', + 'Opjusteret', + 'Optimeret', + 'Organiseret', + 'Organisk', + 'Overvåget', + 'Proaktiv', + 'Profitfokuseret', + 'Programmerbar', + 'Progressiv', + 'Re-kontekstualiseret', + 'Reaktiv', + 'Reduceret', + 'Robust', + 'Selvaktiverende', + 'Selvstændig', + 'Sikret', + 'Strømlinet', + 'Styret', + 'Synergetisk', + 'Synkroniseret', + 'Sømløs', + 'Teamorienteret', + 'Total', + 'Udskiftelig', + 'Udvidet', + 'Universal', + 'Valgfri', + 'Vedvarende', + 'Virksomhedsomspændende', + 'Virtuel', + 'Visionær', + 'Åben arkitektur', +]; diff --git a/src/locales/da/company/buzz_adjective.ts b/src/locales/da/company/buzz_adjective.ts new file mode 100644 index 00000000000..f1e2209c463 --- /dev/null +++ b/src/locales/da/company/buzz_adjective.ts @@ -0,0 +1,54 @@ +export default [ + '24/365', + '24/7', + 'allestedsnærværende', + 'B2B', + 'B2C', + 'back-end', + 'bedst-i-klassen', + 'brugercentrerede', + 'cutting-edge', + 'detaljerede', + 'distribuerede', + 'dynamiske', + 'effektfulde', + 'effektive', + 'en-til-en', + 'end-to-end', + 'enterprise', + 'fremtidsorienterede', + 'front-end', + 'førende', + 'globale', + 'gnidningsfri', + 'helhedsorienterede', + 'innovative', + 'integrerede', + 'interaktive', + 'intuitive', + 'krydsplatforme', + 'magnetiske', + 'mission-kritiske', + 'nøglefærdige', + 'open-source', + 'out-of-the-box', + 'plug-and-play', + 'proaktive', + 'real-time', + 'revolutionerende', + 'robuste', + 'samarbejdende', + 'skalerbare', + 'strategiske', + 'synergistiske', + 'sømløse', + 'tilpassede', + 'tiltrækkende', + 'transparente', + 'trådløse', + 'udvidelige', + 'vertikale', + 'virale', + 'virtuelle', + 'visionære', +]; diff --git a/src/locales/da/company/buzz_noun.ts b/src/locales/da/company/buzz_noun.ts new file mode 100644 index 00000000000..dc96f2fa316 --- /dev/null +++ b/src/locales/da/company/buzz_noun.ts @@ -0,0 +1,40 @@ +export default [ + 'applikationer', + 'arkitektur', + 'blockchains', + 'brugere', + 'båndbredde', + 'e-commerce', + 'e-markeder', + 'forsyningskæder', + 'funktionaliteter', + 'fællesskaber', + 'grænseflader', + 'handlingspunkter', + 'indhold', + 'infrastrukturer', + 'initiativer', + 'kanaler', + 'konvergens', + 'leverancer', + 'livstidsværdier', + 'løsninger', + 'markeder', + 'metodologier', + 'modeller', + 'målinger', + 'netværk', + 'nicher', + 'oplevelser', + 'paradigmer', + 'partnerskaber', + 'platforme', + 'portaler', + 'relationer', + 'ROI', + 'skemaer', + 'synergier', + 'systemer', + 'teknologier', + 'webtjenester', +]; diff --git a/src/locales/da/company/buzz_verb.ts b/src/locales/da/company/buzz_verb.ts new file mode 100644 index 00000000000..458f399db21 --- /dev/null +++ b/src/locales/da/company/buzz_verb.ts @@ -0,0 +1,53 @@ +export default [ + 'aggregerer', + 'aktiverer', + 'bemyndiger', + 'brander', + 'digitaliserer', + 'driver', + 'dyrker', + 'engagerer', + 'faciliterer', + 'forbedrer', + 'fremskynder', + 'frigiver', + 'genererer', + 'genformidler', + 'genopfinder', + 'gentager', + 'griber', + 'implementerer', + 'inkuberer', + 'innoverer', + 'integrerer', + 'konstruerer', + 'leverer', + 'maksimerer', + 'monetiserer', + 'motiverer', + 'målretter', + 'omdefinerer', + 'omfavner', + 'omformer', + 'optimerer', + 'orkestrerer', + 'overgår', + 'produktificerer', + 'rekontekstualiserer', + 'revolutionerer', + 'sammenligner', + 'sammenvæver', + 'skalerer', + 'strømliner', + 'syndikerer', + 'synergiserer', + 'syntetiserer', + 'transformerer', + 'udnytter', + 'udruller', + 'udvider', + 'udvikler', + 'visualiserer', + 'vækster', + 'ændrer', +]; diff --git a/src/locales/da/company/company_name.ts b/src/locales/da/company/company_name.ts new file mode 100644 index 00000000000..a0fdb09753d --- /dev/null +++ b/src/locales/da/company/company_name.ts @@ -0,0 +1,163 @@ +export default [ + 'Albertslund Aluminium', + 'Albertslund App', + 'Allerød Akustik', + 'Allerød Analyse', + 'Assens Apparater', + 'Assens Arkitektur', + 'Ballerup Beton', + 'Ballerup Bolig', + 'Baltic Biotek', + 'Billund Badehotel', + 'Billund Byg', + 'Birkerød Bageri', + 'Birkerød Biotek', + 'Borgen Byg', + 'Bornholm Biler', + 'Bornholm Bygninger', + 'Bornholm Bæredygtighed', + 'Brøndby Branding', + 'Brøndby Bøger', + 'Brønderslev Bryg', + 'Brønderslev Byggeri', + 'DaneBryg Bryggerier', + 'Danmark Digital', + 'Dansk SundhedsFusion', + 'Djursland Design', + 'Dragør Design', + 'Dragør Drift', + 'DynaDanmark Industri', + 'Egedal E-handel', + 'Egedal Elektronik', + 'Egedal Erhverv', + 'Esbjerg Elektronik', + 'Esbjerg Energi', + 'Falster Farmaceuter', + 'Fanø Fartøj', + 'Fanø Forsikring', + 'Favrskov Fjernsyn', + 'Favrskov Fritid', + 'Favrskov Fødevarer', + 'Faxe Farmaceuter', + 'Faxe Fjernkøling', + 'Fjerritslev Fjernvarme', + 'FjordBank Investering', + 'Fredensborg Frisør', + 'Fredensborg Fritid', + 'Fredericia Fragt', + 'Frederiksberg Finans', + 'Frederiksberg Forsyning', + 'Frederikshavn Frugt', + 'Frederikssund Fisk', + 'Frederikssund Forskning', + 'Furesø Fisk', + 'Fyn Fiskeri', + 'Fynske Fødevarer', + 'Faaborg-Midtfyn Film', + 'Gentofte Genbrug', + 'Gladsaxe Glas', + 'Glostrup Gaming', + 'Greve Grafik', + 'Greve Grønt', + 'Gribskov Græs', + 'GrønBølge Energi', + 'Grønland Gourmet', + 'Guldborgsund Gas', + 'Guldborgsund Guld', + 'GuldHornet Mode', + 'Haderslev Haver', + 'Haderslev Håndværk', + 'Halsnæs Halvleder', + 'Hedensted Handel', + 'Helsingør Hotel', + 'Herlev Hospital', + 'Herning Helbred', + 'Hilleroed Helikopter', + 'Himmerland Håndværk', + 'Hjørring Handel', + 'Hjørring Helse', + 'Hobro Hjem', + 'Holstebro Heste', + 'Hovedstad Helse', + 'Hvidovre Have', + 'HyggeHjem Interiør', + 'Høje-Taastrup Hotel', + 'Hørsholm Helse', + 'Ikast Innovation', + 'Ishøj IT', + 'Jammerbugt Jagt', + 'Kalundborg Kaffe', + 'Kerteminde Keramik', + 'Kolding Kultur', + 'KongeKabel Telekom', + 'KystTilKyst Turisme', + 'København TransportLøsninger', + 'Køge Korn', + 'Lejre Lys', + 'Lemvig Landbrug', + 'Lemvig Luft', + 'Lillebælt Logistik', + 'Lolland Landbrug', + 'Lyngby Lys', + 'Læsø Læder', + 'Mariagerfjord Mad', + 'Middelfart Maskiner', + 'Midtjylland Maskiner', + 'Mors Møbler', + 'Morsø Maling', + 'NaturLinjen Kosmetik', + 'Norddjurs Naturlig', + 'Nordfyn Næringsstoffer', + 'NordHavn Teknologier', + 'Nordisk NanoLab', + 'Nordlys Finans', + 'Nyborg Nytte', + 'Næstved Netværk', + 'Odder Olie', + 'Odense Online', + 'Odsherred Optik', + 'Randers Robotter', + 'Rebild Radio', + 'Ribe Robotteknologi', + 'Ringkøbing Rengøring', + 'Ringsted Renovering', + 'Roskilde Rejser', + 'Rødovre Reklame', + 'Samsø Salt', + 'Samsø Solenergi', + 'Scandia Software', + 'Silkeborg Sundhed', + 'Sjælland SkyTek', + 'Skagen Software', + 'Skive Skov', + 'SkovHaven Møbler', + 'Slagelse Software', + 'Stevns Sten', + 'Struer Stål', + 'SundBro Byggeri', + 'Svendborg Søfart', + 'Sydfyn Sko', + 'SynergiSport Udstyr', + 'Sønderborg Sol', + 'Thisted Tjenester', + 'Thy Teknik', + 'Trekroner Forsikring', + 'Tønder Tekstil', + 'Tårnby Tekstiler', + 'Taastrup Transport', + 'Valby VandTek', + 'Varde Varehandel', + 'Vejen Vand', + 'Vejle Visioner', + 'Vesterhav Vindkraft', + 'Viborg Video', + 'VikingNetværk', + 'Vordingborg Vind', + 'Øresund MarineTek', + 'ØstVind Innovation', + 'Aabenraa Anlæg', + 'Aabenraa Automater', + 'Aalborg Aqua', + 'Aarhus Automatik', + 'Århus Robotik', +]; diff --git a/src/locales/da/company/descriptor.ts b/src/locales/da/company/descriptor.ts new file mode 100644 index 00000000000..72d70a3ae72 --- /dev/null +++ b/src/locales/da/company/descriptor.ts @@ -0,0 +1,95 @@ +export default [ + '24 timer', + '24/7', + '3. generation', + '4. generation', + '5. generation', + '6. generation', + 'administrationsfri', + 'afbalanceret', + 'aktiverende', + 'analyserende', + 'asymmetrisk', + 'asynkron', + 'baggrund', + 'behovsbaseret', + 'bemyndigende', + 'brugervendt', + 'bundlinje', + 'båndbreddeovervåget', + 'client-server', + 'dedikeret', + 'didaktisk', + 'diskret', + 'dynamisk', + 'effektfuld', + 'efterspørgselsdrevet', + 'eksplicit', + 'ensartet', + 'fejltolerant', + 'forgrund', + 'frisktænkende', + 'fuldt dækkende', + 'førende', + 'gensidig', + 'global', + 'helhedsorienteret', + 'heuristisk', + 'holdningsorienteret', + 'homogen', + 'hybrid', + 'højniveau', + 'håndgribelig', + 'indholdsbaseret', + 'inkremental', + 'interaktiv', + 'klartænkende', + 'klientdrevet', + 'kontekstbaseret', + 'kontekstfølsom', + 'ledelsesmæssig', + 'logistisk', + 'lokal', + 'løsningsorienteret', + 'maksimeret', + 'mellemstation', + 'metodisk', + 'middleware', + 'missionskritisk', + 'mobil', + 'modulær', + 'motiverende', + 'multimedie', + 'multitasking', + 'national', + 'neutral', + 'objektorienteret', + 'omfavnende', + 'optimal', + 'optimerende', + 'overgang', + 'radikal', + 'realtid', + 'receptiv', + 'regional', + 'retningsbestemt', + 'sammenhængende', + 'sammenkoblet', + 'sammensat', + 'sekundær', + 'skalerbar', + 'stabil', + 'statisk', + 'systematisk', + 'systemisk', + 'systemværdig', + 'tertiær', + 'tovejs', + 'udstrålende', + 'uforanderlig', + 'velmoduleret', + 'vækstende', + 'værditilføjet', + 'webunderstøttet', + 'øko-centrisk', +]; diff --git a/src/locales/da/company/index.ts b/src/locales/da/company/index.ts new file mode 100644 index 00000000000..5143349e966 --- /dev/null +++ b/src/locales/da/company/index.ts @@ -0,0 +1,28 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CompanyDefinition } from '../../..'; +import adjective from './adjective'; +import buzz_adjective from './buzz_adjective'; +import buzz_noun from './buzz_noun'; +import buzz_verb from './buzz_verb'; +import company_name from './company_name'; +import descriptor from './descriptor'; +import name_pattern from './name_pattern'; +import noun from './noun'; +import suffix from './suffix'; + +const company: CompanyDefinition = { + adjective, + buzz_adjective, + buzz_noun, + buzz_verb, + company_name, + descriptor, + name_pattern, + noun, + suffix, +}; + +export default company; diff --git a/src/locales/da/company/name_pattern.ts b/src/locales/da/company/name_pattern.ts new file mode 100644 index 00000000000..0abeedf2ef6 --- /dev/null +++ b/src/locales/da/company/name_pattern.ts @@ -0,0 +1,4 @@ +export default [ + '{{company.company_name}}', + '{{person.last_name}} {{commerce.department}} {{company.suffix}}', +]; diff --git a/src/locales/da/company/noun.ts b/src/locales/da/company/noun.ts new file mode 100644 index 00000000000..5437e64053c --- /dev/null +++ b/src/locales/da/company/noun.ts @@ -0,0 +1,96 @@ +export default [ + 'adapter', + 'adgang', + 'algoritme', + 'alliance', + 'analysator', + 'applikation', + 'arkitektur', + 'arkiv', + 'benchmark', + 'budgetstyring', + 'data-lager', + 'database', + 'definition', + 'ekstranet', + 'emulering', + 'evne', + 'firmware', + 'fleksibilitet', + 'fokusgruppe', + 'framework', + 'funktion', + 'gennemstrømning', + 'grafisk brugergrænseflade', + 'groupware', + 'grænseflade', + 'hardware', + 'helpdesk', + 'hierarki', + 'hub', + 'implementering', + 'infrastruktur', + 'initiativ', + 'installation', + 'instruktionssæt', + 'internetløsning', + 'intranet', + 'kapacitet', + 'kerne', + 'kodning', + 'kompleksitet', + 'koncept', + 'konglomerat', + 'kontingens', + 'kredsløb', + 'kryptering', + 'kundeloyalitet', + 'kunstig intelligens', + 'lokalt netværk', + 'løsning', + 'matrix', + 'metodologi', + 'middleware', + 'migration', + 'model', + 'moderator', + 'moratorium', + 'neural-netværk', + 'orkestrering', + 'overvågning', + 'paradigme', + 'parallelitet', + 'politik', + 'portal', + 'prisstruktur', + 'procesforbedring', + 'produkt', + 'produktivitet', + 'prognose', + 'projekt', + 'projektion', + 'protokol', + 'samarbejde', + 'service-desk', + 'sikker linje', + 'software', + 'standardisering', + 'strategi', + 'struktur', + 'succes', + 'superstruktur', + 'support', + 'synergi', + 'systemmotor', + 'task-force', + 'tidsramme', + 'tilgang', + 'udfordring', + 'udnyttelse', + 'vidensbase', + 'vidensbruger', + 'værktøjssæt', + 'websted', + 'åben arkitektur', + 'åbent system', +]; diff --git a/src/locales/da/company/suffix.ts b/src/locales/da/company/suffix.ts new file mode 100644 index 00000000000..ede1fafcd7c --- /dev/null +++ b/src/locales/da/company/suffix.ts @@ -0,0 +1 @@ +export default ['ApS', 'A/S']; diff --git a/src/locales/da/index.ts b/src/locales/da/index.ts index 546a561dd89..ead82b01dcd 100644 --- a/src/locales/da/index.ts +++ b/src/locales/da/index.ts @@ -3,12 +3,16 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import commerce from './commerce'; +import company from './company'; import location from './location'; import metadata from './metadata'; import person from './person'; import word from './word'; const da: LocaleDefinition = { + commerce, + company, location, metadata, person, From aa446c8f6de29c2a5e2016079cdeda9acb4811da Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 9 Sep 2023 13:02:53 +0200 Subject: [PATCH 50/51] feat(helpers): add support and tests for complex intermediate return types in fake method --- src/modules/helpers/index.ts | 7 ++++++- test/modules/helpers.spec.ts | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index fe3a1966d17..eab9cbd4757 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -1190,6 +1190,7 @@ export class HelpersModule { // split the method into module and function const parts = method.split('.'); + const property = parts.length === 3 ? parts.pop() : undefined; let currentModuleOrMethod: unknown = this.faker; let currentDefinitions: unknown = this.faker.rawDefinitions; @@ -1231,7 +1232,11 @@ export class HelpersModule { params = [parameters]; } - const result = String(fn(...params)); + const fnResult = fn(...params); + const result = + typeof fnResult === 'object' && property + ? String(fnResult[property]) + : String(fnResult); // Replace the found tag with the returned fake value // We cannot use string.replace here because the result might contain evaluated characters diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 7b709373f24..a8a8339d515 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1150,6 +1150,29 @@ describe('helpers', () => { it('should not trim whitespace', () => { expect(faker.helpers.fake(' --- ')).toBe(' --- '); }); + + it('should be able to handle methods that return a complex object', () => { + expect( + faker.definitions.airline.airport.map((airport) => airport.iataCode) + ).toContain(faker.helpers.fake('{{airline.airport.iataCode}}')); + }); + + it('should return undefined if a method returns a complex object but the property is undefined', () => { + expect(faker.helpers.fake('{{airline.airport.code}}')).toBe( + 'undefined' + ); + }); + + it('should be able to pass multiple dynamic templates with complex objects', () => { + expect( + faker.definitions.airline.airplane.map((airplane) => airplane.name) + ).toContain( + faker.helpers.fake([ + '{{airline.airplane.name}}', + '{{airline.airplane.name}}', + ]) + ); + }); }); describe('rangeToNumber()', () => { From d005a666c874157b5e60d90194b7240020b09529 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 9 Sep 2023 13:40:15 +0200 Subject: [PATCH 51/51] feat(helpers): fix type error in fake method --- src/modules/helpers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index eab9cbd4757..61a8007e946 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -1235,7 +1235,7 @@ export class HelpersModule { const fnResult = fn(...params); const result = typeof fnResult === 'object' && property - ? String(fnResult[property]) + ? String(fnResult[property as keyof typeof fnResult]) : String(fnResult); // Replace the found tag with the returned fake value