openai-api-mock 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +23 -19
  2. package/src/responce.js +1 -1
package/package.json CHANGED
@@ -1,19 +1,23 @@
1
- {
2
- "name": "openai-api-mock",
3
- "version": "0.1.1",
4
- "description": "A Node.js module for mocking OpenAI API responses in a development environment",
5
- "keywords": [
6
- "openai",
7
- "mock",
8
- "api",
9
- "development",
10
- "testing"
11
- ],
12
- "author": "Chiheb Nabil",
13
- "license": "MIT",
14
- "main": "main.js",
15
- "dependencies": {
16
- "@faker-js/faker": "^8.4.0",
17
- "nock": "^13.5.1"
18
- }
19
- }
1
+ {
2
+ "name": "openai-api-mock",
3
+ "version": "0.1.3",
4
+ "description": "A Node.js module for mocking OpenAI API responses in a development environment",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/chihebnabil/openai-api-mock"
8
+ },
9
+ "keywords": [
10
+ "openai",
11
+ "mock",
12
+ "api",
13
+ "development",
14
+ "testing"
15
+ ],
16
+ "author": "Chiheb Nabil",
17
+ "license": "MIT",
18
+ "main": "main.js",
19
+ "dependencies": {
20
+ "@faker-js/faker": "^8.4.0",
21
+ "nock": "^13.5.1"
22
+ }
23
+ }
package/src/responce.js CHANGED
@@ -59,7 +59,7 @@ function generateFakeData(type, properties) {
59
59
  if (type === 'string') {
60
60
  return faker.lorem.words(5);
61
61
  } else if (type === 'number') {
62
- return faker.random.number();
62
+ return faker.number.int();
63
63
  } else if (type === 'array') {
64
64
  const arrayItemsType = properties.items.type;
65
65
  let arrayItems = [];