diff --git a/docs/guide/localization.md b/docs/guide/localization.md index b3610c4d604..44392f977ab 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -137,6 +137,7 @@ In this example there are 5 locales. Each of these is checked in order, and the | `uk` | Ukrainian | `fakerUK` | | `ur` | Urdu | `fakerUR` | | `vi` | Vietnamese | `fakerVI` | +| `yo_NG` | Yoruba (Nigeria) | `fakerYO_NG` | | `zh_CN` | Chinese (China) | `fakerZH_CN` | | `zh_TW` | Chinese (Taiwan) | `fakerZH_TW` | | `zu_ZA` | Zulu (South Africa) | `fakerZU_ZA` | diff --git a/package.json b/package.json index 491cb1273e4..fc7b8d13a08 100644 --- a/package.json +++ b/package.json @@ -90,27 +90,27 @@ "@actions/github": "~5.1.1", "@algolia/client-search": "~4.19.1", "@types/markdown-it": "~13.0.1", - "@types/node": "~20.5.7", + "@types/node": "~20.5.9", "@types/sanitize-html": "~2.9.0", - "@types/semver": "~7.5.0", + "@types/semver": "~7.5.1", "@types/validator": "~13.11.1", - "@typescript-eslint/eslint-plugin": "~6.4.1", - "@typescript-eslint/parser": "~6.4.1", + "@typescript-eslint/eslint-plugin": "~6.5.0", + "@typescript-eslint/parser": "~6.5.0", "@vitest/coverage-v8": "~0.34.3", "@vitest/ui": "~0.34.3", "@vueuse/core": "~10.4.1", "conventional-changelog-cli": "~4.0.0", - "cypress": "~13.0.0", + "cypress": "~13.1.0", "esbuild": "~0.19.2", "eslint": "~8.48.0", "eslint-config-prettier": "~9.0.0", "eslint-define-config": "~1.23.0", "eslint-gitignore": "~0.1.0", "eslint-plugin-deprecation": "~1.5.0", - "eslint-plugin-jsdoc": "~46.5.0", + "eslint-plugin-jsdoc": "~46.5.1", "eslint-plugin-prettier": "~5.0.0", - "eslint-plugin-vitest": "~0.2.8", - "glob": "~10.3.3", + "eslint-plugin-vitest": "~0.3.1", + "glob": "~10.3.4", "npm-run-all": "~4.1.5", "prettier": "3.0.2", "prettier-plugin-organize-imports": "~3.2.3", @@ -118,7 +118,7 @@ "sanitize-html": "~2.11.0", "semver": "~7.5.4", "standard-version": "~9.5.0", - "tsx": "~3.12.7", + "tsx": "~3.12.8", "typedoc": "~0.24.8", "typescript": "~4.9.5", "validator": "~13.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb7b9de3814..66c7e08184e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,23 +11,23 @@ devDependencies: specifier: ~13.0.1 version: 13.0.1 '@types/node': - specifier: ~20.5.7 - version: 20.5.7 + specifier: ~20.5.9 + version: 20.5.9 '@types/sanitize-html': specifier: ~2.9.0 version: 2.9.0 '@types/semver': - specifier: ~7.5.0 - version: 7.5.0 + specifier: ~7.5.1 + version: 7.5.1 '@types/validator': specifier: ~13.11.1 version: 13.11.1 '@typescript-eslint/eslint-plugin': - specifier: ~6.4.1 - version: 6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5) + specifier: ~6.5.0 + version: 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ~6.4.1 - version: 6.4.1(eslint@8.48.0)(typescript@4.9.5) + specifier: ~6.5.0 + version: 6.5.0(eslint@8.48.0)(typescript@4.9.5) '@vitest/coverage-v8': specifier: ~0.34.3 version: 0.34.3(vitest@0.34.3) @@ -41,8 +41,8 @@ devDependencies: specifier: ~4.0.0 version: 4.0.0 cypress: - specifier: ~13.0.0 - version: 13.0.0 + specifier: ~13.1.0 + version: 13.1.0 esbuild: specifier: ~0.19.2 version: 0.19.2 @@ -62,17 +62,17 @@ devDependencies: specifier: ~1.5.0 version: 1.5.0(eslint@8.48.0)(typescript@4.9.5) eslint-plugin-jsdoc: - specifier: ~46.5.0 - version: 46.5.0(eslint@8.48.0) + specifier: ~46.5.1 + version: 46.5.1(eslint@8.48.0) eslint-plugin-prettier: specifier: ~5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.48.0)(prettier@3.0.2) eslint-plugin-vitest: - specifier: ~0.2.8 - version: 0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.3) + specifier: ~0.3.1 + version: 0.3.1(@typescript-eslint/eslint-plugin@6.5.0)(eslint@8.48.0)(vitest@0.34.3) glob: - specifier: ~10.3.3 - version: 10.3.3 + specifier: ~10.3.4 + version: 10.3.4 npm-run-all: specifier: ~4.1.5 version: 4.1.5 @@ -95,8 +95,8 @@ devDependencies: specifier: ~9.5.0 version: 9.5.0 tsx: - specifier: ~3.12.7 - version: 3.12.7 + specifier: ~3.12.8 + version: 3.12.8 typedoc: specifier: ~0.24.8 version: 0.24.8(typescript@4.9.5) @@ -108,10 +108,10 @@ devDependencies: version: 13.11.0 vite: specifier: ~4.4.9 - version: 4.4.9(@types/node@20.5.7) + version: 4.4.9(@types/node@20.5.9) vitepress: specifier: 1.0.0-beta.7 - version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0) + version: 1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.9)(search-insights@2.7.0) vitest: specifier: ~0.34.3 version: 0.34.3(@vitest/ui@0.34.3) @@ -424,26 +424,26 @@ packages: /@esbuild-kit/cjs-loader@2.4.2: resolution: {integrity: sha512-BDXFbYOJzT/NBEtp71cvsrGPwGAMGRB/349rwKuoxNSiKjPraNNnlK6MIIabViCjqZugu6j+xeMDlEkWdHHJSg==} dependencies: - '@esbuild-kit/core-utils': 3.1.0 + '@esbuild-kit/core-utils': 3.2.2 get-tsconfig: 4.6.2 dev: true - /@esbuild-kit/core-utils@3.1.0: - resolution: {integrity: sha512-Uuk8RpCg/7fdHSceR1M6XbSZFSuMrxcePFuGgyvsBn+u339dk5OeL4jv2EojwTN2st/unJGsVm4qHWjWNmJ/tw==} + /@esbuild-kit/core-utils@3.2.2: + resolution: {integrity: sha512-Ub6LaRaAgF80dTSzUdXpFLM1pVDdmEVB9qb5iAzSpyDlX/mfJTFGOnZ516O05p5uWWteNviMKi4PAyEuRxI5gA==} dependencies: - esbuild: 0.17.19 + esbuild: 0.18.20 source-map-support: 0.5.21 dev: true /@esbuild-kit/esm-loader@2.5.5: resolution: {integrity: sha512-Qwfvj/qoPbClxCRNuac1Du01r9gvNOT+pMYtJDapfB1eoGN1YlJ1BixLyL9WVENRx5RXgNLdfYdx/CuswlGhMw==} dependencies: - '@esbuild-kit/core-utils': 3.1.0 + '@esbuild-kit/core-utils': 3.2.2 get-tsconfig: 4.6.2 dev: true - /@esbuild/android-arm64@0.17.19: - resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} + /@esbuild/android-arm64@0.18.18: + resolution: {integrity: sha512-dkAPYzRHq3dNXIzOyAknYOzsx8o3KWaNiuu56B2rP9IFPmFWMS58WQcTlUQi6iloku8ZyHHMluCe5sTWhKq/Yw==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -451,8 +451,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.18.18: - resolution: {integrity: sha512-dkAPYzRHq3dNXIzOyAknYOzsx8o3KWaNiuu56B2rP9IFPmFWMS58WQcTlUQi6iloku8ZyHHMluCe5sTWhKq/Yw==} + /@esbuild/android-arm64@0.18.20: + resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -469,8 +469,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.17.19: - resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} + /@esbuild/android-arm@0.18.18: + resolution: {integrity: sha512-oBymf7ZwplAawSxmiSlBCf+FMcY0f4bs5QP2jn43JKUf0M9DnrUTjqa5RvFPl1elw+sMfcpfBRPK+rb+E1q7zg==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -478,8 +478,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.18.18: - resolution: {integrity: sha512-oBymf7ZwplAawSxmiSlBCf+FMcY0f4bs5QP2jn43JKUf0M9DnrUTjqa5RvFPl1elw+sMfcpfBRPK+rb+E1q7zg==} + /@esbuild/android-arm@0.18.20: + resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -496,8 +496,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.17.19: - resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} + /@esbuild/android-x64@0.18.18: + resolution: {integrity: sha512-r7/pVcrUQMYkjvtE/1/n6BxhWM+/9tvLxDG1ev1ce4z3YsqoxMK9bbOM6bFcj0BowMeGQvOZWcBV182lFFKmrw==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -505,8 +505,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.18.18: - resolution: {integrity: sha512-r7/pVcrUQMYkjvtE/1/n6BxhWM+/9tvLxDG1ev1ce4z3YsqoxMK9bbOM6bFcj0BowMeGQvOZWcBV182lFFKmrw==} + /@esbuild/android-x64@0.18.20: + resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -523,8 +523,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.17.19: - resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} + /@esbuild/darwin-arm64@0.18.18: + resolution: {integrity: sha512-MSe2iV9MAH3wfP0g+vzN9bp36rtPPuCSk+bT5E2vv/d8krvW5uB/Pi/Q5+txUZuxsG3GcO8dhygjnFq0wJU9hQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -532,8 +532,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.18.18: - resolution: {integrity: sha512-MSe2iV9MAH3wfP0g+vzN9bp36rtPPuCSk+bT5E2vv/d8krvW5uB/Pi/Q5+txUZuxsG3GcO8dhygjnFq0wJU9hQ==} + /@esbuild/darwin-arm64@0.18.20: + resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -550,8 +550,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.17.19: - resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} + /@esbuild/darwin-x64@0.18.18: + resolution: {integrity: sha512-ARFYISOWkaifjcr48YtO70gcDNeOf1H2RnmOj6ip3xHIj66f3dAbhcd5Nph5np6oHI7DhHIcr9MWO18RvUL1bw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -559,8 +559,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.18.18: - resolution: {integrity: sha512-ARFYISOWkaifjcr48YtO70gcDNeOf1H2RnmOj6ip3xHIj66f3dAbhcd5Nph5np6oHI7DhHIcr9MWO18RvUL1bw==} + /@esbuild/darwin-x64@0.18.20: + resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -577,8 +577,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.17.19: - resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} + /@esbuild/freebsd-arm64@0.18.18: + resolution: {integrity: sha512-BHnXmexzEWRU2ZySJosU0Ts0NRnJnNrMB6t4EiIaOSel73I8iLsNiTPLH0rJulAh19cYZutsB5XHK6N8fi5eMg==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -586,8 +586,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.18.18: - resolution: {integrity: sha512-BHnXmexzEWRU2ZySJosU0Ts0NRnJnNrMB6t4EiIaOSel73I8iLsNiTPLH0rJulAh19cYZutsB5XHK6N8fi5eMg==} + /@esbuild/freebsd-arm64@0.18.20: + resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -604,8 +604,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.17.19: - resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} + /@esbuild/freebsd-x64@0.18.18: + resolution: {integrity: sha512-n823w35wm0ZOobbuE//0sJjuz1Qj619+AwjgOcAJMN2pomZhH9BONCtn+KlfrmM/NWZ+27yB/eGVFzUIWLeh3w==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -613,8 +613,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.18.18: - resolution: {integrity: sha512-n823w35wm0ZOobbuE//0sJjuz1Qj619+AwjgOcAJMN2pomZhH9BONCtn+KlfrmM/NWZ+27yB/eGVFzUIWLeh3w==} + /@esbuild/freebsd-x64@0.18.20: + resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -631,8 +631,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.17.19: - resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} + /@esbuild/linux-arm64@0.18.18: + resolution: {integrity: sha512-zANxnwF0sCinDcAqoMohGoWBK9QaFJ65Vgh0ZE+RXtURaMwx+RfmfLElqtnn7X8OYNckMoIXSg7u+tZ3tqTlrA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -640,8 +640,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.18.18: - resolution: {integrity: sha512-zANxnwF0sCinDcAqoMohGoWBK9QaFJ65Vgh0ZE+RXtURaMwx+RfmfLElqtnn7X8OYNckMoIXSg7u+tZ3tqTlrA==} + /@esbuild/linux-arm64@0.18.20: + resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -658,8 +658,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.17.19: - resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} + /@esbuild/linux-arm@0.18.18: + resolution: {integrity: sha512-Kck3jxPLQU4VeAGwe8Q4NU+IWIx+suULYOFUI9T0C2J1+UQlOHJ08ITN+MaJJ+2youzJOmKmcphH/t3SJxQ1Tw==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -667,8 +667,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.18.18: - resolution: {integrity: sha512-Kck3jxPLQU4VeAGwe8Q4NU+IWIx+suULYOFUI9T0C2J1+UQlOHJ08ITN+MaJJ+2youzJOmKmcphH/t3SJxQ1Tw==} + /@esbuild/linux-arm@0.18.20: + resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -685,8 +685,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.17.19: - resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} + /@esbuild/linux-ia32@0.18.18: + resolution: {integrity: sha512-+VHz2sIRlY5u8IlaLJpdf5TL2kM76yx186pW7bpTB+vLWpzcFQVP04L842ZB2Ty13A1VXUvy3DbU1jV65P2skg==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -694,8 +694,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.18.18: - resolution: {integrity: sha512-+VHz2sIRlY5u8IlaLJpdf5TL2kM76yx186pW7bpTB+vLWpzcFQVP04L842ZB2Ty13A1VXUvy3DbU1jV65P2skg==} + /@esbuild/linux-ia32@0.18.20: + resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -712,8 +712,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.17.19: - resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} + /@esbuild/linux-loong64@0.18.18: + resolution: {integrity: sha512-fXPEPdeGBvguo/1+Na8OIWz3667BN1cwbGtTEZWTd0qdyTsk5gGf9jVX8MblElbDb/Cpw6y5JiaQuL96YmvBwQ==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -721,8 +721,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.18.18: - resolution: {integrity: sha512-fXPEPdeGBvguo/1+Na8OIWz3667BN1cwbGtTEZWTd0qdyTsk5gGf9jVX8MblElbDb/Cpw6y5JiaQuL96YmvBwQ==} + /@esbuild/linux-loong64@0.18.20: + resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -739,8 +739,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.17.19: - resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} + /@esbuild/linux-mips64el@0.18.18: + resolution: {integrity: sha512-dLvRB87pIBIRnEIC32LIcgwK1JzlIuADIRjLKdUIpxauKwMuS/xMpN+cFl+0nN4RHNYOZ57DmXFFmQAcdlFOmw==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -748,8 +748,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.18.18: - resolution: {integrity: sha512-dLvRB87pIBIRnEIC32LIcgwK1JzlIuADIRjLKdUIpxauKwMuS/xMpN+cFl+0nN4RHNYOZ57DmXFFmQAcdlFOmw==} + /@esbuild/linux-mips64el@0.18.20: + resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -766,8 +766,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.17.19: - resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} + /@esbuild/linux-ppc64@0.18.18: + resolution: {integrity: sha512-fRChqIJZ7hLkXSKfBLYgsX9Ssb5OGCjk3dzCETF5QSS1qjTgayLv0ALUdJDB9QOh/nbWwp+qfLZU6md4XcjL7w==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -775,8 +775,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.18.18: - resolution: {integrity: sha512-fRChqIJZ7hLkXSKfBLYgsX9Ssb5OGCjk3dzCETF5QSS1qjTgayLv0ALUdJDB9QOh/nbWwp+qfLZU6md4XcjL7w==} + /@esbuild/linux-ppc64@0.18.20: + resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -793,8 +793,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.17.19: - resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} + /@esbuild/linux-riscv64@0.18.18: + resolution: {integrity: sha512-ALK/BT3u7Hoa/vHjow6W6+MKF0ohYcVcVA1EpskI4bkBPVuDLrUDqt2YFifg5UcZc8qup0CwQqWmFUd6VMNgaA==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -802,8 +802,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.18.18: - resolution: {integrity: sha512-ALK/BT3u7Hoa/vHjow6W6+MKF0ohYcVcVA1EpskI4bkBPVuDLrUDqt2YFifg5UcZc8qup0CwQqWmFUd6VMNgaA==} + /@esbuild/linux-riscv64@0.18.20: + resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -820,8 +820,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.17.19: - resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} + /@esbuild/linux-s390x@0.18.18: + resolution: {integrity: sha512-crT7jtOXd9iirY65B+mJQ6W0HWdNy8dtkZqKGWNcBnunpLcTCfne5y5bKic9bhyYzKpQEsO+C/VBPD8iF0RhRw==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -829,8 +829,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.18.18: - resolution: {integrity: sha512-crT7jtOXd9iirY65B+mJQ6W0HWdNy8dtkZqKGWNcBnunpLcTCfne5y5bKic9bhyYzKpQEsO+C/VBPD8iF0RhRw==} + /@esbuild/linux-s390x@0.18.20: + resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -847,8 +847,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.17.19: - resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} + /@esbuild/linux-x64@0.18.18: + resolution: {integrity: sha512-/NSgghjBOW9ELqjXDYxOCCIsvQUZpvua1/6NdnA9Vnrp9UzEydyDdFXljUjMMS9p5KxMzbMO9frjHYGVHBfCHg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -856,8 +856,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.18.18: - resolution: {integrity: sha512-/NSgghjBOW9ELqjXDYxOCCIsvQUZpvua1/6NdnA9Vnrp9UzEydyDdFXljUjMMS9p5KxMzbMO9frjHYGVHBfCHg==} + /@esbuild/linux-x64@0.18.20: + resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -874,8 +874,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.17.19: - resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} + /@esbuild/netbsd-x64@0.18.18: + resolution: {integrity: sha512-8Otf05Vx5sZjLLDulgr5QS5lsWXMplKZEyHMArH9/S4olLlhzmdhQBPhzhJTNwaL2FJNdWcUPNGAcoD5zDTfUA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -883,8 +883,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.18.18: - resolution: {integrity: sha512-8Otf05Vx5sZjLLDulgr5QS5lsWXMplKZEyHMArH9/S4olLlhzmdhQBPhzhJTNwaL2FJNdWcUPNGAcoD5zDTfUA==} + /@esbuild/netbsd-x64@0.18.20: + resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -901,8 +901,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.17.19: - resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} + /@esbuild/openbsd-x64@0.18.18: + resolution: {integrity: sha512-tFiFF4kT5L5qhVrWJUNxEXWvvX8nK/UX9ZrB7apuTwY3f6+Xy4aFMBPwAVrBYtBd5MOUuyOVHK6HBZCAHkwUlw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -910,8 +910,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.18.18: - resolution: {integrity: sha512-tFiFF4kT5L5qhVrWJUNxEXWvvX8nK/UX9ZrB7apuTwY3f6+Xy4aFMBPwAVrBYtBd5MOUuyOVHK6HBZCAHkwUlw==} + /@esbuild/openbsd-x64@0.18.20: + resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -928,8 +928,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.17.19: - resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} + /@esbuild/sunos-x64@0.18.18: + resolution: {integrity: sha512-MPogVV8Bzh8os4OM+YDGGsSzCzmNRiyKGtHoJyZLtI4BMmd6EcxmGlcEGK1uM46h1BiOyi7Z7teUtzzQhvkC+w==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -937,8 +937,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.18.18: - resolution: {integrity: sha512-MPogVV8Bzh8os4OM+YDGGsSzCzmNRiyKGtHoJyZLtI4BMmd6EcxmGlcEGK1uM46h1BiOyi7Z7teUtzzQhvkC+w==} + /@esbuild/sunos-x64@0.18.20: + resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -955,8 +955,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.17.19: - resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} + /@esbuild/win32-arm64@0.18.18: + resolution: {integrity: sha512-YKD6LF/XXY9REu+ZL5RAsusiG48n602qxsMVh/E8FFD9hp4OyTQaL9fpE1ovxwQXqFio+tT0ITUGjDSSSPN13w==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -964,8 +964,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.18.18: - resolution: {integrity: sha512-YKD6LF/XXY9REu+ZL5RAsusiG48n602qxsMVh/E8FFD9hp4OyTQaL9fpE1ovxwQXqFio+tT0ITUGjDSSSPN13w==} + /@esbuild/win32-arm64@0.18.20: + resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -982,8 +982,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.17.19: - resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} + /@esbuild/win32-ia32@0.18.18: + resolution: {integrity: sha512-NjSBmBsyZBTsZB6ga6rA6PfG/RHnwruUz/9YEVXcm4STGauFWvhYhOMhEyw1yU5NVgYYm8CH5AltCm77TS21/Q==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -991,8 +991,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.18.18: - resolution: {integrity: sha512-NjSBmBsyZBTsZB6ga6rA6PfG/RHnwruUz/9YEVXcm4STGauFWvhYhOMhEyw1yU5NVgYYm8CH5AltCm77TS21/Q==} + /@esbuild/win32-ia32@0.18.20: + resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -1009,8 +1009,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.17.19: - resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} + /@esbuild/win32-x64@0.18.18: + resolution: {integrity: sha512-eTSg/gC3p3tdjj4roDhe5xu94l1s2jMazP8u2FsYO8SEKvSpPOO71EucprDn/IuErDPvTFUhV9lTw5z5WJCRKQ==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1018,8 +1018,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.18.18: - resolution: {integrity: sha512-eTSg/gC3p3tdjj4roDhe5xu94l1s2jMazP8u2FsYO8SEKvSpPOO71EucprDn/IuErDPvTFUhV9lTw5z5WJCRKQ==} + /@esbuild/win32-x64@0.18.20: + resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -1338,8 +1338,8 @@ packages: resolution: {integrity: sha512-8q9ZexmdYYyc5/cfujaXb4YOucpQxAV4RMG0himLyDUOEr8Mr79VrqsFI+cQ2M2h89YIuy95lbxuYjxT4Hk4kQ==} dev: true - /@types/node@20.5.7: - resolution: {integrity: sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==} + /@types/node@20.5.9: + resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} dev: true /@types/normalize-package-data@2.4.1: @@ -1352,8 +1352,8 @@ packages: htmlparser2: 8.0.2 dev: true - /@types/semver@7.5.0: - resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} + /@types/semver@7.5.1: + resolution: {integrity: sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==} dev: true /@types/sinonjs__fake-timers@8.1.1: @@ -1376,12 +1376,12 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 20.5.7 + '@types/node': 20.5.9 dev: true optional: true - /@typescript-eslint/eslint-plugin@6.4.1(@typescript-eslint/parser@6.4.1)(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-3F5PtBzUW0dYlq77Lcqo13fv+58KDwUib3BddilE8ajPJT+faGgxmI9Sw+I8ZS22BYwoir9ZhNXcLi+S+I2bkw==} + /@typescript-eslint/eslint-plugin@6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-2pktILyjvMaScU6iK3925uvGU87E+N9rh372uGZgiMYwafaw9SXq86U04XPq3UH6tzRvNgBsub6x2DacHc33lw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1392,11 +1392,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.4.1(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/type-utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/parser': 6.5.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/type-utils': 6.5.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 graphemer: 1.4.0 @@ -1409,8 +1409,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-610G6KHymg9V7EqOaNBMtD1GgpAmGROsmfHJPXNLCU9bfIuLrkdOygltK784F6Crboyd5tBFayPB7Sf0McrQwg==} + /@typescript-eslint/parser@6.5.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1419,10 +1419,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/typescript-estree': 6.5.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 typescript: 4.9.5 @@ -1438,24 +1438,16 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/scope-manager@6.2.0: - resolution: {integrity: sha512-1ZMNVgm5nnHURU8ZSJ3snsHzpFeNK84rdZjluEVBGNu7jDymfqceB3kdIZ6A4xCfEFFhRIB6rF8q/JIqJd2R0Q==} + /@typescript-eslint/scope-manager@6.5.0: + resolution: {integrity: sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.2.0 - '@typescript-eslint/visitor-keys': 6.2.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/visitor-keys': 6.5.0 dev: true - /@typescript-eslint/scope-manager@6.4.1: - resolution: {integrity: sha512-p/OavqOQfm4/Hdrr7kvacOSFjwQ2rrDVJRPxt/o0TOWdFnjJptnjnZ+sYDR7fi4OimvIuKp+2LCkc+rt9fIW+A==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/visitor-keys': 6.4.1 - dev: true - - /@typescript-eslint/type-utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-7ON8M8NXh73SGZ5XvIqWHjgX2f+vvaOarNliGhjrJnv1vdjG0LVIz+ToYfPirOoBi56jxAKLfsLm40+RvxVVXA==} + /@typescript-eslint/type-utils@6.5.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1464,8 +1456,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) - '@typescript-eslint/utils': 6.4.1(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 6.5.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.48.0 ts-api-utils: 1.0.1(typescript@4.9.5) @@ -1479,13 +1471,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@6.2.0: - resolution: {integrity: sha512-1nRRaDlp/XYJQLvkQJG5F3uBTno5SHPT7XVcJ5n1/k2WfNI28nJsvLakxwZRNY5spuatEKO7d5nZWsQpkqXwBA==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - - /@typescript-eslint/types@6.4.1: - resolution: {integrity: sha512-zAAopbNuYu++ijY1GV2ylCsQsi3B8QvfPHVqhGdDcbx/NK5lkqMnCGU53amAjccSpk+LfeONxwzUhDzArSfZJg==} + /@typescript-eslint/types@6.5.0: + resolution: {integrity: sha512-eqLLOEF5/lU8jW3Bw+8auf4lZSbbljHR2saKnYqON12G/WsJrGeeDHWuQePoEf9ro22+JkbPfWQwKEC5WwLQ3w==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1510,8 +1497,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.2.0(typescript@4.9.5): - resolution: {integrity: sha512-Mts6+3HQMSM+LZCglsc2yMIny37IhUgp1Qe8yJUYVyO6rHP7/vN0vajKu3JvHCBIy8TSiKddJ/Zwu80jhnGj1w==} + /@typescript-eslint/typescript-estree@6.5.0(typescript@4.9.5): + resolution: {integrity: sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1519,8 +1506,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.2.0 - '@typescript-eslint/visitor-keys': 6.2.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1531,8 +1518,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.4.1(typescript@4.9.5): - resolution: {integrity: sha512-xF6Y7SatVE/OyV93h1xGgfOkHr2iXuo8ip0gbfzaKeGGuKiAnzS+HtVhSPx8Www243bwlW8IF7X0/B62SzFftg==} + /@typescript-eslint/typescript-estree@6.5.0(typescript@5.2.2): + resolution: {integrity: sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1540,14 +1527,14 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/visitor-keys': 6.4.1 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/visitor-keys': 6.5.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - ts-api-utils: 1.0.1(typescript@4.9.5) - typescript: 4.9.5 + ts-api-utils: 1.0.1(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true @@ -1560,7 +1547,7 @@ packages: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 + '@types/semver': 7.5.1 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) @@ -1572,18 +1559,18 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.2.0(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-RCFrC1lXiX1qEZN8LmLrxYRhOkElEsPKTVSNout8DMzf8PeWoQG7Rxz2SadpJa3VSh5oYKGwt7j7X/VRg+Y3OQ==} + /@typescript-eslint/utils@6.5.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.2.0 - '@typescript-eslint/types': 6.2.0 - '@typescript-eslint/typescript-estree': 6.2.0(typescript@4.9.5) + '@types/semver': 7.5.1 + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/typescript-estree': 6.5.0(typescript@4.9.5) eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: @@ -1591,18 +1578,18 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.4.1(eslint@8.48.0)(typescript@4.9.5): - resolution: {integrity: sha512-F/6r2RieNeorU0zhqZNv89s9bDZSovv3bZQpUNOmmQK1L80/cV4KEu95YUJWi75u5PhboFoKUJBnZ4FQcoqhDw==} + /@typescript-eslint/utils@6.5.0(eslint@8.48.0)(typescript@5.2.2): + resolution: {integrity: sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) '@types/json-schema': 7.0.12 - '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.4.1 - '@typescript-eslint/types': 6.4.1 - '@typescript-eslint/typescript-estree': 6.4.1(typescript@4.9.5) + '@types/semver': 7.5.1 + '@typescript-eslint/scope-manager': 6.5.0 + '@typescript-eslint/types': 6.5.0 + '@typescript-eslint/typescript-estree': 6.5.0(typescript@5.2.2) eslint: 8.48.0 semver: 7.5.4 transitivePeerDependencies: @@ -1618,19 +1605,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.2.0: - resolution: {integrity: sha512-QbaYUQVKKo9bgCzpjz45llCfwakyoxHetIy8CAvYCtd16Zu1KrpzNHofwF8kGkpPOxZB2o6kz+0nqH8ZkIzuoQ==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 6.2.0 - eslint-visitor-keys: 3.4.3 - dev: true - - /@typescript-eslint/visitor-keys@6.4.1: - resolution: {integrity: sha512-y/TyRJsbZPkJIZQXrHfdnxVnxyKegnpEvnRGNam7s3TRR2ykGefEWOhaef00/UUN3IZxizS7BTO3svd3lCOJRQ==} + /@typescript-eslint/visitor-keys@6.5.0: + resolution: {integrity: sha512-yCB/2wkbv3hPsh02ZS8dFQnij9VVQXJMN/gbQsaaY+zxALkZnxa/wagvLEFsAWMPv7d7lxQmNsIzGU1w/T/WyA==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.4.1 + '@typescript-eslint/types': 6.5.0 eslint-visitor-keys: 3.4.3 dev: true @@ -1641,7 +1620,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.9(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) vue: 3.3.4 dev: true @@ -2734,8 +2713,8 @@ packages: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} dev: true - /cypress@13.0.0: - resolution: {integrity: sha512-nWHU5dUxP2Wm/zrMd8SWTTl706aJex/l+H4vi/tbu2SWUr17BUcd/sIYeqyxeoSPW1JFV2pT1pf4JEImH/POMg==} + /cypress@13.1.0: + resolution: {integrity: sha512-LUKxCYlB973QBFls1Up4FAE9QIYobT+2I8NvvAwMfQS2YwsWbr6yx7y9hmsk97iqbHkKwZW3MRjoK1RToBFVdQ==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true @@ -3088,36 +3067,6 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild@0.17.19: - resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/android-arm': 0.17.19 - '@esbuild/android-arm64': 0.17.19 - '@esbuild/android-x64': 0.17.19 - '@esbuild/darwin-arm64': 0.17.19 - '@esbuild/darwin-x64': 0.17.19 - '@esbuild/freebsd-arm64': 0.17.19 - '@esbuild/freebsd-x64': 0.17.19 - '@esbuild/linux-arm': 0.17.19 - '@esbuild/linux-arm64': 0.17.19 - '@esbuild/linux-ia32': 0.17.19 - '@esbuild/linux-loong64': 0.17.19 - '@esbuild/linux-mips64el': 0.17.19 - '@esbuild/linux-ppc64': 0.17.19 - '@esbuild/linux-riscv64': 0.17.19 - '@esbuild/linux-s390x': 0.17.19 - '@esbuild/linux-x64': 0.17.19 - '@esbuild/netbsd-x64': 0.17.19 - '@esbuild/openbsd-x64': 0.17.19 - '@esbuild/sunos-x64': 0.17.19 - '@esbuild/win32-arm64': 0.17.19 - '@esbuild/win32-ia32': 0.17.19 - '@esbuild/win32-x64': 0.17.19 - dev: true - /esbuild@0.18.18: resolution: {integrity: sha512-UckDPWvdVJLNT0npk5AMTpVwGRQhS76rWFLmHwEtgNvWlR9sgVV1eyc/oeBtM86q9s8ABBLMmm0CwNxhVemOiw==} engines: {node: '>=12'} @@ -3148,6 +3097,36 @@ packages: '@esbuild/win32-x64': 0.18.18 dev: true + /esbuild@0.18.20: + resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.18.20 + '@esbuild/android-arm64': 0.18.20 + '@esbuild/android-x64': 0.18.20 + '@esbuild/darwin-arm64': 0.18.20 + '@esbuild/darwin-x64': 0.18.20 + '@esbuild/freebsd-arm64': 0.18.20 + '@esbuild/freebsd-x64': 0.18.20 + '@esbuild/linux-arm': 0.18.20 + '@esbuild/linux-arm64': 0.18.20 + '@esbuild/linux-ia32': 0.18.20 + '@esbuild/linux-loong64': 0.18.20 + '@esbuild/linux-mips64el': 0.18.20 + '@esbuild/linux-ppc64': 0.18.20 + '@esbuild/linux-riscv64': 0.18.20 + '@esbuild/linux-s390x': 0.18.20 + '@esbuild/linux-x64': 0.18.20 + '@esbuild/netbsd-x64': 0.18.20 + '@esbuild/openbsd-x64': 0.18.20 + '@esbuild/sunos-x64': 0.18.20 + '@esbuild/win32-arm64': 0.18.20 + '@esbuild/win32-ia32': 0.18.20 + '@esbuild/win32-x64': 0.18.20 + dev: true + /esbuild@0.19.2: resolution: {integrity: sha512-G6hPax8UbFakEj3hWO0Vs52LQ8k3lnBhxZWomUJDxfz3rZTLqF5k/FCzuNdLx2RbpBiQQF9H9onlDDH1lZsnjg==} engines: {node: '>=12'} @@ -3236,8 +3215,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.5.0(eslint@8.48.0): - resolution: {integrity: sha512-aulXdA4I1dyWpzyS1Nh/GNoS6PavzeucxEapnMR4JUERowWvaEk2Y4A5irpHAcdXtBBHLVe8WIhdXNjoAlGQgA==} + /eslint-plugin-jsdoc@46.5.1(eslint@8.48.0): + resolution: {integrity: sha512-CPbvKprmEuJYoxMj5g8gXfPqUGgcqMM6jpH06Kp4pn5Uy5MrPkFKzoD7UFp2E4RBzfXbJz1+TeuEivwFVMkXBg==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -3277,24 +3256,24 @@ packages: synckit: 0.8.5 dev: true - /eslint-plugin-vitest@0.2.8(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.9)(vitest@0.34.3): - resolution: {integrity: sha512-q8s4tStyKtn3gXf+8nf1ZYTHhoCXKdnozZzp6u8b4ni5v68Y4vxhNh4Z8njUfNjEY8HoPBB77MazHMR23IPb+g==} + /eslint-plugin-vitest@0.3.1(@typescript-eslint/eslint-plugin@6.5.0)(eslint@8.48.0)(vitest@0.34.3): + resolution: {integrity: sha512-GeR3zISHmqUGWK2sfW+eyCZivMqiQYzPf9UttHXBiEyMveS/jkKLHCrHUllwr3Hz1+i0zoseANd2xL0cFha8Eg==} engines: {node: 14.x || >= 16} peerDependencies: + '@typescript-eslint/eslint-plugin': '*' eslint: '>=8.0.0' - vite: '*' vitest: '*' peerDependenciesMeta: - vite: + '@typescript-eslint/eslint-plugin': optional: true dependencies: - '@typescript-eslint/utils': 6.2.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 6.5.0(@typescript-eslint/parser@6.5.0)(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.5.0(eslint@8.48.0)(typescript@5.2.2) eslint: 8.48.0 - vite: 4.4.9(@types/node@20.5.7) + typescript: 5.2.2 vitest: 0.34.3(@vitest/ui@0.34.3) transitivePeerDependencies: - supports-color - - typescript dev: true /eslint-scope@5.1.1: @@ -3807,8 +3786,8 @@ packages: is-glob: 4.0.3 dev: true - /glob@10.3.3: - resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} + /glob@10.3.4: + resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==} engines: {node: '>=16 || 14 >=14.17'} hasBin: true dependencies: @@ -5384,7 +5363,7 @@ packages: engines: {node: '>=14'} hasBin: true dependencies: - glob: 10.3.3 + glob: 10.3.4 dev: true /rollup@3.27.2: @@ -5950,6 +5929,15 @@ packages: typescript: 4.9.5 dev: true + /ts-api-utils@1.0.1(typescript@5.2.2): + resolution: {integrity: sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.2.2 + dev: true + /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true @@ -5968,12 +5956,12 @@ packages: typescript: 4.9.5 dev: true - /tsx@3.12.7: - resolution: {integrity: sha512-C2Ip+jPmqKd1GWVQDvz/Eyc6QJbGfE7NrR3fx5BpEHMZsEHoIxHL1j+lKdGobr8ovEyqeNkPLSKp6SCSOt7gmw==} + /tsx@3.12.8: + resolution: {integrity: sha512-Lt9KYaRGF023tlLInPj8rgHwsZU8qWLBj4iRXNWxTfjIkU7canGL806AqKear1j722plHuiYNcL2ZCo6uS9UJA==} hasBin: true dependencies: '@esbuild-kit/cjs-loader': 2.4.2 - '@esbuild-kit/core-utils': 3.1.0 + '@esbuild-kit/core-utils': 3.2.2 '@esbuild-kit/esm-loader': 2.5.5 optionalDependencies: fsevents: 2.3.2 @@ -6103,6 +6091,12 @@ packages: hasBin: true dev: true + /typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + /ufo@1.2.0: resolution: {integrity: sha512-RsPyTbqORDNDxqAdQPQBpgqhWle1VcTSou/FraClYlHf6TZnQcGslpLcAphNR+sQW4q5lLWLbOsRlh9j24baQg==} dev: true @@ -6195,7 +6189,7 @@ packages: extsprintf: 1.3.0 dev: true - /vite-node@0.34.3(@types/node@20.5.7): + /vite-node@0.34.3(@types/node@20.5.9): resolution: {integrity: sha512-+0TzJf1g0tYXj6tR2vEyiA42OPq68QkRZCu/ERSo2PtsDJfBpDyEfuKbRvLmZqi/CgC7SCBtyC+WjTGNMRIaig==} engines: {node: '>=v14.18.0'} hasBin: true @@ -6205,7 +6199,7 @@ packages: mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) transitivePeerDependencies: - '@types/node' - less @@ -6217,7 +6211,7 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.5.7): + /vite@4.4.9(@types/node@20.5.9): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6245,7 +6239,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.5.7 + '@types/node': 20.5.9 esbuild: 0.18.18 postcss: 8.4.27 rollup: 3.27.2 @@ -6253,7 +6247,7 @@ packages: fsevents: 2.3.2 dev: true - /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.7)(search-insights@2.7.0): + /vitepress@1.0.0-beta.7(@algolia/client-search@4.19.1)(@types/node@20.5.9)(search-insights@2.7.0): resolution: {integrity: sha512-P9Rw+FXatKIU4fVdtKxqwHl6fby8E/8zE3FIfep6meNgN4BxbWqoKJ6yfuuQQR9IrpQqwnyaBh4LSabyll6tWg==} hasBin: true dependencies: @@ -6268,7 +6262,7 @@ packages: mark.js: 8.11.1 minisearch: 6.1.0 shiki: 0.14.3 - vite: 4.4.9(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) vue: 3.3.4 transitivePeerDependencies: - '@algolia/client-search' @@ -6330,7 +6324,7 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 20.5.7 + '@types/node': 20.5.9 '@vitest/expect': 0.34.3 '@vitest/runner': 0.34.3 '@vitest/snapshot': 0.34.3 @@ -6350,8 +6344,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.0 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.5.7) - vite-node: 0.34.3(@types/node@20.5.7) + vite: 4.4.9(@types/node@20.5.9) + vite-node: 0.34.3(@types/node@20.5.9) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/src/locale/index.ts b/src/locale/index.ts index c39d89d7f1f..733e41dfeb9 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -66,6 +66,7 @@ import { faker as fakerTR } from './tr'; import { faker as fakerUK } from './uk'; import { faker as fakerUR } from './ur'; import { faker as fakerVI } from './vi'; +import { faker as fakerYO_NG } from './yo_NG'; import { faker as fakerZH_CN } from './zh_CN'; import { faker as fakerZH_TW } from './zh_TW'; import { faker as fakerZU_ZA } from './zu_ZA'; @@ -134,6 +135,7 @@ export { fakerUK, fakerUR, fakerVI, + fakerYO_NG, fakerZH_CN, fakerZH_TW, fakerZU_ZA, @@ -203,6 +205,7 @@ export const allFakers = { uk: fakerUK, ur: fakerUR, vi: fakerVI, + yo_NG: fakerYO_NG, zh_CN: fakerZH_CN, zh_TW: fakerZH_TW, zu_ZA: fakerZU_ZA, diff --git a/src/locale/yo_NG.ts b/src/locale/yo_NG.ts new file mode 100644 index 00000000000..27e03f5642a --- /dev/null +++ b/src/locale/yo_NG.ts @@ -0,0 +1,13 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ + +import { Faker } from '../faker'; +import base from '../locales/base'; +import en from '../locales/en'; +import yo_NG from '../locales/yo_NG'; + +export const faker = new Faker({ + locale: [yo_NG, en, base], +}); diff --git a/src/locales/en/finance/credit_card/index.ts b/src/locales/en/finance/credit_card/index.ts index 653195c7f8d..47f674c703c 100644 --- a/src/locales/en/finance/credit_card/index.ts +++ b/src/locales/en/finance/credit_card/index.ts @@ -6,26 +6,18 @@ import type { FinanceDefinition } from '../../../..'; import american_express from './american_express'; import diners_club from './diners_club'; import discover from './discover'; -import instapayment from './instapayment'; import jcb from './jcb'; -import laser from './laser'; import maestro from './maestro'; import mastercard from './mastercard'; -import solo from './solo'; -import switch_ from './switch'; import visa from './visa'; const credit_card: FinanceDefinition['credit_card'] = { american_express, diners_club, discover, - instapayment, jcb, - laser, maestro, mastercard, - solo, - switch: switch_, visa, }; diff --git a/src/locales/en/finance/credit_card/instapayment.ts b/src/locales/en/finance/credit_card/instapayment.ts deleted file mode 100644 index f1b68517800..00000000000 --- a/src/locales/en/finance/credit_card/instapayment.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['63[7-9]#-####-####-###L']; diff --git a/src/locales/en/finance/credit_card/laser.ts b/src/locales/en/finance/credit_card/laser.ts deleted file mode 100644 index 9c1eb2575d4..00000000000 --- a/src/locales/en/finance/credit_card/laser.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default [ - '6304###########L', - '6706###########L', - '6771###########L', - '6709###########L', - '6304#########{5,6}L', - '6706#########{5,6}L', - '6771#########{5,6}L', - '6709#########{5,6}L', -]; diff --git a/src/locales/en/finance/credit_card/solo.ts b/src/locales/en/finance/credit_card/solo.ts deleted file mode 100644 index 8114d66b8b7..00000000000 --- a/src/locales/en/finance/credit_card/solo.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default [ - '6767-####-####-###L', - '6767-####-####-####-#L', - '6767-####-####-####-##L', -]; diff --git a/src/locales/en/finance/credit_card/switch.ts b/src/locales/en/finance/credit_card/switch.ts deleted file mode 100644 index 3c4b0962cb6..00000000000 --- a/src/locales/en/finance/credit_card/switch.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default [ - '6759-####-####-###L', - '6759-####-####-####-#L', - '6759-####-####-####-##L', -]; diff --git a/src/locales/index.ts b/src/locales/index.ts index b30ff124c18..04109822e84 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -66,6 +66,7 @@ export { default as tr } from './tr'; export { default as uk } from './uk'; export { default as ur } from './ur'; export { default as vi } from './vi'; +export { default as yo_NG } from './yo_NG'; export { default as zh_CN } from './zh_CN'; export { default as zh_TW } from './zh_TW'; export { default as zu_ZA } from './zu_ZA'; diff --git a/src/locales/yo_NG/index.ts b/src/locales/yo_NG/index.ts new file mode 100644 index 00000000000..967e785c2fd --- /dev/null +++ b/src/locales/yo_NG/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocaleDefinition } from '../..'; +import metadata from './metadata'; +import person from './person'; + +const yo_NG: LocaleDefinition = { + metadata, + person, +}; + +export default yo_NG; diff --git a/src/locales/yo_NG/metadata.ts b/src/locales/yo_NG/metadata.ts new file mode 100644 index 00000000000..fbd465f44da --- /dev/null +++ b/src/locales/yo_NG/metadata.ts @@ -0,0 +1,13 @@ +import type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/metadata'; + +const metadata: PreBuiltMetadataDefinitionForCountry = { + title: 'Yoruba (Nigeria)', + code: 'yo_NG', + country: 'NG', + language: 'yo', + endonym: 'Yoruba (Naijiria)', + dir: 'ltr', + script: 'Latn', +}; + +export default metadata; diff --git a/src/locales/yo_NG/person/female_first_name.ts b/src/locales/yo_NG/person/female_first_name.ts new file mode 100644 index 00000000000..fd9eb08c2a0 --- /dev/null +++ b/src/locales/yo_NG/person/female_first_name.ts @@ -0,0 +1,86 @@ +export default [ + 'Aanuoluwapo', + 'Abebi', + 'Abeni', + 'Abosede', + 'Adebukola', + 'Adenike', + 'Adepeju', + 'Adesewa', + 'Adesua', + 'Adetoke', + 'Adetoun', + 'Adunni', + 'Ajoke', + 'Amoke', + 'Amope', + 'Arike', + 'Arinola', + 'Asake', + 'Atinuke', + 'Awero', + 'Ayinke', + 'Ayoka', + 'Bolatito', + 'Boluwatife', + 'Bunmi', + 'Doyinsola', + 'Eniola', + 'Ewatomi', + 'Fadekemi', + 'Faderera', + 'Fehintola', + 'Fibikemi', + 'Fikayomi', + 'Folashade', + 'Ibironke', + 'Iretioluwa', + 'Iyabode', + 'Iyadunni', + 'Kikelomo', + 'Modupe', + 'Mofifoluwa', + 'Mojisola', + 'Mojisoluwa', + 'Moradeke', + 'Morayo', + 'Morenike', + 'Morolake', + 'Mosinmileoluwa', + 'Mosunmola', + 'Motunrayo', + 'Moyosore', + 'Ninioluwa', + 'Olajumoke', + 'Olasunmbo', + 'Ololade', + 'Olufunke', + 'Olufunmilayo', + 'Oluwakemi', + 'Omobolanle', + 'Omodunni', + 'Omolabake', + 'Omolara', + 'Omosalewa', + 'Omotara', + 'Omotola', + 'Omotoun', + 'Omowumi', + 'Oreofe', + 'Oyenike', + 'Oyindasola', + 'Radeke', + 'Ronke', + 'Segilola', + 'Similoluwa', + 'Simisola', + 'Sowande', + 'Subomi', + 'Titilayo', + 'Tolulope', + 'Toluwanimi', + 'Wuraola', + 'Yejide', + 'Yetunde', + 'Yewande', +]; diff --git a/src/locales/yo_NG/person/first_name.ts b/src/locales/yo_NG/person/first_name.ts new file mode 100644 index 00000000000..ad582205665 --- /dev/null +++ b/src/locales/yo_NG/person/first_name.ts @@ -0,0 +1,63 @@ +export default [ + 'Abimbola', + 'Abiola', + 'Ade', + 'Adebankole', + 'Adebola', + 'Adedaramola', + 'Adedoyin', + 'Adeola', + 'Alaba', + 'Ara', + 'Ayomide', + 'Ayomikun', + 'Ayotude', + 'Busayo', + 'Damilola', + 'Damola', + 'Darasimi', + 'Ebunoluwa', + 'FolaFoluwa', + 'Ibukunoluwa', + 'Idowu', + 'Ifeoluwa', + 'Imoleoluwa', + 'Iremide', + 'Itunuoluwa', + 'Iyanuoluwa', + 'Iyinoluwa', + 'Kehinde', + 'Mobolaji', + 'Odunayo', + 'Okiki', + 'Ola', + 'Oladara', + 'Olamide', + 'Olaoluwa', + 'Olatunbosun', + 'Olayinka', + 'Olufeyisayo', + 'Olusola', + 'Olutomiwa', + 'Oluwasemilore', + 'Oluwaseun', + 'Oluwaseyi', + 'Oluwatimilehin', + 'Oluwatobiloba', + 'Oluwatofunmi', + 'Oluwatosin', + 'Oluwatoyosi', + 'Oluwatumise', + 'Omolola', + 'Omotolani', + 'Opemipo', + 'Opeoluwa', + 'Opeyemi', + 'Oyindamola', + 'Pelumi', + 'Shola', + 'Taiwo', + 'Tejumola', + 'Temitope', + 'Toluwalope', +]; diff --git a/src/locales/yo_NG/person/index.ts b/src/locales/yo_NG/person/index.ts new file mode 100644 index 00000000000..cd8f015509c --- /dev/null +++ b/src/locales/yo_NG/person/index.ts @@ -0,0 +1,20 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { PersonDefinition } from '../../..'; +import female_first_name from './female_first_name'; +import first_name from './first_name'; +import last_name from './last_name'; +import last_name_pattern from './last_name_pattern'; +import male_first_name from './male_first_name'; + +const person: PersonDefinition = { + female_first_name, + first_name, + last_name, + last_name_pattern, + male_first_name, +}; + +export default person; diff --git a/src/locales/yo_NG/person/last_name.ts b/src/locales/yo_NG/person/last_name.ts new file mode 100644 index 00000000000..2aefcdcf6bb --- /dev/null +++ b/src/locales/yo_NG/person/last_name.ts @@ -0,0 +1,100 @@ +export default [ + 'Adebisi', + 'Adegbite', + 'Adegoke', + 'Adekunle', + 'Adelakun', + 'Adeleke', + 'Adelusi', + 'Ademiluyi', + 'Aderibigbe', + 'Aderogba', + 'Adesiyan', + 'Adeyemo', + 'Adisa', + 'Afolabi', + 'Afolayan', + 'Afonja', + 'Ajao', + 'Ajayi', + 'Ajewole', + 'Akinrinola', + 'Alabi', + 'Aloba', + 'Awodiran', + 'Awolowo', + 'Ayandokun', + 'Ayoola', + 'Babtunde', + 'Bakare', + 'Balogun', + 'Bamidele', + 'Bamiloye', + 'Edun', + 'Fadipe', + 'Fagunwa', + 'Fajimi', + 'Falabi', + 'Faleti', + 'Faloye', + 'Fasasi', + 'Ibikunle', + 'Ilori', + 'Ilupeju', + 'Iyanda', + 'Jaiyeola', + 'Kolade', + 'Kosoko', + 'Koya', + 'Makinde', + 'Makinwa', + 'Morawo', + 'Ninalowo', + 'Odetola', + 'Odunsi', + 'Ogindan', + 'Oginni', + 'Ogulana', + 'Ogunbamigbe', + 'Ogunbiyi', + 'Ogunbo', + 'Ogunde', + 'Ogunwobi', + 'Ogunyeye', + 'Ojo', + 'Ojua', + 'Olabode', + 'Oladipupo', + 'Olaiya', + 'Olasupo', + 'Olowokeere', + 'Oloyede', + 'Olubode', + 'Olugbayila', + 'Olujimi', + 'Olukotun', + 'Olukunga', + 'Olusanya', + 'Oluwagbemi', + 'Omidina', + 'Omojola', + 'Omotoso', + 'Oparinde', + 'Oshin', + 'Osuntokun', + 'Owokoniran', + 'Owolabi', + 'Owoyemi', + 'Oyadiran', + 'Oyaifo', + 'Oyeniyi', + 'Oyetoro', + 'Oyeyemi', + 'Oyinlola', + 'Paimo', + 'Salako', + 'Salami', + 'Shekoni', + 'Sobowale', + 'Soyinka', +]; diff --git a/src/locales/yo_NG/person/last_name_pattern.ts b/src/locales/yo_NG/person/last_name_pattern.ts new file mode 100644 index 00000000000..c66a770f4e3 --- /dev/null +++ b/src/locales/yo_NG/person/last_name_pattern.ts @@ -0,0 +1 @@ +export default [{ value: '{{person.last_name}}', weight: 1 }]; diff --git a/src/locales/yo_NG/person/male_first_name.ts b/src/locales/yo_NG/person/male_first_name.ts new file mode 100644 index 00000000000..ec1e059e06e --- /dev/null +++ b/src/locales/yo_NG/person/male_first_name.ts @@ -0,0 +1,88 @@ +export default [ + 'Abayomi', + 'Abiodun', + 'Abiona', + 'Adebiyi', + 'Adebowale', + 'Adedayo', + 'Adedeji', + 'Adekitan', + 'Adekola', + 'Adekunle', + 'Adeleke', + 'Adeniyi', + 'Adeolu', + 'Adeoti', + 'Aderopo', + 'Adeshina', + 'Adesoji', + 'Adetayo', + 'Adeyi', + 'Adigun', + 'Afolarin', + 'Ajala', + 'Ajani', + 'Akanmu', + 'Akinkunmi', + 'Akinlabi', + 'Akinwale', + 'Alade', + 'Alamu', + 'Anjolaoluwa', + 'Ayinde', + 'Ayodeji', + 'Ayodele', + 'Babasola', + 'Babatunji', + 'Babawale', + 'Damife', + 'Demilade', + 'Durodola', + 'Ekundayo', + 'Esupofo', + 'Folu', + 'Gbadebo', + 'Gbolahan', + 'Gbowoade', + 'Ibidapo', + 'Ige', + 'Ikeoluwa', + 'Inioluwa', + 'Iseoluwa', + 'Ishola', + 'Juwon', + 'Keji', + 'Kolawole', + 'Korede', + 'Leke', + 'Lere', + 'Niyilolawa', + 'Oba', + 'ObaniJesu', + 'Ogooluwa', + 'Oke', + 'Oladare', + 'Oladimeji', + 'Olakunle', + 'Olanrewaju', + 'Olansile', + 'Olumorotimi', + 'Oluwafemi', + 'Oluwagbemiga', + 'Oluwamumibori', + 'Oluwamuyiwa', + 'Oluwasanmi', + 'Oluwasegun', + 'Oluwole', + 'Omobobola', + 'Omotayo', + 'Osunleke', + 'Seye', + 'Shekoni', + 'Sijuade', + 'Tade', + 'Temidayo', + 'Toki', + 'Tokunbo', + 'Tomori', +]; diff --git a/src/locales/zh_CN/hacker/adjective.ts b/src/locales/zh_CN/hacker/adjective.ts new file mode 100644 index 00000000000..963cbf92485 --- /dev/null +++ b/src/locales/zh_CN/hacker/adjective.ts @@ -0,0 +1,19 @@ +export default [ + '辅助', + '主要', + '后端', + '开源', + '虚拟', + '跨平台', + '冗余', + '在线', + '触控', + '多字节', + '蓝牙', + '无线', + '全高清', + '神经元', + '光学', + '固态', + '移动', +]; diff --git a/src/locales/zh_CN/hacker/index.ts b/src/locales/zh_CN/hacker/index.ts new file mode 100644 index 00000000000..213224f11bb --- /dev/null +++ b/src/locales/zh_CN/hacker/index.ts @@ -0,0 +1,18 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { HackerDefinition } from '../../..'; +import adjective from './adjective'; +import noun from './noun'; +import phrase from './phrase'; +import verb from './verb'; + +const hacker: HackerDefinition = { + adjective, + noun, + phrase, + verb, +}; + +export default hacker; diff --git a/src/locales/zh_CN/hacker/noun.ts b/src/locales/zh_CN/hacker/noun.ts new file mode 100644 index 00000000000..49d9c9ced36 --- /dev/null +++ b/src/locales/zh_CN/hacker/noun.ts @@ -0,0 +1,26 @@ +export default [ + '驱动', + '协议', + '带宽', + '面板', + '芯片', + '程序', + '端口', + '卡片', + '数组', + '接口', + '系统', + '传感器', + '防火墙', + '硬盘', + '像素', + '警报', + '提要', + '监视器', + '应用', + '发送端', + '总线', + '电路', + '电容器', + '矩阵', +]; diff --git a/src/locales/zh_CN/hacker/phrase.ts b/src/locales/zh_CN/hacker/phrase.ts new file mode 100644 index 00000000000..6515965dfb5 --- /dev/null +++ b/src/locales/zh_CN/hacker/phrase.ts @@ -0,0 +1,10 @@ +export default [ + '倘若我们{{verb}}{{noun}},我们就可以通过{{adjective}}{{abbreviation}}{{noun}}获得{{abbreviation}}{{noun}}!', + '我们需要{{verb}}{{adjective}}{{abbreviation}}{{noun}}!', + '尝试{{verb}}{{abbreviation}}{{noun}},也许会{{verb}}{{adjective}}{{noun}}!', + '在没有{{verb}}{{adjective}}{{abbreviation}}{{noun}}的情况下,你不能{{verb}}{{noun}}!', + '使用{{adjective}}{{abbreviation}}{{noun}},然后你就能{{verb}}{{adjective}}{{noun}}!', + '{{abbreviation}}{{noun}}已关闭,因为{{adjective}}{{noun}}所以我们能{{verb}}{{abbreviation}}{{noun}}!', + '{{verb}}{{noun}}是无济于事的,我们需要{{verb}}{{adjective}}{{abbreviation}}{{noun}}!', + '我将{{verb}}{{adjective}}{{abbreviation}}{{noun}},那是应该{{noun}}{{abbreviation}}{{noun}}!', +]; diff --git a/src/locales/zh_CN/hacker/verb.ts b/src/locales/zh_CN/hacker/verb.ts new file mode 100644 index 00000000000..06759b7c3a5 --- /dev/null +++ b/src/locales/zh_CN/hacker/verb.ts @@ -0,0 +1,20 @@ +export default [ + '备份', + '绕过', + '入侵', + '覆盖', + '压缩', + '复制', + '导航', + '索引', + '链接', + '生成', + '量化', + '计算', + '合成', + '输入', + '传输', + '编程', + '重启', + '解析', +]; diff --git a/src/locales/zh_CN/index.ts b/src/locales/zh_CN/index.ts index e28edd3d511..33db64007c1 100644 --- a/src/locales/zh_CN/index.ts +++ b/src/locales/zh_CN/index.ts @@ -8,6 +8,7 @@ import color from './color'; import company from './company'; import date from './date'; import finance from './finance'; +import hacker from './hacker'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -22,6 +23,7 @@ const zh_CN: LocaleDefinition = { company, date, finance, + hacker, internet, location, metadata, diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index cfefdb8a486..bec9e98ca51 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -348,15 +348,17 @@ export class ImageModule { } /** - * Generates a random data uri containing an svg image. + * Generates a random data uri containing an URL-encoded SVG image or a Base64-encoded SVG image. * * @param options Options for generating a data uri. * @param options.width The width of the image. Defaults to `640`. * @param options.height The height of the image. Defaults to `480`. * @param options.color The color of the image. Defaults to `grey`. + * @param options.type The type of the image. Defaults to `'svg-uri'`. * * @example * faker.image.dataUri() // 'data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http...' + * faker.image.dataUri({ type: 'svg-base64' }) // 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3...' * * @since 4.0.0 */ @@ -380,9 +382,21 @@ export class ImageModule { * @default 'grey' */ color?: string; + /** + * The type of the image to return. Consisting of + * the file extension and the used encoding. + * + * @default 'svg-uri' + */ + type?: 'svg-uri' | 'svg-base64'; } = {} ): string { - const { width = 640, height = 480, color = 'grey' } = options; + const { + width = 640, + height = 480, + color = 'grey', + type = 'svg-uri', + } = options; const svgString = `${width}x${height}`; - const rawPrefix = 'data:image/svg+xml;charset=UTF-8,'; - return rawPrefix + encodeURIComponent(svgString); + return type === 'svg-uri' + ? `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(svgString)}` + : `data:image/svg+xml;base64,${Buffer.from(svgString).toString( + 'base64' + )}`; } /** diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index 43f34571a1f..c63592d2069 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -70,6 +70,7 @@ const BROKEN_LOCALE_METHODS = { 'pt_PT', 'ur', 'vi', + 'yo_NG', 'zh_CN', 'zh_TW', 'zu_ZA', diff --git a/test/modules/__snapshots__/finance.spec.ts.snap b/test/modules/__snapshots__/finance.spec.ts.snap index 69d73820a1d..6f80a2edce1 100644 --- a/test/modules/__snapshots__/finance.spec.ts.snap +++ b/test/modules/__snapshots__/finance.spec.ts.snap @@ -40,9 +40,9 @@ exports[`finance > 42 > bitcoinAddress 1`] = `"3XbJMAAara64sSkA9HD24YHQWd1bZbB"` exports[`finance > 42 > creditCardCVV 1`] = `"379"`; -exports[`finance > 42 > creditCardIssuer 1`] = `"jcb"`; +exports[`finance > 42 > creditCardIssuer 1`] = `"discover"`; -exports[`finance > 42 > creditCardNumber > noArgs 1`] = `"3581-7755-1410-0484"`; +exports[`finance > 42 > creditCardNumber > noArgs 1`] = `"6591-6277-5514-1004-8364"`; exports[`finance > 42 > creditCardNumber > with issuer 1`] = `"4791775514102"`; @@ -256,9 +256,9 @@ exports[`finance > 1337 > bitcoinAddress 1`] = `"3adhxs2jewAgkYgJi7No6Cn8JZarS"` exports[`finance > 1337 > creditCardCVV 1`] = `"251"`; -exports[`finance > 1337 > creditCardIssuer 1`] = `"discover"`; +exports[`finance > 1337 > creditCardIssuer 1`] = `"diners_club"`; -exports[`finance > 1337 > creditCardNumber > noArgs 1`] = `"6011-6212-2540-3255-2398"`; +exports[`finance > 1337 > creditCardNumber > noArgs 1`] = `"3612-254032-5529"`; exports[`finance > 1337 > creditCardNumber > with issuer 1`] = `"4512254032550"`; diff --git a/test/modules/__snapshots__/image.spec.ts.snap b/test/modules/__snapshots__/image.spec.ts.snap index d1d1d9e318e..b71269e56c2 100644 --- a/test/modules/__snapshots__/image.spec.ts.snap +++ b/test/modules/__snapshots__/image.spec.ts.snap @@ -8,12 +8,14 @@ exports[`image > 42 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3 exports[`image > 42 > dataUri > noArgs 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; -exports[`image > 42 > dataUri > with all options 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 42 > dataUri > with all options 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJibHVlIi8+PHRleHQgeD0iNjQiIHk9IjY0IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyOHgxMjg8L3RleHQ+PC9zdmc+"`; exports[`image > 42 > dataUri > with color 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 42 > dataUri > with height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 42 > dataUri > with type 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDgwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iMzIwIiB5PSIyNDAiIGZvbnQtc2l6ZT0iMjAiIGFsaWdubWVudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSI+NjQweDQ4MDwvdGV4dD48L3N2Zz4="`; + exports[`image > 42 > dataUri > with width 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 42 > dataUri > with width and height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; @@ -80,12 +82,14 @@ exports[`image > 1211 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qm exports[`image > 1211 > dataUri > noArgs 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; -exports[`image > 1211 > dataUri > with all options 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1211 > dataUri > with all options 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJibHVlIi8+PHRleHQgeD0iNjQiIHk9IjY0IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyOHgxMjg8L3RleHQ+PC9zdmc+"`; exports[`image > 1211 > dataUri > with color 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1211 > dataUri > with height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1211 > dataUri > with type 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDgwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iMzIwIiB5PSIyNDAiIGZvbnQtc2l6ZT0iMjAiIGFsaWdubWVudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSI+NjQweDQ4MDwvdGV4dD48L3N2Zz4="`; + exports[`image > 1211 > dataUri > with width 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1211 > dataUri > with width and height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; @@ -152,12 +156,14 @@ exports[`image > 1337 > avatarLegacy 1`] = `"https://cloudflare-ipfs.com/ipfs/Qm exports[`image > 1337 > dataUri > noArgs 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; -exports[`image > 1337 > dataUri > with all options 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1337 > dataUri > with all options 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJibHVlIi8+PHRleHQgeD0iNjQiIHk9IjY0IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyOHgxMjg8L3RleHQ+PC9zdmc+"`; exports[`image > 1337 > dataUri > with color 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22blue%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1337 > dataUri > with height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22640%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E640x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > 1337 > dataUri > with type 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDgwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iMzIwIiB5PSIyNDAiIGZvbnQtc2l6ZT0iMjAiIGFsaWdubWVudC1iYXNlbGluZT0ibWlkZGxlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSI+NjQweDQ4MDwvdGV4dD48L3N2Zz4="`; + exports[`image > 1337 > dataUri > with width 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22480%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%22240%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x480%3C%2Ftext%3E%3C%2Fsvg%3E"`; exports[`image > 1337 > dataUri > with width and height 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22128%22%20height%3D%22128%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%2264%22%20y%3D%2264%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E128x128%3C%2Ftext%3E%3C%2Fsvg%3E"`; @@ -218,4 +224,12 @@ exports[`image > 1337 > urlPlaceholder > with width and height 1`] = `"https://v exports[`image > dataUri > should return a background color data URI 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22200%22%20height%3D%22300%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22red%22%2F%3E%3Ctext%20x%3D%22100%22%20y%3D%22150%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E200x300%3C%2Ftext%3E%3C%2Fsvg%3E"`; +exports[`image > dataUri > should return a background color svg-base64 data URI 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSI0NDQiIGhlaWdodD0iMzAiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9ImdyZWVuIi8+PHRleHQgeD0iMjIyIiB5PSIxNSIgZm9udC1zaXplPSIyMCIgYWxpZ25tZW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIj40NDR4MzA8L3RleHQ+PC9zdmc+"`; + +exports[`image > dataUri > should return a background color svg-uri data URI 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%221%22%20height%3D%221234%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22yellow%22%2F%3E%3Ctext%20x%3D%220.5%22%20y%3D%22617%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E1x1234%3C%2Ftext%3E%3C%2Fsvg%3E"`; + exports[`image > dataUri > should return a blank data 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22200%22%20height%3D%22300%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22100%22%20y%3D%22150%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E200x300%3C%2Ftext%3E%3C%2Fsvg%3E"`; + +exports[`image > dataUri > should return a blank svg-base64 data 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgYmFzZVByb2ZpbGU9ImZ1bGwiIHdpZHRoPSIxMjMiIGhlaWdodD0iNDU2Ij48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJncmV5Ii8+PHRleHQgeD0iNjEuNSIgeT0iMjI4IiBmb250LXNpemU9IjIwIiBhbGlnbm1lbnQtYmFzZWxpbmU9Im1pZGRsZSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiPjEyM3g0NTY8L3RleHQ+PC9zdmc+"`; + +exports[`image > dataUri > should return a blank svg-uri data 1`] = `"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20baseProfile%3D%22full%22%20width%3D%22456%22%20height%3D%22789%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22grey%22%2F%3E%3Ctext%20x%3D%22228%22%20y%3D%22394.5%22%20font-size%3D%2220%22%20alignment-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22white%22%3E456x789%3C%2Ftext%3E%3C%2Fsvg%3E"`; diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index c5c38a58caf..a783f0731f5 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -472,16 +472,8 @@ describe('finance', () => { expect(diners_club).toSatisfy(luhnCheck); const jcb = faker.finance.creditCardNumber('jcb'); expect(jcb).toSatisfy(luhnCheck); - const switchC = faker.finance.creditCardNumber('mastercard'); - expect(switchC).toSatisfy(luhnCheck); - const solo = faker.finance.creditCardNumber('solo'); - expect(solo).toSatisfy(luhnCheck); const maestro = faker.finance.creditCardNumber('maestro'); expect(maestro).toSatisfy(luhnCheck); - const laser = faker.finance.creditCardNumber('laser'); - expect(laser).toSatisfy(luhnCheck); - const instapayment = faker.finance.creditCardNumber('instapayment'); - expect(instapayment).toSatisfy(luhnCheck); }); it('should return custom formatted strings', () => { diff --git a/test/modules/image.spec.ts b/test/modules/image.spec.ts index a0e2c862ac9..fc4498289c5 100644 --- a/test/modules/image.spec.ts +++ b/test/modules/image.spec.ts @@ -74,10 +74,12 @@ describe('image', () => { .it('with height', { height: 128 }) .it('with width and height', { width: 128, height: 128 }) .it('with color', { color: 'blue' }) + .it('with type', { type: 'svg-base64' }) .it('with all options', { width: 128, height: 128, color: 'blue', + type: 'svg-base64', }); }); @@ -495,5 +497,43 @@ describe('image', () => { }); expect(dataUri).toMatchSnapshot(); }); + + it('should return a blank svg-uri data', () => { + const dataUri = faker.image.dataUri({ + width: 456, + height: 789, + type: 'svg-uri', + }); + expect(dataUri).toMatchSnapshot(); + }); + + it('should return a background color svg-uri data URI', () => { + const dataUri = faker.image.dataUri({ + width: 1, + height: 1234, + color: 'yellow', + type: 'svg-uri', + }); + expect(dataUri).toMatchSnapshot(); + }); + + it('should return a blank svg-base64 data', () => { + const dataUri = faker.image.dataUri({ + width: 123, + height: 456, + type: 'svg-base64', + }); + expect(dataUri).toMatchSnapshot(); + }); + + it('should return a background color svg-base64 data URI', () => { + const dataUri = faker.image.dataUri({ + width: 444, + height: 30, + color: 'green', + type: 'svg-base64', + }); + expect(dataUri).toMatchSnapshot(); + }); }); });