@scalar/openapi-to-markdown 0.3.3 → 0.3.4
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/CHANGELOG.md +21 -0
- package/dist/components/XmlOrJson.vue.d.ts.map +1 -1
- package/dist/components/XmlOrJson.vue.js +9 -9
- package/dist/create-markdown-from-openapi.d.ts +0 -1
- package/dist/create-markdown-from-openapi.d.ts.map +1 -1
- package/dist/create-markdown-from-openapi.js +1 -2
- package/package.json +12 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @scalar/openapi-to-markdown
|
|
2
2
|
|
|
3
|
+
## 0.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7337](https://github.com/scalar/scalar/pull/7337) [`0b881ee`](https://github.com/scalar/scalar/commit/0b881eec7ae5d43c80b00d9ee05ee0bb9d745acf) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(openapi-to-markdown): remove unused dependencies
|
|
8
|
+
- `@scalar/snippetz`
|
|
9
|
+
- `rehype-stringify`
|
|
10
|
+
|
|
11
|
+
- [#7385](https://github.com/scalar/scalar/pull/7385) [`8f26496`](https://github.com/scalar/scalar/commit/8f26496829285a56622b977b002a39ac7cea5ce5) Thanks [@inyourtime](https://github.com/inyourtime)! - feat(openapi-to-markdown): add language classes to code blocks
|
|
12
|
+
|
|
13
|
+
- [#7337](https://github.com/scalar/scalar/pull/7337) [`0b881ee`](https://github.com/scalar/scalar/commit/0b881eec7ae5d43c80b00d9ee05ee0bb9d745acf) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(openapi-to-markdown): remove css exports pointing to non-existing files
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`d86f1d6`](https://github.com/scalar/scalar/commit/d86f1d6911ecbca70b011a2a0efb6d6e0eca59bb), [`44aeef0`](https://github.com/scalar/scalar/commit/44aeef01073801165e339163462378b7b62ff68d), [`0519a33`](https://github.com/scalar/scalar/commit/0519a33c7d3f3cf65b93b37392c51d3c0586cbab), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47), [`5a108fc`](https://github.com/scalar/scalar/commit/5a108fcbc52ae7957731c23689896ba353b83d3b), [`cded2d6`](https://github.com/scalar/scalar/commit/cded2d6c087418c3c44731d344d0827a87b78b74), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47)]:
|
|
16
|
+
- @scalar/helpers@0.1.2
|
|
17
|
+
- @scalar/types@0.5.0
|
|
18
|
+
- @scalar/oas-utils@0.6.4
|
|
19
|
+
- @scalar/components@0.16.4
|
|
20
|
+
- @scalar/openapi-parser@0.23.3
|
|
21
|
+
- @scalar/openapi-upgrader@0.1.4
|
|
22
|
+
- @scalar/openapi-types@0.5.1
|
|
23
|
+
|
|
3
24
|
## 0.3.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XmlOrJson.vue.d.ts","sourceRoot":"","sources":["../../src/components/XmlOrJson.vue"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,KAAK,WAAW,GAAG;IACf,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,WAAW,CAAC,YAAY,CAAA;CACrC,CAAC;;SAFM,OAAO;;
|
|
1
|
+
{"version":3,"file":"XmlOrJson.vue.d.ts","sourceRoot":"","sources":["../../src/components/XmlOrJson.vue"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,KAAK,WAAW,GAAG;IACf,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,WAAW,CAAC,YAAY,CAAA;CACrC,CAAC;;SAFM,OAAO;;AA6DjB,wBAOG"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { json2xml as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, createElementBlock as o, openBlock as l, createElementVNode as n, toDisplayString as t, unref as a } from "vue";
|
|
2
|
+
import { json2xml as r } from "@scalar/helpers/file/json2xml";
|
|
3
|
+
const m = { key: 0 }, c = { class: "language-xml" }, p = { key: 1 }, d = { class: "language-json" }, g = /* @__PURE__ */ s({
|
|
4
4
|
__name: "XmlOrJson",
|
|
5
5
|
props: {
|
|
6
6
|
xml: { type: Boolean, default: !1 },
|
|
7
7
|
modelValue: { type: [Object, Boolean] }
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
return (e,
|
|
11
|
-
n("code",
|
|
12
|
-
])) : (l(), o("pre",
|
|
13
|
-
n("code",
|
|
9
|
+
setup(_) {
|
|
10
|
+
return (e, i) => e.xml ? (l(), o("pre", m, [
|
|
11
|
+
n("code", c, t(a(r)(e.modelValue)), 1)
|
|
12
|
+
])) : (l(), o("pre", p, [
|
|
13
|
+
n("code", d, t(JSON.stringify(e.modelValue, null, 2)), 1)
|
|
14
14
|
]));
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
g as default
|
|
19
19
|
};
|
|
@@ -2,6 +2,5 @@ import type { OpenAPI } from '@scalar/openapi-types';
|
|
|
2
2
|
type AnyDocument = OpenAPI.Document | Record<string, unknown> | string;
|
|
3
3
|
export declare function createHtmlFromOpenApi(input: AnyDocument): Promise<string>;
|
|
4
4
|
export declare function createMarkdownFromOpenApi(content: AnyDocument): Promise<string>;
|
|
5
|
-
export declare function markdownFromHtml(html: string): Promise<string>;
|
|
6
5
|
export {};
|
|
7
6
|
//# sourceMappingURL=create-markdown-from-openapi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-markdown-from-openapi.d.ts","sourceRoot":"","sources":["../src/create-markdown-from-openapi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAepD,KAAK,WAAW,GAAG,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtE,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,WAAW,mBAyB7D;AAED,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,WAAW,mBAEnE
|
|
1
|
+
{"version":3,"file":"create-markdown-from-openapi.d.ts","sourceRoot":"","sources":["../src/create-markdown-from-openapi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAepD,KAAK,WAAW,GAAG,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtE,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,WAAW,mBAyB7D;AAED,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,WAAW,mBAEnE"}
|
package/package.json
CHANGED
|
@@ -16,63 +16,52 @@
|
|
|
16
16
|
"llm",
|
|
17
17
|
"swagger"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.3.
|
|
19
|
+
"version": "0.3.4",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "dist/index.js",
|
|
25
|
+
"module": "dist/index.js",
|
|
25
26
|
"exports": {
|
|
26
27
|
".": {
|
|
27
28
|
"import": "./dist/index.js",
|
|
28
29
|
"types": "./dist/index.d.ts",
|
|
29
30
|
"default": "./dist/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./*.css": {
|
|
32
|
-
"import": "./dist/*.css",
|
|
33
|
-
"require": "./dist/*.css",
|
|
34
|
-
"default": "./dist/*.css"
|
|
35
|
-
},
|
|
36
|
-
"./css/*.css": {
|
|
37
|
-
"import": "./dist/css/*.css",
|
|
38
|
-
"require": "./dist/css/*.css",
|
|
39
|
-
"default": "./dist/css/*.css"
|
|
40
31
|
}
|
|
41
32
|
},
|
|
42
33
|
"files": [
|
|
43
34
|
"dist",
|
|
44
35
|
"CHANGELOG.md"
|
|
45
36
|
],
|
|
46
|
-
"module": "dist/index.js",
|
|
47
37
|
"dependencies": {
|
|
48
38
|
"html-minifier-terser": "^7.2.0",
|
|
49
39
|
"rehype-parse": "^9.0.0",
|
|
50
40
|
"rehype-remark": "^10.0.1",
|
|
51
41
|
"rehype-sanitize": "^6.0.0",
|
|
52
|
-
"rehype-stringify": "^10.0.0",
|
|
53
42
|
"remark-gfm": "^4.0.0",
|
|
54
43
|
"remark-stringify": "^11.0.0",
|
|
55
44
|
"unified": "^11.0.4",
|
|
56
45
|
"vue": "^3.5.21",
|
|
57
|
-
"@scalar/components": "0.16.
|
|
58
|
-
"@scalar/
|
|
59
|
-
"@scalar/
|
|
60
|
-
"@scalar/openapi-types": "0.5.1",
|
|
61
|
-
"@scalar/snippetz": "0.5.2",
|
|
62
|
-
"@scalar/openapi-parser": "0.23.2",
|
|
46
|
+
"@scalar/components": "0.16.4",
|
|
47
|
+
"@scalar/oas-utils": "0.6.4",
|
|
48
|
+
"@scalar/openapi-parser": "0.23.3",
|
|
63
49
|
"@scalar/openapi-upgrader": "0.1.4",
|
|
64
|
-
"@scalar/
|
|
50
|
+
"@scalar/helpers": "0.1.2",
|
|
51
|
+
"@scalar/types": "0.5.0",
|
|
52
|
+
"@scalar/openapi-types": "0.5.1"
|
|
65
53
|
},
|
|
66
54
|
"devDependencies": {
|
|
67
55
|
"@hono/node-server": "1.19.5",
|
|
68
56
|
"@types/html-minifier-terser": "^7.0.2",
|
|
69
57
|
"@vitejs/plugin-vue": "6.0.1",
|
|
70
58
|
"@vue/test-utils": "2.4.6",
|
|
71
|
-
"hono": "4.10.
|
|
59
|
+
"hono": "4.10.3",
|
|
72
60
|
"vite": "7.1.11",
|
|
61
|
+
"vitest": "3.2.4",
|
|
73
62
|
"vue": "^3.5.21",
|
|
74
|
-
"@scalar/build-tooling": "0.
|
|
75
|
-
"@scalar/galaxy": "0.5.
|
|
63
|
+
"@scalar/build-tooling": "0.3.0",
|
|
64
|
+
"@scalar/galaxy": "0.5.12"
|
|
76
65
|
},
|
|
77
66
|
"scripts": {
|
|
78
67
|
"build": "scalar-build-vite",
|