@scalar/oas-utils 0.2.13 → 0.2.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.2.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 1dab515: feat: revamp address bar
8
+ - Updated dependencies [5e060b1]
9
+ - @scalar/themes@0.9.15
10
+
11
+ ## 0.2.14
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [96e7106]
16
+ - @scalar/themes@0.9.14
17
+
3
18
  ## 0.2.13
4
19
 
5
20
  ### Patch Changes
@@ -14,6 +14,7 @@ declare const requestExampleParametersSchema: z.ZodObject<{
14
14
  minimum: z.ZodOptional<z.ZodNumber>;
15
15
  maximum: z.ZodOptional<z.ZodNumber>;
16
16
  default: z.ZodOptional<z.ZodAny>;
17
+ nullable: z.ZodOptional<z.ZodBoolean>;
17
18
  }, "strip", z.ZodTypeAny, {
18
19
  value: string;
19
20
  key: string;
@@ -28,6 +29,7 @@ declare const requestExampleParametersSchema: z.ZodObject<{
28
29
  file?: File | undefined;
29
30
  refUid?: string | undefined;
30
31
  format?: string | undefined;
32
+ nullable?: boolean | undefined;
31
33
  }, {
32
34
  minimum?: number | undefined;
33
35
  type?: string | undefined;
@@ -42,6 +44,7 @@ declare const requestExampleParametersSchema: z.ZodObject<{
42
44
  file?: File | undefined;
43
45
  refUid?: string | undefined;
44
46
  format?: string | undefined;
47
+ nullable?: boolean | undefined;
45
48
  }>;
46
49
  /** Request examples - formerly known as instances - are "children" of requests */
47
50
  export type RequestExampleParameter = z.infer<typeof requestExampleParametersSchema>;
@@ -61,9 +64,11 @@ export declare const createRequestExampleParameter: (payload: RequestExamplePara
61
64
  file?: File | undefined;
62
65
  refUid?: string | undefined;
63
66
  format?: string | undefined;
67
+ nullable?: boolean | undefined;
64
68
  };
65
69
  declare const requestExampleSchema: z.ZodObject<{
66
70
  uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
71
+ url: z.ZodDefault<z.ZodOptional<z.ZodString>>;
67
72
  requestUid: z.ZodString;
68
73
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
69
74
  body: z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -94,6 +99,7 @@ declare const requestExampleSchema: z.ZodObject<{
94
99
  minimum: z.ZodOptional<z.ZodNumber>;
95
100
  maximum: z.ZodOptional<z.ZodNumber>;
96
101
  default: z.ZodOptional<z.ZodAny>;
102
+ nullable: z.ZodOptional<z.ZodBoolean>;
97
103
  }, "strip", z.ZodTypeAny, {
98
104
  value: string;
99
105
  key: string;
@@ -108,6 +114,7 @@ declare const requestExampleSchema: z.ZodObject<{
108
114
  file?: File | undefined;
109
115
  refUid?: string | undefined;
110
116
  format?: string | undefined;
117
+ nullable?: boolean | undefined;
111
118
  }, {
112
119
  minimum?: number | undefined;
113
120
  type?: string | undefined;
@@ -122,6 +129,7 @@ declare const requestExampleSchema: z.ZodObject<{
122
129
  file?: File | undefined;
123
130
  refUid?: string | undefined;
124
131
  format?: string | undefined;
132
+ nullable?: boolean | undefined;
125
133
  }>, "many">>;
126
134
  }, "strip", z.ZodTypeAny, {
127
135
  value: {
@@ -138,6 +146,7 @@ declare const requestExampleSchema: z.ZodObject<{
138
146
  file?: File | undefined;
139
147
  refUid?: string | undefined;
140
148
  format?: string | undefined;
149
+ nullable?: boolean | undefined;
141
150
  }[];
142
151
  encoding: "form-data" | "urlencoded";
143
152
  }, {
@@ -155,6 +164,7 @@ declare const requestExampleSchema: z.ZodObject<{
155
164
  file?: File | undefined;
156
165
  refUid?: string | undefined;
157
166
  format?: string | undefined;
167
+ nullable?: boolean | undefined;
158
168
  }[] | undefined;
159
169
  encoding?: "form-data" | "urlencoded" | undefined;
160
170
  }>>;
@@ -180,6 +190,7 @@ declare const requestExampleSchema: z.ZodObject<{
180
190
  file?: File | undefined;
181
191
  refUid?: string | undefined;
182
192
  format?: string | undefined;
193
+ nullable?: boolean | undefined;
183
194
  }[];
184
195
  encoding: "form-data" | "urlencoded";
185
196
  };
@@ -205,6 +216,7 @@ declare const requestExampleSchema: z.ZodObject<{
205
216
  file?: File | undefined;
206
217
  refUid?: string | undefined;
207
218
  format?: string | undefined;
219
+ nullable?: boolean | undefined;
208
220
  }[] | undefined;
209
221
  encoding?: "form-data" | "urlencoded" | undefined;
210
222
  } | undefined;
@@ -227,6 +239,7 @@ declare const requestExampleSchema: z.ZodObject<{
227
239
  minimum: z.ZodOptional<z.ZodNumber>;
228
240
  maximum: z.ZodOptional<z.ZodNumber>;
229
241
  default: z.ZodOptional<z.ZodAny>;
242
+ nullable: z.ZodOptional<z.ZodBoolean>;
230
243
  }, "strip", z.ZodTypeAny, {
231
244
  value: string;
232
245
  key: string;
@@ -241,6 +254,7 @@ declare const requestExampleSchema: z.ZodObject<{
241
254
  file?: File | undefined;
242
255
  refUid?: string | undefined;
243
256
  format?: string | undefined;
257
+ nullable?: boolean | undefined;
244
258
  }, {
245
259
  minimum?: number | undefined;
246
260
  type?: string | undefined;
@@ -255,6 +269,7 @@ declare const requestExampleSchema: z.ZodObject<{
255
269
  file?: File | undefined;
256
270
  refUid?: string | undefined;
257
271
  format?: string | undefined;
272
+ nullable?: boolean | undefined;
258
273
  }>, "many">>;
259
274
  query: z.ZodDefault<z.ZodArray<z.ZodObject<{
260
275
  key: z.ZodDefault<z.ZodString>;
@@ -271,6 +286,7 @@ declare const requestExampleSchema: z.ZodObject<{
271
286
  minimum: z.ZodOptional<z.ZodNumber>;
272
287
  maximum: z.ZodOptional<z.ZodNumber>;
273
288
  default: z.ZodOptional<z.ZodAny>;
289
+ nullable: z.ZodOptional<z.ZodBoolean>;
274
290
  }, "strip", z.ZodTypeAny, {
275
291
  value: string;
276
292
  key: string;
@@ -285,6 +301,7 @@ declare const requestExampleSchema: z.ZodObject<{
285
301
  file?: File | undefined;
286
302
  refUid?: string | undefined;
287
303
  format?: string | undefined;
304
+ nullable?: boolean | undefined;
288
305
  }, {
289
306
  minimum?: number | undefined;
290
307
  type?: string | undefined;
@@ -299,6 +316,7 @@ declare const requestExampleSchema: z.ZodObject<{
299
316
  file?: File | undefined;
300
317
  refUid?: string | undefined;
301
318
  format?: string | undefined;
319
+ nullable?: boolean | undefined;
302
320
  }>, "many">>;
303
321
  headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
304
322
  key: z.ZodDefault<z.ZodString>;
@@ -315,6 +333,7 @@ declare const requestExampleSchema: z.ZodObject<{
315
333
  minimum: z.ZodOptional<z.ZodNumber>;
316
334
  maximum: z.ZodOptional<z.ZodNumber>;
317
335
  default: z.ZodOptional<z.ZodAny>;
336
+ nullable: z.ZodOptional<z.ZodBoolean>;
318
337
  }, "strip", z.ZodTypeAny, {
319
338
  value: string;
320
339
  key: string;
@@ -329,6 +348,7 @@ declare const requestExampleSchema: z.ZodObject<{
329
348
  file?: File | undefined;
330
349
  refUid?: string | undefined;
331
350
  format?: string | undefined;
351
+ nullable?: boolean | undefined;
332
352
  }, {
333
353
  minimum?: number | undefined;
334
354
  type?: string | undefined;
@@ -343,6 +363,7 @@ declare const requestExampleSchema: z.ZodObject<{
343
363
  file?: File | undefined;
344
364
  refUid?: string | undefined;
345
365
  format?: string | undefined;
366
+ nullable?: boolean | undefined;
346
367
  }>, "many">>;
347
368
  cookies: z.ZodDefault<z.ZodArray<z.ZodObject<{
348
369
  key: z.ZodDefault<z.ZodString>;
@@ -359,6 +380,7 @@ declare const requestExampleSchema: z.ZodObject<{
359
380
  minimum: z.ZodOptional<z.ZodNumber>;
360
381
  maximum: z.ZodOptional<z.ZodNumber>;
361
382
  default: z.ZodOptional<z.ZodAny>;
383
+ nullable: z.ZodOptional<z.ZodBoolean>;
362
384
  }, "strip", z.ZodTypeAny, {
363
385
  value: string;
364
386
  key: string;
@@ -373,6 +395,7 @@ declare const requestExampleSchema: z.ZodObject<{
373
395
  file?: File | undefined;
374
396
  refUid?: string | undefined;
375
397
  format?: string | undefined;
398
+ nullable?: boolean | undefined;
376
399
  }, {
377
400
  minimum?: number | undefined;
378
401
  type?: string | undefined;
@@ -387,6 +410,7 @@ declare const requestExampleSchema: z.ZodObject<{
387
410
  file?: File | undefined;
388
411
  refUid?: string | undefined;
389
412
  format?: string | undefined;
413
+ nullable?: boolean | undefined;
390
414
  }>, "many">>;
391
415
  }, "strip", z.ZodTypeAny, {
392
416
  path: {
@@ -403,6 +427,7 @@ declare const requestExampleSchema: z.ZodObject<{
403
427
  file?: File | undefined;
404
428
  refUid?: string | undefined;
405
429
  format?: string | undefined;
430
+ nullable?: boolean | undefined;
406
431
  }[];
407
432
  query: {
408
433
  value: string;
@@ -418,6 +443,7 @@ declare const requestExampleSchema: z.ZodObject<{
418
443
  file?: File | undefined;
419
444
  refUid?: string | undefined;
420
445
  format?: string | undefined;
446
+ nullable?: boolean | undefined;
421
447
  }[];
422
448
  cookies: {
423
449
  value: string;
@@ -433,6 +459,7 @@ declare const requestExampleSchema: z.ZodObject<{
433
459
  file?: File | undefined;
434
460
  refUid?: string | undefined;
435
461
  format?: string | undefined;
462
+ nullable?: boolean | undefined;
436
463
  }[];
437
464
  headers: {
438
465
  value: string;
@@ -448,6 +475,7 @@ declare const requestExampleSchema: z.ZodObject<{
448
475
  file?: File | undefined;
449
476
  refUid?: string | undefined;
450
477
  format?: string | undefined;
478
+ nullable?: boolean | undefined;
451
479
  }[];
452
480
  }, {
453
481
  path?: {
@@ -464,6 +492,7 @@ declare const requestExampleSchema: z.ZodObject<{
464
492
  file?: File | undefined;
465
493
  refUid?: string | undefined;
466
494
  format?: string | undefined;
495
+ nullable?: boolean | undefined;
467
496
  }[] | undefined;
468
497
  query?: {
469
498
  minimum?: number | undefined;
@@ -479,6 +508,7 @@ declare const requestExampleSchema: z.ZodObject<{
479
508
  file?: File | undefined;
480
509
  refUid?: string | undefined;
481
510
  format?: string | undefined;
511
+ nullable?: boolean | undefined;
482
512
  }[] | undefined;
483
513
  cookies?: {
484
514
  minimum?: number | undefined;
@@ -494,6 +524,7 @@ declare const requestExampleSchema: z.ZodObject<{
494
524
  file?: File | undefined;
495
525
  refUid?: string | undefined;
496
526
  format?: string | undefined;
527
+ nullable?: boolean | undefined;
497
528
  }[] | undefined;
498
529
  headers?: {
499
530
  minimum?: number | undefined;
@@ -509,12 +540,14 @@ declare const requestExampleSchema: z.ZodObject<{
509
540
  file?: File | undefined;
510
541
  refUid?: string | undefined;
511
542
  format?: string | undefined;
543
+ nullable?: boolean | undefined;
512
544
  }[] | undefined;
513
545
  }>>>;
514
546
  auth: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
515
547
  }, "strip", z.ZodTypeAny, {
516
548
  uid: string;
517
549
  name: string;
550
+ url: string;
518
551
  parameters: {
519
552
  path: {
520
553
  value: string;
@@ -530,6 +563,7 @@ declare const requestExampleSchema: z.ZodObject<{
530
563
  file?: File | undefined;
531
564
  refUid?: string | undefined;
532
565
  format?: string | undefined;
566
+ nullable?: boolean | undefined;
533
567
  }[];
534
568
  query: {
535
569
  value: string;
@@ -545,6 +579,7 @@ declare const requestExampleSchema: z.ZodObject<{
545
579
  file?: File | undefined;
546
580
  refUid?: string | undefined;
547
581
  format?: string | undefined;
582
+ nullable?: boolean | undefined;
548
583
  }[];
549
584
  cookies: {
550
585
  value: string;
@@ -560,6 +595,7 @@ declare const requestExampleSchema: z.ZodObject<{
560
595
  file?: File | undefined;
561
596
  refUid?: string | undefined;
562
597
  format?: string | undefined;
598
+ nullable?: boolean | undefined;
563
599
  }[];
564
600
  headers: {
565
601
  value: string;
@@ -575,6 +611,7 @@ declare const requestExampleSchema: z.ZodObject<{
575
611
  file?: File | undefined;
576
612
  refUid?: string | undefined;
577
613
  format?: string | undefined;
614
+ nullable?: boolean | undefined;
578
615
  }[];
579
616
  };
580
617
  requestUid: string;
@@ -598,6 +635,7 @@ declare const requestExampleSchema: z.ZodObject<{
598
635
  file?: File | undefined;
599
636
  refUid?: string | undefined;
600
637
  format?: string | undefined;
638
+ nullable?: boolean | undefined;
601
639
  }[];
602
640
  encoding: "form-data" | "urlencoded";
603
641
  };
@@ -609,6 +647,7 @@ declare const requestExampleSchema: z.ZodObject<{
609
647
  requestUid: string;
610
648
  uid?: string | undefined;
611
649
  name?: string | undefined;
650
+ url?: string | undefined;
612
651
  parameters?: {
613
652
  path?: {
614
653
  minimum?: number | undefined;
@@ -624,6 +663,7 @@ declare const requestExampleSchema: z.ZodObject<{
624
663
  file?: File | undefined;
625
664
  refUid?: string | undefined;
626
665
  format?: string | undefined;
666
+ nullable?: boolean | undefined;
627
667
  }[] | undefined;
628
668
  query?: {
629
669
  minimum?: number | undefined;
@@ -639,6 +679,7 @@ declare const requestExampleSchema: z.ZodObject<{
639
679
  file?: File | undefined;
640
680
  refUid?: string | undefined;
641
681
  format?: string | undefined;
682
+ nullable?: boolean | undefined;
642
683
  }[] | undefined;
643
684
  cookies?: {
644
685
  minimum?: number | undefined;
@@ -654,6 +695,7 @@ declare const requestExampleSchema: z.ZodObject<{
654
695
  file?: File | undefined;
655
696
  refUid?: string | undefined;
656
697
  format?: string | undefined;
698
+ nullable?: boolean | undefined;
657
699
  }[] | undefined;
658
700
  headers?: {
659
701
  minimum?: number | undefined;
@@ -669,6 +711,7 @@ declare const requestExampleSchema: z.ZodObject<{
669
711
  file?: File | undefined;
670
712
  refUid?: string | undefined;
671
713
  format?: string | undefined;
714
+ nullable?: boolean | undefined;
672
715
  }[] | undefined;
673
716
  } | undefined;
674
717
  body?: {
@@ -691,6 +734,7 @@ declare const requestExampleSchema: z.ZodObject<{
691
734
  file?: File | undefined;
692
735
  refUid?: string | undefined;
693
736
  format?: string | undefined;
737
+ nullable?: boolean | undefined;
694
738
  }[] | undefined;
695
739
  encoding?: "form-data" | "urlencoded" | undefined;
696
740
  } | undefined;
@@ -706,6 +750,7 @@ export type RequestExamplePayload = z.input<typeof requestExampleSchema>;
706
750
  export declare const createRequestExample: (payload: RequestExamplePayload) => {
707
751
  uid: string;
708
752
  name: string;
753
+ url: string;
709
754
  parameters: {
710
755
  path: {
711
756
  value: string;
@@ -721,6 +766,7 @@ export declare const createRequestExample: (payload: RequestExamplePayload) => {
721
766
  file?: File | undefined;
722
767
  refUid?: string | undefined;
723
768
  format?: string | undefined;
769
+ nullable?: boolean | undefined;
724
770
  }[];
725
771
  query: {
726
772
  value: string;
@@ -736,6 +782,7 @@ export declare const createRequestExample: (payload: RequestExamplePayload) => {
736
782
  file?: File | undefined;
737
783
  refUid?: string | undefined;
738
784
  format?: string | undefined;
785
+ nullable?: boolean | undefined;
739
786
  }[];
740
787
  cookies: {
741
788
  value: string;
@@ -751,6 +798,7 @@ export declare const createRequestExample: (payload: RequestExamplePayload) => {
751
798
  file?: File | undefined;
752
799
  refUid?: string | undefined;
753
800
  format?: string | undefined;
801
+ nullable?: boolean | undefined;
754
802
  }[];
755
803
  headers: {
756
804
  value: string;
@@ -766,6 +814,7 @@ export declare const createRequestExample: (payload: RequestExamplePayload) => {
766
814
  file?: File | undefined;
767
815
  refUid?: string | undefined;
768
816
  format?: string | undefined;
817
+ nullable?: boolean | undefined;
769
818
  }[];
770
819
  };
771
820
  requestUid: string;
@@ -789,6 +838,7 @@ export declare const createRequestExample: (payload: RequestExamplePayload) => {
789
838
  file?: File | undefined;
790
839
  refUid?: string | undefined;
791
840
  format?: string | undefined;
841
+ nullable?: boolean | undefined;
792
842
  }[];
793
843
  encoding: "form-data" | "urlencoded";
794
844
  };
@@ -1 +1 @@
1
- {"version":3,"file":"request-examples.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/spec/request-examples.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,8BAA8B;;;;;;IAMlC,kFAAkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlF,CAAA;AAEF,kFAAkF;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,8BAA8B,CAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ElF,CAAA;AAEF,mDAAmD;AACnD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAExE,oCAAoC;AACpC,eAAO,MAAM,oBAAoB,YAAa,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhE,CAAA"}
@@ -17,11 +17,13 @@ const requestExampleParametersSchema = z.object({
17
17
  minimum: z.number().optional(),
18
18
  maximum: z.number().optional(),
19
19
  default: z.any().optional(),
20
+ nullable: z.boolean().optional(),
20
21
  });
21
22
  /** Create request example parameter helper */
22
23
  const createRequestExampleParameter = (payload) => deepMerge(requestExampleParametersSchema.parse({}), payload);
23
24
  const requestExampleSchema = z.object({
24
25
  uid: nanoidSchema,
26
+ url: z.string().optional().default(''),
25
27
  requestUid: z.string().min(7),
26
28
  name: z.string().optional().default('Name'),
27
29
  body: z
@@ -15,4 +15,4 @@ export { isRequestToLocalhost, redirectToProxy, shouldUseProxy } from './redirec
15
15
  export { replaceVariables } from './replaceVariables.js';
16
16
  export { schemaModel } from './schema-model.js';
17
17
  export { defaultStateFactory, ssrState } from './ssrState.js';
18
- export { camelToTitleWords } from './string.js';
18
+ export { camelToTitleWords, capitalize } from './string.js';
@@ -7,4 +7,9 @@
7
7
  * @param camelStr - MUST be in camelCase or this might not work
8
8
  */
9
9
  export declare const camelToTitleWords: (camelStr: string) => string;
10
+ /**
11
+ * Capitalize first letter
12
+ * You should normally do this in css, only use this if you have to
13
+ */
14
+ export declare const capitalize: (str: string) => string;
10
15
  //# sourceMappingURL=string.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/helpers/string.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,WAIvC,CAAA"}
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/helpers/string.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,WAIvC,CAAA;AAEX;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAS,MAAM,WAAwC,CAAA"}
@@ -10,5 +10,10 @@ const camelToTitleWords = (camelStr) => camelStr
10
10
  .replace(/([A-Z])/g, (match) => ` ${match}`)
11
11
  .replace(/^./, (match) => match.toUpperCase())
12
12
  .trim();
13
+ /**
14
+ * Capitalize first letter
15
+ * You should normally do this in css, only use this if you have to
16
+ */
17
+ const capitalize = (str) => str[0].toUpperCase() + str.slice(1);
13
18
 
14
- export { camelToTitleWords };
19
+ export { camelToTitleWords, capitalize };
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "specification",
17
17
  "yaml"
18
18
  ],
19
- "version": "0.2.13",
19
+ "version": "0.2.15",
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -90,7 +90,7 @@
90
90
  "nanoid": "^5.0.7",
91
91
  "yaml": "^2.4.5",
92
92
  "zod": "^3.22.4",
93
- "@scalar/themes": "0.9.13"
93
+ "@scalar/themes": "0.9.15"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@scalar/openapi-parser": "^0.7.2",
@@ -102,7 +102,7 @@
102
102
  "type-fest": "^4.20.0",
103
103
  "vite": "^5.2.10",
104
104
  "vitest": "^1.6.0",
105
- "@scalar/build-tooling": "0.1.9"
105
+ "@scalar/build-tooling": "0.1.10"
106
106
  },
107
107
  "scripts": {
108
108
  "build": "scalar-build-rollup",