@scalar/openapi-to-markdown 0.3.3 → 0.3.5
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 +36 -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/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +13 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @scalar/openapi-to-markdown
|
|
2
2
|
|
|
3
|
+
## 0.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7387](https://github.com/scalar/scalar/pull/7387) [`bfd814a`](https://github.com/scalar/scalar/commit/bfd814a4219660face190041cc4845182b56ab03) Thanks [@geoffgscott](https://github.com/geoffgscott)! - hotfix: patch exports from build tooling bug
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`5aa0380`](https://github.com/scalar/scalar/commit/5aa0380adfcd173e58659fb5dd57df363d985583), [`62b5210`](https://github.com/scalar/scalar/commit/62b521092bafeb8e83e79222e13378c4a19defc8), [`a164d76`](https://github.com/scalar/scalar/commit/a164d76f21437b3a35210d62a996b6c9d483e5a4), [`bfd814a`](https://github.com/scalar/scalar/commit/bfd814a4219660face190041cc4845182b56ab03), [`86f028d`](https://github.com/scalar/scalar/commit/86f028deb0b456f923edd261f5f4b0fa9b616b7d)]:
|
|
10
|
+
- @scalar/components@0.16.5
|
|
11
|
+
- @scalar/openapi-types@0.5.2
|
|
12
|
+
- @scalar/helpers@0.1.3
|
|
13
|
+
- @scalar/types@0.5.1
|
|
14
|
+
- @scalar/oas-utils@0.6.5
|
|
15
|
+
- @scalar/openapi-parser@0.23.4
|
|
16
|
+
- @scalar/openapi-upgrader@0.1.5
|
|
17
|
+
|
|
18
|
+
## 0.3.4
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#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
|
|
23
|
+
- `@scalar/snippetz`
|
|
24
|
+
- `rehype-stringify`
|
|
25
|
+
|
|
26
|
+
- [#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
|
|
27
|
+
|
|
28
|
+
- [#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
|
|
29
|
+
|
|
30
|
+
- 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)]:
|
|
31
|
+
- @scalar/helpers@0.1.2
|
|
32
|
+
- @scalar/types@0.5.0
|
|
33
|
+
- @scalar/oas-utils@0.6.4
|
|
34
|
+
- @scalar/components@0.16.4
|
|
35
|
+
- @scalar/openapi-parser@0.23.3
|
|
36
|
+
- @scalar/openapi-upgrader@0.1.4
|
|
37
|
+
- @scalar/openapi-types@0.5.1
|
|
38
|
+
|
|
3
39
|
## 0.3.3
|
|
4
40
|
|
|
5
41
|
### 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/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { createMarkdownFromOpenApi } from './create-markdown-from-openapi.js';
|
|
2
|
-
export { createHtmlFromOpenApi } from './create-markdown-from-openapi.js';
|
|
1
|
+
export { createHtmlFromOpenApi, createMarkdownFromOpenApi } from './create-markdown-from-openapi.js';
|
|
3
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA"}
|
package/package.json
CHANGED
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
"llm",
|
|
17
17
|
"swagger"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.3.
|
|
19
|
+
"version": "0.3.5",
|
|
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",
|
|
@@ -43,36 +44,34 @@
|
|
|
43
44
|
"dist",
|
|
44
45
|
"CHANGELOG.md"
|
|
45
46
|
],
|
|
46
|
-
"module": "dist/index.js",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"html-minifier-terser": "^7.2.0",
|
|
49
49
|
"rehype-parse": "^9.0.0",
|
|
50
50
|
"rehype-remark": "^10.0.1",
|
|
51
51
|
"rehype-sanitize": "^6.0.0",
|
|
52
|
-
"rehype-stringify": "^10.0.0",
|
|
53
52
|
"remark-gfm": "^4.0.0",
|
|
54
53
|
"remark-stringify": "^11.0.0",
|
|
55
54
|
"unified": "^11.0.4",
|
|
56
55
|
"vue": "^3.5.21",
|
|
57
|
-
"@scalar/components": "0.16.
|
|
58
|
-
"@scalar/helpers": "0.1.
|
|
59
|
-
"@scalar/oas-utils": "0.6.
|
|
60
|
-
"@scalar/openapi-
|
|
61
|
-
"@scalar/
|
|
62
|
-
"@scalar/
|
|
63
|
-
"@scalar/openapi-upgrader": "0.1.
|
|
64
|
-
"@scalar/types": "0.4.0"
|
|
56
|
+
"@scalar/components": "0.16.5",
|
|
57
|
+
"@scalar/helpers": "0.1.3",
|
|
58
|
+
"@scalar/oas-utils": "0.6.5",
|
|
59
|
+
"@scalar/openapi-parser": "0.23.4",
|
|
60
|
+
"@scalar/openapi-types": "0.5.2",
|
|
61
|
+
"@scalar/types": "0.5.1",
|
|
62
|
+
"@scalar/openapi-upgrader": "0.1.5"
|
|
65
63
|
},
|
|
66
64
|
"devDependencies": {
|
|
67
65
|
"@hono/node-server": "1.19.5",
|
|
68
66
|
"@types/html-minifier-terser": "^7.0.2",
|
|
69
67
|
"@vitejs/plugin-vue": "6.0.1",
|
|
70
68
|
"@vue/test-utils": "2.4.6",
|
|
71
|
-
"hono": "4.10.
|
|
69
|
+
"hono": "4.10.3",
|
|
72
70
|
"vite": "7.1.11",
|
|
71
|
+
"vitest": "3.2.4",
|
|
73
72
|
"vue": "^3.5.21",
|
|
74
|
-
"@scalar/build-tooling": "0.
|
|
75
|
-
"@scalar/galaxy": "0.5.
|
|
73
|
+
"@scalar/build-tooling": "0.3.1",
|
|
74
|
+
"@scalar/galaxy": "0.5.12"
|
|
76
75
|
},
|
|
77
76
|
"scripts": {
|
|
78
77
|
"build": "scalar-build-vite",
|