@tronsfey/openapi2cli 1.0.10 → 1.0.12

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tronsfey/openapi2cli",
3
- "version": "1.0.10",
4
- "description": "Generate a fully typed Commander.js CLI project from an OpenAPI 3.x specification",
3
+ "version": "1.0.12",
4
+ "description": "Generate or proxy any OpenAPI 3.x spec as a typed Commander.js CLI, with shell completion",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "openapi2cli": "./bin/openapi2cli"
@@ -42,34 +42,41 @@
42
42
  "start": "node dist/index.js",
43
43
  "test": "jest --testPathIgnorePatterns=tests/integration",
44
44
  "test:e2e": "jest tests/integration/express-server.test.ts --testTimeout=180000",
45
+ "test:proxy-e2e": "jest tests/integration/proxy-e2e.test.ts --testTimeout=180000",
45
46
  "test:integration": "jest tests/integration/github.test.ts --testTimeout=180000",
46
47
  "test:all": "jest --testTimeout=180000",
47
48
  "generate:examples": "ts-node scripts/generate-example.ts",
48
49
  "test:coverage": "jest --coverage --testPathIgnorePatterns=tests/integration",
49
50
  "lint": "tsc --noEmit",
50
51
  "clean": "rm -rf dist",
51
- "prepublishOnly": "npm run lint && npm test && npm run build && npm run generate:examples && npm run test:e2e"
52
+ "prepublishOnly": "npm run lint && npm test && npm run build && npm run generate:examples && npm run test:e2e && npm run test:proxy-e2e"
52
53
  },
53
54
  "dependencies": {
54
55
  "@apidevtools/swagger-parser": "^10.1.0",
55
56
  "axios": "^1.7.9",
56
57
  "chalk": "^4.1.2",
57
58
  "commander": "^12.1.0",
59
+ "eventsource-parser": "^3.0.6",
58
60
  "fs-extra": "^11.2.0",
59
61
  "handlebars": "^4.7.8",
62
+ "jmespath": "^0.16.0",
60
63
  "lodash": "^4.17.23",
61
64
  "openapi-types": "^12.1.3",
62
65
  "ora": "^5.4.1",
63
- "pinyin-pro": "^3.28.0"
66
+ "pinyin-pro": "^3.28.0",
67
+ "yaml": "^2.8.3"
64
68
  },
65
69
  "devDependencies": {
70
+ "@types/axios-mock-adapter": "^1.9.0",
66
71
  "@types/express": "^4.17.21",
67
72
  "@types/fs-extra": "^11.0.4",
68
- "express": "^4.21.2",
69
73
  "@types/jest": "^29.5.14",
74
+ "@types/jmespath": "^0.15.2",
70
75
  "@types/lodash": "^4.17.16",
71
76
  "@types/node": "^22.0.0",
77
+ "axios-mock-adapter": "^2.1.0",
72
78
  "copyfiles": "^2.4.1",
79
+ "express": "^4.21.2",
73
80
  "jest": "^29.7.0",
74
81
  "ts-jest": "^29.4.0",
75
82
  "ts-node": "^10.9.2",