From 32b9034a7b27de2bf29668710542b1f1dc254bcb Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 3 Feb 2023 08:54:39 +0100 Subject: [PATCH 01/21] test: configure chai truncated threshold (#1807) --- test/setup.ts | 3 +++ vite.config.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 test/setup.ts diff --git a/test/setup.ts b/test/setup.ts new file mode 100644 index 00000000000..23d693a315d --- /dev/null +++ b/test/setup.ts @@ -0,0 +1,3 @@ +import { chai } from 'vitest'; + +chai.config.truncateThreshold = 10000; diff --git a/vite.config.ts b/vite.config.ts index 169c433815d..cb3a67e3029 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,6 +8,7 @@ console.log('VITEST_SEQUENCE_SEED', VITEST_SEQUENCE_SEED); // https://vitejs.dev/config/ export default defineConfig({ test: { + setupFiles: ['test/setup.ts'], coverage: { all: true, reporter: ['clover', 'cobertura', 'lcov', 'text'], From d35da058322121a4cd44159164f657814bcc62a7 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 3 Feb 2023 09:25:55 +0100 Subject: [PATCH 02/21] docs: show source link (#1780) Co-authored-by: Shinigami92 --- docs/.vitepress/components/api-docs/method.ts | 1 + .../.vitepress/components/api-docs/method.vue | 48 +++++++++++++++++-- scripts/apidoc/apiDocsWriter.ts | 30 ++++++++++++ scripts/apidoc/generate.ts | 2 + scripts/apidoc/moduleMethods.ts | 4 +- scripts/apidoc/signature.ts | 11 +++-- scripts/apidoc/typedoc.ts | 35 ++++++++++++++ scripts/apidoc/utils.ts | 13 +++++ .../__snapshots__/signature.spec.ts.snap | 18 +++++++ 9 files changed, 150 insertions(+), 12 deletions(-) diff --git a/docs/.vitepress/components/api-docs/method.ts b/docs/.vitepress/components/api-docs/method.ts index b58f435e04b..52cb24957bf 100644 --- a/docs/.vitepress/components/api-docs/method.ts +++ b/docs/.vitepress/components/api-docs/method.ts @@ -7,6 +7,7 @@ export interface Method { readonly examples: string; // HTML readonly deprecated: boolean; readonly since: string; + readonly sourcePath: string; // URL-Suffix readonly seeAlsos: string[]; } diff --git a/docs/.vitepress/components/api-docs/method.vue b/docs/.vitepress/components/api-docs/method.vue index c43e5868144..8bff111f36a 100644 --- a/docs/.vitepress/components/api-docs/method.vue +++ b/docs/.vitepress/components/api-docs/method.vue @@ -2,6 +2,7 @@ import type { Method } from './method'; import MethodParameters from './method-parameters.vue'; import { slugify } from '../../shared/utils/slugify'; +import { sourceBaseUrl } from '../../../api/source-base-url'; const props = defineProps<{ method: Method }>(); @@ -20,11 +21,9 @@ function seeAlsoToUrl(see: string): string {
-
-

- Available since v -

-
+

+ Available since v{{ props.method.since }} +

+ +
+

Source

+ +
+ + diff --git a/scripts/apidoc/apiDocsWriter.ts b/scripts/apidoc/apiDocsWriter.ts index d40dec34359..146c79235aa 100644 --- a/scripts/apidoc/apiDocsWriter.ts +++ b/scripts/apidoc/apiDocsWriter.ts @@ -6,6 +6,7 @@ import type { APIGroup, APIItem } from '../../docs/api/api-types'; import { formatMarkdown, formatTypescript } from './format'; import { extractModuleName, + extractSourceBaseUrl, selectApiMethods, selectApiModules, } from './typedoc'; @@ -120,10 +121,20 @@ export function writeApiPagesIndex(pages: PageIndex): void { writeFileSync(pathDocsApiPages, apiPagesContent); } +/** + * Writes the api diff index to the correct location. + * + * @param diffIndex The diff index project to write. + */ export function writeApiDiffIndex(diffIndex: DocsApiDiffIndex): void { writeFileSync(pathDocsDiffIndexFile, JSON.stringify(diffIndex)); } +/** + * Writes the api search index to the correct location. + * + * @param project The typedoc project. + */ export function writeApiSearchIndex(project: ProjectReflection): void { const apiIndex: APIGroup[] = []; @@ -154,3 +165,22 @@ export function writeApiSearchIndex(project: ProjectReflection): void { writeFileSync(pathDocsApiSearchIndex, JSON.stringify(apiIndex)); } + +/** + * Writes the source base url to the correct location. + * + * @param project The typedoc project. + */ +export function writeSourceBaseUrl(project: ProjectReflection): void { + const baseUrl = extractSourceBaseUrl(project); + + let content = ` + // This file is automatically generated. + // Run '${scriptCommand}' to update + export const sourceBaseUrl = '${baseUrl}'; + `.replace(/\n +/, '\n'); + + content = formatTypescript(content); + + writeFileSync(resolve(pathOutputDir, 'source-base-url.ts'), content); +} diff --git a/scripts/apidoc/generate.ts b/scripts/apidoc/generate.ts index 6aa3ae0c7eb..b5ccb3f34d7 100644 --- a/scripts/apidoc/generate.ts +++ b/scripts/apidoc/generate.ts @@ -3,6 +3,7 @@ import { writeApiDiffIndex, writeApiPagesIndex, writeApiSearchIndex, + writeSourceBaseUrl, } from './apiDocsWriter'; import { processModuleMethods } from './moduleMethods'; import { loadProject } from './typedoc'; @@ -26,4 +27,5 @@ export async function generate(): Promise { ); writeApiSearchIndex(project); + writeSourceBaseUrl(project); } diff --git a/scripts/apidoc/moduleMethods.ts b/scripts/apidoc/moduleMethods.ts index bf7b93f91f7..b89e873ca44 100644 --- a/scripts/apidoc/moduleMethods.ts +++ b/scripts/apidoc/moduleMethods.ts @@ -9,7 +9,7 @@ import { selectApiModules, } from './typedoc'; import type { PageAndDiffIndex } from './utils'; -import { diffHash } from './utils'; +import { diffHash, methodDiffHash } from './utils'; /** * Analyzes and writes the documentation for modules and their methods such as `faker.animal.cat()`. @@ -62,7 +62,7 @@ function processModuleMethod(module: DeclarationReflection): PageAndDiffIndex { diff: methods.reduce( (data, method) => ({ ...data, - [method.name]: diffHash(method), + [method.name]: methodDiffHash(method), }), { moduleHash: diffHash({ diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index a4b384a9450..9cdd7924fc8 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -23,12 +23,15 @@ import { extractRawExamples, extractSeeAlsos, extractSince, + extractSourcePath, isDeprecated, joinTagParts, } from './typedoc'; import { pathOutputDir } from './utils'; -export function prettifyMethodName(method: string): string { +const code = '```'; + +function prettifyMethodName(method: string): string { return ( // Capitalize and insert space before upper case characters method.substring(0, 1).toUpperCase() + @@ -176,15 +179,13 @@ export function analyzeSignature( mdToHtml(seeAlso, true) ); - const prettyMethodName = prettifyMethodName(methodName); - const code = '```'; - return { name: methodName, - title: prettyMethodName, + title: prettifyMethodName(methodName), description: mdToHtml(toBlock(signature.comment)), parameters: parameters, since: extractSince(signature), + sourcePath: extractSourcePath(signature), returns: typeToText(signature.type), examples: mdToHtml(`${code}ts\n${examples}${code}`), deprecated: isDeprecated(signature), diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 0ff0906e327..cc5132a9a07 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -3,6 +3,7 @@ import type { CommentTag, DeclarationReflection, ProjectReflection, + Reflection, SignatureReflection, TypeDocOptions, } from 'typedoc'; @@ -144,6 +145,40 @@ export function extractModuleFieldName(module: DeclarationReflection): string { return moduleName.substring(0, 1).toLowerCase() + moduleName.substring(1); } +/** + * Extracts the source url from the jsdocs. + * + * @param reflection The reflection instance to extract the source url from. + */ +function extractSourceUrl(reflection: Reflection): string { + const source = reflection.sources?.[0]; + return source?.url ?? ''; +} + +/** + * Extracts the source base url from the jsdocs. + * + * @param reflection The reflection instance to extract the source base url from. + */ +export function extractSourceBaseUrl(reflection: Reflection): string { + return extractSourceUrl(reflection).replace( + /^(.*\/blob\/[0-9a-f]+\/)(.*)$/, + '$1' + ); +} + +/** + * Extracts the relative source path from the jsdocs. + * + * @param reflection The reflection instance to extract the source path from. + */ +export function extractSourcePath(reflection: Reflection): string { + return extractSourceUrl(reflection).replace( + /^(.*\/blob\/[0-9a-f]+\/)(.*)$/, + '$2' + ); +} + /** * Extracts the text (md) from a jsdoc tag. * diff --git a/scripts/apidoc/utils.ts b/scripts/apidoc/utils.ts index 5de80cc3c5b..4c9c322d7cf 100644 --- a/scripts/apidoc/utils.ts +++ b/scripts/apidoc/utils.ts @@ -1,5 +1,6 @@ import { createHash } from 'node:crypto'; import { resolve } from 'node:path'; +import type { Method } from '../../docs/.vitepress/components/api-docs/method'; // Types @@ -53,6 +54,18 @@ export function mapByName( ); } +/** + * Creates a diff hash for the given method by removing the line number from the source path. + * + * @param method The method to create a hash for. + */ +export function methodDiffHash(method: Method): string { + return diffHash({ + ...method, + sourcePath: method.sourcePath.replace(/#.*/g, ''), + }); +} + /** * Creates a diff hash for the given object. * diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index 66886029090..cb8ff8828d3 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -44,6 +44,7 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` "returns": "T", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L295", "title": "Complex Array Parameter", } `; @@ -69,6 +70,7 @@ exports[`signature > analyzeSignature() > defaultBooleanParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L99", "title": "Default Boolean Param Method", } `; @@ -117,6 +119,7 @@ exports[`signature > analyzeSignature() > functionParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L119", "title": "Function Param Method", } `; @@ -177,6 +180,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "returns": "string", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L142", "title": "Literal Union Param Method", } `; @@ -196,6 +200,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = ` "test.apidoc.methodWithExample()", ], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L254", "title": "Method With Deprecated", } `; @@ -214,6 +219,7 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L243", "title": "Method With Example", } `; @@ -234,6 +240,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "test.apidoc.methodWithDeprecated()", ], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L264", "title": "Method With Multiple See Markers", } `; @@ -254,6 +261,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "test.apidoc.methodWithDeprecated() with parameter bar and baz.", ], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L274", "title": "Method With Multiple See Markers And Backticks", } `; @@ -271,6 +279,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "returns": "number", "seeAlsos": [], "since": "1.0.0", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L283", "title": "Method With Since Marker", } `; @@ -310,6 +319,7 @@ exports[`signature > analyzeSignature() > multiParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L110", "title": "Multi Param Method", } `; @@ -327,6 +337,7 @@ exports[`signature > analyzeSignature() > noParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L72", "title": "No Param Method", } `; @@ -352,6 +363,7 @@ exports[`signature > analyzeSignature() > optionalStringParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L90", "title": "Optional String Param Method", } `; @@ -420,6 +432,7 @@ It also has a more complex description.

"returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L193", "title": "Options Inline Param Method With Defaults", } `; @@ -459,6 +472,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L229", "title": "Options Interface Param Method With Defaults", } `; @@ -517,6 +531,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L169", "title": "Options Param Method", } `; @@ -556,6 +571,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`] "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L211", "title": "Options Type Param Method With Defaults", } `; @@ -581,6 +597,7 @@ exports[`signature > analyzeSignature() > requiredNumberParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L81", "title": "Required Number Param Method", } `; @@ -606,6 +623,7 @@ exports[`signature > analyzeSignature() > stringUnionParamMethod 1`] = ` "returns": "string", "seeAlsos": [], "since": "", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L128", "title": "String Union Param Method", } `; From ff5358732fdbd224ef8c7e71a9591fa4fd68da3c Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Fri, 3 Feb 2023 15:38:01 +0700 Subject: [PATCH 03/21] =?UTF-8?q?fix(locale):=20replace=20=C3=90=20with=20?= =?UTF-8?q?=C4=90=20in=20hr=20and=20vi=20(#1810)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/hr/person/female_first_name.ts | 4 +- src/locales/hr/person/first_name.ts | 4 +- src/locales/vi/person/female_first_name.ts | 71 +++-- src/locales/vi/person/male_first_name.ts | 287 ++++++++++----------- 4 files changed, 177 insertions(+), 189 deletions(-) diff --git a/src/locales/hr/person/female_first_name.ts b/src/locales/hr/person/female_first_name.ts index 780a427a89b..ce2f8c78733 100644 --- a/src/locales/hr/person/female_first_name.ts +++ b/src/locales/hr/person/female_first_name.ts @@ -59,7 +59,7 @@ export default [ 'Dara', 'Darinka', 'Dea', - 'Ðina', + 'Đina', 'Dona', 'Donka', 'Dora', @@ -173,7 +173,7 @@ export default [ 'Dragica', 'Dubravka', 'Dunja', - 'Ðurda', + 'Đurda', 'Edita', 'Elena', 'Ema', diff --git a/src/locales/hr/person/first_name.ts b/src/locales/hr/person/first_name.ts index 78f9c831014..e3a87768f4a 100644 --- a/src/locales/hr/person/first_name.ts +++ b/src/locales/hr/person/first_name.ts @@ -59,7 +59,7 @@ export default [ 'Dara', 'Darinka', 'Dea', - 'Ðina', + 'Đina', 'Dona', 'Donka', 'Dora', @@ -173,7 +173,7 @@ export default [ 'Dragica', 'Dubravka', 'Dunja', - 'Ðurda', + 'Đurda', 'Edita', 'Elena', 'Ema', diff --git a/src/locales/vi/person/female_first_name.ts b/src/locales/vi/person/female_first_name.ts index 141f380d12a..319d27f908e 100644 --- a/src/locales/vi/person/female_first_name.ts +++ b/src/locales/vi/person/female_first_name.ts @@ -16,7 +16,7 @@ export default [ 'Anh Thư', 'Anh Thảo', 'Anh Vũ', - 'Anh Ðào', + 'Anh Đào', 'Ban Mai', 'Bình Minh', 'Bình Yên', @@ -53,8 +53,8 @@ export default [ 'Bích Trâm', 'Bích Ty', 'Bích Vân', - 'Bích Ðiệp', - 'Bích Ðào', + 'Bích Điệp', + 'Bích Đào', 'Băng Băng', 'Băng Tâm', 'Bạch Cúc', @@ -312,7 +312,7 @@ export default [ 'Hải Vân', 'Hải Yến', 'Hải Ân', - 'Hải Ðường', + 'Hải Đường', 'Hảo Nhi', 'Hằng Anh', 'Hằng Nga', @@ -353,8 +353,8 @@ export default [ 'Hồng Tâm', 'Hồng Vân', 'Hồng Xuân', - 'Hồng Ðiệp', - 'Hồng Ðào', + 'Hồng Điệp', + 'Hồng Đào', 'Hồng Đăng', 'Khiết Linh', 'Khiết Tâm', @@ -471,7 +471,7 @@ export default [ 'Linh Phượng', 'Linh San', 'Linh Trang', - 'Linh Ðan', + 'Linh Đan', 'Liên Chi', 'Liên Hoa', 'Liên Hương', @@ -579,7 +579,7 @@ export default [ 'Mộng Vi', 'Mộng Vy', 'Mộng Vân', - 'Mộng Ðiệp', + 'Mộng Điệp', 'Mỹ Anh', 'Mỹ Diễm', 'Mỹ Dung', @@ -687,9 +687,9 @@ export default [ 'Ngọc Yến', 'Ngọc Ái', 'Ngọc Ánh', - 'Ngọc Ðiệp', - 'Ngọc Ðàn', - 'Ngọc Ðào', + 'Ngọc Điệp', + 'Ngọc Đàn', + 'Ngọc Đào', 'Nhan Hồng', 'Nhã Hương', 'Nhã Hồng', @@ -1022,9 +1022,9 @@ export default [ 'Thục Tâm', 'Thục Uyên', 'Thục Vân', - 'Thục Ðoan', - 'Thục Ðào', - 'Thục Ðình', + 'Thục Đoan', + 'Thục Đào', + 'Thục Đình', 'Thụy Du', 'Thụy Khanh', 'Thụy Linh', @@ -1035,7 +1035,7 @@ export default [ 'Thụy Trâm', 'Thụy Uyên', 'Thụy Vân', - 'Thụy Ðào', + 'Thụy Đào', 'Thủy Hằng', 'Thủy Hồng', 'Thủy Linh', @@ -1054,7 +1054,7 @@ export default [ 'Trang Linh', 'Trang Nhã', 'Trang Tâm', - 'Trang Ðài', + 'Trang Đài', 'Triều Nguyệt', 'Triều Thanh', 'Triệu Mẫn', @@ -1078,7 +1078,6 @@ export default [ 'Trúc Quỳnh', 'Trúc Vy', 'Trúc Vân', - 'Trúc Ðào', 'Trúc Đào', 'Trầm Hương', 'Tuyết Anh', @@ -1118,7 +1117,7 @@ export default [ 'Tâm Như', 'Tâm Thanh', 'Tâm Trang', - 'Tâm Ðoan', + 'Tâm Đoan', 'Tâm Đan', 'Tùng Linh', 'Tùng Lâm', @@ -1238,7 +1237,6 @@ export default [ 'Yên Bằng', 'Yên Mai', 'Yên Nhi', - 'Yên Ðan', 'Yên Đan', 'Yến Anh', 'Yến Hồng', @@ -1254,7 +1252,7 @@ export default [ 'Yến Trang', 'Yến Trinh', 'Yến Trâm', - 'Yến Ðan', + 'Yến Đan', 'Ái Hồng', 'Ái Khanh', 'Ái Linh', @@ -1275,36 +1273,27 @@ export default [ 'Ánh Trang', 'Ánh Tuyết', 'Ánh Xuân', - 'Ðan Khanh', - 'Ðan Quỳnh', - 'Đan Thu', - 'Ðinh Hương', - 'Ðoan Thanh', - 'Ðoan Trang', - 'Ðài Trang', - 'Ðông Nghi', - 'Ðông Nhi', - 'Ðông Trà', - 'Ðông Tuyền', - 'Ðông Vy', - 'Ðông Ðào', - 'Ðồng Dao', - 'Ý Bình', - 'Ý Lan', - 'Ý Nhi', - 'Đan Linh', + 'Đan Khanh', 'Đan Quỳnh', - 'Đan Thanh', - 'Đan Thư', - 'Đan Tâm', + 'Đan Thu', 'Đinh Hương', 'Đoan Thanh', 'Đoan Trang', 'Đài Trang', 'Đông Nghi', + 'Đông Nhi', 'Đông Trà', 'Đông Tuyền', 'Đông Vy', + 'Đông Đào', + 'Đồng Dao', + 'Ý Bình', + 'Ý Lan', + 'Ý Nhi', + 'Đan Linh', + 'Đan Thanh', + 'Đan Thư', + 'Đan Tâm', 'Đơn Thuần', 'Đức Hạnh', 'Ấu Lăng', diff --git a/src/locales/vi/person/male_first_name.ts b/src/locales/vi/person/male_first_name.ts index 3168cbb3536..b668c35af5f 100644 --- a/src/locales/vi/person/male_first_name.ts +++ b/src/locales/vi/person/male_first_name.ts @@ -8,7 +8,7 @@ export default [ 'An Tâm', 'Ân Thiện', 'An Tường', - 'Anh Ðức', + 'Anh Đức', 'Anh Dũng', 'Anh Duy', 'Anh Hoàng', @@ -43,7 +43,7 @@ export default [ 'Bảo An', 'Bảo Bảo', 'Bảo Chấn', - 'Bảo Ðịnh', + 'Bảo Định', 'Bảo Duy', 'Bảo Giang', 'Bảo Hiển', @@ -65,8 +65,8 @@ export default [ 'Bích Nhã', 'Bình An', 'Bình Dân', - 'Bình Ðạt', - 'Bình Ðịnh', + 'Bình Đạt', + 'Bình Định', 'Bình Dương', 'Bình Hòa', 'Bình Minh', @@ -142,112 +142,111 @@ export default [ 'Cương Nghị', 'Cương Quyết', 'Cường Thịnh', - 'Ðắc Cường', - 'Ðắc Di', - 'Ðắc Lộ', - 'Ðắc Lực', - 'Ðắc Thái', - 'Ðắc Thành', - 'Ðắc Trọng', - 'Ðại Dương', - 'Ðại Hành', - 'Ðại Ngọc', - 'Ðại Thống', + 'Đắc Cường', + 'Đắc Di', + 'Đắc Lộ', + 'Đắc Lực', + 'Đắc Thái', + 'Đắc Thành', + 'Đắc Trọng', + 'Đại Dương', + 'Đại Hành', + 'Đại Ngọc', + 'Đại Thống', 'Dân Hiệp', 'Dân Khánh', - 'Ðan Quế', - 'Ðan Tâm', - 'Ðăng An', - 'Ðăng Ðạt', - 'Ðăng Khánh', - 'Ðăng Khoa', + 'Đan Quế', + 'Đan Tâm', + 'Đăng An', + 'Đăng Đạt', + 'Đăng Khánh', + 'Đăng Khoa', 'Đăng Khương', - 'Ðăng Minh', + 'Đăng Minh', 'Đăng Quang', 'Danh Nhân', 'Danh Sơn', 'Danh Thành', 'Danh Văn', - 'Ðạt Dũng', - 'Ðạt Hòa', - 'Ðình Chiểu', - 'Ðình Chương', - 'Ðình Cường', - 'Ðình Diệu', - 'Ðình Ðôn', - 'Ðình Dương', - 'Ðình Hảo', - 'Ðình Hợp', - 'Ðình Kim', - 'Ðinh Lộc', - 'Ðình Lộc', - 'Ðình Luận', - 'Ðịnh Lực', - 'Ðình Nam', - 'Ðình Ngân', - 'Ðình Nguyên', - 'Ðình Nhân', - 'Ðình Phú', - 'Ðình Phúc', - 'Ðình Quảng', - 'Ðình Sang', - 'Ðịnh Siêu', - 'Ðình Thắng', - 'Ðình Thiện', - 'Ðình Toàn', - 'Ðình Trung', - 'Ðình Tuấn', - 'Ðoàn Tụ', - 'Ðồng Bằng', - 'Ðông Dương', - 'Ðông Hải', - 'Ðồng Khánh', - 'Ðông Nguyên', - 'Ðông Phong', - 'Ðông Phương', - 'Ðông Quân', - 'Ðông Sơn', - 'Ðức Ân', - 'Ðức Anh', - 'Ðức Bằng', - 'Ðức Bảo', - 'Ðức Bình', - 'Ðức Chính', - 'Ðức Duy', - 'Ðức Giang', - 'Ðức Hải', - 'Ðức Hạnh', + 'Đạt Dũng', + 'Đạt Hòa', + 'Đình Chiểu', + 'Đình Chương', + 'Đình Cường', + 'Đình Diệu', + 'Đình Đôn', + 'Đình Dương', + 'Đình Hảo', + 'Đình Hợp', + 'Đình Kim', + 'Đinh Lộc', + 'Đình Lộc', + 'Đình Luận', + 'Định Lực', + 'Đình Nam', + 'Đình Ngân', + 'Đình Nguyên', + 'Đình Nhân', + 'Đình Phú', + 'Đình Phúc', + 'Đình Quảng', + 'Đình Sang', + 'Định Siêu', + 'Đình Thắng', + 'Đình Thiện', + 'Đình Toàn', + 'Đình Trung', + 'Đình Tuấn', + 'Đoàn Tụ', + 'Đồng Bằng', + 'Đông Dương', + 'Đông Hải', + 'Đồng Khánh', + 'Đông Nguyên', + 'Đông Phong', + 'Đông Phương', + 'Đông Quân', + 'Đông Sơn', + 'Đức Ân', + 'Đức Anh', + 'Đức Bằng', + 'Đức Bảo', + 'Đức Bình', + 'Đức Chính', + 'Đức Duy', + 'Đức Giang', + 'Đức Hải', + 'Đức Hạnh', 'Đức Hòa', - 'Ðức Hòa', - 'Ðức Huy', - 'Ðức Khải', - 'Ðức Khang', - 'Ðức Khiêm', - 'Ðức Kiên', - 'Ðức Long', - 'Ðức Mạnh', - 'Ðức Minh', - 'Ðức Nhân', - 'Ðức Phi', - 'Ðức Phong', - 'Ðức Phú', - 'Ðức Quang', - 'Ðức Quảng', - 'Ðức Quyền', - 'Ðức Siêu', - 'Ðức Sinh', - 'Ðức Tài', - 'Ðức Tâm', - 'Ðức Thắng', - 'Ðức Thành', - 'Ðức Thọ', - 'Ðức Toàn', - 'Ðức Toản', - 'Ðức Trí', - 'Ðức Trung', - 'Ðức Tuấn', - 'Ðức Tuệ', - 'Ðức Tường', + 'Đức Huy', + 'Đức Khải', + 'Đức Khang', + 'Đức Khiêm', + 'Đức Kiên', + 'Đức Long', + 'Đức Mạnh', + 'Đức Minh', + 'Đức Nhân', + 'Đức Phi', + 'Đức Phong', + 'Đức Phú', + 'Đức Quang', + 'Đức Quảng', + 'Đức Quyền', + 'Đức Siêu', + 'Đức Sinh', + 'Đức Tài', + 'Đức Tâm', + 'Đức Thắng', + 'Đức Thành', + 'Đức Thọ', + 'Đức Toàn', + 'Đức Toản', + 'Đức Trí', + 'Đức Trung', + 'Đức Tuấn', + 'Đức Tuệ', + 'Đức Tường', 'Dũng Trí', 'Dũng Việt', 'Dương Anh', @@ -288,8 +287,8 @@ export default [ 'Gia Cần', 'Gia Cẩn', 'Gia Cảnh', - 'Gia Ðạo', - 'Gia Ðức', + 'Gia Đạo', + 'Gia Đức', 'Gia Hiệp', 'Gia Hòa', 'Gia Hoàng', @@ -318,7 +317,7 @@ export default [ 'Hà Hải', 'Hải Bằng', 'Hải Bình', - 'Hải Ðăng', + 'Hải Đăng', 'Hải Dương', 'Hải Giang', 'Hải Hà', @@ -387,7 +386,7 @@ export default [ 'Hoàng Thái', 'Hoàng Việt', 'Hoàng Xuân', - 'Hồng Ðăng', + 'Hồng Đăng', 'Hồng Đức', 'Hồng Giang', 'Hồng Lân', @@ -407,7 +406,7 @@ export default [ 'Huân Võ', 'Hùng Anh', 'Hùng Cường', - 'Hưng Ðạo', + 'Hưng Đạo', 'Hùng Dũng', 'Hùng Ngọc', 'Hùng Phong', @@ -427,8 +426,8 @@ export default [ 'Hữu Chiến', 'Hữu Cương', 'Hữu Cường', - 'Hữu Ðạt', - 'Hữu Ðịnh', + 'Hữu Đạt', + 'Hữu Định', 'Hữu Hạnh', 'Hữu Hiệp', 'Hữu Hoàng', @@ -498,7 +497,7 @@ export default [ 'Khang Kiện', 'Khánh An', 'Khánh Bình', - 'Khánh Ðan', + 'Khánh Đan', 'Khánh Duy', 'Khánh Giang', 'Khánh Hải', @@ -519,13 +518,13 @@ export default [ 'Kiên Bình', 'Kiến Bình', 'Kiên Cường', - 'Kiến Ðức', + 'Kiến Đức', 'Kiên Giang', 'Kiên Lâm', 'Kiên Trung', 'Kiến Văn', 'Kiệt Võ', - 'Kim Ðan', + 'Kim Đan', 'Kim Hoàng', 'Kim Long', 'Kim Phú', @@ -537,7 +536,7 @@ export default [ 'Kỳ Võ', 'Lạc Nhân', 'Lạc Phúc', - 'Lâm Ðồng', + 'Lâm Đồng', 'Lâm Dũng', 'Lam Giang', 'Lam Phương', @@ -557,7 +556,7 @@ export default [ 'Lương Tuyền', 'Mạnh Cương', 'Mạnh Cường', - 'Mạnh Ðình', + 'Mạnh Đình', 'Mạnh Dũng', 'Mạnh Hùng', 'Mạnh Nghiêm', @@ -573,10 +572,10 @@ export default [ 'Minh Anh', 'Minh Cảnh', 'Minh Dân', - 'Minh Ðan', + 'Minh Đan', 'Minh Danh', - 'Minh Ðạt', - 'Minh Ðức', + 'Minh Đạt', + 'Minh Đức', 'Minh Dũng', 'Minh Giang', 'Minh Hải', @@ -650,7 +649,7 @@ export default [ 'Ngọc Cảnh', 'Ngọc Cường', 'Ngọc Danh', - 'Ngọc Ðoàn', + 'Ngọc Đoàn', 'Ngọc Dũng', 'Ngọc Hải', 'Ngọc Hiển', @@ -673,7 +672,7 @@ export default [ 'Ngọc Tuấn', 'Nguyên Bảo', 'Nguyên Bổng', - 'Nguyên Ðan', + 'Nguyên Đan', 'Nguyên Giang', 'Nguyên Giáp', 'Nguyễn Hải An', @@ -710,7 +709,7 @@ export default [ 'Như Khang', 'Niệm Nhiên', 'Phi Cường', - 'Phi Ðiệp', + 'Phi Điệp', 'Phi Hải', 'Phi Hoàng', 'Phi Hùng', @@ -718,7 +717,7 @@ export default [ 'Phi Nhạn', 'Phong Châu', 'Phong Dinh', - 'Phong Ðộ', + 'Phong Độ', 'Phú Ân', 'Phú Bình', 'Phú Hải', @@ -729,7 +728,7 @@ export default [ 'Phú Thọ', 'Phú Thời', 'Phúc Cường', - 'Phúc Ðiền', + 'Phúc Điền', 'Phúc Duy', 'Phúc Hòa', 'Phúc Hưng', @@ -756,11 +755,11 @@ export default [ 'Quân Dương', 'Quang Anh', 'Quang Bửu', - 'Quảng Ðại', + 'Quảng Đại', 'Quang Danh', - 'Quang Ðạt', - 'Quảng Ðạt', - 'Quang Ðức', + 'Quang Đạt', + 'Quảng Đạt', + 'Quang Đức', 'Quang Dũng', 'Quang Dương', 'Quang Hà', @@ -802,8 +801,8 @@ export default [ 'Quốc Anh', 'Quốc Bảo', 'Quốc Bình', - 'Quốc Ðại', - 'Quốc Ðiền', + 'Quốc Đại', + 'Quốc Điền', 'Quốc Hải', 'Quốc Hạnh', 'Quốc Hiền', @@ -852,16 +851,16 @@ export default [ 'Sơn Trang', 'Sơn Tùng', 'Song Lam', - 'Sỹ Ðan', + 'Sỹ Đan', 'Sỹ Hoàng', 'Sỹ Phú', 'Sỹ Thực', 'Tạ Hiền', - 'Tài Ðức', + 'Tài Đức', 'Tài Nguyên', 'Tâm Thiện', 'Tân Bình', - 'Tân Ðịnh', + 'Tân Định', 'Tấn Dũng', 'Tấn Khang', 'Tấn Lợi', @@ -881,7 +880,7 @@ export default [ 'Thạch Sơn', 'Thạch Tùng', 'Thái Bình', - 'Thái Ðức', + 'Thái Đức', 'Thái Dương', 'Thái Duy', 'Thái Hòa', @@ -900,10 +899,10 @@ export default [ 'Thành Châu', 'Thành Công', 'Thành Danh', - 'Thanh Ðạo', - 'Thành Ðạt', - 'Thành Ðệ', - 'Thanh Ðoàn', + 'Thanh Đạo', + 'Thành Đạt', + 'Thành Đệ', + 'Thanh Đoàn', 'Thành Doanh', 'Thanh Hải', 'Thanh Hào', @@ -970,8 +969,8 @@ export default [ 'Thiên Ân', 'Thiện Ân', 'Thiên Bửu', - 'Thiên Ðức', - 'Thiện Ðức', + 'Thiên Đức', + 'Thiện Đức', 'Thiện Dũng', 'Thiện Giang', 'Thiên Hưng', @@ -995,7 +994,7 @@ export default [ 'Thiếu Cường', 'Thịnh Cường', 'Thời Nhiệm', - 'Thông Ðạt', + 'Thông Đạt', 'Thông Minh', 'Thống Nhất', 'Thông Tuệ', @@ -1019,9 +1018,9 @@ export default [ 'Thụy Long', 'Thụy Miên', 'Thụy Vũ', - 'Tích Ðức', + 'Tích Đức', 'Tích Thiện', - 'Tiến Ðức', + 'Tiến Đức', 'Tiến Dũng', 'Tiền Giang', 'Tiến Hiệp', @@ -1061,7 +1060,7 @@ export default [ 'Trung Anh', 'Trung Chính', 'Trung Chuyên', - 'Trung Ðức', + 'Trung Đức', 'Trung Dũng', 'Trung Hải', 'Trung Hiếu', @@ -1091,11 +1090,11 @@ export default [ 'Trường Thành', 'Trường Vinh', 'Trường Vũ', - 'Từ Ðông', + 'Từ Đông', 'Tuấn Anh', 'Tuấn Châu', 'Tuấn Chương', - 'Tuấn Ðức', + 'Tuấn Đức', 'Tuấn Dũng', 'Tuấn Hải', 'Tuấn Hoàng', @@ -1140,7 +1139,7 @@ export default [ 'Vạn Thông', 'Văn Tuyển', 'Viễn Cảnh', - 'Viễn Ðông', + 'Viễn Đông', 'Viễn Phương', 'Viễn Thông', 'Việt An', From 62fc5efaaef6a532867a6ac5fdd70e9df25b3414 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 4 Feb 2023 01:03:38 +0100 Subject: [PATCH 04/21] test: use cy.request for e2e (#1808) --- cypress/e2e/api.cy.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/api.cy.ts b/cypress/e2e/api.cy.ts index ec21d3d3dc7..a79c19579ea 100644 --- a/cypress/e2e/api.cy.ts +++ b/cypress/e2e/api.cy.ts @@ -32,11 +32,11 @@ describe('API Test', () => { const text = $el.find('a').text(); const link = $el.find('a').attr('href'); - cy.visit(`/api/${link}`); - - cy.get('h2').should('include.text', text); - cy.get('h1').should('not.include.text', 'PAGE NOT FOUND'); - cy.go('back'); + cy.request(`/api/${link}`).should((response) => { + expect(response.status).to.eq(200); + expect(response.body).to.include(text); + expect(response.body).to.not.include('PAGE NOT FOUND'); + }); }); }); }); From 8e4526df4430721c53cffa8082b72707eea1ccc5 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Sat, 4 Feb 2023 01:18:11 +0100 Subject: [PATCH 05/21] refactor(location): normalize signatures (#1784) --- src/modules/location/index.ts | 464 +++++++++++++++++++++-- test/__snapshots__/location.spec.ts.snap | 192 ++++++++-- test/location.spec.ts | 71 ++-- 3 files changed, 629 insertions(+), 98 deletions(-) diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index ab472658b3d..5fe542cbbc4 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -20,7 +20,8 @@ export class LocationModule { * Generates random zip code from specified format. If format is not specified, * the locale's zip format is used. * - * @param format The optional format used to generate the the zip code. + * @param options The format used to generate the the zip code or an options object. Defaults to `{}`. + * @param options.format The optional format used to generate the the zip code. * By default, a random format is used from the locale zip formats. * * @see faker.helpers.replaceSymbols() @@ -31,28 +32,42 @@ export class LocationModule { * * @since 8.0.0 */ - zipCode(format?: string): string { - // if zip format is not specified, use the zip format defined for the locale - if (format == null) { - const localeFormat = this.faker.definitions.location.postcode; - if (typeof localeFormat === 'string') { - format = localeFormat; - } else { - format = this.faker.helpers.arrayElement(localeFormat); - } + zipCode( + options: + | string + | { + /** + * The optional format used to generate the the zip code. + * + * @default faker.definitions.location.postcode + */ + format?: string; + } = {} + ): string { + if (typeof options === 'string') { + options = { format: options }; + } + + let { format = this.faker.definitions.location.postcode } = options; + if (typeof format === 'string') { + format = [format]; } + format = this.faker.helpers.arrayElement(format); + return this.faker.helpers.replaceSymbols(format); } /** - * Generates random zip code from state abbreviation. If state abbreviation is - * not specified, a random zip code is generated according to the locale's zip format. + * Generates random zip code from state abbreviation. + * * Only works for locales with postcode_by_state definition. If a locale does not * have a postcode_by_state definition, a random zip code is generated according * to the locale's zip format. * - * @param state The abbreviation of the state to generate the zip code for. + * @param options A state abbreviation or an options object. Defaults to `{}`. + * @param options.state The abbreviation of the state to generate the zip code for. + * If not specified, a random zip code is generated according to the locale's zip format. * * @example * fakerUS.location.zipCodeByState("AK") // '99595' @@ -60,7 +75,23 @@ export class LocationModule { * * @since 8.0.0 */ - zipCodeByState(state: string): string { + zipCodeByState( + options: + | string + | { + /** + * The abbreviation of the state to generate the zip code for. + * If not specified, a random zip code is generated according to the locale's zip format. + */ + state?: string; + } = {} + ): string { + if (typeof options === 'string') { + options = { state: options }; + } + + const { state } = options; + const zipRange = this.faker.definitions.location.postcode_by_state?.[state]; if (zipRange) { return String(this.faker.number.int(zipRange)); @@ -142,17 +173,35 @@ export class LocationModule { /** * Generates a random localized street address. * - * @param useFullAddress When true this will generate a full address. + * @param options Whether to use a full address or an options object. Defaults to `{}`. + * @param options.useFullAddress When true this will generate a full address. * Otherwise it will just generate a street address. * * @example * faker.location.streetAddress() // '0917 O'Conner Estates' * faker.location.streetAddress(false) // '34830 Erdman Hollow' * faker.location.streetAddress(true) // '3393 Ronny Way Apt. 742' + * faker.location.streetAddress({ useFullAddress: true }) // '7917 Miller Park Apt. 410' * * @since 8.0.0 */ - streetAddress(useFullAddress: boolean = false): string { + streetAddress( + options: + | boolean + | { + /** + * When true this will generate a full address. + * Otherwise it will just generate a street address. + */ + useFullAddress?: boolean; + } = {} + ): string { + if (typeof options === 'boolean') { + options = { useFullAddress: options }; + } + + const { useFullAddress } = options; + const formats = this.faker.definitions.location.street_address; const format = formats[useFullAddress ? 'full' : 'normal']; @@ -207,7 +256,8 @@ export class LocationModule { /** * Returns a random country code. * - * @param alphaCode The code to return. Can be either `'alpha-2'` (2 letter code) + * @param options The code to return or an options object. Defaults to `{}`. + * @param options.variant The variant to return. Can be either `'alpha-2'` (2 letter code) * or `'alpha-3'` (three letter code). Defaults to `'alpha-2'`. * * @example @@ -217,9 +267,27 @@ export class LocationModule { * * @since 8.0.0 */ - countryCode(alphaCode: 'alpha-2' | 'alpha-3' = 'alpha-2'): string { - const key = - alphaCode === 'alpha-3' ? 'country_code_alpha_3' : 'country_code'; + countryCode( + options: + | 'alpha-2' + | 'alpha-3' + | { + /** + * The code to return. + * Can be either `'alpha-2'` (2 letter code) + * or `'alpha-3'` (three letter code). + * + * @default 'alpha-2' + */ + variant?: 'alpha-2' | 'alpha-3'; + } = {} + ): string { + if (typeof options === 'string') { + options = { variant: options }; + } + + const { variant = 'alpha-2' } = options; + const key = variant === 'alpha-3' ? 'country_code_alpha_3' : 'country_code'; return this.faker.helpers.arrayElement( this.faker.definitions.location[key] @@ -254,6 +322,42 @@ export class LocationModule { ); } + /** + * Generates a random latitude. + * + * @param options An options object. Defaults to `{}`. + * @param options.max The upper bound for the latitude to generate. Defaults to `90`. + * @param options.min The lower bound for the latitude to generate. Defaults to `-90`. + * @param options.precision The number of decimal points of precision for the latitude. Defaults to `4`. + * + * @example + * faker.location.latitude() // -30.9501 + * faker.location.latitude({ max: 10 }) // 5.7225 + * faker.location.latitude({ max: 10, min: -10 }) // -9.6273 + * faker.location.latitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * + * @since 8.0.0 + */ + latitude(options?: { + /** + * The upper bound for the latitude to generate. + * + * @default 90 + */ + max?: number; + /** + * The lower bound for the latitude to generate. + * + * @default -90 + */ + min?: number; + /** + * The number of decimal points of precision for the latitude. + * + * @default 4 + */ + precision?: number; + }): number; /** * Generates a random latitude. * @@ -263,51 +367,303 @@ export class LocationModule { * * @example * faker.location.latitude() // -30.9501 + * faker.location.latitude(10) // 5.7225 + * faker.location.latitude(10, -10) // -9.6273 + * faker.location.latitude(10, -10, 5) // 2.68452 + * + * @since 8.0.0 + */ + latitude(max?: number, min?: number, precision?: number): number; + /** + * Generates a random latitude. + * + * @param options The upper bound for the latitude or an options object. Defaults to `{}`. + * @param options.max The upper bound for the latitude to generate. Defaults to `90`. + * @param options.min The lower bound for the latitude to generate. Defaults to `-90`. + * @param options.precision The number of decimal points of precision for the latitude. Defaults to `4`. + * @param legacyMin The lower bound for the latitude to generate. Defaults to `-90`. + * @param legacyPrecision The number of decimal points of precision for the latitude. Defaults to `4`. + * + * @example + * faker.location.latitude() // -30.9501 + * faker.location.latitude({ max: 10 }) // 5.7225 + * faker.location.latitude({ max: 10, min: -10 }) // -9.6273 + * faker.location.latitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * faker.location.latitude(10) // 5.7225 + * faker.location.latitude(10, -10) // -9.6273 * faker.location.latitude(10, -10, 5) // 2.68452 * * @since 8.0.0 */ - // TODO @xDivisionByZerox 2022-06-12 this signature should probably be an object for easier maintainability - latitude(max: number = 90, min: number = -90, precision: number = 4): number { + latitude( + options: + | number + | { + /** + * The upper bound for the latitude to generate. + * + * @default 90 + */ + max?: number; + /** + * The lower bound for the latitude to generate. + * + * @default -90 + */ + min?: number; + /** + * The number of decimal points of precision for the latitude. + * + * @default 4 + */ + precision?: number; + }, + legacyMin?: number, + legacyPrecision?: number + ): number; + /** + * Generates a random latitude. + * + * @param options The upper bound for the latitude or an options object. Defaults to `{}`. + * @param options.max The upper bound for the latitude to generate. Defaults to `90`. + * @param options.min The lower bound for the latitude to generate. Defaults to `-90`. + * @param options.precision The number of decimal points of precision for the latitude. Defaults to `4`. + * @param legacyMin The lower bound for the latitude to generate. Defaults to `-90`. + * @param legacyPrecision The number of decimal points of precision for the latitude. Defaults to `4`. + * + * @example + * faker.location.latitude() // -30.9501 + * faker.location.latitude({ max: 10 }) // 5.7225 + * faker.location.latitude({ max: 10, min: -10 }) // -9.6273 + * faker.location.latitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * faker.location.latitude(10) // 5.7225 + * faker.location.latitude(10, -10) // -9.6273 + * faker.location.latitude(10, -10, 5) // 2.68452 + * + * @since 8.0.0 + */ + latitude( + options: + | number + | { + /** + * The upper bound for the latitude to generate. + * + * @default 90 + */ + max?: number; + /** + * The lower bound for the latitude to generate. + * + * @default -90 + */ + min?: number; + /** + * The number of decimal points of precision for the latitude. + * + * @default 4 + */ + precision?: number; + } = {}, + legacyMin = -90, + legacyPrecision = 4 + ): number { + if (typeof options === 'number') { + options = { max: options }; + } + + const { max = 90, min = legacyMin, precision = legacyPrecision } = options; + return this.faker.number.float({ min, max, precision: 10 ** -precision }); } /** * Generates a random longitude. * - * @param max The upper bound for the longitude to generate. Defaults to `180`. - * @param min The lower bound for the longitude to generate. Defaults to `-180`. - * @param precision The number of decimal points of precision for the longitude. Defaults to `4`. + * @param options An options object. Defaults to `{}`. + * @param options.max The upper bound for the longitude to generate. Defaults to `180`. + * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. + * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. + * + * @example + * faker.location.longitude() // -30.9501 + * faker.location.longitude({ max: 10 }) // 5.7225 + * faker.location.longitude({ max: 10, min: -10 }) // -9.6273 + * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * + * @since 8.0.0 + */ + longitude(options?: { + /** + * The upper bound for the latitude to generate. + * + * @default 90 + */ + max?: number; + /** + * The lower bound for the latitude to generate. + * + * @default -90 + */ + min?: number; + /** + * The number of decimal points of precision for the latitude. + * + * @default 4 + */ + precision?: number; + }): number; + /** + * Generates a random longitude. + * + * @param options An options object. Defaults to `{}`. + * @param options.max The upper bound for the longitude to generate. Defaults to `180`. + * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. + * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. + * + * @example + * faker.location.longitude() // -30.9501 + * faker.location.longitude({ max: 10 }) // 5.7225 + * faker.location.longitude({ max: 10, min: -10 }) // -9.6273 + * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * + * @since 8.0.0 + */ + longitude(max?: number, min?: number, precision?: number): number; + /** + * Generates a random longitude. + * + * @param options The upper bound for the longitude or an options object. Defaults to `{}`. + * @param options.max The upper bound for the longitude to generate. Defaults to `180`. + * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. + * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. + * @param legacyMin The lower bound for the longitude to generate. Defaults to `-180`. + * @param legacyPrecision The number of decimal points of precision for the longitude. Defaults to `4`. + * + * @example + * faker.location.longitude() // -30.9501 + * faker.location.longitude({ max: 10 }) // 5.7225 + * faker.location.longitude({ max: 10, min: -10 }) // -9.6273 + * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * + * @since 8.0.0 + */ + longitude( + options?: + | number + | { + /** + * The upper bound for the longitude to generate. + * + * @default 180 + */ + max?: number; + /** + * The lower bound for the longitude to generate. + * + * @default -180 + */ + min?: number; + /** + * The number of decimal points of precision for the longitude. + * + * @default 4 + */ + precision?: number; + }, + legacyMin?: number, + legacyPrecision?: number + ): number; + /** + * Generates a random longitude. + * + * @param options An options object. Defaults to `{}`. + * @param options.max The upper bound for the longitude to generate. Defaults to `180`. + * @param options.min The lower bound for the longitude to generate. Defaults to `-180`. + * @param options.precision The number of decimal points of precision for the longitude. Defaults to `4`. + * @param legacyMin The lower bound for the longitude to generate. Defaults to `-180`. + * @param legacyPrecision The number of decimal points of precision for the longitude. Defaults to `4`. * * @example * faker.location.longitude() // -154.0226 + * faker.location.longitude({ max: 10 }) // 2.4387 + * faker.location.longitude({ max: 10, min: -10 }) // 6.9126 + * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // -4.03620 + * faker.location.longitude(10) // 2.4387 + * faker.location.longitude(10, -10) // 6.9126 * faker.location.longitude(10, -10, 5) // -4.03620 * * @since 8.0.0 */ - // TODO @xDivisionByZerox 2022-06-12 this signature should probably be an object for easier maintainability longitude( - max: number = 180, - min: number = -180, - precision: number = 4 + options: + | number + | { + /** + * The upper bound for the longitude to generate. + * + * @default 180 + */ + max?: number; + /** + * The lower bound for the longitude to generate. + * + * @default -180 + */ + min?: number; + /** + * The number of decimal points of precision for the longitude. + * + * @default 4 + */ + precision?: number; + } = {}, + legacyMin = -180, + legacyPrecision = 4 ): number { + if (typeof options === 'number') { + options = { max: options }; + } + + const { max = 180, min = legacyMin, precision = legacyPrecision } = options; + return this.faker.number.float({ max, min, precision: 10 ** -precision }); } /** * Returns a random direction (cardinal and ordinal; northwest, east, etc). * - * @param useAbbr If true this will return abbreviated directions (NW, E, etc). + * @param options Whether to use abbreviated or an options object. + * @param options.useAbbr If true this will return abbreviated directions (NW, E, etc). * Otherwise this will return the long name. Defaults to `false`. * * @example * faker.location.direction() // 'Northeast' * faker.location.direction(false) // 'South' * faker.location.direction(true) // 'NE' + * faker.location.direction({ useAbbr: true }) // 'SW' * * @since 8.0.0 */ - direction(useAbbr: boolean = false): string { + direction( + options: + | boolean + | { + /** + * If true this will return abbreviated directions (NW, E, etc). + * Otherwise this will return the long name. + * + * @default false + */ + useAbbr?: boolean; + } = {} + ): string { + if (typeof options === 'boolean') { + options = { useAbbr: options }; + } + + const { useAbbr = false } = options; + if (!useAbbr) { return this.faker.helpers.arrayElement( this.faker.definitions.location.direction @@ -322,17 +678,36 @@ export class LocationModule { /** * Returns a random cardinal direction (north, east, south, west). * - * @param useAbbr If true this will return abbreviated directions (N, E, etc). + * @param options Whether to use abbreviated or an options object. + * @param options.useAbbr If true this will return abbreviated directions (N, E, etc). * Otherwise this will return the long name. Defaults to `false`. * * @example * faker.location.cardinalDirection() // 'North' * faker.location.cardinalDirection(false) // 'South' * faker.location.cardinalDirection(true) // 'N' + * faker.location.cardinalDirection({ useAbbr: true }) // 'W' * * @since 8.0.0 */ - cardinalDirection(useAbbr: boolean = false): string { + cardinalDirection( + options: + | boolean + | { + /** + * If true this will return abbreviated directions (N, E, etc). + * Otherwise this will return the long name. + * + * @default false + */ + useAbbr?: boolean; + } = {} + ): string { + if (typeof options === 'boolean') { + options = { useAbbr: options }; + } + + const { useAbbr = false } = options; if (!useAbbr) { return this.faker.helpers.arrayElement( this.faker.definitions.location.direction.slice(0, 4) @@ -347,17 +722,36 @@ export class LocationModule { /** * Returns a random ordinal direction (northwest, southeast, etc). * - * @param useAbbr If true this will return abbreviated directions (NW, SE, etc). + * @param options Whether to use abbreviated or an options object. + * @param options.useAbbr If true this will return abbreviated directions (NW, SE, etc). * Otherwise this will return the long name. Defaults to `false`. * * @example * faker.location.ordinalDirection() // 'Northeast' * faker.location.ordinalDirection(false) // 'Northwest' * faker.location.ordinalDirection(true) // 'NE' + * faker.location.ordinalDirection({ useAbbr: true }) // 'SW' * * @since 8.0.0 */ - ordinalDirection(useAbbr: boolean = false): string { + ordinalDirection( + options: + | boolean + | { + /** + * If true this will return abbreviated directions (NW, SE, etc). + * Otherwise this will return the long name. + * + * @default false + */ + useAbbr?: boolean; + } = {} + ): string { + if (typeof options === 'boolean') { + options = { useAbbr: options }; + } + + const { useAbbr = false } = options; if (!useAbbr) { return this.faker.helpers.arrayElement( this.faker.definitions.location.direction.slice(4, 8) diff --git a/test/__snapshots__/location.spec.ts.snap b/test/__snapshots__/location.spec.ts.snap index 5f67809a36c..8b67230402f 100644 --- a/test/__snapshots__/location.spec.ts.snap +++ b/test/__snapshots__/location.spec.ts.snap @@ -4,9 +4,9 @@ exports[`location > 42 > buildingNumber 1`] = `"7917"`; exports[`location > 42 > cardinalDirection > noArgs 1`] = `"East"`; -exports[`location > 42 > cardinalDirection > with abbr = false 1`] = `"East"`; +exports[`location > 42 > cardinalDirection > with boolean 1`] = `"East"`; -exports[`location > 42 > cardinalDirection > with abbr = true 1`] = `"E"`; +exports[`location > 42 > cardinalDirection > with useAbbr option 1`] = `"E"`; exports[`location > 42 > city 1`] = `"Port Valentine"`; @@ -16,22 +16,54 @@ exports[`location > 42 > country 1`] = `"Guinea"`; exports[`location > 42 > countryCode > noArgs 1`] = `"GY"`; -exports[`location > 42 > countryCode > with code = alpha-2 1`] = `"GY"`; +exports[`location > 42 > countryCode > with alphaCode option 1`] = `"SAU"`; -exports[`location > 42 > countryCode > with code = alpha-3 1`] = `"SAU"`; +exports[`location > 42 > countryCode > with string 1`] = `"GY"`; exports[`location > 42 > county 1`] = `"Berkshire"`; exports[`location > 42 > direction > noArgs 1`] = `"South"`; -exports[`location > 42 > direction > with abbr = false 1`] = `"South"`; +exports[`location > 42 > direction > with boolean 1`] = `"South"`; -exports[`location > 42 > direction > with abbr = true 1`] = `"S"`; +exports[`location > 42 > direction > with useAbbr option 1`] = `"S"`; exports[`location > 42 > latitude > noArgs 1`] = `-22.5828`; +exports[`location > 42 > latitude > with max 1`] = `-52.546`; + +exports[`location > 42 > latitude > with max and min option 1`] = `-2.5092`; + +exports[`location > 42 > latitude > with max option 1`] = `-52.546`; + +exports[`location > 42 > latitude > with max, min and precision option 1`] = `-2.5091977138`; + +exports[`location > 42 > latitude > with min 1`] = `27.454`; + +exports[`location > 42 > latitude > with min option 1`] = `27.454`; + +exports[`location > 42 > latitude > with precision 1`] = `-22.5827794243`; + +exports[`location > 42 > latitude > with precision option 1`] = `-22.5827794243`; + exports[`location > 42 > longitude > noArgs 1`] = `-45.1656`; +exports[`location > 42 > longitude > with max 1`] = `-108.8374`; + +exports[`location > 42 > longitude > with max and min option 1`] = `-2.5092`; + +exports[`location > 42 > longitude > with max option 1`] = `-108.8374`; + +exports[`location > 42 > longitude > with max, min and precision option 1`] = `-2.5091977138`; + +exports[`location > 42 > longitude > with min 1`] = `61.1626`; + +exports[`location > 42 > longitude > with min option 1`] = `61.1626`; + +exports[`location > 42 > longitude > with precision 1`] = `-45.1655588485`; + +exports[`location > 42 > longitude > with precision option 1`] = `-45.1655588485`; + exports[`location > 42 > nearbyGPSCoordinate > near origin 1`] = ` [ 0.08140632875358443, @@ -90,9 +122,9 @@ exports[`location > 42 > nearbyGPSCoordinate > with radius and isMetric 1`] = ` exports[`location > 42 > ordinalDirection > noArgs 1`] = `"Northwest"`; -exports[`location > 42 > ordinalDirection > with abbr = false 1`] = `"Northwest"`; +exports[`location > 42 > ordinalDirection > with boolean 1`] = `"Northwest"`; -exports[`location > 42 > ordinalDirection > with abbr = true 1`] = `"NW"`; +exports[`location > 42 > ordinalDirection > with useAbbr option 1`] = `"NW"`; exports[`location > 42 > secondaryAddress 1`] = `"Apt. 791"`; @@ -104,9 +136,9 @@ exports[`location > 42 > street 1`] = `"Peyton Villages"`; exports[`location > 42 > streetAddress > noArgs 1`] = `"7917 Miller Park"`; -exports[`location > 42 > streetAddress > with useFullAddress = false 1`] = `"7917 Miller Park"`; +exports[`location > 42 > streetAddress > with boolean 1`] = `"7917 Miller Park"`; -exports[`location > 42 > streetAddress > with useFullAddress = true 1`] = `"7917 Miller Park Apt. 410"`; +exports[`location > 42 > streetAddress > with useFullAddress options 1`] = `"7917 Miller Park Apt. 410"`; exports[`location > 42 > streetName 1`] = `"b"`; @@ -114,19 +146,25 @@ exports[`location > 42 > timeZone 1`] = `"America/North_Dakota/New_Salem"`; exports[`location > 42 > zipCode > noArgs 1`] = `"79177"`; -exports[`location > 42 > zipCode > with format 1`] = `"379-177"`; +exports[`location > 42 > zipCode > with format option 1`] = `"379-177"`; + +exports[`location > 42 > zipCode > with string 1`] = `"379"`; + +exports[`location > 42 > zipCodeByState > noArgs 1`] = `"79177"`; + +exports[`location > 42 > zipCodeByState > with state options 1`] = `"79177"`; -exports[`location > 42 > zipCodeByState > state 1`] = `"79177"`; +exports[`location > 42 > zipCodeByState > with string 1 1`] = `"79177"`; -exports[`location > 42 > zipCodeByState > state2 1`] = `"79177"`; +exports[`location > 42 > zipCodeByState > with string 2 1`] = `"79177"`; exports[`location > 1211 > buildingNumber 1`] = `"487"`; exports[`location > 1211 > cardinalDirection > noArgs 1`] = `"West"`; -exports[`location > 1211 > cardinalDirection > with abbr = false 1`] = `"West"`; +exports[`location > 1211 > cardinalDirection > with boolean 1`] = `"West"`; -exports[`location > 1211 > cardinalDirection > with abbr = true 1`] = `"W"`; +exports[`location > 1211 > cardinalDirection > with useAbbr option 1`] = `"W"`; exports[`location > 1211 > city 1`] = `"La Crosse"`; @@ -136,22 +174,54 @@ exports[`location > 1211 > country 1`] = `"Uganda"`; exports[`location > 1211 > countryCode > noArgs 1`] = `"UM"`; -exports[`location > 1211 > countryCode > with code = alpha-2 1`] = `"UM"`; +exports[`location > 1211 > countryCode > with alphaCode option 1`] = `"IRN"`; -exports[`location > 1211 > countryCode > with code = alpha-3 1`] = `"IRN"`; +exports[`location > 1211 > countryCode > with string 1`] = `"UM"`; exports[`location > 1211 > county 1`] = `"Cambridgeshire"`; exports[`location > 1211 > direction > noArgs 1`] = `"Southwest"`; -exports[`location > 1211 > direction > with abbr = false 1`] = `"Southwest"`; +exports[`location > 1211 > direction > with boolean 1`] = `"Southwest"`; -exports[`location > 1211 > direction > with abbr = true 1`] = `"SW"`; +exports[`location > 1211 > direction > with useAbbr option 1`] = `"SW"`; exports[`location > 1211 > latitude > noArgs 1`] = `77.1337`; +exports[`location > 1211 > latitude > with max 1`] = `2.8521`; + +exports[`location > 1211 > latitude > with max and min option 1`] = `8.5704`; + +exports[`location > 1211 > latitude > with max option 1`] = `2.8521`; + +exports[`location > 1211 > latitude > with max, min and precision option 1`] = `8.5704030749`; + +exports[`location > 1211 > latitude > with min 1`] = `82.8521`; + +exports[`location > 1211 > latitude > with min option 1`] = `82.8521`; + +exports[`location > 1211 > latitude > with precision 1`] = `77.1336276737`; + +exports[`location > 1211 > latitude > with precision option 1`] = `77.1336276737`; + exports[`location > 1211 > longitude > noArgs 1`] = `154.2673`; +exports[`location > 1211 > longitude > with max 1`] = `-3.5811`; + +exports[`location > 1211 > longitude > with max and min option 1`] = `8.5704`; + +exports[`location > 1211 > longitude > with max option 1`] = `-3.5811`; + +exports[`location > 1211 > longitude > with max, min and precision option 1`] = `8.5704030749`; + +exports[`location > 1211 > longitude > with min 1`] = `166.4189`; + +exports[`location > 1211 > longitude > with min option 1`] = `166.4189`; + +exports[`location > 1211 > longitude > with precision 1`] = `154.2672553473`; + +exports[`location > 1211 > longitude > with precision option 1`] = `154.2672553473`; + exports[`location > 1211 > nearbyGPSCoordinate > near origin 1`] = ` [ -0.02872111236834616, @@ -210,9 +280,9 @@ exports[`location > 1211 > nearbyGPSCoordinate > with radius and isMetric 1`] = exports[`location > 1211 > ordinalDirection > noArgs 1`] = `"Southwest"`; -exports[`location > 1211 > ordinalDirection > with abbr = false 1`] = `"Southwest"`; +exports[`location > 1211 > ordinalDirection > with boolean 1`] = `"Southwest"`; -exports[`location > 1211 > ordinalDirection > with abbr = true 1`] = `"SW"`; +exports[`location > 1211 > ordinalDirection > with useAbbr option 1`] = `"SW"`; exports[`location > 1211 > secondaryAddress 1`] = `"Suite 487"`; @@ -224,9 +294,9 @@ exports[`location > 1211 > street 1`] = `"Koelpin Turnpike"`; exports[`location > 1211 > streetAddress > noArgs 1`] = `"487 Breana Wells"`; -exports[`location > 1211 > streetAddress > with useFullAddress = false 1`] = `"487 Breana Wells"`; +exports[`location > 1211 > streetAddress > with boolean 1`] = `"487 Breana Wells"`; -exports[`location > 1211 > streetAddress > with useFullAddress = true 1`] = `"487 Breana Wells Apt. 616"`; +exports[`location > 1211 > streetAddress > with useFullAddress options 1`] = `"487 Breana Wells Apt. 616"`; exports[`location > 1211 > streetName 1`] = `"c"`; @@ -234,19 +304,25 @@ exports[`location > 1211 > timeZone 1`] = `"Pacific/Fiji"`; exports[`location > 1211 > zipCode > noArgs 1`] = `"48721-9061"`; -exports[`location > 1211 > zipCode > with format 1`] = `"948-721"`; +exports[`location > 1211 > zipCode > with format option 1`] = `"948-721"`; + +exports[`location > 1211 > zipCode > with string 1`] = `"948"`; -exports[`location > 1211 > zipCodeByState > state 1`] = `"48721-9061"`; +exports[`location > 1211 > zipCodeByState > noArgs 1`] = `"48721-9061"`; -exports[`location > 1211 > zipCodeByState > state2 1`] = `"48721-9061"`; +exports[`location > 1211 > zipCodeByState > with state options 1`] = `"48721-9061"`; + +exports[`location > 1211 > zipCodeByState > with string 1 1`] = `"48721-9061"`; + +exports[`location > 1211 > zipCodeByState > with string 2 1`] = `"48721-9061"`; exports[`location > 1337 > buildingNumber 1`] = `"51225"`; exports[`location > 1337 > cardinalDirection > noArgs 1`] = `"East"`; -exports[`location > 1337 > cardinalDirection > with abbr = false 1`] = `"East"`; +exports[`location > 1337 > cardinalDirection > with boolean 1`] = `"East"`; -exports[`location > 1337 > cardinalDirection > with abbr = true 1`] = `"E"`; +exports[`location > 1337 > cardinalDirection > with useAbbr option 1`] = `"E"`; exports[`location > 1337 > city 1`] = `"New Carmella"`; @@ -256,22 +332,54 @@ exports[`location > 1337 > country 1`] = `"Egypt"`; exports[`location > 1337 > countryCode > noArgs 1`] = `"EH"`; -exports[`location > 1337 > countryCode > with code = alpha-2 1`] = `"EH"`; +exports[`location > 1337 > countryCode > with alphaCode option 1`] = `"PRI"`; -exports[`location > 1337 > countryCode > with code = alpha-3 1`] = `"PRI"`; +exports[`location > 1337 > countryCode > with string 1`] = `"EH"`; exports[`location > 1337 > county 1`] = `"Bedfordshire"`; exports[`location > 1337 > direction > noArgs 1`] = `"South"`; -exports[`location > 1337 > direction > with abbr = false 1`] = `"South"`; +exports[`location > 1337 > direction > with boolean 1`] = `"South"`; -exports[`location > 1337 > direction > with abbr = true 1`] = `"S"`; +exports[`location > 1337 > direction > with useAbbr option 1`] = `"S"`; exports[`location > 1337 > latitude > noArgs 1`] = `-42.8356`; +exports[`location > 1337 > latitude > with max 1`] = `-63.7976`; + +exports[`location > 1337 > latitude > with max and min option 1`] = `-4.7595`; + +exports[`location > 1337 > latitude > with max option 1`] = `-63.7976`; + +exports[`location > 1337 > latitude > with max, min and precision option 1`] = `-4.7595064761`; + +exports[`location > 1337 > latitude > with min 1`] = `16.2024`; + +exports[`location > 1337 > latitude > with min option 1`] = `16.2024`; + +exports[`location > 1337 > latitude > with precision 1`] = `-42.835558285`; + +exports[`location > 1337 > latitude > with precision option 1`] = `-42.835558285`; + exports[`location > 1337 > longitude > noArgs 1`] = `-85.6711`; +exports[`location > 1337 > longitude > with max 1`] = `-130.2153`; + +exports[`location > 1337 > longitude > with max and min option 1`] = `-4.7595`; + +exports[`location > 1337 > longitude > with max option 1`] = `-130.2153`; + +exports[`location > 1337 > longitude > with max, min and precision option 1`] = `-4.7595064761`; + +exports[`location > 1337 > longitude > with min 1`] = `39.7847`; + +exports[`location > 1337 > longitude > with min option 1`] = `39.7847`; + +exports[`location > 1337 > longitude > with precision 1`] = `-85.67111657`; + +exports[`location > 1337 > longitude > with precision option 1`] = `-85.67111657`; + exports[`location > 1337 > nearbyGPSCoordinate > near origin 1`] = ` [ 0.08055259537977688, @@ -330,9 +438,9 @@ exports[`location > 1337 > nearbyGPSCoordinate > with radius and isMetric 1`] = exports[`location > 1337 > ordinalDirection > noArgs 1`] = `"Northwest"`; -exports[`location > 1337 > ordinalDirection > with abbr = false 1`] = `"Northwest"`; +exports[`location > 1337 > ordinalDirection > with boolean 1`] = `"Northwest"`; -exports[`location > 1337 > ordinalDirection > with abbr = true 1`] = `"NW"`; +exports[`location > 1337 > ordinalDirection > with useAbbr option 1`] = `"NW"`; exports[`location > 1337 > secondaryAddress 1`] = `"Apt. 512"`; @@ -344,9 +452,9 @@ exports[`location > 1337 > street 1`] = `"Kellen Crest"`; exports[`location > 1337 > streetAddress > noArgs 1`] = `"51225 Alexys Gateway"`; -exports[`location > 1337 > streetAddress > with useFullAddress = false 1`] = `"51225 Alexys Gateway"`; +exports[`location > 1337 > streetAddress > with boolean 1`] = `"51225 Alexys Gateway"`; -exports[`location > 1337 > streetAddress > with useFullAddress = true 1`] = `"51225 Alexys Gateway Apt. 552"`; +exports[`location > 1337 > streetAddress > with useFullAddress options 1`] = `"51225 Alexys Gateway Apt. 552"`; exports[`location > 1337 > streetName 1`] = `"a"`; @@ -354,8 +462,14 @@ exports[`location > 1337 > timeZone 1`] = `"America/Guatemala"`; exports[`location > 1337 > zipCode > noArgs 1`] = `"51225"`; -exports[`location > 1337 > zipCode > with format 1`] = `"251-225"`; +exports[`location > 1337 > zipCode > with format option 1`] = `"251-225"`; + +exports[`location > 1337 > zipCode > with string 1`] = `"251"`; + +exports[`location > 1337 > zipCodeByState > noArgs 1`] = `"51225"`; + +exports[`location > 1337 > zipCodeByState > with state options 1`] = `"51225"`; -exports[`location > 1337 > zipCodeByState > state 1`] = `"51225"`; +exports[`location > 1337 > zipCodeByState > with string 1 1`] = `"51225"`; -exports[`location > 1337 > zipCodeByState > state2 1`] = `"51225"`; +exports[`location > 1337 > zipCodeByState > with string 2 1`] = `"51225"`; diff --git a/test/location.spec.ts b/test/location.spec.ts index 3a7d958d0ea..3328f8d0727 100644 --- a/test/location.spec.ts +++ b/test/location.spec.ts @@ -48,27 +48,42 @@ describe('location', () => { t.it('buildingNumber'); t.it('secondaryAddress'); + t.describe('streetAddress', (t) => { t.it('noArgs') - .it('with useFullAddress = true', true) - .it('with useFullAddress = false', false); + .it('with boolean', false) + .it('with useFullAddress options', { useFullAddress: true }); }); t.itEach('city', 'cityName'); t.it('county'); - t.it('country').describe('countryCode', (t) => { + t.it('country'); + + t.describe('countryCode', (t) => { t.it('noArgs') - .it('with code = alpha-2', 'alpha-2') - .it('with code = alpha-3', 'alpha-3'); + .it('with string', 'alpha-2') + .it('with alphaCode option', { variant: 'alpha-3' }); }); - t.describe('latitude', (t) => { - t.it('noArgs'); - }); - t.describe('longitude', (t) => { - t.it('noArgs'); + t.describeEach( + 'latitude', + 'longitude' + )((t) => { + t.it('noArgs') + .it('with max', 10) + .it('with min', undefined, -10) + .it('with precision', undefined, undefined, 10) + .it('with max option', { max: 10 }) + .it('with min option', { min: -10 }) + .it('with precision option', { precision: 10 }) + .it('with max and min option', { max: 10, min: -10 }) + .it('with max, min and precision option', { + max: 10, + min: -10, + precision: 10, + }); }); t.describe('nearbyGPSCoordinate', (t) => { @@ -95,17 +110,21 @@ describe('location', () => { 'ordinalDirection' )((t) => { t.it('noArgs') - .it('with abbr = true', true) - .it('with abbr = false', false); + .it('with boolean', false) + .it('with useAbbr option', { useAbbr: true }); }); t.describe('zipCode', (t) => { - t.it('noArgs').it('with format', '###-###'); + t.it('noArgs') + .it('with string', '###') + .it('with format option', { format: '###-###' }); }); t.describe('zipCodeByState', (t) => { - t.it('state', 'CA'); - t.it('state2', 'WA'); + t.it('noArgs') + .it('with string 1', 'CA') + .it('with string 2', 'WA') + .it('with state options', { state: 'WA' }); }); }); @@ -125,12 +144,12 @@ describe('location', () => { describe('zipCode()', () => { it('returns random zipCode - user specified format', () => { - let zipCode = faker.location.zipCode('?#? #?#'); + let zipCode = faker.location.zipCode({ format: '?#? #?#' }); expect(zipCode).toMatch(/^[A-Za-z]\d[A-Za-z]\s\d[A-Za-z]\d$/); // try another format - zipCode = faker.location.zipCode('###-###'); + zipCode = faker.location.zipCode({ format: '###-###' }); expect(zipCode).toMatch(/^\d{3}-\d{3}$/); }); @@ -178,7 +197,7 @@ describe('location', () => { }); it('returns latitude with min and max and default precision', () => { - const latitude = faker.location.latitude(5, -5); + const latitude = faker.location.latitude({ max: 5, min: -5 }); expect( latitude.toString().split('.')[1].length, @@ -190,7 +209,7 @@ describe('location', () => { }); it('returns random latitude with custom precision', () => { - const latitude = faker.location.latitude(undefined, undefined, 7); + const latitude = faker.location.latitude({ precision: 7 }); expect( latitude.toString().split('.')[1].length, @@ -217,7 +236,7 @@ describe('location', () => { }); it('returns random longitude with min and max and default precision', () => { - const longitude = faker.location.longitude(100, -30); + const longitude = faker.location.longitude({ max: 100, min: -30 }); expect( longitude.toString().split('.')[1].length, @@ -229,7 +248,7 @@ describe('location', () => { }); it('returns random longitude with custom precision', () => { - const longitude = faker.location.longitude(undefined, undefined, 7); + const longitude = faker.location.longitude({ precision: 7 }); expect( longitude.toString().split('.')[1].length, @@ -243,7 +262,7 @@ describe('location', () => { describe('direction()', () => { it('returns abbreviation when useAbbr is true', () => { - const direction = faker.location.direction(true); + const direction = faker.location.direction({ useAbbr: true }); const lengthDirection = direction.length; const prefixErrorMessage = 'The abbreviation of direction when useAbbr is true should'; @@ -258,7 +277,9 @@ describe('location', () => { describe('ordinalDirection()', () => { it('returns abbreviation when useAbbr is true', () => { - const ordinalDirection = faker.location.ordinalDirection(true); + const ordinalDirection = faker.location.ordinalDirection({ + useAbbr: true, + }); const expectedType = 'string'; const ordinalDirectionLength = ordinalDirection.length; const prefixErrorMessage = @@ -274,7 +295,9 @@ describe('location', () => { describe('cardinalDirection()', () => { it('returns abbreviation when useAbbr is true', () => { - const cardinalDirection = faker.location.cardinalDirection(true); + const cardinalDirection = faker.location.cardinalDirection({ + useAbbr: true, + }); const expectedType = 'string'; const cardinalDirectionLength = cardinalDirection.length; const prefixErrorMessage = From 667599d8fb59c31166b897799f30788edc5f54d7 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 4 Feb 2023 21:57:45 +0100 Subject: [PATCH 06/21] fix(git): commitEntry normalize user (#1813) --- src/modules/git/index.ts | 5 ++++- test/git.spec.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index 05d24f71e55..394f9610461 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -109,9 +109,12 @@ export class GitModule { const lastName = this.faker.person.lastName(); const fullName = this.faker.person.fullName({ firstName, lastName }); const username = this.faker.internet.userName(firstName, lastName); - const user = this.faker.helpers.arrayElement([fullName, username]); + let user = this.faker.helpers.arrayElement([fullName, username]); const email = this.faker.internet.email(firstName, lastName); + // Normalize user according to https://github.com/libgit2/libgit2/issues/5342 + user = user.replace(/^[\.,:;"\\']|[\<\>\n]|[\.,:;"\\']$/g, ''); + lines.push( `Author: ${user} <${email}>`, `Date: ${this.commitDate({ refDate })}`, diff --git a/test/git.spec.ts b/test/git.spec.ts index 9ab73ae6732..a69b1baa2be 100644 --- a/test/git.spec.ts +++ b/test/git.spec.ts @@ -54,12 +54,12 @@ describe('git', () => { expect(parts[0]).toMatch(/^commit [a-f0-9]+$/); if (parts.length === 7) { expect(parts[1]).toMatch(/^Merge: [a-f0-9]+ [a-f0-9]+$/); - expect(parts[2]).toMatch(/^Author: [\w_\. ]+ \<[\w\.]+@[\w\.]+\>$/); + expect(parts[2]).toMatch(/^Author: [^\<\>]+ \<[\w\.]+@[\w\.]+\>$/); expect(parts[3]).toMatch(/^Date: .+$/); expect(parts[4]).toBe(''); expect(parts[5]).toMatch(/^\s{4}.+$/); } else { - expect(parts[1]).toMatch(/^Author: [\w_\. ]+ \<[\w\.]+@[\w\.]+\>$/); + expect(parts[1]).toMatch(/^Author: [^\<\>]+ \<[\w\.]+@[\w\.]+\>$/); expect(parts[2]).toMatch(/^Date: .+$/); expect(parts[3]).toBe(''); expect(parts[4]).toMatch(/^\s{4}.+$/); From 1b9ca0192095b69022b0a4ddc0d73db1e2c3fe17 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Sat, 4 Feb 2023 22:13:20 +0100 Subject: [PATCH 07/21] refactor(datatype): standardize arguments (#1804) --- src/modules/datatype/index.ts | 23 +++++++++++++++++++++-- test/__snapshots__/datatype.spec.ts.snap | 12 +++++++++--- test/datatype.spec.ts | 4 +++- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index 9a89ba24516..25235bb5862 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -206,25 +206,44 @@ export class DatatypeModule { /** * Returns a string containing UTF-16 chars between 33 and 125 (`!` to `}`). * - * @param length Length of the generated string. Max length is `2^20`. Defaults to `10`. + * @param options Length of the generated string or an options object. Defaults to `{}`. + * @param options.length Length of the generated string. Max length is `2^20`. Defaults to `10`. * * @see faker.string.sample() * * @example * faker.datatype.string() // 'Zo!.:*e>wR' * faker.datatype.string(5) // '6Bye8' + * faker.datatype.string({ length: 7 }) // 'dzOT00e' * * @since 5.5.0 * * @deprecated Use faker.string.sample() instead. */ - string(length = 10): string { + string( + options: + | number + | { + /** + * Length of the generated string. Max length is `2^20`. + * + * @default 10 + */ + length?: number; + } = {} + ): string { deprecated({ deprecated: 'faker.datatype.string()', proposed: 'faker.string.sample()', since: '8.0', until: '9.0', }); + if (typeof options === 'number') { + options = { length: options }; + } + + const { length = 10 } = options; + return this.faker.string.sample(length); } diff --git a/test/__snapshots__/datatype.spec.ts.snap b/test/__snapshots__/datatype.spec.ts.snap index eece8554ea6..8820e6f65ba 100644 --- a/test/__snapshots__/datatype.spec.ts.snap +++ b/test/__snapshots__/datatype.spec.ts.snap @@ -117,7 +117,9 @@ exports[`datatype > 42 > number > with min, max and precision 1`] = `-0.43`; exports[`datatype > 42 > string > noArgs 1`] = `"Cky2eiXX/J"`; -exports[`datatype > 42 > string > with length 1`] = `"Cky2eiXX/J/*&Kq@X.b]\\"&{dnx4!1}2Z=YQ!I# 42 > string > with length option 1`] = `"Cky2eiXX/J/*&Kq@X.b]\\"&"`; + +exports[`datatype > 42 > string > with number 1`] = `"Cky2eiXX/J/*&Kq@X.b]\\"&{dnx4!1}2Z=YQ!I# 42 > uuid 1`] = `"5cf2bc99-2721-407d-992b-a00fbdf302f2"`; @@ -247,7 +249,9 @@ exports[`datatype > 1211 > number > with min, max and precision 1`] = `61.07`; exports[`datatype > 1211 > string > noArgs 1`] = `"wKti5-}$_/"`; -exports[`datatype > 1211 > string > with length 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^"`; + +exports[`datatype > 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-abbd-0caabde64dfd"`; @@ -375,7 +379,9 @@ exports[`datatype > 1337 > number > with min, max and precision 1`] = `-12.92`; exports[`datatype > 1337 > string > noArgs 1`] = `"9U/4:SK$>6"`; -exports[`datatype > 1337 > string > with length 1`] = `"9U/4:SK$>6QX9@{:e=+kD)[B,e|/Jqjjj!BLGDWQgC"`; +exports[`datatype > 1337 > string > with length option 1`] = `"9U/4:SK$>6QX9@{:e=+kD)"`; + +exports[`datatype > 1337 > string > with number 1`] = `"9U/4:SK$>6QX9@{:e=+kD)[B,e|/Jqjjj!BLGDWQgC"`; exports[`datatype > 1337 > uuid 1`] = `"48234870-5389-445f-8b41-c61a52bf27dc"`; diff --git a/test/datatype.spec.ts b/test/datatype.spec.ts index 9a8cb1bb513..2c09ea05a10 100644 --- a/test/datatype.spec.ts +++ b/test/datatype.spec.ts @@ -51,7 +51,9 @@ describe('datatype', () => { }); t.describe('string', (t) => { - t.it('noArgs').it('with length', 42); + t.it('noArgs') + .it('with number', 42) + .it('with length option', { length: 22 }); }); t.itRepeated('uuid', 5); From 8766fd7f3d8658e77c4f0cbc2b63792372715940 Mon Sep 17 00:00:00 2001 From: DivisionByZero Date: Mon, 6 Feb 2023 10:56:51 +0100 Subject: [PATCH 08/21] refactor(commerce): price use options object (#1805) --- src/modules/commerce/index.ts | 135 ++++++++++++++++++++++- test/__snapshots__/commerce.spec.ts.snap | 36 +++++- test/commerce.spec.ts | 16 ++- 3 files changed, 179 insertions(+), 8 deletions(-) diff --git a/src/modules/commerce/index.ts b/src/modules/commerce/index.ts index 4afa881988f..66f6d02c47d 100644 --- a/src/modules/commerce/index.ts +++ b/src/modules/commerce/index.ts @@ -1,4 +1,5 @@ import type { Faker } from '../../faker'; +import { deprecated } from '../../internal/deprecated'; /** * Module to generate commerce and product related entries. @@ -41,6 +42,50 @@ export class CommerceModule { return `${this.productAdjective()} ${this.productMaterial()} ${this.product()}`; } + /** + * Generates a price between min and max (inclusive). + * + * @param options An options object. Defaults to `{}`. + * @param options.min The minimum price. Defaults to `1`. + * @param options.max The maximum price. Defaults to `1000`. + * @param options.dec The number of decimal places. Defaults to `2`. + * @param options.symbol The currency value to use. Defaults to `''`. + * + * @example + * faker.commerce.price() // 828.00 + * faker.commerce.price({ min: 100 }) // 904.00 + * faker.commerce.price({ min: 100, max: 200 }) // 154.00 + * faker.commerce.price({ min: 100, max: 200, dec: 0 }) // 133 + * faker.commerce.price({ min: 100, max: 200, dec: 0, symbol: '$' }) // $114 + * + * @since 3.0.0 + */ + price(options?: { + /** + * The minimum price. + * + * @default 1 + */ + min?: number; + /** + * The maximum price. + * + * @default 1000 + */ + max?: number; + /** + * The number of decimal places. + * + * @default 2 + */ + dec?: number; + /** + * The currency value to use. + * + * @default '' + */ + symbol?: string; + }): string; /** * Generates a price between min and max (inclusive). * @@ -57,13 +102,95 @@ export class CommerceModule { * faker.commerce.price(100, 200, 0, '$') // $114 * * @since 3.0.0 + * + * @deprecated Use `faker.commerce.price({ min, max, dec, symbol })` instead. + */ + price(min?: number, max?: number, dec?: number, symbol?: string): string; + /** + * Generates a price between min and max (inclusive). + * + * @param options The minimum price or on options object. Defaults to `{}`. + * @param options.min The minimum price. Defaults to `1`. + * @param options.max The maximum price. Defaults to `1000`. + * @param options.dec The number of decimal places. Defaults to `2`. + * @param options.symbol The currency value to use. Defaults to `''`. + * @param legacyMax The maximum price. This argument is deprecated. Defaults to `1000`. + * @param legacyDec The number of decimal places. This argument is deprecated. Defaults to `2`. + * @param legacySymbol The currency value to use. This argument is deprecated. Defaults to `''`. + * + * @example + * faker.commerce.price() // 828.00 + * faker.commerce.price({ min: 100 }) // 904.00 + * faker.commerce.price({ min: 100, max: 200 }) // 154.00 + * faker.commerce.price({ min: 100, max: 200, dec: 0 }) // 133 + * faker.commerce.price({ min: 100, max: 200, dec: 0, symbol: '$' }) // $114 + * + * @since 3.0.0 + */ + price( + options?: + | number + | { + min?: number; + max?: number; + dec?: number; + symbol?: string; + }, + legacyMax?: number, + legacyDec?: number, + legacySymbol?: string + ): string; + /** + * Generates a price between min and max (inclusive). + * + * @param options The minimum price or on options object. Defaults to `{}`. + * @param options.min The minimum price. Defaults to `1`. + * @param options.max The maximum price. Defaults to `1000`. + * @param options.dec The number of decimal places. Defaults to `2`. + * @param options.symbol The currency value to use. Defaults to `''`. + * @param legacyMax The maximum price. This argument is deprecated. Defaults to `1000`. + * @param legacyDec The number of decimal places. This argument is deprecated. Defaults to `2`. + * @param legacySymbol The currency value to use. This argument is deprecated. Defaults to `''`. + * + * @example + * faker.commerce.price() // 828.00 + * faker.commerce.price({ min: 100 }) // 904.00 + * faker.commerce.price({ min: 100, max: 200 }) // 154.00 + * faker.commerce.price({ min: 100, max: 200, dec: 0 }) // 133 + * faker.commerce.price({ min: 100, max: 200, dec: 0, symbol: '$' }) // $114 + * + * @since 3.0.0 */ price( - min: number = 1, - max: number = 1000, - dec: number = 2, - symbol: string = '' + options: + | number + | { + min?: number; + max?: number; + dec?: number; + symbol?: string; + } = {}, + legacyMax: number = 1000, + legacyDec: number = 2, + legacySymbol: string = '' ): string { + if (typeof options === 'number') { + deprecated({ + deprecated: 'faker.commerce.price(min, max, dec, symbol)', + proposed: 'faker.commerce.price({ min, max, dec, symbol })', + since: '8.0', + until: '9.0', + }); + options = { + min: options, + dec: legacyDec, + max: legacyMax, + symbol: legacySymbol, + }; + } + + const { dec = 2, max = 1000, min = 1, symbol = '' } = options; + if (min < 0 || max < 0) { return `${symbol}${0.0}`; } diff --git a/test/__snapshots__/commerce.spec.ts.snap b/test/__snapshots__/commerce.spec.ts.snap index de1569a9752..48c8b4ba54d 100644 --- a/test/__snapshots__/commerce.spec.ts.snap +++ b/test/__snapshots__/commerce.spec.ts.snap @@ -4,7 +4,9 @@ exports[`commerce > 42 > department 1`] = `"Tools"`; exports[`commerce > 42 > price > noArgs 1`] = `"375.00"`; -exports[`commerce > 42 > price > with max 1`] = `"38.00"`; +exports[`commerce > 42 > price > with max 1`] = `"375.00"`; + +exports[`commerce > 42 > price > with max option 1`] = `"501.00"`; exports[`commerce > 42 > price > with min 1`] = `"406.00"`; @@ -14,6 +16,14 @@ exports[`commerce > 42 > price > with min and max and decimals 1`] = `"69.0000"` exports[`commerce > 42 > price > with min and max and decimals and symbol 1`] = `"$69.0000"`; +exports[`commerce > 42 > price > with min and max and decimals and symbol option 1`] = `"$69.0000"`; + +exports[`commerce > 42 > price > with min and max and decimals option 1`] = `"69.0000"`; + +exports[`commerce > 42 > price > with min and max option 1`] = `"69.00"`; + +exports[`commerce > 42 > price > with min option 1`] = `"401.00"`; + exports[`commerce > 42 > product 1`] = `"Pants"`; exports[`commerce > 42 > productAdjective 1`] = `"Fantastic"`; @@ -28,7 +38,9 @@ exports[`commerce > 1211 > department 1`] = `"Automotive"`; exports[`commerce > 1211 > price > noArgs 1`] = `"929.00"`; -exports[`commerce > 1211 > price > with max 1`] = `"93.00"`; +exports[`commerce > 1211 > price > with max 1`] = `"929.00"`; + +exports[`commerce > 1211 > price > with max option 1`] = `"1242.00"`; exports[`commerce > 1211 > price > with min 1`] = `"933.00"`; @@ -38,6 +50,14 @@ exports[`commerce > 1211 > price > with min and max and decimals 1`] = `"97.0000 exports[`commerce > 1211 > price > with min and max and decimals and symbol 1`] = `"$97.0000"`; +exports[`commerce > 1211 > price > with min and max and decimals and symbol option 1`] = `"$97.0000"`; + +exports[`commerce > 1211 > price > with min and max and decimals option 1`] = `"97.0000"`; + +exports[`commerce > 1211 > price > with min and max option 1`] = `"97.00"`; + +exports[`commerce > 1211 > price > with min option 1`] = `"932.00"`; + exports[`commerce > 1211 > product 1`] = `"Sausages"`; exports[`commerce > 1211 > productAdjective 1`] = `"Unbranded"`; @@ -52,7 +72,9 @@ exports[`commerce > 1337 > department 1`] = `"Computers"`; exports[`commerce > 1337 > price > noArgs 1`] = `"263.00"`; -exports[`commerce > 1337 > price > with max 1`] = `"27.00"`; +exports[`commerce > 1337 > price > with max 1`] = `"263.00"`; + +exports[`commerce > 1337 > price > with max option 1`] = `"351.00"`; exports[`commerce > 1337 > price > with min 1`] = `"299.00"`; @@ -62,6 +84,14 @@ exports[`commerce > 1337 > price > with min and max and decimals 1`] = `"63.0000 exports[`commerce > 1337 > price > with min and max and decimals and symbol 1`] = `"$63.0000"`; +exports[`commerce > 1337 > price > with min and max and decimals and symbol option 1`] = `"$63.0000"`; + +exports[`commerce > 1337 > price > with min and max and decimals option 1`] = `"63.0000"`; + +exports[`commerce > 1337 > price > with min and max option 1`] = `"63.00"`; + +exports[`commerce > 1337 > price > with min option 1`] = `"293.00"`; + exports[`commerce > 1337 > product 1`] = `"Ball"`; exports[`commerce > 1337 > productAdjective 1`] = `"Incredible"`; diff --git a/test/commerce.spec.ts b/test/commerce.spec.ts index 781b6431e5c..30b7dde1e47 100644 --- a/test/commerce.spec.ts +++ b/test/commerce.spec.ts @@ -25,7 +25,21 @@ describe('commerce', () => { .it('with max', undefined, 100) .it('with min and max', 50, 100) .it('with min and max and decimals', 50, 100, 4) - .it('with min and max and decimals and symbol', 50, 100, 4, '$'); + .it('with min and max and decimals and symbol', 50, 100, 4, '$') + .it('with min option', { min: 42 }) + .it('with max option', { max: 1337 }) + .it('with min and max option', { min: 50, max: 100 }) + .it('with min and max and decimals option', { + min: 50, + max: 100, + dec: 4, + }) + .it('with min and max and decimals and symbol option', { + min: 50, + max: 100, + dec: 4, + symbol: '$', + }); }); }); From 99308d4fabad2820b2379b7b7147bca500a5018e Mon Sep 17 00:00:00 2001 From: Shinigami Date: Thu, 9 Feb 2023 00:15:28 +0100 Subject: [PATCH 09/21] docs: switch shinigami from twitter to mastodon (#1815) --- docs/about/team/members.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/about/team/members.json b/docs/about/team/members.json index 06d2b384d28..3b9bc1adce9 100644 --- a/docs/about/team/members.json +++ b/docs/about/team/members.json @@ -9,7 +9,7 @@ "desc": "Passionate TypeScript enthusiast. Also core member of Vite.", "links": [ { "icon": "github", "link": "https://github.com/Shinigami92" }, - { "icon": "twitter", "link": "https://twitter.com/Shini_92" } + { "icon": "mastodon", "link": "https://elk.zone/mas.to/@Shini92" } ], "sponsor": "https://github.com/sponsors/Shinigami92" }, From fd960941a5434464736b236e73df9813bc22c86c Mon Sep 17 00:00:00 2001 From: Guilherme Minozzi Date: Sat, 11 Feb 2023 08:12:17 -0300 Subject: [PATCH 10/21] feat(person): add Portuguese BR Language to western zodiac sign (#1814) --- src/locales/pt_BR/person/index.ts | 2 ++ src/locales/pt_BR/person/western_zodiac_sign.ts | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/locales/pt_BR/person/western_zodiac_sign.ts diff --git a/src/locales/pt_BR/person/index.ts b/src/locales/pt_BR/person/index.ts index b5a0277d1e8..c47eaccd06f 100644 --- a/src/locales/pt_BR/person/index.ts +++ b/src/locales/pt_BR/person/index.ts @@ -14,6 +14,7 @@ import prefix from './prefix'; import sex from './sex'; import suffix from './suffix'; import title from './title'; +import western_zodiac_sign from './western_zodiac_sign'; const person: PersonDefinitions = { female_first_name, @@ -27,6 +28,7 @@ const person: PersonDefinitions = { sex, suffix, title, + western_zodiac_sign, }; export default person; diff --git a/src/locales/pt_BR/person/western_zodiac_sign.ts b/src/locales/pt_BR/person/western_zodiac_sign.ts new file mode 100644 index 00000000000..cebfdf60aec --- /dev/null +++ b/src/locales/pt_BR/person/western_zodiac_sign.ts @@ -0,0 +1,14 @@ +export default [ + 'Aquário', + 'Peixes', + 'Áries', + 'Touro', + 'Gêmeos', + 'Câncer', + 'Leão', + 'Virgem', + 'Libra', + 'Escorpião', + 'Sagitário', + 'Capricórnio', +]; From a51521d2704c3ca8be0e0ba044d17143ba71f453 Mon Sep 17 00:00:00 2001 From: Kcops11 <64896618+Kcops11@users.noreply.github.com> Date: Sat, 11 Feb 2023 05:36:03 -0600 Subject: [PATCH 11/21] docs: improving readability of UUID string (#1622) Co-authored-by: ST-DDT --- src/modules/string/index.ts | 11 +++------ test/__snapshots__/datatype.spec.ts.snap | 30 ++++++++++++------------ test/__snapshots__/string.spec.ts.snap | 30 ++++++++++++------------ 3 files changed, 33 insertions(+), 38 deletions(-) diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index 6240184cfad..188c91ebea8 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -678,14 +678,9 @@ export class StringModule { * @since 8.0.0 */ uuid(): string { - const RFC4122_TEMPLATE = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; - const replacePlaceholders = (placeholder: string) => { - const random = this.faker.number.int(15); - const value = placeholder === 'x' ? random : (random & 0x3) | 0x8; - return value.toString(16); - }; - - return RFC4122_TEMPLATE.replace(/[xy]/g, replacePlaceholders); + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' + .replace(/x/g, () => this.faker.number.hex({ min: 0x0, max: 0xf })) + .replace(/y/g, () => this.faker.number.hex({ min: 0x8, max: 0xb })); } /** diff --git a/test/__snapshots__/datatype.spec.ts.snap b/test/__snapshots__/datatype.spec.ts.snap index 8820e6f65ba..89acf87fce3 100644 --- a/test/__snapshots__/datatype.spec.ts.snap +++ b/test/__snapshots__/datatype.spec.ts.snap @@ -121,15 +121,15 @@ exports[`datatype > 42 > string > with length option 1`] = `"Cky2eiXX/J/*&Kq@X.b exports[`datatype > 42 > string > with number 1`] = `"Cky2eiXX/J/*&Kq@X.b]\\"&{dnx4!1}2Z=YQ!I# 42 > uuid 1`] = `"5cf2bc99-2721-407d-992b-a00fbdf302f2"`; +exports[`datatype > 42 > uuid 1`] = `"5cf2bc99-2721-407d-8592-ba00fbdf302f"`; -exports[`datatype > 42 > uuid 2`] = `"94980604-8962-404f-9371-c9368f970d9a"`; +exports[`datatype > 42 > uuid 2`] = `"94980604-8962-404f-a537-1c9368f970d9"`; -exports[`datatype > 42 > uuid 3`] = `"2710fff9-c640-413a-b7a1-97d02e642ac4"`; +exports[`datatype > 42 > uuid 3`] = `"2710fff9-c640-413a-937a-197d02e642ac"`; -exports[`datatype > 42 > uuid 4`] = `"6838920f-dc7f-46ee-9be5-19380f5d6b48"`; +exports[`datatype > 42 > uuid 4`] = `"6838920f-dc7f-46ee-a9be-519380f5d6b4"`; -exports[`datatype > 42 > uuid 5`] = `"d95f4984-24c2-410f-ac63-400d3bbbcc91"`; +exports[`datatype > 42 > uuid 5`] = `"d95f4984-24c2-410f-86c6-3400d3bbbcc9"`; exports[`datatype > 1211 > array > noArgs 1`] = ` [ @@ -253,15 +253,15 @@ exports[`datatype > 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0 exports[`datatype > 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-abbd-0caabde64dfd"`; +exports[`datatype > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-b2bb-d0caabde64df"`; -exports[`datatype > 1211 > uuid 2`] = `"f379e325-9f7c-4064-a086-f23942b68e5f"`; +exports[`datatype > 1211 > uuid 2`] = `"f379e325-9f7c-4064-be08-6f23942b68e5"`; -exports[`datatype > 1211 > uuid 3`] = `"d4694649-2183-4b32-8bd7-a336639d6997"`; +exports[`datatype > 1211 > uuid 3`] = `"d4694649-2183-4b32-90bd-7a336639d699"`; -exports[`datatype > 1211 > uuid 4`] = `"10ab829b-742c-4a8b-b732-98d718d77069"`; +exports[`datatype > 1211 > uuid 4`] = `"10ab829b-742c-4a8b-a773-298d718d7706"`; -exports[`datatype > 1211 > uuid 5`] = `"7b91ce88-effb-4d1d-93bb-ad759e00b86c"`; +exports[`datatype > 1211 > uuid 5`] = `"7b91ce88-effb-4d1d-b13b-bad759e00b86"`; exports[`datatype > 1337 > array > noArgs 1`] = ` [ @@ -383,12 +383,12 @@ exports[`datatype > 1337 > string > with length option 1`] = `"9U/4:SK$>6QX9@{:e exports[`datatype > 1337 > string > with number 1`] = `"9U/4:SK$>6QX9@{:e=+kD)[B,e|/Jqjjj!BLGDWQgC"`; -exports[`datatype > 1337 > uuid 1`] = `"48234870-5389-445f-8b41-c61a52bf27dc"`; +exports[`datatype > 1337 > uuid 1`] = `"48234870-5389-445f-b4b4-1c61a52bf27d"`; -exports[`datatype > 1337 > uuid 2`] = `"cc057669-8c53-474d-a677-226d3e8ed92f"`; +exports[`datatype > 1337 > uuid 2`] = `"cc057669-8c53-474d-ba67-7226d3e8ed92"`; -exports[`datatype > 1337 > uuid 3`] = `"fe6d8b8b-0db9-4fa2-b265-abc0a5d0ccf5"`; +exports[`datatype > 1337 > uuid 3`] = `"fe6d8b8b-0db9-4fa2-9726-5abc0a5d0ccf"`; -exports[`datatype > 1337 > uuid 4`] = `"0b87afbd-8949-4dfb-8d04-19f4fe7458b2"`; +exports[`datatype > 1337 > uuid 4`] = `"0b87afbd-8949-4dfb-84d0-419f4fe7458b"`; -exports[`datatype > 1337 > uuid 5`] = `"0bcea83c-a7ea-428e-85db-d448f2b777a6"`; +exports[`datatype > 1337 > uuid 5`] = `"0bcea83c-a7ea-428e-9c5d-bd448f2b777a"`; diff --git a/test/__snapshots__/string.spec.ts.snap b/test/__snapshots__/string.spec.ts.snap index 07e0e4bb988..a6b52eda860 100644 --- a/test/__snapshots__/string.spec.ts.snap +++ b/test/__snapshots__/string.spec.ts.snap @@ -164,15 +164,15 @@ exports[`string > 42 > symbol > with length parameter 5`] = `"!\\"~\\\\_"`; exports[`string > 42 > symbol > with length range 1`] = `"^}&\\\\]>>%/%$\\"/\`"`; -exports[`string > 42 > uuid 1`] = `"5cf2bc99-2721-407d-992b-a00fbdf302f2"`; +exports[`string > 42 > uuid 1`] = `"5cf2bc99-2721-407d-8592-ba00fbdf302f"`; -exports[`string > 42 > uuid 2`] = `"94980604-8962-404f-9371-c9368f970d9a"`; +exports[`string > 42 > uuid 2`] = `"94980604-8962-404f-a537-1c9368f970d9"`; -exports[`string > 42 > uuid 3`] = `"2710fff9-c640-413a-b7a1-97d02e642ac4"`; +exports[`string > 42 > uuid 3`] = `"2710fff9-c640-413a-937a-197d02e642ac"`; -exports[`string > 42 > uuid 4`] = `"6838920f-dc7f-46ee-9be5-19380f5d6b48"`; +exports[`string > 42 > uuid 4`] = `"6838920f-dc7f-46ee-a9be-519380f5d6b4"`; -exports[`string > 42 > uuid 5`] = `"d95f4984-24c2-410f-ac63-400d3bbbcc91"`; +exports[`string > 42 > uuid 5`] = `"d95f4984-24c2-410f-86c6-3400d3bbbcc9"`; exports[`string > 1211 > alpha > noArgs 1`] = `"W"`; @@ -338,15 +338,15 @@ exports[`string > 1211 > symbol > with length parameter 5`] = `"]@?\\\\_"`; exports[`string > 1211 > symbol > with length range 1`] = `"/{](%~\\"@&@'].,&[\\\\_!]"`; -exports[`string > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-abbd-0caabde64dfd"`; +exports[`string > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-b2bb-d0caabde64df"`; -exports[`string > 1211 > uuid 2`] = `"f379e325-9f7c-4064-a086-f23942b68e5f"`; +exports[`string > 1211 > uuid 2`] = `"f379e325-9f7c-4064-be08-6f23942b68e5"`; -exports[`string > 1211 > uuid 3`] = `"d4694649-2183-4b32-8bd7-a336639d6997"`; +exports[`string > 1211 > uuid 3`] = `"d4694649-2183-4b32-90bd-7a336639d699"`; -exports[`string > 1211 > uuid 4`] = `"10ab829b-742c-4a8b-b732-98d718d77069"`; +exports[`string > 1211 > uuid 4`] = `"10ab829b-742c-4a8b-a773-298d718d7706"`; -exports[`string > 1211 > uuid 5`] = `"7b91ce88-effb-4d1d-93bb-ad759e00b86c"`; +exports[`string > 1211 > uuid 5`] = `"7b91ce88-effb-4d1d-b13b-bad759e00b86"`; exports[`string > 1337 > alpha > noArgs 1`] = `"n"`; @@ -512,12 +512,12 @@ exports[`string > 1337 > symbol > with length parameter 5`] = `"-$?,%"`; exports[`string > 1337 > symbol > with length range 1`] = `"<&') 1337 > uuid 1`] = `"48234870-5389-445f-8b41-c61a52bf27dc"`; +exports[`string > 1337 > uuid 1`] = `"48234870-5389-445f-b4b4-1c61a52bf27d"`; -exports[`string > 1337 > uuid 2`] = `"cc057669-8c53-474d-a677-226d3e8ed92f"`; +exports[`string > 1337 > uuid 2`] = `"cc057669-8c53-474d-ba67-7226d3e8ed92"`; -exports[`string > 1337 > uuid 3`] = `"fe6d8b8b-0db9-4fa2-b265-abc0a5d0ccf5"`; +exports[`string > 1337 > uuid 3`] = `"fe6d8b8b-0db9-4fa2-9726-5abc0a5d0ccf"`; -exports[`string > 1337 > uuid 4`] = `"0b87afbd-8949-4dfb-8d04-19f4fe7458b2"`; +exports[`string > 1337 > uuid 4`] = `"0b87afbd-8949-4dfb-84d0-419f4fe7458b"`; -exports[`string > 1337 > uuid 5`] = `"0bcea83c-a7ea-428e-85db-d448f2b777a6"`; +exports[`string > 1337 > uuid 5`] = `"0bcea83c-a7ea-428e-9c5d-bd448f2b777a"`; From d5b78c7cda2d17cae7657e29c9766f3e1268402a Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 11 Feb 2023 12:45:12 +0100 Subject: [PATCH 12/21] docs: add matthewmayer to team (#1816) --- docs/about/team/members.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/about/team/members.json b/docs/about/team/members.json index 3b9bc1adce9..32032b28732 100644 --- a/docs/about/team/members.json +++ b/docs/about/team/members.json @@ -82,6 +82,13 @@ { "icon": "github", "link": "https://github.com/xDivisionByZerox" } ] }, + { + "avatar": "https://github.com/matthewmayer.png", + "name": "Matt Mayer", + "title": "Contributor", + "desc": "", + "links": [{ "icon": "github", "link": "https://github.com/matthewmayer" }] + }, { "avatar": "https://github.com/pkuczynski.png", "name": "Piotr Kuczynski", From fbd0db533b5a46fe1175c02c65b3e61fca52d40d Mon Sep 17 00:00:00 2001 From: Martijn van Iersel Date: Sun, 12 Feb 2023 17:40:04 +0100 Subject: [PATCH 13/21] fix(person): improve to Dutch name generation (#1778) --- src/locales/nl/person/female_prefix.ts | 2 +- src/locales/nl/person/index.ts | 2 - src/locales/nl/person/last_name.ts | 139 +++++++++++++++++++------ src/locales/nl/person/male_prefix.ts | 2 +- src/locales/nl/person/suffix.ts | 2 +- src/locales/nl/person/tussenvoegsel.ts | 1 - 6 files changed, 113 insertions(+), 35 deletions(-) delete mode 100644 src/locales/nl/person/tussenvoegsel.ts diff --git a/src/locales/nl/person/female_prefix.ts b/src/locales/nl/person/female_prefix.ts index f2a34781553..44ab3b6a02a 100644 --- a/src/locales/nl/person/female_prefix.ts +++ b/src/locales/nl/person/female_prefix.ts @@ -1 +1 @@ -export default ['Dhr.', 'Mevr. Dr.', 'Bsc', 'Msc', 'Prof.']; +export default ['Dhr.', 'Mevr. Dr.', 'Bsc', 'Msc', 'Prof.', 'Ir.', 'Drs.']; diff --git a/src/locales/nl/person/index.ts b/src/locales/nl/person/index.ts index c93db9e8cc9..eb000343bc3 100644 --- a/src/locales/nl/person/index.ts +++ b/src/locales/nl/person/index.ts @@ -12,7 +12,6 @@ import male_prefix from './male_prefix'; import name_ from './name'; import prefix from './prefix'; import suffix from './suffix'; -import tussenvoegsel from './tussenvoegsel'; const person: PersonDefinitions = { female_first_name, @@ -24,7 +23,6 @@ const person: PersonDefinitions = { name: name_, prefix, suffix, - tussenvoegsel, }; export default person; diff --git a/src/locales/nl/person/last_name.ts b/src/locales/nl/person/last_name.ts index ea160c3e7b2..4f80efdd025 100644 --- a/src/locales/nl/person/last_name.ts +++ b/src/locales/nl/person/last_name.ts @@ -1,52 +1,133 @@ export default [ + 'Aalbers', 'Bakker', - 'Beek', - 'Berg', + 'Bijl', + 'Blom', 'Boer', 'Bos', 'Bosch', - 'Brink', - 'Broek', + 'Bosman', 'Brouwer', - 'Bruin', - 'Dam', + 'Cornelissen', + 'Corsten', + 'de Boer', + 'de Bruijn', + 'de Bruyn', + 'de Corte', + 'de Graaf', + 'de Groot', + 'de Haan', + 'de Jong', + 'de Jonge', + 'de Koning', + 'de Lange', + 'de Leeuw', + 'de Nijs', + 'de Ruiter', + 'de Vos', + 'de Vries', + 'de Wit', 'Dekker', - 'Dijk', + 'den Adel', 'Dijkstra', - 'Graaf', - 'Groot', - 'Haan', + 'Driessen', + 'Evers', + 'Freriks', + 'Gerritsen', + 'Groen', + 'Groothuizen', + 'Hartman', + 'Hazes', 'Hendriks', - 'Heuvel', - 'Hoek', + 'Hermans', + 'Hofman', + 'Huisman', 'Jacobs', 'Jansen', 'Janssen', - 'Jong', + 'Jonker', 'Klein', 'Kok', 'Koning', - 'Koster', - 'Leeuwen', - 'Linden', + 'Kramer', + 'Kuijpers', + 'Kuiper', + 'Kuypers', + 'Lubbers', 'Maas', - 'Meer', + 'Martens', + 'Meeuwis', 'Meijer', + 'Meyer', + 'Mol', + 'Molenaar', + 'Moors', 'Mulder', - 'Peters', - 'Ruiter', - 'Schouten', - 'Smit', - 'Smits', - 'Stichting', - 'Veen', - 'Ven', + 'Nijland', + 'Oosterhuis', + 'Peeters', + 'Poels', + 'Post', + 'Postma', + 'Prinsen', + 'Rietman', + 'Ritsma', + 'Sanders', + 'Schipper', + 'Scholten', + 'Smeets', + 'Terlouw', + 'Timmermans', + 'van Beek', + 'van Dam', + 'van de Berg', + 'van de Brink', + 'van de Meer', + 'van de Pol', + 'van de Veen', + 'van de Velden', + 'van de Ven', + 'van de Wal', + 'van den Berg', + 'van den Bosch', + 'van den Broek', + 'van den Heuvel', + 'van den Pol', + 'van den Velde', + 'van der Berg', + 'van der Heijden', + 'van der Heyden', + 'van der Horst', + 'van der Laan', + 'van der Linden', + 'van der Meer', + 'van der Meulen', + 'van der Pol', + 'van der Velde', + 'van der Velden', + 'van der Ven', + 'van der Wal', + 'van Dijk', + 'van Dongen', + 'van Doorn', + 'van Ginneken', + 'van Iersel', + 'van Leeuwen', + 'van Loon', + 'van Veen', + 'van Vliet', + 'van Wijk', + 'Veenstra', + 'Verbeek', + 'Verhoeven', 'Vermeulen', + 'Vink', 'Visser', - 'Vliet', 'Vos', - 'Vries', - 'Wal', + 'Wagenaar', 'Willems', - 'Wit', + 'Willemsen', + 'Wolters', + 'Zijlstra', + 'Zuiderveld', ]; diff --git a/src/locales/nl/person/male_prefix.ts b/src/locales/nl/person/male_prefix.ts index def6df170ea..857f9f39f5c 100644 --- a/src/locales/nl/person/male_prefix.ts +++ b/src/locales/nl/person/male_prefix.ts @@ -1 +1 @@ -export default ['Dhr.', 'Bsc', 'Msc', 'Prof.']; +export default ['Dhr.', 'Bsc', 'Msc', 'Prof.', 'Ir.', 'Drs.']; diff --git a/src/locales/nl/person/suffix.ts b/src/locales/nl/person/suffix.ts index d3295c36eb6..21306793ce5 100644 --- a/src/locales/nl/person/suffix.ts +++ b/src/locales/nl/person/suffix.ts @@ -1 +1 @@ -export default ['Jr.', 'Sr.', 'I', 'II', 'III', 'IV', 'V']; +export default ['Jr.', 'Sr.']; diff --git a/src/locales/nl/person/tussenvoegsel.ts b/src/locales/nl/person/tussenvoegsel.ts deleted file mode 100644 index cd7f275bf51..00000000000 --- a/src/locales/nl/person/tussenvoegsel.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['van', 'van de', 'van den', "van 't", 'van het', 'de', 'den']; From ed0be864cd8d6b7660e52b87801c47f783786830 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 11:40:16 +0100 Subject: [PATCH 14/21] chore(deps): update devdependencies (#1828) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 24 +-- pnpm-lock.yaml | 467 +++++++++++++++++++++++++------------------------ 2 files changed, 250 insertions(+), 241 deletions(-) diff --git a/package.json b/package.json index 9961d050e1d..778b1dc40c7 100644 --- a/package.json +++ b/package.json @@ -85,12 +85,12 @@ "@algolia/client-search": "~4.14.3", "@types/glob": "~8.0.1", "@types/markdown-it": "~12.2.3", - "@types/node": "~18.11.18", + "@types/node": "~18.13.0", "@types/prettier": "~2.7.2", "@types/react": "~18.0.27", "@types/sanitize-html": "~2.8.0", "@types/semver": "~7.3.13", - "@types/validator": "~13.7.11", + "@types/validator": "~13.7.12", "@typescript-eslint/eslint-plugin": "~5.49.0", "@typescript-eslint/parser": "~5.49.0", "@vitest/coverage-c8": "~0.28.3", @@ -98,13 +98,13 @@ "@vueuse/core": "~9.12.0", "c8": "~7.12.0", "conventional-changelog-cli": "~2.2.2", - "cypress": "~12.4.1", - "esbuild": "~0.17.5", - "eslint": "~8.33.0", + "cypress": "~12.5.1", + "esbuild": "~0.17.8", + "eslint": "~8.34.0", "eslint-config-prettier": "~8.6.0", - "eslint-define-config": "~1.14.0", + "eslint-define-config": "~1.15.0", "eslint-gitignore": "~0.1.0", - "eslint-plugin-jsdoc": "~39.7.4", + "eslint-plugin-jsdoc": "~39.9.1", "eslint-plugin-prettier": "~4.2.1", "glob": "~8.1.0", "npm-run-all": "~4.1.5", @@ -114,18 +114,18 @@ "react": "~18.2.0", "react-dom": "~18.2.0", "rimraf": "~4.1.2", - "sanitize-html": "~2.8.1", + "sanitize-html": "~2.9.0", "semver": "~7.3.8", "standard-version": "~9.5.0", - "tsx": "~3.12.2", + "tsx": "~3.12.3", "typedoc": "~0.23.24", "typedoc-plugin-missing-exports": "~1.0.0", "typescript": "~4.9.4", - "validator": "~13.7.0", - "vite": "~4.0.4", + "validator": "~13.9.0", + "vite": "~4.1.1", "vitepress": "1.0.0-alpha.43", "vitest": "~0.28.3", - "vue": "~3.2.45" + "vue": "~3.2.47" }, "packageManager": "pnpm@7.26.2", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c338d34b046..0eb4c56e724 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,12 +5,12 @@ specifiers: '@algolia/client-search': ~4.14.3 '@types/glob': ~8.0.1 '@types/markdown-it': ~12.2.3 - '@types/node': ~18.11.18 + '@types/node': ~18.13.0 '@types/prettier': ~2.7.2 '@types/react': ~18.0.27 '@types/sanitize-html': ~2.8.0 '@types/semver': ~7.3.13 - '@types/validator': ~13.7.11 + '@types/validator': ~13.7.12 '@typescript-eslint/eslint-plugin': ~5.49.0 '@typescript-eslint/parser': ~5.49.0 '@vitest/coverage-c8': ~0.28.3 @@ -18,13 +18,13 @@ specifiers: '@vueuse/core': ~9.12.0 c8: ~7.12.0 conventional-changelog-cli: ~2.2.2 - cypress: ~12.4.1 - esbuild: ~0.17.5 - eslint: ~8.33.0 + cypress: ~12.5.1 + esbuild: ~0.17.8 + eslint: ~8.34.0 eslint-config-prettier: ~8.6.0 - eslint-define-config: ~1.14.0 + eslint-define-config: ~1.15.0 eslint-gitignore: ~0.1.0 - eslint-plugin-jsdoc: ~39.7.4 + eslint-plugin-jsdoc: ~39.9.1 eslint-plugin-prettier: ~4.2.1 glob: ~8.1.0 npm-run-all: ~4.1.5 @@ -34,45 +34,45 @@ specifiers: react: ~18.2.0 react-dom: ~18.2.0 rimraf: ~4.1.2 - sanitize-html: ~2.8.1 + sanitize-html: ~2.9.0 semver: ~7.3.8 standard-version: ~9.5.0 - tsx: ~3.12.2 + tsx: ~3.12.3 typedoc: ~0.23.24 typedoc-plugin-missing-exports: ~1.0.0 typescript: ~4.9.4 - validator: ~13.7.0 - vite: ~4.0.4 + validator: ~13.9.0 + vite: ~4.1.1 vitepress: 1.0.0-alpha.43 vitest: ~0.28.3 - vue: ~3.2.45 + vue: ~3.2.47 devDependencies: '@actions/github': 5.1.1 '@algolia/client-search': 4.14.3 '@types/glob': 8.0.1 '@types/markdown-it': 12.2.3 - '@types/node': 18.11.18 + '@types/node': 18.13.0 '@types/prettier': 2.7.2 '@types/react': 18.0.27 '@types/sanitize-html': 2.8.0 '@types/semver': 7.3.13 - '@types/validator': 13.7.11 - '@typescript-eslint/eslint-plugin': 5.49.0_rsaczafy73x3xqauzesvzbsgzy - '@typescript-eslint/parser': 5.49.0_zkdaqh7it7uc4cvz2haft7rc6u + '@types/validator': 13.7.12 + '@typescript-eslint/eslint-plugin': 5.49.0_7dxbntiiyor6pm5ihvuwc6x2jm + '@typescript-eslint/parser': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a '@vitest/coverage-c8': 0.28.3_@vitest+ui@0.28.3 '@vitest/ui': 0.28.3 - '@vueuse/core': 9.12.0_vue@3.2.45 + '@vueuse/core': 9.12.0_vue@3.2.47 c8: 7.12.0 conventional-changelog-cli: 2.2.2 - cypress: 12.4.1 - esbuild: 0.17.5 - eslint: 8.33.0 - eslint-config-prettier: 8.6.0_eslint@8.33.0 - eslint-define-config: 1.14.0 - eslint-gitignore: 0.1.0_eslint@8.33.0 - eslint-plugin-jsdoc: 39.7.4_eslint@8.33.0 - eslint-plugin-prettier: 4.2.1_jqplj6qf3uqpxpu4gdyhwwasnq + cypress: 12.5.1 + esbuild: 0.17.8 + eslint: 8.34.0 + eslint-config-prettier: 8.6.0_eslint@8.34.0 + eslint-define-config: 1.15.0 + eslint-gitignore: 0.1.0_eslint@8.34.0 + eslint-plugin-jsdoc: 39.9.1_eslint@8.34.0 + eslint-plugin-prettier: 4.2.1_cj7mvq5o3dqsflion44kvn3oja glob: 8.1.0 npm-run-all: 4.1.5 picocolors: 1.0.0 @@ -81,18 +81,18 @@ devDependencies: react: 18.2.0 react-dom: 18.2.0_react@18.2.0 rimraf: 4.1.2 - sanitize-html: 2.8.1 + sanitize-html: 2.9.0 semver: 7.3.8 standard-version: 9.5.0 - tsx: 3.12.2 + tsx: 3.12.3 typedoc: 0.23.24_typescript@4.9.4 typedoc-plugin-missing-exports: 1.0.0_typedoc@0.23.24 typescript: 4.9.4 - validator: 13.7.0 - vite: 4.0.4_@types+node@18.11.18 - vitepress: 1.0.0-alpha.43_by7gyylsamxizt5s4yfchzglha + validator: 13.9.0 + vite: 4.1.1_@types+node@18.13.0 + vitepress: 1.0.0-alpha.43_3d47u4w3h5jmftc6ayxv55hpee vitest: 0.28.3_@vitest+ui@0.28.3 - vue: 3.2.45 + vue: 3.2.47 packages: @@ -361,11 +361,11 @@ packages: jsdoc-type-pratt-parser: 3.1.0 dev: true - /@esbuild-kit/cjs-loader/2.4.1: - resolution: {integrity: sha512-lhc/XLith28QdW0HpHZvZKkorWgmCNT7sVelMHDj3HFdTfdqkwEKvT+aXVQtNAmCC39VJhunDkWhONWB7335mg==} + /@esbuild-kit/cjs-loader/2.4.2: + resolution: {integrity: sha512-BDXFbYOJzT/NBEtp71cvsrGPwGAMGRB/349rwKuoxNSiKjPraNNnlK6MIIabViCjqZugu6j+xeMDlEkWdHHJSg==} dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: 4.2.0 + get-tsconfig: 4.4.0 dev: true /@esbuild-kit/core-utils/3.0.0: @@ -375,11 +375,11 @@ packages: source-map-support: 0.5.21 dev: true - /@esbuild-kit/esm-loader/2.5.4: - resolution: {integrity: sha512-afmtLf6uqxD5IgwCzomtqCYIgz/sjHzCWZFvfS5+FzeYxOURPUo4QcHtqJxbxWOMOogKriZanN/1bJQE/ZL93A==} + /@esbuild-kit/esm-loader/2.5.5: + resolution: {integrity: sha512-Qwfvj/qoPbClxCRNuac1Du01r9gvNOT+pMYtJDapfB1eoGN1YlJ1BixLyL9WVENRx5RXgNLdfYdx/CuswlGhMw==} dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: 4.2.0 + get-tsconfig: 4.4.0 dev: true /@esbuild/android-arm/0.15.18: @@ -400,8 +400,8 @@ packages: dev: true optional: true - /@esbuild/android-arm/0.17.5: - resolution: {integrity: sha512-crmPUzgCmF+qZXfl1YkiFoUta2XAfixR1tEnr/gXIixE+WL8Z0BGqfydP5oox0EUOgQMMRgtATtakyAcClQVqQ==} + /@esbuild/android-arm/0.17.8: + resolution: {integrity: sha512-0/rb91GYKhrtbeglJXOhAv9RuYimgI8h623TplY2X+vA4EXnk3Zj1fXZreJ0J3OJJu1bwmb0W7g+2cT/d8/l/w==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -418,8 +418,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64/0.17.5: - resolution: {integrity: sha512-KHWkDqYAMmKZjY4RAN1PR96q6UOtfkWlTS8uEwWxdLtkRt/0F/csUhXIrVfaSIFxnscIBMPynGfhsMwQDRIBQw==} + /@esbuild/android-arm64/0.17.8: + resolution: {integrity: sha512-oa/N5j6v1svZQs7EIRPqR8f+Bf8g6HBDjD/xHC02radE/NjKHK7oQmtmLxPs1iVwYyvE+Kolo6lbpfEQ9xnhxQ==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -436,8 +436,8 @@ packages: dev: true optional: true - /@esbuild/android-x64/0.17.5: - resolution: {integrity: sha512-8fI/AnIdmWz/+1iza2WrCw8kwXK9wZp/yZY/iS8ioC+U37yJCeppi9EHY05ewJKN64ASoBIseufZROtcFnX5GA==} + /@esbuild/android-x64/0.17.8: + resolution: {integrity: sha512-bTliMLqD7pTOoPg4zZkXqCDuzIUguEWLpeqkNfC41ODBHwoUgZ2w5JBeYimv4oP6TDVocoYmEhZrCLQTrH89bg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -454,8 +454,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64/0.17.5: - resolution: {integrity: sha512-EAvaoyIySV6Iif3NQCglUNpnMfHSUgC5ugt2efl3+QDntucJe5spn0udNZjTgNi6tKVqSceOw9tQ32liNZc1Xw==} + /@esbuild/darwin-arm64/0.17.8: + resolution: {integrity: sha512-ghAbV3ia2zybEefXRRm7+lx8J/rnupZT0gp9CaGy/3iolEXkJ6LYRq4IpQVI9zR97ID80KJVoUlo3LSeA/sMAg==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -472,8 +472,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64/0.17.5: - resolution: {integrity: sha512-ha7QCJh1fuSwwCgoegfdaljowwWozwTDjBgjD3++WAy/qwee5uUi1gvOg2WENJC6EUyHBOkcd3YmLDYSZ2TPPA==} + /@esbuild/darwin-x64/0.17.8: + resolution: {integrity: sha512-n5WOpyvZ9TIdv2V1K3/iIkkJeKmUpKaCTdun9buhGRWfH//osmUjlv4Z5mmWdPWind/VGcVxTHtLfLCOohsOXw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -490,8 +490,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64/0.17.5: - resolution: {integrity: sha512-VbdXJkn2aI2pQ/wxNEjEcnEDwPpxt3CWWMFYmO7CcdFBoOsABRy2W8F3kjbF9F/pecEUDcI3b5i2w+By4VQFPg==} + /@esbuild/freebsd-arm64/0.17.8: + resolution: {integrity: sha512-a/SATTaOhPIPFWvHZDoZYgxaZRVHn0/LX1fHLGfZ6C13JqFUZ3K6SMD6/HCtwOQ8HnsNaEeokdiDSFLuizqv5A==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -508,8 +508,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64/0.17.5: - resolution: {integrity: sha512-olgGYND1/XnnWxwhjtY3/ryjOG/M4WfcA6XH8dBTH1cxMeBemMODXSFhkw71Kf4TeZFFTN25YOomaNh0vq2iXg==} + /@esbuild/freebsd-x64/0.17.8: + resolution: {integrity: sha512-xpFJb08dfXr5+rZc4E+ooZmayBW6R3q59daCpKZ/cDU96/kvDM+vkYzNeTJCGd8rtO6fHWMq5Rcv/1cY6p6/0Q==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -526,8 +526,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm/0.17.5: - resolution: {integrity: sha512-YBdCyQwA3OQupi6W2/WO4FnI+NWFWe79cZEtlbqSESOHEg7a73htBIRiE6uHPQe7Yp5E4aALv+JxkRLGEUL7tw==} + /@esbuild/linux-arm/0.17.8: + resolution: {integrity: sha512-6Ij8gfuGszcEwZpi5jQIJCVIACLS8Tz2chnEBfYjlmMzVsfqBP1iGmHQPp7JSnZg5xxK9tjCc+pJ2WtAmPRFVA==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -544,8 +544,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64/0.17.5: - resolution: {integrity: sha512-8a0bqSwu3OlLCfu2FBbDNgQyBYdPJh1B9PvNX7jMaKGC9/KopgHs37t+pQqeMLzcyRqG6z55IGNQAMSlCpBuqg==} + /@esbuild/linux-arm64/0.17.8: + resolution: {integrity: sha512-v3iwDQuDljLTxpsqQDl3fl/yihjPAyOguxuloON9kFHYwopeJEf1BkDXODzYyXEI19gisEsQlG1bM65YqKSIww==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -562,8 +562,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32/0.17.5: - resolution: {integrity: sha512-uCwm1r/+NdP7vndctgq3PoZrnmhmnecWAr114GWMRwg2QMFFX+kIWnp7IO220/JLgnXK/jP7VKAFBGmeOYBQYQ==} + /@esbuild/linux-ia32/0.17.8: + resolution: {integrity: sha512-8svILYKhE5XetuFk/B6raFYIyIqydQi+GngEXJgdPdI7OMKUbSd7uzR02wSY4kb53xBrClLkhH4Xs8P61Q2BaA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -589,8 +589,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64/0.17.5: - resolution: {integrity: sha512-3YxhSBl5Sb6TtBjJu+HP93poBruFzgXmf3PVfIe4xOXMj1XpxboYZyw3W8BhoX/uwxzZz4K1I99jTE/5cgDT1g==} + /@esbuild/linux-loong64/0.17.8: + resolution: {integrity: sha512-B6FyMeRJeV0NpyEOYlm5qtQfxbdlgmiGdD+QsipzKfFky0K5HW5Td6dyK3L3ypu1eY4kOmo7wW0o94SBqlqBSA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -607,8 +607,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el/0.17.5: - resolution: {integrity: sha512-Hy5Z0YVWyYHdtQ5mfmfp8LdhVwGbwVuq8mHzLqrG16BaMgEmit2xKO+iDakHs+OetEx0EN/2mUzDdfdktI+Nmg==} + /@esbuild/linux-mips64el/0.17.8: + resolution: {integrity: sha512-CCb67RKahNobjm/eeEqeD/oJfJlrWyw29fgiyB6vcgyq97YAf3gCOuP6qMShYSPXgnlZe/i4a8WFHBw6N8bYAA==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -625,8 +625,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64/0.17.5: - resolution: {integrity: sha512-5dbQvBLbU/Y3Q4ABc9gi23hww1mQcM7KZ9KBqabB7qhJswYMf8WrDDOSw3gdf3p+ffmijMd28mfVMvFucuECyg==} + /@esbuild/linux-ppc64/0.17.8: + resolution: {integrity: sha512-bytLJOi55y55+mGSdgwZ5qBm0K9WOCh0rx+vavVPx+gqLLhxtSFU0XbeYy/dsAAD6xECGEv4IQeFILaSS2auXw==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -643,8 +643,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64/0.17.5: - resolution: {integrity: sha512-fp/KUB/ZPzEWGTEUgz9wIAKCqu7CjH1GqXUO2WJdik1UNBQ7Xzw7myIajpxztE4Csb9504ERiFMxZg5KZ6HlZQ==} + /@esbuild/linux-riscv64/0.17.8: + resolution: {integrity: sha512-2YpRyQJmKVBEHSBLa8kBAtbhucaclb6ex4wchfY0Tj3Kg39kpjeJ9vhRU7x4mUpq8ISLXRXH1L0dBYjAeqzZAw==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -661,8 +661,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x/0.17.5: - resolution: {integrity: sha512-kRV3yw19YDqHTp8SfHXfObUFXlaiiw4o2lvT1XjsPZ++22GqZwSsYWJLjMi1Sl7j9qDlDUduWDze/nQx0d6Lzw==} + /@esbuild/linux-s390x/0.17.8: + resolution: {integrity: sha512-QgbNY/V3IFXvNf11SS6exkpVcX0LJcob+0RWCgV9OiDAmVElnxciHIisoSix9uzYzScPmS6dJFbZULdSAEkQVw==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -679,8 +679,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64/0.17.5: - resolution: {integrity: sha512-vnxuhh9e4pbtABNLbT2ANW4uwQ/zvcHRCm1JxaYkzSehugoFd5iXyC4ci1nhXU13mxEwCnrnTIiiSGwa/uAF1g==} + /@esbuild/linux-x64/0.17.8: + resolution: {integrity: sha512-mM/9S0SbAFDBc4OPoyP6SEOo5324LpUxdpeIUUSrSTOfhHU9hEfqRngmKgqILqwx/0DVJBzeNW7HmLEWp9vcOA==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -697,8 +697,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64/0.17.5: - resolution: {integrity: sha512-cigBpdiSx/vPy7doUyImsQQBnBjV5f1M99ZUlaJckDAJjgXWl6y9W17FIfJTy8TxosEF6MXq+fpLsitMGts2nA==} + /@esbuild/netbsd-x64/0.17.8: + resolution: {integrity: sha512-eKUYcWaWTaYr9zbj8GertdVtlt1DTS1gNBWov+iQfWuWyuu59YN6gSEJvFzC5ESJ4kMcKR0uqWThKUn5o8We6Q==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -715,8 +715,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64/0.17.5: - resolution: {integrity: sha512-VdqRqPVIjjZfkf40LrqOaVuhw9EQiAZ/GNCSM2UplDkaIzYVsSnycxcFfAnHdWI8Gyt6dO15KHikbpxwx+xHbw==} + /@esbuild/openbsd-x64/0.17.8: + resolution: {integrity: sha512-Vc9J4dXOboDyMXKD0eCeW0SIeEzr8K9oTHJU+Ci1mZc5njPfhKAqkRt3B/fUNU7dP+mRyralPu8QUkiaQn7iIg==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -733,8 +733,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64/0.17.5: - resolution: {integrity: sha512-ItxPaJ3MBLtI4nK+mALLEoUs6amxsx+J1ibnfcYMkqaCqHST1AkF4aENpBehty3czqw64r/XqL+W9WqU6kc2Qw==} + /@esbuild/sunos-x64/0.17.8: + resolution: {integrity: sha512-0xvOTNuPXI7ft1LYUgiaXtpCEjp90RuBBYovdd2lqAFxje4sEucurg30M1WIm03+3jxByd3mfo+VUmPtRSVuOw==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -751,8 +751,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64/0.17.5: - resolution: {integrity: sha512-4u2Q6qsJTYNFdS9zHoAi80spzf78C16m2wla4eJPh4kSbRv+BpXIfl6TmBSWupD8e47B1NrTfrOlEuco7mYQtg==} + /@esbuild/win32-arm64/0.17.8: + resolution: {integrity: sha512-G0JQwUI5WdEFEnYNKzklxtBheCPkuDdu1YrtRrjuQv30WsYbkkoixKxLLv8qhJmNI+ATEWquZe/N0d0rpr55Mg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -769,8 +769,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32/0.17.5: - resolution: {integrity: sha512-KYlm+Xu9TXsfTWAcocLuISRtqxKp/Y9ZBVg6CEEj0O5J9mn7YvBKzAszo2j1ndyzUPk+op+Tie2PJeN+BnXGqQ==} + /@esbuild/win32-ia32/0.17.8: + resolution: {integrity: sha512-Fqy63515xl20OHGFykjJsMnoIWS+38fqfg88ClvPXyDbLtgXal2DTlhb1TfTX34qWi3u4I7Cq563QcHpqgLx8w==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -787,8 +787,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64/0.17.5: - resolution: {integrity: sha512-XgA9qWRqby7xdYXuF6KALsn37QGBMHsdhmnpjfZtYxKxbTOwfnDM6MYi2WuUku5poNaX2n9XGVr20zgT/2QwCw==} + /@esbuild/win32-x64/0.17.8: + resolution: {integrity: sha512-1iuezdyDNngPnz8rLRDO2C/ZZ/emJLb72OsZeqQ6gL6Avko/XCXZw+NuxBSNhBAP13Hie418V7VMt9et1FMvpg==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -986,7 +986,7 @@ packages: resolution: {integrity: sha512-8bVUjXZvJacUFkJXHdyZ9iH1Eaj5V7I8c4NdH5sQJsdXkqT4CA5Dhb4yb4VE/3asyx4L9ayZr1NIhTsWHczmMw==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 18.11.18 + '@types/node': 18.13.0 dev: true /@types/istanbul-lib-coverage/2.0.4: @@ -1024,8 +1024,8 @@ packages: resolution: {integrity: sha512-2ATO8pfhG1kDvw4Lc4C0GXIMSQFFJBCo/R1fSgTwmUlq5oy95LXyjDQinsRVgQY6gp6ghh3H91wk9ES5/5C+Tw==} dev: true - /@types/node/18.11.18: - resolution: {integrity: sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==} + /@types/node/18.13.0: + resolution: {integrity: sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==} dev: true /@types/normalize-package-data/2.4.1: @@ -1070,8 +1070,8 @@ packages: resolution: {integrity: sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==} dev: true - /@types/validator/13.7.11: - resolution: {integrity: sha512-WqTos+CnAKN64YwyBMhgUYhb5VsTNKwUY6AuzG5qu9/pFZJar/RJFMZBXwX7VS+uzYi+lIAr3WkvuWqEI9F2eg==} + /@types/validator/13.7.12: + resolution: {integrity: sha512-YVtyAPqpefU+Mm/qqnOANW6IkqKpCSrarcyV269C8MA8Ux0dbkEuQwM/4CjL47kVEM2LgBef/ETfkH+c6+moFA==} dev: true /@types/web-bluetooth/0.0.16: @@ -1082,11 +1082,11 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 18.11.18 + '@types/node': 18.13.0 dev: true optional: true - /@typescript-eslint/eslint-plugin/5.49.0_rsaczafy73x3xqauzesvzbsgzy: + /@typescript-eslint/eslint-plugin/5.49.0_7dxbntiiyor6pm5ihvuwc6x2jm: resolution: {integrity: sha512-IhxabIpcf++TBaBa1h7jtOWyon80SXPRLDq0dVz5SLFC/eW6tofkw/O7Ar3lkx5z5U6wzbKDrl2larprp5kk5Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1097,12 +1097,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.49.0_zkdaqh7it7uc4cvz2haft7rc6u + '@typescript-eslint/parser': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a '@typescript-eslint/scope-manager': 5.49.0 - '@typescript-eslint/type-utils': 5.49.0_zkdaqh7it7uc4cvz2haft7rc6u - '@typescript-eslint/utils': 5.49.0_zkdaqh7it7uc4cvz2haft7rc6u + '@typescript-eslint/type-utils': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a + '@typescript-eslint/utils': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a debug: 4.3.4 - eslint: 8.33.0 + eslint: 8.34.0 ignore: 5.2.4 natural-compare-lite: 1.4.0 regexpp: 3.2.0 @@ -1113,7 +1113,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.49.0_zkdaqh7it7uc4cvz2haft7rc6u: + /@typescript-eslint/parser/5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a: resolution: {integrity: sha512-veDlZN9mUhGqU31Qiv2qEp+XrJj5fgZpJ8PW30sHU+j/8/e5ruAhLaVDAeznS7A7i4ucb/s8IozpDtt9NqCkZg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1127,7 +1127,7 @@ packages: '@typescript-eslint/types': 5.49.0 '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.4 debug: 4.3.4 - eslint: 8.33.0 + eslint: 8.34.0 typescript: 4.9.4 transitivePeerDependencies: - supports-color @@ -1141,7 +1141,7 @@ packages: '@typescript-eslint/visitor-keys': 5.49.0 dev: true - /@typescript-eslint/type-utils/5.49.0_zkdaqh7it7uc4cvz2haft7rc6u: + /@typescript-eslint/type-utils/5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a: resolution: {integrity: sha512-eUgLTYq0tR0FGU5g1YHm4rt5H/+V2IPVkP0cBmbhRyEmyGe4XvJ2YJ6sYTmONfjmdMqyMLad7SB8GvblbeESZA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1152,9 +1152,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.4 - '@typescript-eslint/utils': 5.49.0_zkdaqh7it7uc4cvz2haft7rc6u + '@typescript-eslint/utils': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a debug: 4.3.4 - eslint: 8.33.0 + eslint: 8.34.0 tsutils: 3.21.0_typescript@4.9.4 typescript: 4.9.4 transitivePeerDependencies: @@ -1187,7 +1187,7 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.49.0_zkdaqh7it7uc4cvz2haft7rc6u: + /@typescript-eslint/utils/5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a: resolution: {integrity: sha512-cPJue/4Si25FViIb74sHCLtM4nTSBXtLx1d3/QT6mirQ/c65bV8arBEebBJJizfq8W2YyMoPI/WWPFWitmNqnQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1198,9 +1198,9 @@ packages: '@typescript-eslint/scope-manager': 5.49.0 '@typescript-eslint/types': 5.49.0 '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.4 - eslint: 8.33.0 + eslint: 8.34.0 eslint-scope: 5.1.1 - eslint-utils: 3.0.0_eslint@8.33.0 + eslint-utils: 3.0.0_eslint@8.34.0 semver: 7.3.8 transitivePeerDependencies: - supports-color @@ -1215,15 +1215,15 @@ packages: eslint-visitor-keys: 3.3.0 dev: true - /@vitejs/plugin-vue/4.0.0_vite@4.0.4+vue@3.2.45: + /@vitejs/plugin-vue/4.0.0_vite@4.1.1+vue@3.2.47: resolution: {integrity: sha512-e0X4jErIxAB5oLtDqbHvHpJe/uWNkdpYV83AOG2xo2tEVSzCzewgJMtREZM30wXnM5ls90hxiOtAuVU6H5JgbA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.0.4_@types+node@18.11.18 - vue: 3.2.45 + vite: 4.1.1_@types+node@18.13.0 + vue: 3.2.47 dev: true /@vitest/coverage-c8/0.28.3_@vitest+ui@0.28.3: @@ -1289,100 +1289,100 @@ packages: pretty-format: 27.5.1 dev: true - /@vue/compiler-core/3.2.45: - resolution: {integrity: sha512-rcMj7H+PYe5wBV3iYeUgbCglC+pbpN8hBLTJvRiK2eKQiWqu+fG9F+8sW99JdL4LQi7Re178UOxn09puSXvn4A==} + /@vue/compiler-core/3.2.47: + resolution: {integrity: sha512-p4D7FDnQb7+YJmO2iPEv0SQNeNzcbHdGByJDsT4lynf63AFkOTFN07HsiRSvjGo0QrxR/o3d0hUyNCUnBU2Tig==} dependencies: '@babel/parser': 7.20.7 - '@vue/shared': 3.2.45 + '@vue/shared': 3.2.47 estree-walker: 2.0.2 source-map: 0.6.1 dev: true - /@vue/compiler-dom/3.2.45: - resolution: {integrity: sha512-tyYeUEuKqqZO137WrZkpwfPCdiiIeXYCcJ8L4gWz9vqaxzIQRccTSwSWZ/Axx5YR2z+LvpUbmPNXxuBU45lyRw==} + /@vue/compiler-dom/3.2.47: + resolution: {integrity: sha512-dBBnEHEPoftUiS03a4ggEig74J2YBZ2UIeyfpcRM2tavgMWo4bsEfgCGsu+uJIL/vax9S+JztH8NmQerUo7shQ==} dependencies: - '@vue/compiler-core': 3.2.45 - '@vue/shared': 3.2.45 + '@vue/compiler-core': 3.2.47 + '@vue/shared': 3.2.47 dev: true - /@vue/compiler-sfc/3.2.45: - resolution: {integrity: sha512-1jXDuWah1ggsnSAOGsec8cFjT/K6TMZ0sPL3o3d84Ft2AYZi2jWJgRMjw4iaK0rBfA89L5gw427H4n1RZQBu6Q==} + /@vue/compiler-sfc/3.2.47: + resolution: {integrity: sha512-rog05W+2IFfxjMcFw10tM9+f7i/+FFpZJJ5XHX72NP9eC2uRD+42M3pYcQqDXVYoj74kHMSEdQ/WmCjt8JFksQ==} dependencies: '@babel/parser': 7.20.7 - '@vue/compiler-core': 3.2.45 - '@vue/compiler-dom': 3.2.45 - '@vue/compiler-ssr': 3.2.45 - '@vue/reactivity-transform': 3.2.45 - '@vue/shared': 3.2.45 + '@vue/compiler-core': 3.2.47 + '@vue/compiler-dom': 3.2.47 + '@vue/compiler-ssr': 3.2.47 + '@vue/reactivity-transform': 3.2.47 + '@vue/shared': 3.2.47 estree-walker: 2.0.2 magic-string: 0.25.9 - postcss: 8.4.20 + postcss: 8.4.21 source-map: 0.6.1 dev: true - /@vue/compiler-ssr/3.2.45: - resolution: {integrity: sha512-6BRaggEGqhWht3lt24CrIbQSRD5O07MTmd+LjAn5fJj568+R9eUD2F7wMQJjX859seSlrYog7sUtrZSd7feqrQ==} + /@vue/compiler-ssr/3.2.47: + resolution: {integrity: sha512-wVXC+gszhulcMD8wpxMsqSOpvDZ6xKXSVWkf50Guf/S+28hTAXPDYRTbLQ3EDkOP5Xz/+SY37YiwDquKbJOgZw==} dependencies: - '@vue/compiler-dom': 3.2.45 - '@vue/shared': 3.2.45 + '@vue/compiler-dom': 3.2.47 + '@vue/shared': 3.2.47 dev: true /@vue/devtools-api/6.5.0: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} dev: true - /@vue/reactivity-transform/3.2.45: - resolution: {integrity: sha512-BHVmzYAvM7vcU5WmuYqXpwaBHjsS8T63jlKGWVtHxAHIoMIlmaMyurUSEs1Zcg46M4AYT5MtB1U274/2aNzjJQ==} + /@vue/reactivity-transform/3.2.47: + resolution: {integrity: sha512-m8lGXw8rdnPVVIdIFhf0LeQ/ixyHkH5plYuS83yop5n7ggVJU+z5v0zecwEnX7fa7HNLBhh2qngJJkxpwEEmYA==} dependencies: '@babel/parser': 7.20.7 - '@vue/compiler-core': 3.2.45 - '@vue/shared': 3.2.45 + '@vue/compiler-core': 3.2.47 + '@vue/shared': 3.2.47 estree-walker: 2.0.2 magic-string: 0.25.9 dev: true - /@vue/reactivity/3.2.45: - resolution: {integrity: sha512-PRvhCcQcyEVohW0P8iQ7HDcIOXRjZfAsOds3N99X/Dzewy8TVhTCT4uXpAHfoKjVTJRA0O0K+6QNkDIZAxNi3A==} + /@vue/reactivity/3.2.47: + resolution: {integrity: sha512-7khqQ/75oyyg+N/e+iwV6lpy1f5wq759NdlS1fpAhFXa8VeAIKGgk2E/C4VF59lx5b+Ezs5fpp/5WsRYXQiKxQ==} dependencies: - '@vue/shared': 3.2.45 + '@vue/shared': 3.2.47 dev: true - /@vue/runtime-core/3.2.45: - resolution: {integrity: sha512-gzJiTA3f74cgARptqzYswmoQx0fIA+gGYBfokYVhF8YSXjWTUA2SngRzZRku2HbGbjzB6LBYSbKGIaK8IW+s0A==} + /@vue/runtime-core/3.2.47: + resolution: {integrity: sha512-RZxbLQIRB/K0ev0K9FXhNbBzT32H9iRtYbaXb0ZIz2usLms/D55dJR2t6cIEUn6vyhS3ALNvNthI+Q95C+NOpA==} dependencies: - '@vue/reactivity': 3.2.45 - '@vue/shared': 3.2.45 + '@vue/reactivity': 3.2.47 + '@vue/shared': 3.2.47 dev: true - /@vue/runtime-dom/3.2.45: - resolution: {integrity: sha512-cy88YpfP5Ue2bDBbj75Cb4bIEZUMM/mAkDMfqDTpUYVgTf/kuQ2VQ8LebuZ8k6EudgH8pYhsGWHlY0lcxlvTwA==} + /@vue/runtime-dom/3.2.47: + resolution: {integrity: sha512-ArXrFTjS6TsDei4qwNvgrdmHtD930KgSKGhS5M+j8QxXrDJYLqYw4RRcDy1bz1m1wMmb6j+zGLifdVHtkXA7gA==} dependencies: - '@vue/runtime-core': 3.2.45 - '@vue/shared': 3.2.45 + '@vue/runtime-core': 3.2.47 + '@vue/shared': 3.2.47 csstype: 2.6.21 dev: true - /@vue/server-renderer/3.2.45_vue@3.2.45: - resolution: {integrity: sha512-ebiMq7q24WBU1D6uhPK//2OTR1iRIyxjF5iVq/1a5I1SDMDyDu4Ts6fJaMnjrvD3MqnaiFkKQj+LKAgz5WIK3g==} + /@vue/server-renderer/3.2.47_vue@3.2.47: + resolution: {integrity: sha512-dN9gc1i8EvmP9RCzvneONXsKfBRgqFeFZLurmHOveL7oH6HiFXJw5OGu294n1nHc/HMgTy6LulU/tv5/A7f/LA==} peerDependencies: - vue: 3.2.45 + vue: 3.2.47 dependencies: - '@vue/compiler-ssr': 3.2.45 - '@vue/shared': 3.2.45 - vue: 3.2.45 + '@vue/compiler-ssr': 3.2.47 + '@vue/shared': 3.2.47 + vue: 3.2.47 dev: true - /@vue/shared/3.2.45: - resolution: {integrity: sha512-Ewzq5Yhimg7pSztDV+RH1UDKBzmtqieXQlpTVm2AwraoRL/Rks96mvd8Vgi7Lj+h+TH8dv7mXD3FRZR3TUvbSg==} + /@vue/shared/3.2.47: + resolution: {integrity: sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==} dev: true - /@vueuse/core/9.12.0_vue@3.2.45: + /@vueuse/core/9.12.0_vue@3.2.47: resolution: {integrity: sha512-h/Di8Bvf6xRcvS/PvUVheiMYYz3U0tH3X25YxONSaAUBa841ayMwxkuzx/DGUMCW/wHWzD8tRy2zYmOC36r4sg==} dependencies: '@types/web-bluetooth': 0.0.16 '@vueuse/metadata': 9.12.0 - '@vueuse/shared': 9.12.0_vue@3.2.45 - vue-demi: 0.13.11_vue@3.2.45 + '@vueuse/shared': 9.12.0_vue@3.2.47 + vue-demi: 0.13.11_vue@3.2.47 transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1392,10 +1392,10 @@ packages: resolution: {integrity: sha512-9oJ9MM9lFLlmvxXUqsR1wLt1uF7EVbP5iYaHJYqk+G2PbMjY6EXvZeTjbdO89HgoF5cI6z49o2zT/jD9SVoNpQ==} dev: true - /@vueuse/shared/9.12.0_vue@3.2.45: + /@vueuse/shared/9.12.0_vue@3.2.47: resolution: {integrity: sha512-TWuJLACQ0BVithVTRbex4Wf1a1VaRuSpVeyEd4vMUWl54PzlE0ciFUshKCXnlLuD0lxIaLK4Ypj3NXYzZh4+SQ==} dependencies: - vue-demi: 0.13.11_vue@3.2.45 + vue-demi: 0.13.11_vue@3.2.47 transitivePeerDependencies: - '@vue/composition-api' - vue @@ -2085,8 +2085,8 @@ packages: resolution: {integrity: sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==} dev: true - /cypress/12.4.1: - resolution: {integrity: sha512-IFMPzc1RJ22Fac+YbdqywtpcuqZXqQJh+JqZDXn+A15zG/dw99njfv8f0bTvD+WAHhP118+xWG/VwilkFg1rnA==} + /cypress/12.5.1: + resolution: {integrity: sha512-ZmCmJ3lsyeOpBfh410m5+AO2CO1AxAzFBt7k6/uVbNcrNZje1vdiwYTpj2ksPKg9mjr9lR6V8tmlDNMvr4H/YQ==} engines: {node: ^14.0.0 || ^16.0.0 || >=18.0.0} hasBin: true requiresBuild: true @@ -2638,34 +2638,34 @@ packages: '@esbuild/win32-x64': 0.16.16 dev: true - /esbuild/0.17.5: - resolution: {integrity: sha512-Bu6WLCc9NMsNoMJUjGl3yBzTjVLXdysMltxQWiLAypP+/vQrf+3L1Xe8fCXzxaECus2cEJ9M7pk4yKatEwQMqQ==} + /esbuild/0.17.8: + resolution: {integrity: sha512-g24ybC3fWhZddZK6R3uD2iF/RIPnRpwJAqLov6ouX3hMbY4+tKolP0VMF3zuIYCaXun+yHwS5IPQ91N2BT191g==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.17.5 - '@esbuild/android-arm64': 0.17.5 - '@esbuild/android-x64': 0.17.5 - '@esbuild/darwin-arm64': 0.17.5 - '@esbuild/darwin-x64': 0.17.5 - '@esbuild/freebsd-arm64': 0.17.5 - '@esbuild/freebsd-x64': 0.17.5 - '@esbuild/linux-arm': 0.17.5 - '@esbuild/linux-arm64': 0.17.5 - '@esbuild/linux-ia32': 0.17.5 - '@esbuild/linux-loong64': 0.17.5 - '@esbuild/linux-mips64el': 0.17.5 - '@esbuild/linux-ppc64': 0.17.5 - '@esbuild/linux-riscv64': 0.17.5 - '@esbuild/linux-s390x': 0.17.5 - '@esbuild/linux-x64': 0.17.5 - '@esbuild/netbsd-x64': 0.17.5 - '@esbuild/openbsd-x64': 0.17.5 - '@esbuild/sunos-x64': 0.17.5 - '@esbuild/win32-arm64': 0.17.5 - '@esbuild/win32-ia32': 0.17.5 - '@esbuild/win32-x64': 0.17.5 + '@esbuild/android-arm': 0.17.8 + '@esbuild/android-arm64': 0.17.8 + '@esbuild/android-x64': 0.17.8 + '@esbuild/darwin-arm64': 0.17.8 + '@esbuild/darwin-x64': 0.17.8 + '@esbuild/freebsd-arm64': 0.17.8 + '@esbuild/freebsd-x64': 0.17.8 + '@esbuild/linux-arm': 0.17.8 + '@esbuild/linux-arm64': 0.17.8 + '@esbuild/linux-ia32': 0.17.8 + '@esbuild/linux-loong64': 0.17.8 + '@esbuild/linux-mips64el': 0.17.8 + '@esbuild/linux-ppc64': 0.17.8 + '@esbuild/linux-riscv64': 0.17.8 + '@esbuild/linux-s390x': 0.17.8 + '@esbuild/linux-x64': 0.17.8 + '@esbuild/netbsd-x64': 0.17.8 + '@esbuild/openbsd-x64': 0.17.8 + '@esbuild/sunos-x64': 0.17.8 + '@esbuild/win32-arm64': 0.17.8 + '@esbuild/win32-ia32': 0.17.8 + '@esbuild/win32-x64': 0.17.8 dev: true /escalade/3.1.1: @@ -2683,21 +2683,21 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier/8.6.0_eslint@8.33.0: + /eslint-config-prettier/8.6.0_eslint@8.34.0: resolution: {integrity: sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.33.0 + eslint: 8.34.0 dev: true - /eslint-define-config/1.14.0: - resolution: {integrity: sha512-NREt5SzMwKmLAY28YdaqIiTSJxfPpuZ+1ZLJxY2Wbj02dYF4QX81z0q9MPMjZB8C+SlCu66qAhcPpFJyhXOiuA==} + /eslint-define-config/1.15.0: + resolution: {integrity: sha512-p6K61L6HrnDNRF2HzUsTdGaGPohO0TmSX/oQ0ttBhfApWHMyDcX+FCqSziCDywSf0U0bxe4e2HOfYho1nGHTLw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0, npm: '>=6.14.13', pnpm: '>= 7.0.0'} dev: true - /eslint-gitignore/0.1.0_eslint@8.33.0: + /eslint-gitignore/0.1.0_eslint@8.34.0: resolution: {integrity: sha512-VFvY5Wyjuz5xXDC/NeONHzsh4YQNok2Gzg4SftAAuhkbrdHv5CChjfiFyLKhRlgOdCJr5kBquaLXHtuDBTW2/Q==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -2705,14 +2705,14 @@ packages: dependencies: array.prototype.flatmap: 1.3.1 debug: 4.3.4 - eslint: 8.33.0 + eslint: 8.34.0 fast-glob: 3.2.12 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-jsdoc/39.7.4_eslint@8.33.0: - resolution: {integrity: sha512-2eJcWGKRyNQFa37UIpGcAdOp3wtES8vV3mlnFmEmJCuBNyFhK6cMhbZgMkLoLjKnipoxsN9GbfZZ+8nPY8ETZQ==} + /eslint-plugin-jsdoc/39.9.1_eslint@8.34.0: + resolution: {integrity: sha512-Rq2QY6BZP2meNIs48aZ3GlIlJgBqFCmR55+UBvaDkA3ZNQ0SvQXOs2QKkubakEijV8UbIVbVZKsOVN8G3MuqZw==} engines: {node: ^14 || ^16 || ^17 || ^18 || ^19} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -2721,7 +2721,7 @@ packages: comment-parser: 1.3.1 debug: 4.3.4 escape-string-regexp: 4.0.0 - eslint: 8.33.0 + eslint: 8.34.0 esquery: 1.4.0 semver: 7.3.8 spdx-expression-parse: 3.0.1 @@ -2729,7 +2729,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier/4.2.1_jqplj6qf3uqpxpu4gdyhwwasnq: + /eslint-plugin-prettier/4.2.1_cj7mvq5o3dqsflion44kvn3oja: resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -2740,8 +2740,8 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.33.0 - eslint-config-prettier: 8.6.0_eslint@8.33.0 + eslint: 8.34.0 + eslint-config-prettier: 8.6.0_eslint@8.34.0 prettier: 2.8.3 prettier-linter-helpers: 1.0.0 dev: true @@ -2762,13 +2762,13 @@ packages: estraverse: 5.3.0 dev: true - /eslint-utils/3.0.0_eslint@8.33.0: + /eslint-utils/3.0.0_eslint@8.34.0: resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} peerDependencies: eslint: '>=5' dependencies: - eslint: 8.33.0 + eslint: 8.34.0 eslint-visitor-keys: 2.1.0 dev: true @@ -2782,8 +2782,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint/8.33.0: - resolution: {integrity: sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==} + /eslint/8.34.0: + resolution: {integrity: sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: @@ -2798,7 +2798,7 @@ packages: doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.1.1 - eslint-utils: 3.0.0_eslint@8.33.0 + eslint-utils: 3.0.0_eslint@8.34.0 eslint-visitor-keys: 3.3.0 espree: 9.4.1 esquery: 1.4.0 @@ -3127,8 +3127,8 @@ packages: get-intrinsic: 1.1.3 dev: true - /get-tsconfig/4.2.0: - resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==} + /get-tsconfig/4.4.0: + resolution: {integrity: sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==} dev: true /getos/3.2.1: @@ -4292,6 +4292,15 @@ packages: source-map-js: 1.0.2 dev: true + /postcss/8.4.21: + resolution: {integrity: sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.4 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + /preact/10.11.3: resolution: {integrity: sha512-eY93IVpod/zG3uMF22Unl8h9KkrcKIRs2EGar8hwLZZDU1lkjph303V9HZBwufh2s736U6VXuhD109LYqPoffg==} dev: true @@ -4543,8 +4552,8 @@ packages: hasBin: true dev: true - /rollup/3.8.1: - resolution: {integrity: sha512-4yh9eMW7byOroYcN8DlF9P/2jCpu6txVIHjEqquQVSx7DI0RgyCCN3tjrcy4ra6yVtV336aLBB3v2AarYAxePQ==} + /rollup/3.15.0: + resolution: {integrity: sha512-F9hrCAhnp5/zx/7HYmftvsNBkMfLfk/dXUh73hPSM2E3CRgap65orDNJbLetoiUFwSAk6iHPLvBrZ5iHYvzqsg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: @@ -4583,8 +4592,8 @@ packages: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} dev: true - /sanitize-html/2.8.1: - resolution: {integrity: sha512-qK5neD0SaMxGwVv5txOYv05huC3o6ZAA4h5+7nJJgWMNFUNRjcjLO6FpwAtKzfKCZ0jrG6xTk6eVFskbvOGblg==} + /sanitize-html/2.9.0: + resolution: {integrity: sha512-KY1hpSbqFNcpoLf+nP7iStbP5JfQZ2Nd19ZEE7qFsQqRdp+sO5yX/e5+HoG9puFAcSTEpzQuihfKUltDcLlQjg==} dependencies: deepmerge: 4.2.2 escape-string-regexp: 4.0.0 @@ -5072,13 +5081,13 @@ packages: typescript: 4.9.4 dev: true - /tsx/3.12.2: - resolution: {integrity: sha512-ykAEkoBg30RXxeOMVeZwar+JH632dZn9EUJVyJwhfag62k6UO/dIyJEV58YuLF6e5BTdV/qmbQrpkWqjq9cUnQ==} + /tsx/3.12.3: + resolution: {integrity: sha512-Wc5BFH1xccYTXaQob+lEcimkcb/Pq+0en2s+ruiX0VEIC80nV7/0s7XRahx8NnsoCnpCVUPz8wrqVSPi760LkA==} hasBin: true dependencies: - '@esbuild-kit/cjs-loader': 2.4.1 + '@esbuild-kit/cjs-loader': 2.4.2 '@esbuild-kit/core-utils': 3.0.0 - '@esbuild-kit/esm-loader': 2.5.4 + '@esbuild-kit/esm-loader': 2.5.5 optionalDependencies: fsevents: 2.3.2 dev: true @@ -5239,8 +5248,8 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /validator/13.7.0: - resolution: {integrity: sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==} + /validator/13.9.0: + resolution: {integrity: sha512-B+dGG8U3fdtM0/aNK4/X8CXq/EcxU2WPrPEkJGslb47qyHsxmbggTWK0yEA4qnYVNF+nxNlN88o14hIcPmSIEA==} engines: {node: '>= 0.10'} dev: true @@ -5253,7 +5262,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node/0.28.3_@types+node@18.11.18: + /vite-node/0.28.3_@types+node@18.13.0: resolution: {integrity: sha512-uJJAOkgVwdfCX8PUQhqLyDOpkBS5+j+FdbsXoPVPDlvVjRkb/W/mLYQPSL6J+t8R0UV8tJSe8c9VyxVQNsDSyg==} engines: {node: '>=v14.16.0'} hasBin: true @@ -5265,7 +5274,7 @@ packages: picocolors: 1.0.0 source-map: 0.6.1 source-map-support: 0.5.21 - vite: 4.0.4_@types+node@18.11.18 + vite: 4.1.1_@types+node@18.13.0 transitivePeerDependencies: - '@types/node' - less @@ -5276,8 +5285,8 @@ packages: - terser dev: true - /vite/4.0.4_@types+node@18.11.18: - resolution: {integrity: sha512-xevPU7M8FU0i/80DMR+YhgrzR5KS2ORy1B4xcX/cXLsvnUWvfHuqMmVU6N0YiJ4JWGRJJsLCgjEzKjG9/GKoSw==} + /vite/4.1.1_@types+node@18.13.0: + resolution: {integrity: sha512-LM9WWea8vsxhr782r9ntg+bhSFS06FJgCvvB0+8hf8UWtvaiDagKYWXndjfX6kGl74keHJUcpzrQliDXZlF5yg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -5301,28 +5310,28 @@ packages: terser: optional: true dependencies: - '@types/node': 18.11.18 + '@types/node': 18.13.0 esbuild: 0.16.16 - postcss: 8.4.20 + postcss: 8.4.21 resolve: 1.22.1 - rollup: 3.8.1 + rollup: 3.15.0 optionalDependencies: fsevents: 2.3.2 dev: true - /vitepress/1.0.0-alpha.43_by7gyylsamxizt5s4yfchzglha: + /vitepress/1.0.0-alpha.43_3d47u4w3h5jmftc6ayxv55hpee: resolution: {integrity: sha512-bguPWYojF371vIfTY8jGmKeFroRe6UVGmDp3+PjTnVq57wTlz9x88OKm6KKF4l/1D7GugkHex5X9wNcOdCmCiQ==} hasBin: true dependencies: '@docsearch/css': 3.3.2 '@docsearch/js': 3.3.2_y6lbs4o5th67cuzjdmtw5eqh7a - '@vitejs/plugin-vue': 4.0.0_vite@4.0.4+vue@3.2.45 + '@vitejs/plugin-vue': 4.0.0_vite@4.1.1+vue@3.2.47 '@vue/devtools-api': 6.5.0 - '@vueuse/core': 9.12.0_vue@3.2.45 + '@vueuse/core': 9.12.0_vue@3.2.47 body-scroll-lock: 4.0.0-beta.0 shiki: 0.13.0 - vite: 4.0.4_@types+node@18.11.18 - vue: 3.2.45 + vite: 4.1.1_@types+node@18.13.0 + vue: 3.2.47 transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -5361,7 +5370,7 @@ packages: dependencies: '@types/chai': 4.3.4 '@types/chai-subset': 1.3.3 - '@types/node': 18.11.18 + '@types/node': 18.13.0 '@vitest/expect': 0.28.3 '@vitest/runner': 0.28.3 '@vitest/spy': 0.28.3 @@ -5381,8 +5390,8 @@ packages: tinybench: 2.3.1 tinypool: 0.3.1 tinyspy: 1.0.2 - vite: 4.0.4_@types+node@18.11.18 - vite-node: 0.28.3_@types+node@18.11.18 + vite: 4.1.1_@types+node@18.13.0 + vite-node: 0.28.3_@types+node@18.13.0 why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -5401,7 +5410,7 @@ packages: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} dev: true - /vue-demi/0.13.11_vue@3.2.45: + /vue-demi/0.13.11_vue@3.2.47: resolution: {integrity: sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==} engines: {node: '>=12'} hasBin: true @@ -5413,17 +5422,17 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.2.45 + vue: 3.2.47 dev: true - /vue/3.2.45: - resolution: {integrity: sha512-9Nx/Mg2b2xWlXykmCwiTUCWHbWIj53bnkizBxKai1g61f2Xit700A1ljowpTIM11e3uipOeiPcSqnmBg6gyiaA==} + /vue/3.2.47: + resolution: {integrity: sha512-60188y/9Dc9WVrAZeUVSDxRQOZ+z+y5nO2ts9jWXSTkMvayiWxCWOWtBQoYjLeccfXkiiPZWAHcV+WTPhkqJHQ==} dependencies: - '@vue/compiler-dom': 3.2.45 - '@vue/compiler-sfc': 3.2.45 - '@vue/runtime-dom': 3.2.45 - '@vue/server-renderer': 3.2.45_vue@3.2.45 - '@vue/shared': 3.2.45 + '@vue/compiler-dom': 3.2.47 + '@vue/compiler-sfc': 3.2.47 + '@vue/runtime-dom': 3.2.47 + '@vue/server-renderer': 3.2.47_vue@3.2.47 + '@vue/shared': 3.2.47 dev: true /webidl-conversions/3.0.1: From 664af18d1a45a3deb7055d82cb4816fe841d05e4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 14:49:08 +0100 Subject: [PATCH 15/21] chore(deps): update dependency prettier to v2.8.4 (#1824) 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 778b1dc40c7..d51b5112016 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "glob": "~8.1.0", "npm-run-all": "~4.1.5", "picocolors": "~1.0.0", - "prettier": "2.8.3", + "prettier": "2.8.4", "prettier-plugin-organize-imports": "~3.2.2", "react": "~18.2.0", "react-dom": "~18.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0eb4c56e724..f6d2053f6d7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,7 +29,7 @@ specifiers: glob: ~8.1.0 npm-run-all: ~4.1.5 picocolors: ~1.0.0 - prettier: 2.8.3 + prettier: 2.8.4 prettier-plugin-organize-imports: ~3.2.2 react: ~18.2.0 react-dom: ~18.2.0 @@ -72,12 +72,12 @@ devDependencies: eslint-define-config: 1.15.0 eslint-gitignore: 0.1.0_eslint@8.34.0 eslint-plugin-jsdoc: 39.9.1_eslint@8.34.0 - eslint-plugin-prettier: 4.2.1_cj7mvq5o3dqsflion44kvn3oja + eslint-plugin-prettier: 4.2.1_u5wnrdwibbfomslmnramz52buy glob: 8.1.0 npm-run-all: 4.1.5 picocolors: 1.0.0 - prettier: 2.8.3 - prettier-plugin-organize-imports: 3.2.2_uhxzhaxu465qzax2tftpee5s7i + prettier: 2.8.4 + prettier-plugin-organize-imports: 3.2.2_45dervw7mr3js2ivl662udye7u react: 18.2.0 react-dom: 18.2.0_react@18.2.0 rimraf: 4.1.2 @@ -2729,7 +2729,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier/4.2.1_cj7mvq5o3dqsflion44kvn3oja: + /eslint-plugin-prettier/4.2.1_u5wnrdwibbfomslmnramz52buy: resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -2742,7 +2742,7 @@ packages: dependencies: eslint: 8.34.0 eslint-config-prettier: 8.6.0_eslint@8.34.0 - prettier: 2.8.3 + prettier: 2.8.4 prettier-linter-helpers: 1.0.0 dev: true @@ -4317,7 +4317,7 @@ packages: fast-diff: 1.2.0 dev: true - /prettier-plugin-organize-imports/3.2.2_uhxzhaxu465qzax2tftpee5s7i: + /prettier-plugin-organize-imports/3.2.2_45dervw7mr3js2ivl662udye7u: resolution: {integrity: sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4330,12 +4330,12 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 2.8.3 + prettier: 2.8.4 typescript: 4.9.4 dev: true - /prettier/2.8.3: - resolution: {integrity: sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==} + /prettier/2.8.4: + resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==} engines: {node: '>=10.13.0'} hasBin: true dev: true From 0b3b0a6a79665f9fe305d14219bf7d1748685613 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 16:34:14 +0100 Subject: [PATCH 16/21] chore(deps): update pnpm to v7.27.0 (#1829) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d51b5112016..a025d9461ef 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,7 @@ "vitest": "~0.28.3", "vue": "~3.2.47" }, - "packageManager": "pnpm@7.26.2", + "packageManager": "pnpm@7.27.0", "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0", "npm": ">=6.14.13" From d3ec24fca68d48ef0e7547588128a60874239c62 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 18:02:06 +0100 Subject: [PATCH 17/21] chore(deps): update dependency eslint-plugin-jsdoc to v40 (#1831) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a025d9461ef..54b734e42b1 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "eslint-config-prettier": "~8.6.0", "eslint-define-config": "~1.15.0", "eslint-gitignore": "~0.1.0", - "eslint-plugin-jsdoc": "~39.9.1", + "eslint-plugin-jsdoc": "~40.0.0", "eslint-plugin-prettier": "~4.2.1", "glob": "~8.1.0", "npm-run-all": "~4.1.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f6d2053f6d7..77bdbafe226 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ specifiers: eslint-config-prettier: ~8.6.0 eslint-define-config: ~1.15.0 eslint-gitignore: ~0.1.0 - eslint-plugin-jsdoc: ~39.9.1 + eslint-plugin-jsdoc: ~40.0.0 eslint-plugin-prettier: ~4.2.1 glob: ~8.1.0 npm-run-all: ~4.1.5 @@ -71,7 +71,7 @@ devDependencies: eslint-config-prettier: 8.6.0_eslint@8.34.0 eslint-define-config: 1.15.0 eslint-gitignore: 0.1.0_eslint@8.34.0 - eslint-plugin-jsdoc: 39.9.1_eslint@8.34.0 + eslint-plugin-jsdoc: 40.0.0_eslint@8.34.0 eslint-plugin-prettier: 4.2.1_u5wnrdwibbfomslmnramz52buy glob: 8.1.0 npm-run-all: 4.1.5 @@ -2711,8 +2711,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc/39.9.1_eslint@8.34.0: - resolution: {integrity: sha512-Rq2QY6BZP2meNIs48aZ3GlIlJgBqFCmR55+UBvaDkA3ZNQ0SvQXOs2QKkubakEijV8UbIVbVZKsOVN8G3MuqZw==} + /eslint-plugin-jsdoc/40.0.0_eslint@8.34.0: + resolution: {integrity: sha512-LOPyIu1vAVvGPkye3ci0moj0iNf3f8bmin6do2DYDj+77NRXWnkmhKRy8swWsatUs3mB5jYPWPUsFg9pyfEiyA==} engines: {node: ^14 || ^16 || ^17 || ^18 || ^19} peerDependencies: eslint: ^7.0.0 || ^8.0.0 From 2be5fa10cac650c64272ae10ec49b4bc75612eee Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 19:36:01 +0100 Subject: [PATCH 18/21] chore(deps): update vitest to ~0.28.5 (#1827) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 6 ++--- pnpm-lock.yaml | 64 +++++++++++++++++++++++++------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index 54b734e42b1..72ab863975d 100644 --- a/package.json +++ b/package.json @@ -93,8 +93,8 @@ "@types/validator": "~13.7.12", "@typescript-eslint/eslint-plugin": "~5.49.0", "@typescript-eslint/parser": "~5.49.0", - "@vitest/coverage-c8": "~0.28.3", - "@vitest/ui": "~0.28.3", + "@vitest/coverage-c8": "~0.28.5", + "@vitest/ui": "~0.28.5", "@vueuse/core": "~9.12.0", "c8": "~7.12.0", "conventional-changelog-cli": "~2.2.2", @@ -124,7 +124,7 @@ "validator": "~13.9.0", "vite": "~4.1.1", "vitepress": "1.0.0-alpha.43", - "vitest": "~0.28.3", + "vitest": "~0.28.5", "vue": "~3.2.47" }, "packageManager": "pnpm@7.27.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 77bdbafe226..a0266cbe104 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ specifiers: '@types/validator': ~13.7.12 '@typescript-eslint/eslint-plugin': ~5.49.0 '@typescript-eslint/parser': ~5.49.0 - '@vitest/coverage-c8': ~0.28.3 - '@vitest/ui': ~0.28.3 + '@vitest/coverage-c8': ~0.28.5 + '@vitest/ui': ~0.28.5 '@vueuse/core': ~9.12.0 c8: ~7.12.0 conventional-changelog-cli: ~2.2.2 @@ -44,7 +44,7 @@ specifiers: validator: ~13.9.0 vite: ~4.1.1 vitepress: 1.0.0-alpha.43 - vitest: ~0.28.3 + vitest: ~0.28.5 vue: ~3.2.47 devDependencies: @@ -60,8 +60,8 @@ devDependencies: '@types/validator': 13.7.12 '@typescript-eslint/eslint-plugin': 5.49.0_7dxbntiiyor6pm5ihvuwc6x2jm '@typescript-eslint/parser': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a - '@vitest/coverage-c8': 0.28.3_@vitest+ui@0.28.3 - '@vitest/ui': 0.28.3 + '@vitest/coverage-c8': 0.28.5_@vitest+ui@0.28.5 + '@vitest/ui': 0.28.5 '@vueuse/core': 9.12.0_vue@3.2.47 c8: 7.12.0 conventional-changelog-cli: 2.2.2 @@ -91,7 +91,7 @@ devDependencies: validator: 13.9.0 vite: 4.1.1_@types+node@18.13.0 vitepress: 1.0.0-alpha.43_3d47u4w3h5jmftc6ayxv55hpee - vitest: 0.28.3_@vitest+ui@0.28.3 + vitest: 0.28.5_@vitest+ui@0.28.5 vue: 3.2.47 packages: @@ -1226,13 +1226,13 @@ packages: vue: 3.2.47 dev: true - /@vitest/coverage-c8/0.28.3_@vitest+ui@0.28.3: - resolution: {integrity: sha512-3Toi4flNyxwSSYohhV3/euFSyrHjaD9vJVwFVcy84lcRHMEkv0W7pxlqZZeCvPdktN+WETbNazx3WWBs0jqhVQ==} + /@vitest/coverage-c8/0.28.5_@vitest+ui@0.28.5: + resolution: {integrity: sha512-zCNyurjudoG0BAqAgknvlBhkV2V9ZwyYLWOAGtHSDhL/St49MJT+V2p1G0yPaoqBbKOTATVnP5H2p1XL15H75g==} dependencies: c8: 7.12.0 picocolors: 1.0.0 std-env: 3.3.1 - vitest: 0.28.3_@vitest+ui@0.28.3 + vitest: 0.28.5_@vitest+ui@0.28.5 transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -1247,30 +1247,30 @@ packages: - terser dev: true - /@vitest/expect/0.28.3: - resolution: {integrity: sha512-dnxllhfln88DOvpAK1fuI7/xHwRgTgR4wdxHldPaoTaBu6Rh9zK5b//v/cjTkhOfNP/AJ8evbNO8H7c3biwd1g==} + /@vitest/expect/0.28.5: + resolution: {integrity: sha512-gqTZwoUTwepwGIatnw4UKpQfnoyV0Z9Czn9+Lo2/jLIt4/AXLTn+oVZxlQ7Ng8bzcNkR+3DqLJ08kNr8jRmdNQ==} dependencies: - '@vitest/spy': 0.28.3 - '@vitest/utils': 0.28.3 + '@vitest/spy': 0.28.5 + '@vitest/utils': 0.28.5 chai: 4.3.7 dev: true - /@vitest/runner/0.28.3: - resolution: {integrity: sha512-P0qYbATaemy1midOLkw7qf8jraJszCoEvjQOSlseiXZyEDaZTZ50J+lolz2hWiWv6RwDu1iNseL9XLsG0Jm2KQ==} + /@vitest/runner/0.28.5: + resolution: {integrity: sha512-NKkHtLB+FGjpp5KmneQjTcPLWPTDfB7ie+MmF1PnUBf/tGe2OjGxWyB62ySYZ25EYp9krR5Bw0YPLS/VWh1QiA==} dependencies: - '@vitest/utils': 0.28.3 + '@vitest/utils': 0.28.5 p-limit: 4.0.0 pathe: 1.1.0 dev: true - /@vitest/spy/0.28.3: - resolution: {integrity: sha512-jULA6suS6CCr9VZfr7/9x97pZ0hC55prnUNHNrg5/q16ARBY38RsjsfhuUXt6QOwvIN3BhSS0QqPzyh5Di8g6w==} + /@vitest/spy/0.28.5: + resolution: {integrity: sha512-7if6rsHQr9zbmvxN7h+gGh2L9eIIErgf8nSKYDlg07HHimCxp4H6I/X/DPXktVPPLQfiZ1Cw2cbDIx9fSqDjGw==} dependencies: tinyspy: 1.0.2 dev: true - /@vitest/ui/0.28.3: - resolution: {integrity: sha512-pbr9VySq2PJhaQP06Fq9c6Ra1wSUY1gnNEVhuwVU1yhqz78WdsO3rqREu7GSqEpAr6oZfwpBOUVzW87C2lNGYw==} + /@vitest/ui/0.28.5: + resolution: {integrity: sha512-hzzZzv38mH/LMFh54QEJpWFuGixZZBOD+C0fHU81d1lsvochPwNZhWJbuRJQNyZLSMZYCYW4hF6PpNQJXDHDmg==} dependencies: fast-glob: 3.2.12 flatted: 3.2.7 @@ -1279,8 +1279,8 @@ packages: sirv: 2.0.2 dev: true - /@vitest/utils/0.28.3: - resolution: {integrity: sha512-YHiQEHQqXyIbhDqETOJUKx9/psybF7SFFVCNfOvap0FvyUqbzTSDCa3S5lL4C0CLXkwVZttz9xknDoyHMguFRQ==} + /@vitest/utils/0.28.5: + resolution: {integrity: sha512-UyZdYwdULlOa4LTUSwZ+Paz7nBHGTT72jKwdFSV4IjHF1xsokp+CabMdhjvVhYwkLfO88ylJT46YMilnkSARZA==} dependencies: cli-truncate: 3.1.0 diff: 5.1.0 @@ -5262,8 +5262,8 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node/0.28.3_@types+node@18.13.0: - resolution: {integrity: sha512-uJJAOkgVwdfCX8PUQhqLyDOpkBS5+j+FdbsXoPVPDlvVjRkb/W/mLYQPSL6J+t8R0UV8tJSe8c9VyxVQNsDSyg==} + /vite-node/0.28.5_@types+node@18.13.0: + resolution: {integrity: sha512-LmXb9saMGlrMZbXTvOveJKwMTBTNUH66c8rJnQ0ZPNX+myPEol64+szRzXtV5ORb0Hb/91yq+/D3oERoyAt6LA==} engines: {node: '>=v14.16.0'} hasBin: true dependencies: @@ -5346,8 +5346,8 @@ packages: - terser dev: true - /vitest/0.28.3_@vitest+ui@0.28.3: - resolution: {integrity: sha512-N41VPNf3VGJlWQizGvl1P5MGyv3ZZA2Zvh+2V8L6tYBAAuqqDK4zExunT1Cdb6dGfZ4gr+IMrnG8d4Z6j9ctPw==} + /vitest/0.28.5_@vitest+ui@0.28.5: + resolution: {integrity: sha512-pyCQ+wcAOX7mKMcBNkzDwEHRGqQvHUl0XnoHR+3Pb1hytAHISgSxv9h0gUiSiYtISXUU3rMrKiKzFYDrI6ZIHA==} engines: {node: '>=v14.16.0'} hasBin: true peerDependencies: @@ -5371,11 +5371,11 @@ packages: '@types/chai': 4.3.4 '@types/chai-subset': 1.3.3 '@types/node': 18.13.0 - '@vitest/expect': 0.28.3 - '@vitest/runner': 0.28.3 - '@vitest/spy': 0.28.3 - '@vitest/ui': 0.28.3 - '@vitest/utils': 0.28.3 + '@vitest/expect': 0.28.5 + '@vitest/runner': 0.28.5 + '@vitest/spy': 0.28.5 + '@vitest/ui': 0.28.5 + '@vitest/utils': 0.28.5 acorn: 8.8.1 acorn-walk: 8.2.0 cac: 6.7.14 @@ -5391,7 +5391,7 @@ packages: tinypool: 0.3.1 tinyspy: 1.0.2 vite: 4.1.1_@types+node@18.13.0 - vite-node: 0.28.3_@types+node@18.13.0 + vite-node: 0.28.5_@types+node@18.13.0 why-is-node-running: 2.2.2 transitivePeerDependencies: - less From b7f84b7683f53967680c937cd17a434052f0bda2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 19:50:50 +0100 Subject: [PATCH 19/21] chore(deps): update dependency typescript to ~4.9.5 (#1825) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 68 +++++++++++++++++++++++++------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index 72ab863975d..a18a75817f5 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "tsx": "~3.12.3", "typedoc": "~0.23.24", "typedoc-plugin-missing-exports": "~1.0.0", - "typescript": "~4.9.4", + "typescript": "~4.9.5", "validator": "~13.9.0", "vite": "~4.1.1", "vitepress": "1.0.0-alpha.43", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a0266cbe104..9a97c3a39f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,7 +40,7 @@ specifiers: tsx: ~3.12.3 typedoc: ~0.23.24 typedoc-plugin-missing-exports: ~1.0.0 - typescript: ~4.9.4 + typescript: ~4.9.5 validator: ~13.9.0 vite: ~4.1.1 vitepress: 1.0.0-alpha.43 @@ -58,8 +58,8 @@ devDependencies: '@types/sanitize-html': 2.8.0 '@types/semver': 7.3.13 '@types/validator': 13.7.12 - '@typescript-eslint/eslint-plugin': 5.49.0_7dxbntiiyor6pm5ihvuwc6x2jm - '@typescript-eslint/parser': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a + '@typescript-eslint/eslint-plugin': 5.49.0_qrt5nsg2kn4jlcyle4xuxmncq4 + '@typescript-eslint/parser': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm '@vitest/coverage-c8': 0.28.5_@vitest+ui@0.28.5 '@vitest/ui': 0.28.5 '@vueuse/core': 9.12.0_vue@3.2.47 @@ -77,7 +77,7 @@ devDependencies: npm-run-all: 4.1.5 picocolors: 1.0.0 prettier: 2.8.4 - prettier-plugin-organize-imports: 3.2.2_45dervw7mr3js2ivl662udye7u + prettier-plugin-organize-imports: 3.2.2_silln3pw57har7jydmecgzoypa react: 18.2.0 react-dom: 18.2.0_react@18.2.0 rimraf: 4.1.2 @@ -85,9 +85,9 @@ devDependencies: semver: 7.3.8 standard-version: 9.5.0 tsx: 3.12.3 - typedoc: 0.23.24_typescript@4.9.4 + typedoc: 0.23.24_typescript@4.9.5 typedoc-plugin-missing-exports: 1.0.0_typedoc@0.23.24 - typescript: 4.9.4 + typescript: 4.9.5 validator: 13.9.0 vite: 4.1.1_@types+node@18.13.0 vitepress: 1.0.0-alpha.43_3d47u4w3h5jmftc6ayxv55hpee @@ -1086,7 +1086,7 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin/5.49.0_7dxbntiiyor6pm5ihvuwc6x2jm: + /@typescript-eslint/eslint-plugin/5.49.0_qrt5nsg2kn4jlcyle4xuxmncq4: resolution: {integrity: sha512-IhxabIpcf++TBaBa1h7jtOWyon80SXPRLDq0dVz5SLFC/eW6tofkw/O7Ar3lkx5z5U6wzbKDrl2larprp5kk5Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1097,23 +1097,23 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a + '@typescript-eslint/parser': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm '@typescript-eslint/scope-manager': 5.49.0 - '@typescript-eslint/type-utils': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a - '@typescript-eslint/utils': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a + '@typescript-eslint/type-utils': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm + '@typescript-eslint/utils': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm debug: 4.3.4 eslint: 8.34.0 ignore: 5.2.4 natural-compare-lite: 1.4.0 regexpp: 3.2.0 semver: 7.3.8 - tsutils: 3.21.0_typescript@4.9.4 - typescript: 4.9.4 + tsutils: 3.21.0_typescript@4.9.5 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser/5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a: + /@typescript-eslint/parser/5.49.0_7kw3g6rralp5ps6mg3uyzz6azm: resolution: {integrity: sha512-veDlZN9mUhGqU31Qiv2qEp+XrJj5fgZpJ8PW30sHU+j/8/e5ruAhLaVDAeznS7A7i4ucb/s8IozpDtt9NqCkZg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1125,10 +1125,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.49.0 '@typescript-eslint/types': 5.49.0 - '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.4 + '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.5 debug: 4.3.4 eslint: 8.34.0 - typescript: 4.9.4 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true @@ -1141,7 +1141,7 @@ packages: '@typescript-eslint/visitor-keys': 5.49.0 dev: true - /@typescript-eslint/type-utils/5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a: + /@typescript-eslint/type-utils/5.49.0_7kw3g6rralp5ps6mg3uyzz6azm: resolution: {integrity: sha512-eUgLTYq0tR0FGU5g1YHm4rt5H/+V2IPVkP0cBmbhRyEmyGe4XvJ2YJ6sYTmONfjmdMqyMLad7SB8GvblbeESZA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1151,12 +1151,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.4 - '@typescript-eslint/utils': 5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a + '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.5 + '@typescript-eslint/utils': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm debug: 4.3.4 eslint: 8.34.0 - tsutils: 3.21.0_typescript@4.9.4 - typescript: 4.9.4 + tsutils: 3.21.0_typescript@4.9.5 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true @@ -1166,7 +1166,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.49.0_typescript@4.9.4: + /@typescript-eslint/typescript-estree/5.49.0_typescript@4.9.5: resolution: {integrity: sha512-PBdx+V7deZT/3GjNYPVQv1Nc0U46dAHbIuOG8AZ3on3vuEKiPDwFE/lG1snN2eUB9IhF7EyF7K1hmTcLztNIsA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1181,13 +1181,13 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.8 - tsutils: 3.21.0_typescript@4.9.4 - typescript: 4.9.4 + tsutils: 3.21.0_typescript@4.9.5 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils/5.49.0_ehfyfk7qbmgzg5nk6xmobqdh3a: + /@typescript-eslint/utils/5.49.0_7kw3g6rralp5ps6mg3uyzz6azm: resolution: {integrity: sha512-cPJue/4Si25FViIb74sHCLtM4nTSBXtLx1d3/QT6mirQ/c65bV8arBEebBJJizfq8W2YyMoPI/WWPFWitmNqnQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1197,7 +1197,7 @@ packages: '@types/semver': 7.3.13 '@typescript-eslint/scope-manager': 5.49.0 '@typescript-eslint/types': 5.49.0 - '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.4 + '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.5 eslint: 8.34.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0_eslint@8.34.0 @@ -4317,7 +4317,7 @@ packages: fast-diff: 1.2.0 dev: true - /prettier-plugin-organize-imports/3.2.2_45dervw7mr3js2ivl662udye7u: + /prettier-plugin-organize-imports/3.2.2_silln3pw57har7jydmecgzoypa: resolution: {integrity: sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4331,7 +4331,7 @@ packages: optional: true dependencies: prettier: 2.8.4 - typescript: 4.9.4 + typescript: 4.9.5 dev: true /prettier/2.8.4: @@ -5071,14 +5071,14 @@ packages: resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==} dev: true - /tsutils/3.21.0_typescript@4.9.4: + /tsutils/3.21.0_typescript@4.9.5: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - typescript: 4.9.4 + typescript: 4.9.5 dev: true /tsx/3.12.3: @@ -5153,10 +5153,10 @@ packages: peerDependencies: typedoc: 0.22.x || 0.23.x dependencies: - typedoc: 0.23.24_typescript@4.9.4 + typedoc: 0.23.24_typescript@4.9.5 dev: true - /typedoc/0.23.24_typescript@4.9.4: + /typedoc/0.23.24_typescript@4.9.5: resolution: {integrity: sha512-bfmy8lNQh+WrPYcJbtjQ6JEEsVl/ce1ZIXyXhyW+a1vFrjO39t6J8sL/d6FfAGrJTc7McCXgk9AanYBSNvLdIA==} engines: {node: '>= 14.14'} hasBin: true @@ -5167,11 +5167,11 @@ packages: marked: 4.2.5 minimatch: 5.1.2 shiki: 0.12.1 - typescript: 4.9.4 + typescript: 4.9.5 dev: true - /typescript/4.9.4: - resolution: {integrity: sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==} + /typescript/4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true dev: true From b6465fc45c1336b0f89abc551c270fb89d9f19c1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 19:01:17 +0000 Subject: [PATCH 20/21] chore(deps): update typescript-eslint to ~5.52.0 (#1830) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +-- pnpm-lock.yaml | 75 +++++++++++++++++++++++++------------------------- 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index a18a75817f5..e7d4245f9ed 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,8 @@ "@types/sanitize-html": "~2.8.0", "@types/semver": "~7.3.13", "@types/validator": "~13.7.12", - "@typescript-eslint/eslint-plugin": "~5.49.0", - "@typescript-eslint/parser": "~5.49.0", + "@typescript-eslint/eslint-plugin": "~5.52.0", + "@typescript-eslint/parser": "~5.52.0", "@vitest/coverage-c8": "~0.28.5", "@vitest/ui": "~0.28.5", "@vueuse/core": "~9.12.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9a97c3a39f8..f018c6e6a1d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ specifiers: '@types/sanitize-html': ~2.8.0 '@types/semver': ~7.3.13 '@types/validator': ~13.7.12 - '@typescript-eslint/eslint-plugin': ~5.49.0 - '@typescript-eslint/parser': ~5.49.0 + '@typescript-eslint/eslint-plugin': ~5.52.0 + '@typescript-eslint/parser': ~5.52.0 '@vitest/coverage-c8': ~0.28.5 '@vitest/ui': ~0.28.5 '@vueuse/core': ~9.12.0 @@ -58,8 +58,8 @@ devDependencies: '@types/sanitize-html': 2.8.0 '@types/semver': 7.3.13 '@types/validator': 13.7.12 - '@typescript-eslint/eslint-plugin': 5.49.0_qrt5nsg2kn4jlcyle4xuxmncq4 - '@typescript-eslint/parser': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm + '@typescript-eslint/eslint-plugin': 5.52.0_6cfvjsbua5ptj65675bqcn6oza + '@typescript-eslint/parser': 5.52.0_7kw3g6rralp5ps6mg3uyzz6azm '@vitest/coverage-c8': 0.28.5_@vitest+ui@0.28.5 '@vitest/ui': 0.28.5 '@vueuse/core': 9.12.0_vue@3.2.47 @@ -1086,8 +1086,8 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin/5.49.0_qrt5nsg2kn4jlcyle4xuxmncq4: - resolution: {integrity: sha512-IhxabIpcf++TBaBa1h7jtOWyon80SXPRLDq0dVz5SLFC/eW6tofkw/O7Ar3lkx5z5U6wzbKDrl2larprp5kk5Q==} + /@typescript-eslint/eslint-plugin/5.52.0_6cfvjsbua5ptj65675bqcn6oza: + resolution: {integrity: sha512-lHazYdvYVsBokwCdKOppvYJKaJ4S41CgKBcPvyd0xjZNbvQdhn/pnJlGtQksQ/NhInzdaeaSarlBjDXHuclEbg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -1097,12 +1097,13 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm - '@typescript-eslint/scope-manager': 5.49.0 - '@typescript-eslint/type-utils': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm - '@typescript-eslint/utils': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm + '@typescript-eslint/parser': 5.52.0_7kw3g6rralp5ps6mg3uyzz6azm + '@typescript-eslint/scope-manager': 5.52.0 + '@typescript-eslint/type-utils': 5.52.0_7kw3g6rralp5ps6mg3uyzz6azm + '@typescript-eslint/utils': 5.52.0_7kw3g6rralp5ps6mg3uyzz6azm debug: 4.3.4 eslint: 8.34.0 + grapheme-splitter: 1.0.4 ignore: 5.2.4 natural-compare-lite: 1.4.0 regexpp: 3.2.0 @@ -1113,8 +1114,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.49.0_7kw3g6rralp5ps6mg3uyzz6azm: - resolution: {integrity: sha512-veDlZN9mUhGqU31Qiv2qEp+XrJj5fgZpJ8PW30sHU+j/8/e5ruAhLaVDAeznS7A7i4ucb/s8IozpDtt9NqCkZg==} + /@typescript-eslint/parser/5.52.0_7kw3g6rralp5ps6mg3uyzz6azm: + resolution: {integrity: sha512-e2KiLQOZRo4Y0D/b+3y08i3jsekoSkOYStROYmPUnGMEoA0h+k2qOH5H6tcjIc68WDvGwH+PaOrP1XRzLJ6QlA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1123,9 +1124,9 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.49.0 - '@typescript-eslint/types': 5.49.0 - '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.5 + '@typescript-eslint/scope-manager': 5.52.0 + '@typescript-eslint/types': 5.52.0 + '@typescript-eslint/typescript-estree': 5.52.0_typescript@4.9.5 debug: 4.3.4 eslint: 8.34.0 typescript: 4.9.5 @@ -1133,16 +1134,16 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager/5.49.0: - resolution: {integrity: sha512-clpROBOiMIzpbWNxCe1xDK14uPZh35u4QaZO1GddilEzoCLAEz4szb51rBpdgurs5k2YzPtJeTEN3qVbG+LRUQ==} + /@typescript-eslint/scope-manager/5.52.0: + resolution: {integrity: sha512-AR7sxxfBKiNV0FWBSARxM8DmNxrwgnYMPwmpkC1Pl1n+eT8/I2NAUPuwDy/FmDcC6F8pBfmOcaxcxRHspgOBMw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.49.0 - '@typescript-eslint/visitor-keys': 5.49.0 + '@typescript-eslint/types': 5.52.0 + '@typescript-eslint/visitor-keys': 5.52.0 dev: true - /@typescript-eslint/type-utils/5.49.0_7kw3g6rralp5ps6mg3uyzz6azm: - resolution: {integrity: sha512-eUgLTYq0tR0FGU5g1YHm4rt5H/+V2IPVkP0cBmbhRyEmyGe4XvJ2YJ6sYTmONfjmdMqyMLad7SB8GvblbeESZA==} + /@typescript-eslint/type-utils/5.52.0_7kw3g6rralp5ps6mg3uyzz6azm: + resolution: {integrity: sha512-tEKuUHfDOv852QGlpPtB3lHOoig5pyFQN/cUiZtpw99D93nEBjexRLre5sQZlkMoHry/lZr8qDAt2oAHLKA6Jw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -1151,8 +1152,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.5 - '@typescript-eslint/utils': 5.49.0_7kw3g6rralp5ps6mg3uyzz6azm + '@typescript-eslint/typescript-estree': 5.52.0_typescript@4.9.5 + '@typescript-eslint/utils': 5.52.0_7kw3g6rralp5ps6mg3uyzz6azm debug: 4.3.4 eslint: 8.34.0 tsutils: 3.21.0_typescript@4.9.5 @@ -1161,13 +1162,13 @@ packages: - supports-color dev: true - /@typescript-eslint/types/5.49.0: - resolution: {integrity: sha512-7If46kusG+sSnEpu0yOz2xFv5nRz158nzEXnJFCGVEHWnuzolXKwrH5Bsf9zsNlOQkyZuk0BZKKoJQI+1JPBBg==} + /@typescript-eslint/types/5.52.0: + resolution: {integrity: sha512-oV7XU4CHYfBhk78fS7tkum+/Dpgsfi91IIDy7fjCyq2k6KB63M6gMC0YIvy+iABzmXThCRI6xpCEyVObBdWSDQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.49.0_typescript@4.9.5: - resolution: {integrity: sha512-PBdx+V7deZT/3GjNYPVQv1Nc0U46dAHbIuOG8AZ3on3vuEKiPDwFE/lG1snN2eUB9IhF7EyF7K1hmTcLztNIsA==} + /@typescript-eslint/typescript-estree/5.52.0_typescript@4.9.5: + resolution: {integrity: sha512-WeWnjanyEwt6+fVrSR0MYgEpUAuROxuAH516WPjUblIrClzYJj0kBbjdnbQXLpgAN8qbEuGywiQsXUVDiAoEuQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -1175,8 +1176,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.49.0 - '@typescript-eslint/visitor-keys': 5.49.0 + '@typescript-eslint/types': 5.52.0 + '@typescript-eslint/visitor-keys': 5.52.0 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -1187,17 +1188,17 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.49.0_7kw3g6rralp5ps6mg3uyzz6azm: - resolution: {integrity: sha512-cPJue/4Si25FViIb74sHCLtM4nTSBXtLx1d3/QT6mirQ/c65bV8arBEebBJJizfq8W2YyMoPI/WWPFWitmNqnQ==} + /@typescript-eslint/utils/5.52.0_7kw3g6rralp5ps6mg3uyzz6azm: + resolution: {integrity: sha512-As3lChhrbwWQLNk2HC8Ree96hldKIqk98EYvypd3It8Q1f8d5zWyIoaZEp2va5667M4ZyE7X8UUR+azXrFl+NA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: '@types/json-schema': 7.0.11 '@types/semver': 7.3.13 - '@typescript-eslint/scope-manager': 5.49.0 - '@typescript-eslint/types': 5.49.0 - '@typescript-eslint/typescript-estree': 5.49.0_typescript@4.9.5 + '@typescript-eslint/scope-manager': 5.52.0 + '@typescript-eslint/types': 5.52.0 + '@typescript-eslint/typescript-estree': 5.52.0_typescript@4.9.5 eslint: 8.34.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0_eslint@8.34.0 @@ -1207,11 +1208,11 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys/5.49.0: - resolution: {integrity: sha512-v9jBMjpNWyn8B6k/Mjt6VbUS4J1GvUlR4x3Y+ibnP1z7y7V4n0WRz+50DY6+Myj0UaXVSuUlHohO+eZ8IJEnkg==} + /@typescript-eslint/visitor-keys/5.52.0: + resolution: {integrity: sha512-qMwpw6SU5VHCPr99y274xhbm+PRViK/NATY6qzt+Et7+mThGuFSl/ompj2/hrBlRP/kq+BFdgagnOSgw9TB0eA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.49.0 + '@typescript-eslint/types': 5.52.0 eslint-visitor-keys: 3.3.0 dev: true From c46c53948efaf9ccb2597f36954128f914b73179 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 20:34:13 +0100 Subject: [PATCH 21/21] chore(deps): update doc-dependencies (#1826) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- package.json | 6 +- pnpm-lock.yaml | 76 ++++++++++--------- scripts/apidoc/signature.ts | 2 +- .../__snapshots__/signature.spec.ts.snap | 36 ++++----- 4 files changed, 62 insertions(+), 58 deletions(-) diff --git a/package.json b/package.json index e7d4245f9ed..fb70aa2bd16 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "@types/markdown-it": "~12.2.3", "@types/node": "~18.13.0", "@types/prettier": "~2.7.2", - "@types/react": "~18.0.27", + "@types/react": "~18.0.28", "@types/sanitize-html": "~2.8.0", "@types/semver": "~7.3.13", "@types/validator": "~13.7.12", @@ -118,12 +118,12 @@ "semver": "~7.3.8", "standard-version": "~9.5.0", "tsx": "~3.12.3", - "typedoc": "~0.23.24", + "typedoc": "~0.23.25", "typedoc-plugin-missing-exports": "~1.0.0", "typescript": "~4.9.5", "validator": "~13.9.0", "vite": "~4.1.1", - "vitepress": "1.0.0-alpha.43", + "vitepress": "1.0.0-alpha.46", "vitest": "~0.28.5", "vue": "~3.2.47" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f018c6e6a1d..322333bf537 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,7 +7,7 @@ specifiers: '@types/markdown-it': ~12.2.3 '@types/node': ~18.13.0 '@types/prettier': ~2.7.2 - '@types/react': ~18.0.27 + '@types/react': ~18.0.28 '@types/sanitize-html': ~2.8.0 '@types/semver': ~7.3.13 '@types/validator': ~13.7.12 @@ -38,12 +38,12 @@ specifiers: semver: ~7.3.8 standard-version: ~9.5.0 tsx: ~3.12.3 - typedoc: ~0.23.24 + typedoc: ~0.23.25 typedoc-plugin-missing-exports: ~1.0.0 typescript: ~4.9.5 validator: ~13.9.0 vite: ~4.1.1 - vitepress: 1.0.0-alpha.43 + vitepress: 1.0.0-alpha.46 vitest: ~0.28.5 vue: ~3.2.47 @@ -54,7 +54,7 @@ devDependencies: '@types/markdown-it': 12.2.3 '@types/node': 18.13.0 '@types/prettier': 2.7.2 - '@types/react': 18.0.27 + '@types/react': 18.0.28 '@types/sanitize-html': 2.8.0 '@types/semver': 7.3.13 '@types/validator': 13.7.12 @@ -85,12 +85,12 @@ devDependencies: semver: 7.3.8 standard-version: 9.5.0 tsx: 3.12.3 - typedoc: 0.23.24_typescript@4.9.5 - typedoc-plugin-missing-exports: 1.0.0_typedoc@0.23.24 + typedoc: 0.23.25_typescript@4.9.5 + typedoc-plugin-missing-exports: 1.0.0_typedoc@0.23.25 typescript: 4.9.5 validator: 13.9.0 vite: 4.1.1_@types+node@18.13.0 - vitepress: 1.0.0-alpha.43_3d47u4w3h5jmftc6ayxv55hpee + vitepress: 1.0.0-alpha.46_hzfxhvcwzectry2x7akkc5uh5a vitest: 0.28.5_@vitest+ui@0.28.5 vue: 3.2.47 @@ -315,10 +315,10 @@ packages: resolution: {integrity: sha512-dctFYiwbvDZkksMlsmc7pj6W6By/EjnVXJq5TEPd05MwQe+dcdHJgaIn1c8wfsucxHpIsdrUcgSkACHCq6aIhw==} dev: true - /@docsearch/js/3.3.2_y6lbs4o5th67cuzjdmtw5eqh7a: + /@docsearch/js/3.3.2_hf5ijsloe6gzee4vmv74rvas4u: resolution: {integrity: sha512-k2yiB9attFvKoiYswrRtKhIO+qHuzAj1FHYfFWrKz3wSzB2G6s/7EZL9Rf6iytUo1Ok00LUj2C6mWoOnsUTkxg==} dependencies: - '@docsearch/react': 3.3.2_y6lbs4o5th67cuzjdmtw5eqh7a + '@docsearch/react': 3.3.2_hf5ijsloe6gzee4vmv74rvas4u preact: 10.11.3 transitivePeerDependencies: - '@algolia/client-search' @@ -327,7 +327,7 @@ packages: - react-dom dev: true - /@docsearch/react/3.3.2_y6lbs4o5th67cuzjdmtw5eqh7a: + /@docsearch/react/3.3.2_hf5ijsloe6gzee4vmv74rvas4u: resolution: {integrity: sha512-ugILab2TYKSh6IEHf6Z9xZbOovsYbsdfo60PBj+Bw+oMJ1MHJ7pBt1TTcmPki1hSgg8mysgKy2hDiVdPm7XWSQ==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -344,7 +344,7 @@ packages: '@algolia/autocomplete-core': 1.7.4 '@algolia/autocomplete-preset-algolia': 1.7.4_dk4ct527ug5whbfokpeal2wzha '@docsearch/css': 3.3.2 - '@types/react': 18.0.27 + '@types/react': 18.0.28 algoliasearch: 4.14.3 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -1040,8 +1040,8 @@ packages: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} dev: true - /@types/react/18.0.27: - resolution: {integrity: sha512-3vtRKHgVxu3Jp9t718R9BuzoD4NcQ8YJ5XRzsSKxNDiDonD2MXIT1TmSkenxuCycZJoQT5d2vE8LwWJxBC1gmA==} + /@types/react/18.0.28: + resolution: {integrity: sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 @@ -1491,6 +1491,10 @@ packages: engines: {node: '>=12'} dev: true + /ansi-sequence-parser/1.1.0: + resolution: {integrity: sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ==} + dev: true + /ansi-styles/3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -3848,8 +3852,8 @@ packages: engines: {node: '>=8'} dev: true - /marked/4.2.5: - resolution: {integrity: sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==} + /marked/4.2.12: + resolution: {integrity: sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==} engines: {node: '>= 12'} hasBin: true dev: true @@ -3928,6 +3932,13 @@ packages: brace-expansion: 2.0.1 dev: true + /minimatch/6.2.0: + resolution: {integrity: sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options/4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -4656,17 +4667,10 @@ packages: resolution: {integrity: sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==} dev: true - /shiki/0.12.1: - resolution: {integrity: sha512-aieaV1m349rZINEBkjxh2QbBvFFQOlgqYTNtCal82hHj4dDZ76oMlQIX+C7ryerBTDiga3e5NfH6smjdJ02BbQ==} - dependencies: - jsonc-parser: 3.2.0 - vscode-oniguruma: 1.7.0 - vscode-textmate: 8.0.0 - dev: true - - /shiki/0.13.0: - resolution: {integrity: sha512-QucKtRFyoHgivnde/6tXu+7ZfUhcg02qiFlUSa4X0jQvHVKdtrimWPlbg+q06H2EeNSuj9DcMhtB18GgtDLsmw==} + /shiki/0.14.1: + resolution: {integrity: sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==} dependencies: + ansi-sequence-parser: 1.1.0 jsonc-parser: 3.2.0 vscode-oniguruma: 1.7.0 vscode-textmate: 8.0.0 @@ -5149,25 +5153,25 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: true - /typedoc-plugin-missing-exports/1.0.0_typedoc@0.23.24: + /typedoc-plugin-missing-exports/1.0.0_typedoc@0.23.25: resolution: {integrity: sha512-7s6znXnuAj1eD9KYPyzVzR1lBF5nwAY8IKccP5sdoO9crG4lpd16RoFpLsh2PccJM+I2NASpr0+/NMka6ThwVA==} peerDependencies: typedoc: 0.22.x || 0.23.x dependencies: - typedoc: 0.23.24_typescript@4.9.5 + typedoc: 0.23.25_typescript@4.9.5 dev: true - /typedoc/0.23.24_typescript@4.9.5: - resolution: {integrity: sha512-bfmy8lNQh+WrPYcJbtjQ6JEEsVl/ce1ZIXyXhyW+a1vFrjO39t6J8sL/d6FfAGrJTc7McCXgk9AanYBSNvLdIA==} + /typedoc/0.23.25_typescript@4.9.5: + resolution: {integrity: sha512-O1he153qVyoCgJYSvIyY3bPP1wAJTegZfa6tL3APinSZhJOf8CSd8F/21M6ex8pUY/fuY6n0jAsT4fIuMGA6sA==} engines: {node: '>= 14.14'} hasBin: true peerDependencies: typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x dependencies: lunr: 2.3.9 - marked: 4.2.5 - minimatch: 5.1.2 - shiki: 0.12.1 + marked: 4.2.12 + minimatch: 6.2.0 + shiki: 0.14.1 typescript: 4.9.5 dev: true @@ -5320,17 +5324,17 @@ packages: fsevents: 2.3.2 dev: true - /vitepress/1.0.0-alpha.43_3d47u4w3h5jmftc6ayxv55hpee: - resolution: {integrity: sha512-bguPWYojF371vIfTY8jGmKeFroRe6UVGmDp3+PjTnVq57wTlz9x88OKm6KKF4l/1D7GugkHex5X9wNcOdCmCiQ==} + /vitepress/1.0.0-alpha.46_hzfxhvcwzectry2x7akkc5uh5a: + resolution: {integrity: sha512-HiKiHzC0iTPsRsKs8XcsMeMzCpcCt5LWcX9mpDr288Ju+nQf1G8A2+Wm44ZkBsVv4EHxFK4ChmWyZrL1OJUXpg==} hasBin: true dependencies: '@docsearch/css': 3.3.2 - '@docsearch/js': 3.3.2_y6lbs4o5th67cuzjdmtw5eqh7a + '@docsearch/js': 3.3.2_hf5ijsloe6gzee4vmv74rvas4u '@vitejs/plugin-vue': 4.0.0_vite@4.1.1+vue@3.2.47 '@vue/devtools-api': 6.5.0 '@vueuse/core': 9.12.0_vue@3.2.47 body-scroll-lock: 4.0.0-beta.0 - shiki: 0.13.0 + shiki: 0.14.1 vite: 4.1.1_@types+node@18.13.0 vue: 3.2.47 transitivePeerDependencies: diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 9cdd7924fc8..d9e1cc440cb 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -70,7 +70,7 @@ const htmlSanitizeOptions: sanitizeHtml.IOptions = { a: ['href', 'target', 'rel'], button: ['class', 'title'], div: ['class'], - pre: ['class', 'v-pre'], + pre: ['class', 'tabindex', 'v-pre'], span: ['class', 'style'], }, selfClosing: [], diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index cb8ff8828d3..23b3867a4ca 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -5,7 +5,7 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` "deprecated": false, "description": "

Complex array parameter.

", - "examples": "
ts
faker.complexArrayParameter<T>(array: readonly Array<{
+  "examples": "
ts
faker.complexArrayParameter<T>(array: readonly Array<{
   value: T,
   weight: number
 }>): T
@@ -54,7 +54,7 @@ exports[`signature > analyzeSignature() > defaultBooleanParamMethod 1`] = `
   "deprecated": false,
   "description": "

Test with a default parameter.

", - "examples": "
ts
faker.defaultBooleanParamMethod(c: boolean = true): number
+  "examples": "
ts
faker.defaultBooleanParamMethod(c: boolean = true): number
 
", "name": "defaultBooleanParamMethod", @@ -103,7 +103,7 @@ exports[`signature > analyzeSignature() > functionParamMethod 1`] = ` "deprecated": false, "description": "

Test with a function parameters.

", - "examples": "
ts
faker.functionParamMethod(fn: (a: string) => number): number
+  "examples": "
ts
faker.functionParamMethod(fn: (a: string) => number): number
 
", "name": "functionParamMethod", @@ -129,7 +129,7 @@ exports[`signature > analyzeSignature() > literalUnionParamMethod 1`] = ` "deprecated": false, "description": "

Test with LiteralUnion.

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

Test with deprecated and see marker.

", - "examples": "
ts
faker.methodWithDeprecated(): number
+  "examples": "
ts
faker.methodWithDeprecated(): number
 
", "name": "methodWithDeprecated", @@ -210,7 +210,7 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "deprecated": false, "description": "

Test with example marker.

", - "examples": "
ts
faker.methodWithExample(): number
+  "examples": "
ts
faker.methodWithExample(): number
 test.apidoc.methodWithExample() // 0
 
", @@ -229,7 +229,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "deprecated": false, "description": "

Test with multiple see markers.

", - "examples": "
ts
faker.methodWithMultipleSeeMarkers(): number
+  "examples": "
ts
faker.methodWithMultipleSeeMarkers(): number
 
", "name": "methodWithMultipleSeeMarkers", @@ -250,7 +250,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "deprecated": false, "description": "

Test with multiple see markers and backticks.

", - "examples": "
ts
faker.methodWithMultipleSeeMarkersAndBackticks(): number
+  "examples": "
ts
faker.methodWithMultipleSeeMarkersAndBackticks(): number
 
", "name": "methodWithMultipleSeeMarkersAndBackticks", @@ -271,7 +271,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "deprecated": false, "description": "

Test with since marker.

", - "examples": "
ts
faker.methodWithSinceMarker(): number
+  "examples": "
ts
faker.methodWithSinceMarker(): number
 
", "name": "methodWithSinceMarker", @@ -289,7 +289,7 @@ exports[`signature > analyzeSignature() > multiParamMethod 1`] = ` "deprecated": false, "description": "

Test with multiple parameters.

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

Test with no parameters.

", - "examples": "
ts
faker.noParamMethod(): number
+  "examples": "
ts
faker.noParamMethod(): number
 
", "name": "noParamMethod", @@ -347,7 +347,7 @@ exports[`signature > analyzeSignature() > optionalStringParamMethod 1`] = ` "deprecated": false, "description": "

Test with an optional parameter.

", - "examples": "
ts
faker.optionalStringParamMethod(b?: string): number
+  "examples": "
ts
faker.optionalStringParamMethod(b?: string): number
 
", "name": "optionalStringParamMethod", @@ -373,7 +373,7 @@ exports[`signature > analyzeSignature() > optionsInlineParamMethodWithDefaults 1 "deprecated": false, "description": "

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

", - "examples": "
ts
faker.optionsInlineParamMethodWithDefaults(a: {
+  "examples": "
ts
faker.optionsInlineParamMethodWithDefaults(a: {
   value: number
 } = { value: 1 }, b: {
   value: number
@@ -442,7 +442,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault
   "deprecated": false,
   "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
faker.optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
+  "examples": "
ts
faker.optionsInterfaceParamMethodWithDefaults(a: ParameterOptionsInterfaceA = { value: 1 }, b: ParameterOptionsInterfaceB = { value: 1 }, c: ParameterOptionsInterfaceC): number
 
", "name": "optionsInterfaceParamMethodWithDefaults", @@ -482,7 +482,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "deprecated": false, "description": "

Test with a function parameters.

", - "examples": "
ts
faker.optionsParamMethod(options: {
+  "examples": "
ts
faker.optionsParamMethod(options: {
   a: number,
   b: string,
   c: boolean,
@@ -541,7 +541,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`]
   "deprecated": false,
   "description": "

Test with a function parameters with defaults.

", - "examples": "
ts
faker.optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
+  "examples": "
ts
faker.optionsTypeParamMethodWithDefaults(a: ParameterOptionsTypeA = { value: 1 }, b: ParameterOptionsTypeB = { value: 1 }, c: ParameterOptionsTypeC): number
 
", "name": "optionsTypeParamMethodWithDefaults", @@ -581,7 +581,7 @@ exports[`signature > analyzeSignature() > requiredNumberParamMethod 1`] = ` "deprecated": false, "description": "

Test with a required parameter.

", - "examples": "
ts
faker.requiredNumberParamMethod(a: number): number
+  "examples": "
ts
faker.requiredNumberParamMethod(a: number): number
 
", "name": "requiredNumberParamMethod", @@ -607,7 +607,7 @@ exports[`signature > analyzeSignature() > stringUnionParamMethod 1`] = ` "deprecated": false, "description": "

Test with string union.

", - "examples": "
ts
faker.stringUnionParamMethod(value: 'a' | 'b'): string
+  "examples": "
ts
faker.stringUnionParamMethod(value: 'a' | 'b'): string
 
", "name": "stringUnionParamMethod",