@redocly/mock-server 0.2.11 → 0.2.13

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/dist/bin.js +177 -252
  2. package/package.json +11 -10
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@redocly/mock-server",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Redocly Mock server",
5
5
  "author": "team@redocly.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "dist/bin.js",
8
8
  "dependencies": {
9
9
  "@redocly/ajv": "8.11.2",
10
- "@redocly/openapi-core": "1.34.1",
10
+ "@redocly/openapi-core": "0.0.0-snapshot.1744362365",
11
11
  "ajv": "8.17.1",
12
12
  "ajv-formats": "^2.1.1",
13
13
  "js-yaml": "4.1.0",
@@ -23,8 +23,8 @@
23
23
  "@types/js-yaml": "4.0.9",
24
24
  "@types/node": "22.10.5",
25
25
  "@types/yargs": "17.0.32",
26
- "axios": "1.7.4",
27
- "esbuild": "0.17.15",
26
+ "axios": "1.8.4",
27
+ "esbuild": "0.25.0",
28
28
  "jest": "28.1.3",
29
29
  "jest-when": "3.6.0",
30
30
  "openapi-types": "10.0.0",
@@ -48,14 +48,15 @@
48
48
  }
49
49
  },
50
50
  "scripts": {
51
- "start": "npx ts-node-dev -r tsconfig-paths/register --respawn src/cli/cli.ts mock ./tests/fixtures/large-openapi.json",
52
- "ts:check": "npx tsc --noEmit --skipLibCheck",
53
- "test": "npm run test:unit && npm run test:integration",
54
- "test:unit": "npx jest ./src",
51
+ "start": "ts-node-dev -r tsconfig-paths/register --respawn src/cli/cli.ts mock ./tests/fixtures/large-openapi.json",
52
+ "ts:check": "tsc --noEmit --skipLibCheck",
53
+ "test": "npm run prepare-mocks && npm run test:unit && npm run test:integration",
54
+ "test:unit": "jest ./src",
55
55
  "test:unit:coverage": "npm run test:unit -- --coverage",
56
- "test:integration": "npx jest ./tests --forceExit",
56
+ "test:integration": "jest ./tests --forceExit",
57
57
  "test:integration:coverage": "npm run test:integration -- --coverage",
58
58
  "build:js": "node ./esbuild.js",
59
- "build": "npx rimraf ./dist && npm run build:js"
59
+ "build": "npx rimraf ./dist && npm run build:js",
60
+ "prepare-mocks": "esbuild ./node_modules/@redocly/openapi-core/lib/index.js --bundle --outdir=./src/__mocks__/@redocly/openapi-core/ --format=cjs --platform=node --log-level=error"
60
61
  }
61
62
  }