@scalar/api-client 1.1.2 → 1.1.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.
@@ -0,0 +1,370 @@
1
+ (function() {
2
+ if (typeof Prism > "u" || typeof document > "u")
3
+ return;
4
+ var j = (
5
+ /*dependencies_placeholder[*/
6
+ {
7
+ javascript: "clike",
8
+ actionscript: "javascript",
9
+ apex: [
10
+ "clike",
11
+ "sql"
12
+ ],
13
+ arduino: "cpp",
14
+ aspnet: [
15
+ "markup",
16
+ "csharp"
17
+ ],
18
+ birb: "clike",
19
+ bison: "c",
20
+ c: "clike",
21
+ csharp: "clike",
22
+ cpp: "c",
23
+ cfscript: "clike",
24
+ chaiscript: [
25
+ "clike",
26
+ "cpp"
27
+ ],
28
+ cilkc: "c",
29
+ cilkcpp: "cpp",
30
+ coffeescript: "javascript",
31
+ crystal: "ruby",
32
+ "css-extras": "css",
33
+ d: "clike",
34
+ dart: "clike",
35
+ django: "markup-templating",
36
+ ejs: [
37
+ "javascript",
38
+ "markup-templating"
39
+ ],
40
+ etlua: [
41
+ "lua",
42
+ "markup-templating"
43
+ ],
44
+ erb: [
45
+ "ruby",
46
+ "markup-templating"
47
+ ],
48
+ fsharp: "clike",
49
+ "firestore-security-rules": "clike",
50
+ flow: "javascript",
51
+ ftl: "markup-templating",
52
+ gml: "clike",
53
+ glsl: "c",
54
+ go: "clike",
55
+ gradle: "clike",
56
+ groovy: "clike",
57
+ haml: "ruby",
58
+ handlebars: "markup-templating",
59
+ haxe: "clike",
60
+ hlsl: "c",
61
+ idris: "haskell",
62
+ java: "clike",
63
+ javadoc: [
64
+ "markup",
65
+ "java",
66
+ "javadoclike"
67
+ ],
68
+ jolie: "clike",
69
+ jsdoc: [
70
+ "javascript",
71
+ "javadoclike",
72
+ "typescript"
73
+ ],
74
+ "js-extras": "javascript",
75
+ json5: "json",
76
+ jsonp: "json",
77
+ "js-templates": "javascript",
78
+ kotlin: "clike",
79
+ latte: [
80
+ "clike",
81
+ "markup-templating",
82
+ "php"
83
+ ],
84
+ less: "css",
85
+ lilypond: "scheme",
86
+ liquid: "markup-templating",
87
+ markdown: "markup",
88
+ "markup-templating": "markup",
89
+ mongodb: "javascript",
90
+ n4js: "javascript",
91
+ objectivec: "c",
92
+ opencl: "c",
93
+ parser: "markup",
94
+ php: "markup-templating",
95
+ phpdoc: [
96
+ "php",
97
+ "javadoclike"
98
+ ],
99
+ "php-extras": "php",
100
+ plsql: "sql",
101
+ processing: "clike",
102
+ protobuf: "clike",
103
+ pug: [
104
+ "markup",
105
+ "javascript"
106
+ ],
107
+ purebasic: "clike",
108
+ purescript: "haskell",
109
+ qsharp: "clike",
110
+ qml: "javascript",
111
+ qore: "clike",
112
+ racket: "scheme",
113
+ cshtml: [
114
+ "markup",
115
+ "csharp"
116
+ ],
117
+ jsx: [
118
+ "markup",
119
+ "javascript"
120
+ ],
121
+ tsx: [
122
+ "jsx",
123
+ "typescript"
124
+ ],
125
+ reason: "clike",
126
+ ruby: "clike",
127
+ sass: "css",
128
+ scss: "css",
129
+ scala: "java",
130
+ "shell-session": "bash",
131
+ smarty: "markup-templating",
132
+ solidity: "clike",
133
+ soy: "markup-templating",
134
+ sparql: "turtle",
135
+ sqf: "clike",
136
+ squirrel: "clike",
137
+ stata: [
138
+ "mata",
139
+ "java",
140
+ "python"
141
+ ],
142
+ "t4-cs": [
143
+ "t4-templating",
144
+ "csharp"
145
+ ],
146
+ "t4-vb": [
147
+ "t4-templating",
148
+ "vbnet"
149
+ ],
150
+ tap: "yaml",
151
+ tt2: [
152
+ "clike",
153
+ "markup-templating"
154
+ ],
155
+ textile: "markup",
156
+ twig: "markup-templating",
157
+ typescript: "javascript",
158
+ v: "clike",
159
+ vala: "clike",
160
+ vbnet: "basic",
161
+ velocity: "markup",
162
+ wiki: "markup",
163
+ xeora: "markup",
164
+ "xml-doc": "markup",
165
+ xquery: "markup"
166
+ }
167
+ ), d = (
168
+ /*aliases_placeholder[*/
169
+ {
170
+ html: "markup",
171
+ xml: "markup",
172
+ svg: "markup",
173
+ mathml: "markup",
174
+ ssml: "markup",
175
+ atom: "markup",
176
+ rss: "markup",
177
+ js: "javascript",
178
+ g4: "antlr4",
179
+ ino: "arduino",
180
+ "arm-asm": "armasm",
181
+ art: "arturo",
182
+ adoc: "asciidoc",
183
+ avs: "avisynth",
184
+ avdl: "avro-idl",
185
+ gawk: "awk",
186
+ sh: "bash",
187
+ shell: "bash",
188
+ shortcode: "bbcode",
189
+ rbnf: "bnf",
190
+ oscript: "bsl",
191
+ cs: "csharp",
192
+ dotnet: "csharp",
193
+ cfc: "cfscript",
194
+ "cilk-c": "cilkc",
195
+ "cilk-cpp": "cilkcpp",
196
+ cilk: "cilkcpp",
197
+ coffee: "coffeescript",
198
+ conc: "concurnas",
199
+ jinja2: "django",
200
+ "dns-zone": "dns-zone-file",
201
+ dockerfile: "docker",
202
+ gv: "dot",
203
+ eta: "ejs",
204
+ xlsx: "excel-formula",
205
+ xls: "excel-formula",
206
+ gamemakerlanguage: "gml",
207
+ po: "gettext",
208
+ gni: "gn",
209
+ ld: "linker-script",
210
+ "go-mod": "go-module",
211
+ hbs: "handlebars",
212
+ mustache: "handlebars",
213
+ hs: "haskell",
214
+ idr: "idris",
215
+ gitignore: "ignore",
216
+ hgignore: "ignore",
217
+ npmignore: "ignore",
218
+ webmanifest: "json",
219
+ kt: "kotlin",
220
+ kts: "kotlin",
221
+ kum: "kumir",
222
+ tex: "latex",
223
+ context: "latex",
224
+ ly: "lilypond",
225
+ emacs: "lisp",
226
+ elisp: "lisp",
227
+ "emacs-lisp": "lisp",
228
+ md: "markdown",
229
+ moon: "moonscript",
230
+ n4jsd: "n4js",
231
+ nani: "naniscript",
232
+ objc: "objectivec",
233
+ qasm: "openqasm",
234
+ objectpascal: "pascal",
235
+ px: "pcaxis",
236
+ pcode: "peoplecode",
237
+ plantuml: "plant-uml",
238
+ pq: "powerquery",
239
+ mscript: "powerquery",
240
+ pbfasm: "purebasic",
241
+ purs: "purescript",
242
+ py: "python",
243
+ qs: "qsharp",
244
+ rkt: "racket",
245
+ razor: "cshtml",
246
+ rpy: "renpy",
247
+ res: "rescript",
248
+ robot: "robotframework",
249
+ rb: "ruby",
250
+ "sh-session": "shell-session",
251
+ shellsession: "shell-session",
252
+ smlnj: "sml",
253
+ sol: "solidity",
254
+ sln: "solution-file",
255
+ rq: "sparql",
256
+ sclang: "supercollider",
257
+ t4: "t4-cs",
258
+ trickle: "tremor",
259
+ troy: "tremor",
260
+ trig: "turtle",
261
+ ts: "typescript",
262
+ tsconfig: "typoscript",
263
+ uscript: "unrealscript",
264
+ uc: "unrealscript",
265
+ url: "uri",
266
+ vb: "visual-basic",
267
+ vba: "visual-basic",
268
+ webidl: "web-idl",
269
+ mathematica: "wolfram",
270
+ nb: "wolfram",
271
+ wl: "wolfram",
272
+ xeoracube: "xeora",
273
+ yml: "yaml"
274
+ }
275
+ ), l = {}, y = "none", p = "components/", u = Prism.util.currentScript();
276
+ if (u) {
277
+ var k = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, f = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, g = u.getAttribute("data-autoloader-path");
278
+ if (g != null)
279
+ p = g.trim().replace(/\/?$/, "/");
280
+ else {
281
+ var n = u.src;
282
+ k.test(n) ? p = n.replace(k, "components/") : f.test(n) && (p = n.replace(f, "$1components/"));
283
+ }
284
+ }
285
+ var h = Prism.plugins.autoloader = {
286
+ languages_path: p,
287
+ use_minified: true,
288
+ loadLanguages: m
289
+ };
290
+ function x(e, a, i) {
291
+ var r = document.createElement("script");
292
+ r.src = e, r.async = true, r.onload = function() {
293
+ document.body.removeChild(r), a && a();
294
+ }, r.onerror = function() {
295
+ document.body.removeChild(r), i && i();
296
+ }, document.body.appendChild(r);
297
+ }
298
+ function q(e) {
299
+ var a = (e.getAttribute("data-dependencies") || "").trim();
300
+ if (!a) {
301
+ var i = e.parentElement;
302
+ i && i.tagName.toLowerCase() === "pre" && (a = (i.getAttribute("data-dependencies") || "").trim());
303
+ }
304
+ return a ? a.split(/\s*,\s*/g) : [];
305
+ }
306
+ function v(e) {
307
+ if (e.indexOf("!") >= 0)
308
+ return false;
309
+ if (e = d[e] || e, e in Prism.languages)
310
+ return true;
311
+ var a = l[e];
312
+ return a && !a.error && a.loading === false;
313
+ }
314
+ function w(e) {
315
+ return h.languages_path + "prism-" + e + (h.use_minified ? ".min" : "") + ".js";
316
+ }
317
+ function m(e, a, i) {
318
+ typeof e == "string" && (e = [e]);
319
+ var r = e.length, c = 0, s = false;
320
+ if (r === 0) {
321
+ a && setTimeout(a, 0);
322
+ return;
323
+ }
324
+ function t() {
325
+ s || (c++, c === r && a && a(e));
326
+ }
327
+ e.forEach(function(b) {
328
+ _(b, t, function() {
329
+ s || (s = true, i && i(b));
330
+ });
331
+ });
332
+ }
333
+ function _(e, a, i) {
334
+ var r = e.indexOf("!") >= 0;
335
+ e = e.replace("!", ""), e = d[e] || e;
336
+ function c() {
337
+ var t = l[e];
338
+ t || (t = l[e] = {
339
+ callbacks: []
340
+ }), t.callbacks.push({
341
+ success: a,
342
+ error: i
343
+ }), !r && v(e) ? o(e, "success") : !r && t.error ? o(e, "error") : (r || !t.loading) && (t.loading = true, t.error = false, x(w(e), function() {
344
+ t.loading = false, o(e, "success");
345
+ }, function() {
346
+ t.loading = false, t.error = true, o(e, "error");
347
+ }));
348
+ }
349
+ var s = j[e];
350
+ s && s.length ? m(s, c, i) : c();
351
+ }
352
+ function o(e, a) {
353
+ if (l[e]) {
354
+ for (var i = l[e].callbacks, r = 0, c = i.length; r < c; r++) {
355
+ var s = i[r][a];
356
+ s && setTimeout(s, 0);
357
+ }
358
+ i.length = 0;
359
+ }
360
+ }
361
+ Prism.hooks.add("complete", function(e) {
362
+ var a = e.element, i = e.language;
363
+ if (!(!a || !i || i === y)) {
364
+ var r = q(a);
365
+ /^diff-./i.test(i) ? (r.push("diff"), r.push(i.substr(5))) : r.push(i), r.every(v) || m(r, function() {
366
+ Prism.highlightElement(a);
367
+ });
368
+ }
369
+ });
370
+ })();
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "rest",
14
14
  "testing"
