Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix faker.js imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume committed Jan 25, 2022
1 parent d2f60f5 commit e5e763c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mockoon/commons-server",
"description": "Mockoon's commons server library. Used in Mockoon desktop application and CLI.",
"version": "2.15.2",
"version": "2.15.3",
"author": {
"name": "Guillaume Monnet",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/libs/faker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import faker from '@faker-js/faker';
import { FakerAvailableLocales } from '@mockoon/commons';
import faker from 'faker';

/**
* Set the Faker locale
Expand Down
2 changes: 1 addition & 1 deletion src/libs/templating-helpers/faker-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import faker from 'faker';
import faker from '@faker-js/faker';
import { HelperOptions, SafeString } from 'handlebars';
import { IsEmpty } from '../utils';

Expand Down
2 changes: 1 addition & 1 deletion src/libs/templating-helpers/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import faker from '@faker-js/faker';
import ObjectId from 'bson-objectid';
import { format as dateFormat } from 'date-fns';
import faker from 'faker';
import { HelperOptions, SafeString } from 'handlebars';
import { EOL } from 'os';
import { fromSafeString, RandomInt, ToBase64 } from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion test/templating-helpers/faker-wrapper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import faker from '@faker-js/faker';
import { expect } from 'chai';
import faker from 'faker';
import { TemplateParser } from '../../src/libs/template-parser';

faker.seed(1);
Expand Down

0 comments on commit e5e763c

Please sign in to comment.