Skip to content

Commit

Permalink
Bump @faker-js/faker to v8
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Myssak <[email protected]>
  • Loading branch information
andreymyssak committed May 19, 2023
1 parent 71dc4bd commit c329a14
Show file tree
Hide file tree
Showing 19 changed files with 81 additions and 77 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"vfile": "^4.2.0"
},
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@faker-js/faker": "^8.0.1",
"@axe-core/puppeteer": "^4.1.1",
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/datagrid/additional_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ const data = [];
for (let i = 1; i < 20; i++) {
data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: (
<OuiLink href="http://google.com">
{faker.helpers.fake('{{address.city}}')}
{faker.helpers.fake('{{location.city}}')}
</OuiLink>
),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/column_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ for (let i = 1; i < 5; i++) {
avatar: (
<OuiAvatar
size="s"
name={faker.helpers.fake('{{name.lastName}}, {{name.firstName}}')}
name={faker.helpers.fake('{{person.lastName}}, {{person.firstName}}')}
/>
),
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: faker.helpers.fake('{{address.city}}'),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
city: faker.helpers.fake('{{location.city}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/column_cell_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@ for (let i = 1; i < 5; i++) {
avatar: (
<OuiAvatar
size="s"
name={faker.helpers.fake('{{name.lastName}}, {{name.firstName}}')}
name={faker.helpers.fake('{{person.lastName}}, {{person.firstName}}')}
/>
),
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: faker.helpers.fake('{{address.city}}'),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
city: faker.helpers.fake('{{location.city}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/column_widths.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ for (let i = 1; i < 5; i++) {
avatar: (
<OuiAvatar
size="s"
name={faker.helpers.fake('{{name.lastName}}, {{name.firstName}}')}
name={faker.helpers.fake('{{person.lastName}}, {{person.firstName}}')}
/>
),
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: faker.helpers.fake('{{address.city}}'),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
city: faker.helpers.fake('{{location.city}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/datagrid/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ const data = [];
for (let i = 1; i < 20; i++) {
data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: (
<OuiLink href="http://google.com">
{faker.helpers.fake('{{address.city}}')}
{faker.helpers.fake('{{location.city}}')}
</OuiLink>
),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/control_columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ for (let i = 1; i < 500; i++) {
avatar: (
<OuiAvatar
size="s"
name={faker.helpers.fake('{{name.lastName}}, {{name.firstName}}')}
name={faker.helpers.fake('{{person.lastName}}, {{person.firstName}}')}
/>
),
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: faker.helpers.fake('{{address.city}}'),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
city: faker.helpers.fake('{{location.city}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const raw_data = [];

for (let i = 1; i < 100; i++) {
const email = faker.helpers.fake('{{internet.email}}');
const name = faker.helpers.fake('{{name.lastName}}, {{name.firstName}}');
const suffix = faker.helpers.fake('{{name.suffix}}');
const name = faker.helpers.fake('{{person.lastName}}, {{person.firstName}}');
const suffix = faker.helpers.fake('{{person.suffix}}');
raw_data.push({
name: {
formatted: `${name} ${suffix}`,
Expand All @@ -52,14 +52,14 @@ for (let i = 1; i < 100; i++) {
},
location: (
<Fragment>
{`${faker.helpers.fake('{{address.city}}')}, `}
{`${faker.helpers.fake('{{location.city}}')}, `}
<OuiLink href="https://google.com">
{faker.helpers.fake('{{address.country}}')}
{faker.helpers.fake('{{location.country}}')}
</OuiLink>
</Fragment>
),
date: faker.helpers.fake('{{date.past}}'),
account: faker.helpers.fake('{{finance.account}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
phone: faker.helpers.fake('{{phone.number}}'),
version: faker.helpers.fake('{{system.semver}}'),
Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/datagrid/focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const data = [];

for (let i = 0; i < 10; i++) {
data.push([
<span>{faker.helpers.fake('{{name.firstName}}')}</span>,
<span>{faker.helpers.fake('{{name.firstName}}')}</span>,
<span>{faker.helpers.fake('{{person.firstName}}')}</span>,
<span>{faker.helpers.fake('{{person.firstName}}')}</span>,

<span>
<OuiLink href="#/tabular-content/data-grid-focus">
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/datagrid/footer_row.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const raw_data = [];
for (let i = 1; i < 20; i++) {
raw_data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
date: faker.helpers.fake('{{date.past}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/datagrid/in_memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: (
<OuiLink href="">{faker.helpers.fake('{{internet.email}}')}</OuiLink>
),
location: (
<Fragment>
{`${faker.helpers.fake('{{address.city}}')}, `}
{`${faker.helpers.fake('{{location.city}}')}, `}
<OuiLink href="https://google.com">
{faker.helpers.fake('{{address.country}}')}
{faker.helpers.fake('{{location.country}}')}
</OuiLink>
</Fragment>
),
date: faker.helpers.fake('{{date.past}}'),
account: faker.helpers.fake('{{finance.account}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
phone: faker.helpers.fake('{{phone.number}}'),
version: faker.helpers.fake('{{system.semver}}'),
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/datagrid/in_memory_enhancements.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: (
<OuiLink href="">{faker.helpers.fake('{{internet.email}}')}</OuiLink>
),
location: (
<Fragment>
{`${faker.helpers.fake('{{address.city}}')}, `}
{`${faker.helpers.fake('{{location.city}}')}, `}
<OuiLink href="https://google.com">
{faker.helpers.fake('{{address.country}}')}
{faker.helpers.fake('{{location.country}}')}
</OuiLink>
</Fragment>
),
date: faker.helpers.fake('{{date.past}}'),
account: faker.helpers.fake('{{finance.account}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
phone: faker.helpers.fake('{{phone.number}}'),
version: faker.helpers.fake('{{system.semver}}'),
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/datagrid/in_memory_pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: (
<OuiLink href="">{faker.helpers.fake('{{internet.email}}')}</OuiLink>
),
location: (
<Fragment>
{`${faker.helpers.fake('{{address.city}}')}, `}
{`${faker.helpers.fake('{{location.city}}')}, `}
<OuiLink href="https://google.com">
{faker.helpers.fake('{{address.country}}')}
{faker.helpers.fake('{{location.country}}')}
</OuiLink>
</Fragment>
),
date: faker.helpers.fake('{{date.past}}'),
account: faker.helpers.fake('{{finance.account}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
phone: faker.helpers.fake('{{phone.number}}'),
version: faker.helpers.fake('{{system.semver}}'),
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/datagrid/in_memory_sorting.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: (
<OuiLink href="">{faker.helpers.fake('{{internet.email}}')}</OuiLink>
),
location: (
<Fragment>
{`${faker.helpers.fake('{{address.city}}')}, `}
{`${faker.helpers.fake('{{location.city}}')}, `}
<OuiLink href="https://google.com">
{faker.helpers.fake('{{address.country}}')}
{faker.helpers.fake('{{location.country}}')}
</OuiLink>
</Fragment>
),
date: faker.helpers.fake('{{date.past}}'),
account: faker.helpers.fake('{{finance.account}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
phone: faker.helpers.fake('{{phone.number}}'),
version: faker.helpers.fake('{{system.semver}}'),
Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ for (let i = 1; i < 5; i++) {
json = JSON.stringify([
{
default: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
boolean: faker.helpers.fake('{{datatype.boolean}}'),
numeric: faker.helpers.fake('{{finance.account}}'),
numeric: faker.helpers.fake('{{finance.accountNumber}}'),
currency: faker.helpers.fake('${{finance.amount}}'),
date: faker.helpers.fake('{{date.past}}'),
custom: faker.helpers.fake('{{date.past}}'),
Expand All @@ -70,18 +70,18 @@ for (let i = 1; i < 5; i++) {
json = JSON.stringify([
{
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
},
]);
}

storeData.push({
default: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
boolean: faker.helpers.fake('{{datatype.boolean}}'),
numeric: faker.helpers.fake('{{finance.account}}'),
numeric: faker.helpers.fake('{{finance.accountNumber}}'),
currency: faker.helpers.fake('${{finance.amount}}'),
datetime: faker.helpers.fake('{{date.past}}'),
json: json,
Expand Down
10 changes: 5 additions & 5 deletions src-docs/src/views/datagrid/styling.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ for (let i = 1; i < 6; i++) {
avatar: (
<OuiAvatar
size="s"
name={faker.helpers.fake('{{name.lastName}}, {{name.firstName}}')}
name={faker.helpers.fake('{{person.lastName}}, {{person.firstName}}')}
/>
),
name: faker.helpers.fake(
'{{name.lastName}}, {{name.firstName}} {{name.suffix}}'
'{{person.lastName}}, {{person.firstName}} {{person.suffix}}'
),
email: faker.helpers.fake('{{internet.email}}'),
city: faker.helpers.fake('{{address.city}}'),
country: faker.helpers.fake('{{address.country}}'),
account: faker.helpers.fake('{{finance.account}}'),
city: faker.helpers.fake('{{location.city}}'),
country: faker.helpers.fake('{{location.country}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
});
}

Expand Down
12 changes: 7 additions & 5 deletions src-docs/src/views/datagrid/virtualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,23 @@ function RenderCellValue({ rowIndex, columnId }) {

if (data[rowIndex] == null) {
const email = faker.helpers.fake('{{internet.email}}');
const name = faker.helpers.fake('{{name.lastName}}, {{name.firstName}}');
const suffix = faker.helpers.fake('{{name.suffix}}');
const name = faker.helpers.fake(
'{{person.lastName}}, {{person.firstName}}'
);
const suffix = faker.helpers.fake('{{person.suffix}}');
data[rowIndex] = {
name: `${name} ${suffix}`,
email: <OuiLink href="">{email}</OuiLink>,
location: (
<Fragment>
{`${faker.helpers.fake('{{address.city}}')}, `}
{`${faker.helpers.fake('{{location.city}}')}, `}
<OuiLink href="https://google.com">
{faker.helpers.fake('{{address.country}}')}
{faker.helpers.fake('{{location.country}}')}
</OuiLink>
</Fragment>
),
date: faker.helpers.fake('{{date.past}}'),
account: faker.helpers.fake('{{finance.account}}'),
account: faker.helpers.fake('{{finance.accountNumber}}'),
amount: faker.helpers.fake('${{commerce.price}}'),
phone: faker.helpers.fake('{{phone.number}}'),
version: faker.helpers.fake('{{system.semver}}'),
Expand Down
Loading

0 comments on commit c329a14

Please sign in to comment.