@killb/openapi-alchemist 0.0.0-stage → 2.0.0
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/LICENSE +25 -0
- package/README.md +249 -2
- package/dist/index.d.ts +15 -0
- package/dist/index.js +56 -0
- package/dist/lib/converters/openapi3_to_swagger2.d.ts +24 -0
- package/dist/lib/converters/openapi3_to_swagger2.js +551 -0
- package/dist/lib/formats/openapi_3.d.ts +15 -0
- package/dist/lib/formats/openapi_3.js +48 -0
- package/dist/lib/formats/swagger_2.d.ts +15 -0
- package/dist/lib/formats/swagger_2.js +57 -0
- package/dist/lib/refs.d.ts +6 -0
- package/dist/lib/refs.js +111 -0
- package/dist/lib/server-url.d.ts +7 -0
- package/dist/lib/server-url.js +45 -0
- package/dist/lib/util.d.ts +12 -0
- package/dist/lib/util.js +113 -0
- package/dist/types.d.ts +68 -0
- package/dist/types.js +306 -0
- package/package.json +87 -4
package/package.json
CHANGED
|
@@ -1,6 +1,89 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@killb/openapi-alchemist",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=22.0.0"
|
|
6
|
+
},
|
|
7
|
+
"description": "Transform OpenAPI 3 to Swagger 2 with alchemical precision",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"test": "npm run build && node --test dist/test/**/*.js",
|
|
13
|
+
"dev": "tsc --watch",
|
|
14
|
+
"clean": "rm -rf dist",
|
|
15
|
+
"lint": "eslint 'src/**/*.ts'",
|
|
16
|
+
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
|
17
|
+
"format": "prettier --write 'src/**/*.ts'",
|
|
18
|
+
"format:check": "prettier --check 'src/**/*.ts'",
|
|
19
|
+
"check": "npm run lint && npm run format:check && npm run build",
|
|
20
|
+
"prepare": "husky",
|
|
21
|
+
"prepack": "npm run build",
|
|
22
|
+
"semantic-release": "semantic-release"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/Kill-B/openapi-alchemist.git"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"openapi",
|
|
30
|
+
"swagger",
|
|
31
|
+
"oas3",
|
|
32
|
+
"oas2",
|
|
33
|
+
"openapi-3",
|
|
34
|
+
"openapi-2",
|
|
35
|
+
"api",
|
|
36
|
+
"transform",
|
|
37
|
+
"convert",
|
|
38
|
+
"transformer",
|
|
39
|
+
"alchemist",
|
|
40
|
+
"typescript"
|
|
41
|
+
],
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/Kill-B/openapi-alchemist/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/Kill-B/openapi-alchemist#readme",
|
|
47
|
+
"note": "TypeScript fork of https://github.com/LucyBot-Inc/api-spec-converter",
|
|
48
|
+
"files": [
|
|
49
|
+
"dist/**/*.js",
|
|
50
|
+
"dist/**/*.d.ts",
|
|
51
|
+
"!dist/test/**",
|
|
52
|
+
"README.md",
|
|
53
|
+
"LICENSE"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"provenance": true
|
|
58
|
+
},
|
|
59
|
+
"release": {
|
|
60
|
+
"branches": [
|
|
61
|
+
"main"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"js-yaml": "^4.3.2"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@eslint/js": "^9.38.0",
|
|
69
|
+
"@types/js-yaml": "^4.0.9",
|
|
70
|
+
"@types/node": "^22.0.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
72
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
73
|
+
"eslint": "^9.38.0",
|
|
74
|
+
"eslint-config-prettier": "^10.1.8",
|
|
75
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
76
|
+
"globals": "^16.4.0",
|
|
77
|
+
"husky": "^9.1.7",
|
|
78
|
+
"lint-staged": "^16.2.6",
|
|
79
|
+
"prettier": "^3.6.2",
|
|
80
|
+
"semantic-release": "25.0.9",
|
|
81
|
+
"typescript": "^5.0.0"
|
|
82
|
+
},
|
|
83
|
+
"lint-staged": {
|
|
84
|
+
"src/**/*.ts": [
|
|
85
|
+
"eslint --fix",
|
|
86
|
+
"prettier --write"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|