@scalar/api-client 2.5.12 → 2.5.15
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 +76 -0
- package/README.md +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +11 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +10 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +129 -116
- package/dist/components/DataTable/DataTableCell.vue.js +8 -8
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +7 -7
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +1 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +5 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.js +20 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/import-collection.js +1 -1
- package/dist/components/ImportCollection/utils/{isDocument.d.ts → is-document.d.ts} +2 -2
- package/dist/components/ImportCollection/utils/is-document.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-document.js +9 -0
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.d.ts +5 -0
- package/dist/components/ImportCollection/utils/is-url.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.js +9 -0
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +1 -0
- package/dist/components/OpenApiClientButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +8 -8
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +13 -13
- package/dist/components/TopNav/TopNav.vue.js +10 -10
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +5 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +42 -36
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +4 -4
- package/dist/hooks/useClientConfig.d.ts +42 -36
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +160 -160
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +320 -320
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +160 -160
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +160 -160
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +5 -5
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +10 -10
- package/dist/libs/send-request/create-request-operation.test.d.ts +33 -33
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +5 -3
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +17 -9
- package/dist/plugins/plugin-manager.test.d.ts +2 -0
- package/dist/plugins/plugin-manager.test.d.ts.map +1 -0
- package/dist/store/active-entities.d.ts +33 -33
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +130 -130
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +55 -55
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +162 -162
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
- package/dist/views/Collection/components/EnvironmentForm.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue2.js +32 -26
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -14
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +2 -9
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +16 -30
- package/dist/views/Cookies/CookieForm.vue.js +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +67 -61
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +98 -92
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +6 -6
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +125 -121
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +22 -22
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +9 -9
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +9 -9
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
- package/package.json +22 -21
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts +0 -5
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.js +0 -20
- package/dist/components/ImportCollection/utils/isDocument.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/isDocument.js +0 -7
- package/dist/components/ImportCollection/utils/isUrl.d.ts +0 -3
- package/dist/components/ImportCollection/utils/isUrl.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/isUrl.js +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as y, createBlock as f, openBlock as r, withCtx as e, createElementBlock as l, createVNode as a, unref as d, createTextVNode as n, Fragment as i, renderList as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as y, createBlock as f, openBlock as r, withCtx as e, createElementBlock as l, createVNode as a, unref as d, createTextVNode as n, Fragment as i, renderList as b, toDisplayString as c } from "vue";
|
|
2
|
+
import g from "../../../components/DataTable/DataTable.vue.js";
|
|
3
3
|
import p from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import _ from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import k from "../../../components/HelpfulLink.vue.js";
|
|
6
|
+
import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
7
|
import { httpHeaders as h } from "../../../data/httpHeaders.js";
|
|
8
8
|
import x from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
9
9
|
const H = {
|
|
@@ -11,7 +11,7 @@ const H = {
|
|
|
11
11
|
class: "max-h-[calc(100%-32px)] overflow-y-auto"
|
|
12
12
|
}, C = {
|
|
13
13
|
key: 1,
|
|
14
|
-
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-
|
|
14
|
+
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"
|
|
15
15
|
}, D = /* @__PURE__ */ y({
|
|
16
16
|
__name: "RequestHeaders",
|
|
17
17
|
props: {
|
|
@@ -21,7 +21,7 @@ const H = {
|
|
|
21
21
|
const m = (s) => h.find(
|
|
22
22
|
(t) => t.name.toLowerCase() === s.toLowerCase()
|
|
23
23
|
);
|
|
24
|
-
return (s, t) => (r(), f(
|
|
24
|
+
return (s, t) => (r(), f(w, {
|
|
25
25
|
class: "overflow-auto",
|
|
26
26
|
defaultOpen: !1,
|
|
27
27
|
itemCount: s.headers.length
|
|
@@ -31,7 +31,7 @@ const H = {
|
|
|
31
31
|
])),
|
|
32
32
|
default: e(() => [
|
|
33
33
|
s.headers.length ? (r(), l("div", H, [
|
|
34
|
-
a(
|
|
34
|
+
a(g, {
|
|
35
35
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
36
36
|
scroll: ""
|
|
37
37
|
}, {
|
|
@@ -53,7 +53,7 @@ const H = {
|
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
|
-
(r(!0), l(i, null,
|
|
56
|
+
(r(!0), l(i, null, b(s.headers, (o) => (r(), f(p, {
|
|
57
57
|
key: o.name,
|
|
58
58
|
class: "group/row text-c-1"
|
|
59
59
|
}, {
|
|
@@ -62,7 +62,7 @@ const H = {
|
|
|
62
62
|
default: e(() => {
|
|
63
63
|
var u;
|
|
64
64
|
return [
|
|
65
|
-
typeof ((u = m(o.name)) == null ? void 0 : u.url) == "string" ? (r(), f(
|
|
65
|
+
typeof ((u = m(o.name)) == null ? void 0 : u.url) == "string" ? (r(), f(k, {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "decoration-c-3",
|
|
68
68
|
href: m(o.name).url
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-17966bf4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBodyRaw.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-fbacaa3e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -21,7 +21,7 @@ const R = /* @__PURE__ */ c({
|
|
|
21
21
|
t[0] || (t[0] = y("Body"))
|
|
22
22
|
]),
|
|
23
23
|
default: r(() => [
|
|
24
|
-
t[1] || (t[1] = h("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won
|
|
24
|
+
t[1] || (t[1] = h("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won't work here. ", -1)),
|
|
25
25
|
s(e(b), {
|
|
26
26
|
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
27
27
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
@@ -34,7 +34,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
34
34
|
}));
|
|
35
35
|
}, k = (o) => {
|
|
36
36
|
o != null && o.createNew && g.name === "request" && f();
|
|
37
|
-
}, w = "2.5.
|
|
37
|
+
}, w = "2.5.15";
|
|
38
38
|
return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), i("div", W, [
|
|
39
39
|
s("div", {
|
|
40
40
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as y, createBlock as f, openBlock as t, withCtx as e, createElementBlock as l, createVNode as a, unref as u, createTextVNode as n, Fragment as i, renderList as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as y, createBlock as f, openBlock as t, withCtx as e, createElementBlock as l, createVNode as a, unref as u, createTextVNode as n, Fragment as i, renderList as b, toDisplayString as p } from "vue";
|
|
2
|
+
import g from "../../../components/DataTable/DataTable.vue.js";
|
|
3
3
|
import c from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import _ from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import k from "../../../components/HelpfulLink.vue.js";
|
|
6
|
+
import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
7
|
import { httpHeaders as h } from "../../../data/httpHeaders.js";
|
|
8
8
|
import x from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
9
9
|
const H = {
|
|
@@ -11,7 +11,7 @@ const H = {
|
|
|
11
11
|
class: "max-h-[calc(100%-32px)] overflow-y-auto"
|
|
12
12
|
}, C = {
|
|
13
13
|
key: 1,
|
|
14
|
-
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-
|
|
14
|
+
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"
|
|
15
15
|
}, T = /* @__PURE__ */ y({
|
|
16
16
|
__name: "ResponseHeaders",
|
|
17
17
|
props: {
|
|
@@ -21,7 +21,7 @@ const H = {
|
|
|
21
21
|
const m = (s) => h.find(
|
|
22
22
|
(r) => r.name.toLowerCase() === s.toLowerCase()
|
|
23
23
|
);
|
|
24
|
-
return (s, r) => (t(), f(
|
|
24
|
+
return (s, r) => (t(), f(w, {
|
|
25
25
|
class: "overflow-auto",
|
|
26
26
|
defaultOpen: !1,
|
|
27
27
|
itemCount: s.headers.length
|
|
@@ -31,7 +31,7 @@ const H = {
|
|
|
31
31
|
])),
|
|
32
32
|
default: e(() => [
|
|
33
33
|
s.headers.length ? (t(), l("div", H, [
|
|
34
|
-
a(
|
|
34
|
+
a(g, {
|
|
35
35
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
36
36
|
scroll: ""
|
|
37
37
|
}, {
|
|
@@ -53,7 +53,7 @@ const H = {
|
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
|
-
(t(!0), l(i, null,
|
|
56
|
+
(t(!0), l(i, null, b(s.headers, (o) => (t(), f(c, {
|
|
57
57
|
key: o.name,
|
|
58
58
|
class: "group/row text-c-1"
|
|
59
59
|
}, {
|
|
@@ -62,7 +62,7 @@ const H = {
|
|
|
62
62
|
default: e(() => {
|
|
63
63
|
var d;
|
|
64
64
|
return [
|
|
65
|
-
typeof ((d = m(o.name)) == null ? void 0 : d.url) == "string" ? (t(), f(
|
|
65
|
+
typeof ((d = m(o.name)) == null ? void 0 : d.url) == "string" ? (t(), f(k, {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "decoration-c-3",
|
|
68
68
|
href: m(o.name).url
|
|
@@ -5,7 +5,7 @@ import Y from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.
|
|
|
5
5
|
import G from "../../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
6
6
|
import { useActiveEntities as H } from "../../../store/active-entities.js";
|
|
7
7
|
import { useWorkspace as J } from "../../../store/store.js";
|
|
8
|
-
const K = { class: "flex w-[inherit] items-center text-
|
|
8
|
+
const K = { class: "flex w-[inherit] items-center text-base" }, Q = { class: "m-0 flex items-center gap-1.5 font-bold" }, X = { class: "line-clamp-1 text-left" }, Z = { class: "overflow-hidden text-ellipsis" }, ee = { class: "flex h-4 w-4 items-center justify-center" }, ce = /* @__PURE__ */ L({
|
|
9
9
|
__name: "WorkspaceDropdown",
|
|
10
10
|
setup(te) {
|
|
11
11
|
const { activeWorkspace: c } = H(), { workspaces: r, workspaceMutators: _, events: T } = J(), { push: g } = P(), j = (o) => {
|
|
@@ -162,7 +162,7 @@ const K = { class: "flex w-[inherit] items-center text-sm" }, Q = { class: "m-0
|
|
|
162
162
|
default: a(() => [
|
|
163
163
|
s(Y, {
|
|
164
164
|
variableName: d.value,
|
|
165
|
-
warningMessage: "This cannot be undone. You
|
|
165
|
+
warningMessage: "This cannot be undone. You're about to delete the workspace and everything inside it.",
|
|
166
166
|
onClose: t[0] || (t[0] = (n) => e(p).hide()),
|
|
167
167
|
onDelete: A
|
|
168
168
|
}, null, 8, ["variableName"])
|
|
@@ -174,7 +174,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
|
|
|
174
174
|
a(" Themes ")
|
|
175
175
|
])),
|
|
176
176
|
description: n(() => t[8] || (t[8] = [
|
|
177
|
-
a(" We
|
|
177
|
+
a(" We've got a whole rainbow of themes for you to play with: ")
|
|
178
178
|
])),
|
|
179
179
|
default: n(() => [
|
|
180
180
|
r("div", M, [
|
|
@@ -245,7 +245,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
|
|
|
245
245
|
a(" Framework Themes ")
|
|
246
246
|
])),
|
|
247
247
|
description: n(() => t[10] || (t[10] = [
|
|
248
|
-
a(" Are you a real fan? Show your support by using your favorite framework
|
|
248
|
+
a(" Are you a real fan? Show your support by using your favorite framework's theme! ")
|
|
249
249
|
])),
|
|
250
250
|
default: n(() => [
|
|
251
251
|
r("div", K, [
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.5.
|
|
21
|
+
"version": "2.5.15",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -189,36 +189,37 @@
|
|
|
189
189
|
"dependencies": {
|
|
190
190
|
"@headlessui/tailwindcss": "^0.2.0",
|
|
191
191
|
"@headlessui/vue": "^1.7.20",
|
|
192
|
+
"@types/har-format": "^1.2.15",
|
|
192
193
|
"@vueuse/core": "^10.10.0",
|
|
193
194
|
"@vueuse/integrations": "^11.2.0",
|
|
194
195
|
"focus-trap": "^7",
|
|
195
196
|
"fuse.js": "^7.0.0",
|
|
196
197
|
"microdiff": "^1.4.0",
|
|
197
|
-
"nanoid": "
|
|
198
|
+
"nanoid": "5.1.5",
|
|
198
199
|
"pretty-bytes": "^6.1.1",
|
|
199
200
|
"pretty-ms": "^8.0.0",
|
|
200
201
|
"shell-quote": "^1.8.1",
|
|
201
|
-
"type-fest": "
|
|
202
|
+
"type-fest": "4.41.0",
|
|
202
203
|
"vue": "^3.5.12",
|
|
203
204
|
"vue-router": "^4.3.0",
|
|
204
205
|
"whatwg-mimetype": "^4.0.0",
|
|
205
|
-
"yaml": "
|
|
206
|
+
"yaml": "2.8.0",
|
|
206
207
|
"zod": "3.24.1",
|
|
207
|
-
"@scalar/
|
|
208
|
+
"@scalar/icons": "0.4.6",
|
|
208
209
|
"@scalar/draggable": "0.2.0",
|
|
209
|
-
"@scalar/helpers": "0.0.
|
|
210
|
-
"@scalar/
|
|
211
|
-
"@scalar/import": "0.4.
|
|
212
|
-
"@scalar/oas-utils": "0.4.
|
|
213
|
-
"@scalar/object-utils": "1.2.
|
|
214
|
-
"@scalar/openapi-
|
|
215
|
-
"@scalar/openapi-
|
|
216
|
-
"@scalar/snippetz": "0.
|
|
217
|
-
"@scalar/
|
|
218
|
-
"@scalar/
|
|
219
|
-
"@scalar/
|
|
220
|
-
"@scalar/use-
|
|
221
|
-
"@scalar/
|
|
210
|
+
"@scalar/helpers": "0.0.6",
|
|
211
|
+
"@scalar/components": "0.14.16",
|
|
212
|
+
"@scalar/import": "0.4.13",
|
|
213
|
+
"@scalar/oas-utils": "0.4.11",
|
|
214
|
+
"@scalar/object-utils": "1.2.2",
|
|
215
|
+
"@scalar/openapi-parser": "0.18.1",
|
|
216
|
+
"@scalar/openapi-types": "0.3.5",
|
|
217
|
+
"@scalar/snippetz": "0.4.0",
|
|
218
|
+
"@scalar/types": "0.2.7",
|
|
219
|
+
"@scalar/postman-to-openapi": "0.3.14",
|
|
220
|
+
"@scalar/use-codemirror": "0.12.17",
|
|
221
|
+
"@scalar/use-hooks": "0.2.4",
|
|
222
|
+
"@scalar/themes": "0.13.8",
|
|
222
223
|
"@scalar/use-toasts": "0.8.0",
|
|
223
224
|
"@scalar/use-tooltip": "1.1.0"
|
|
224
225
|
},
|
|
@@ -232,9 +233,9 @@
|
|
|
232
233
|
"tailwindcss": "^4.1.7",
|
|
233
234
|
"vite": "5.4.19",
|
|
234
235
|
"vite-svg-loader": "^5.1.0",
|
|
235
|
-
"vitest": "^1.6.
|
|
236
|
-
"@scalar/build-tooling": "0.2.
|
|
237
|
-
"@scalar/galaxy": "0.5.
|
|
236
|
+
"vitest": "^1.6.1",
|
|
237
|
+
"@scalar/build-tooling": "0.2.4",
|
|
238
|
+
"@scalar/galaxy": "0.5.3"
|
|
238
239
|
},
|
|
239
240
|
"scripts": {
|
|
240
241
|
"build": "scalar-build-vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOpenApiDocumentVersion.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/utils/getOpenApiDocumentVersion.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,kBAsC7D"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { isDocument as n } from "./isDocument.js";
|
|
2
|
-
import { parse as t } from "yaml";
|
|
3
|
-
function a(r) {
|
|
4
|
-
if (!n(r))
|
|
5
|
-
return !1;
|
|
6
|
-
try {
|
|
7
|
-
const e = JSON.parse(r ?? "");
|
|
8
|
-
return typeof (e == null ? void 0 : e.openapi) == "string" ? `OpenAPI ${e.openapi} JSON` : typeof (e == null ? void 0 : e.swagger) == "string" ? `Swagger ${e.swagger} JSON` : !1;
|
|
9
|
-
} catch {
|
|
10
|
-
}
|
|
11
|
-
try {
|
|
12
|
-
const e = t(r ?? "");
|
|
13
|
-
return typeof (e == null ? void 0 : e.openapi) == "string" ? `OpenAPI ${e.openapi} YAML` : typeof (e == null ? void 0 : e.swagger) == "string" ? `Swagger ${e.swagger} YAML` : !1;
|
|
14
|
-
} catch {
|
|
15
|
-
}
|
|
16
|
-
return !1;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
a as getOpenApiDocumentVersion
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDocument.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/utils/isDocument.ts"],"names":[],"mappings":"AAEA,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,uBAE9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isUrl.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/utils/isUrl.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,uBAEzC"}
|