15
15
  ],
16
- "version": "1.1.2",
16
+ "version": "1.1.5",
17
17
  "engines": {
18
18
  "node": ">=18"
19
19
  },
@@ -39,10 +39,10 @@
39
39
  "nanoid": "^5.0.1",
40
40
  "pretty-bytes": "^6.1.1",
41
41
  "pretty-ms": "^8.0.0",
42
- "@scalar/themes": "0.6.4",
43
- "@scalar/use-codemirror": "0.9.0",
42
+ "@scalar/components": "0.4.5",
43
+ "@scalar/themes": "0.6.5",
44
44
  "@scalar/use-modal": "0.2.9",
45
- "@scalar/components": "0.4.4"
45
+ "@scalar/use-codemirror": "0.9.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/content-type": "^1.1.6",
@@ -54,9 +54,9 @@
54
54
  "vitest": "^1.2.2",
55
55
  "vue": "^3.3.0",
56
56
  "vue-tsc": "^1.8.19",
57
+ "@scalar/api-client-proxy": "0.5.23",
57
58
  "@scalar/echo-server": "0.6.0",
58
- "@scalar/oas-utils": "0.1.1",
59
- "@scalar/api-client-proxy": "0.5.23"
59
+ "@scalar/oas-utils": "0.1.1"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "vue": "^3.3.0",