@kulupu-linku/sona 0.3.4 → 0.3.7
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/dist/client.d.ts +1 -0
- package/dist/client.js +80 -73
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/lib/client.d.ts +33 -32
- package/dist/lib/client.test.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/types.d.ts +0 -1
- package/dist/lib/utils.d.ts +0 -1
- package/dist/server/index.d.ts +33 -32
- package/dist/server/utils.d.ts +0 -1
- package/dist/server/v1/index.d.ts +28 -29
- package/dist/server/versioning.d.ts +29 -30
- package/dist/{utils-GfUvEzD4.js → utils-B3Jq5OVZ.js} +50 -56
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +1 -1
- package/package.json +3 -3
package/dist/server/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { StatusCode } from 'hono/utils/http-status';
|
|
2
|
-
|
|
3
2
|
declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
4
3
|
"/v1": {
|
|
5
4
|
$get: {
|
|
6
5
|
input: {};
|
|
7
|
-
output:
|
|
8
|
-
outputFormat:
|
|
9
|
-
status:
|
|
6
|
+
output: undefined;
|
|
7
|
+
outputFormat: "redirect";
|
|
8
|
+
status: 302;
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
"/v1/words": {
|
|
@@ -75,7 +74,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
76
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
77
|
+
status: 200;
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
80
|
"/v1/words/:word": {
|
|
@@ -86,7 +85,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
86
85
|
};
|
|
87
86
|
} & {
|
|
88
87
|
param: {
|
|
89
|
-
word: string
|
|
88
|
+
word: string;
|
|
90
89
|
};
|
|
91
90
|
};
|
|
92
91
|
output: {
|
|
@@ -149,7 +148,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
149
148
|
};
|
|
150
149
|
};
|
|
151
150
|
outputFormat: "json";
|
|
152
|
-
status:
|
|
151
|
+
status: 200;
|
|
153
152
|
} | {
|
|
154
153
|
input: {
|
|
155
154
|
query: {
|
|
@@ -157,7 +156,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
157
156
|
};
|
|
158
157
|
} & {
|
|
159
158
|
param: {
|
|
160
|
-
word: string
|
|
159
|
+
word: string;
|
|
161
160
|
};
|
|
162
161
|
};
|
|
163
162
|
output: {
|
|
@@ -234,7 +233,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
234
233
|
};
|
|
235
234
|
};
|
|
236
235
|
outputFormat: "json";
|
|
237
|
-
status:
|
|
236
|
+
status: 200;
|
|
238
237
|
};
|
|
239
238
|
};
|
|
240
239
|
"/v1/sandbox/:word": {
|
|
@@ -245,7 +244,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
245
244
|
};
|
|
246
245
|
} & {
|
|
247
246
|
param: {
|
|
248
|
-
word: string
|
|
247
|
+
word: string;
|
|
249
248
|
};
|
|
250
249
|
};
|
|
251
250
|
output: {
|
|
@@ -308,7 +307,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
308
307
|
};
|
|
309
308
|
};
|
|
310
309
|
outputFormat: "json";
|
|
311
|
-
status:
|
|
310
|
+
status: 200;
|
|
312
311
|
} | {
|
|
313
312
|
input: {
|
|
314
313
|
query: {
|
|
@@ -316,7 +315,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
316
315
|
};
|
|
317
316
|
} & {
|
|
318
317
|
param: {
|
|
319
|
-
word: string
|
|
318
|
+
word: string;
|
|
320
319
|
};
|
|
321
320
|
};
|
|
322
321
|
output: {
|
|
@@ -363,7 +362,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
363
362
|
};
|
|
364
363
|
};
|
|
365
364
|
outputFormat: "json";
|
|
366
|
-
status:
|
|
365
|
+
status: 200;
|
|
367
366
|
};
|
|
368
367
|
};
|
|
369
368
|
"/v1/luka_pona/fingerspelling/:sign": {
|
|
@@ -374,7 +373,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
374
373
|
};
|
|
375
374
|
} & {
|
|
376
375
|
param: {
|
|
377
|
-
sign: string
|
|
376
|
+
sign: string;
|
|
378
377
|
};
|
|
379
378
|
};
|
|
380
379
|
output: {
|
|
@@ -407,7 +406,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
407
406
|
};
|
|
408
407
|
};
|
|
409
408
|
outputFormat: "json";
|
|
410
|
-
status:
|
|
409
|
+
status: 200;
|
|
411
410
|
} | {
|
|
412
411
|
input: {
|
|
413
412
|
query: {
|
|
@@ -415,7 +414,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
415
414
|
};
|
|
416
415
|
} & {
|
|
417
416
|
param: {
|
|
418
|
-
sign: string
|
|
417
|
+
sign: string;
|
|
419
418
|
};
|
|
420
419
|
};
|
|
421
420
|
output: {
|
|
@@ -466,7 +465,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
466
465
|
};
|
|
467
466
|
};
|
|
468
467
|
outputFormat: "json";
|
|
469
|
-
status:
|
|
468
|
+
status: 200;
|
|
470
469
|
};
|
|
471
470
|
};
|
|
472
471
|
"/v1/luka_pona/signs/:sign": {
|
|
@@ -477,7 +476,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
477
476
|
};
|
|
478
477
|
} & {
|
|
479
478
|
param: {
|
|
480
|
-
sign: string
|
|
479
|
+
sign: string;
|
|
481
480
|
};
|
|
482
481
|
};
|
|
483
482
|
output: {
|
|
@@ -514,7 +513,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
514
513
|
};
|
|
515
514
|
};
|
|
516
515
|
outputFormat: "json";
|
|
517
|
-
status:
|
|
516
|
+
status: 200;
|
|
518
517
|
} | {
|
|
519
518
|
input: {
|
|
520
519
|
query: {
|
|
@@ -522,7 +521,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
522
521
|
};
|
|
523
522
|
} & {
|
|
524
523
|
param: {
|
|
525
|
-
sign: string
|
|
524
|
+
sign: string;
|
|
526
525
|
};
|
|
527
526
|
};
|
|
528
527
|
output: {
|
|
@@ -558,14 +557,14 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
558
557
|
};
|
|
559
558
|
};
|
|
560
559
|
outputFormat: "json";
|
|
561
|
-
status:
|
|
560
|
+
status: 200;
|
|
562
561
|
};
|
|
563
562
|
};
|
|
564
563
|
"/v1/fonts/:font": {
|
|
565
564
|
$get: {
|
|
566
565
|
input: {
|
|
567
566
|
param: {
|
|
568
|
-
font: string
|
|
567
|
+
font: string;
|
|
569
568
|
};
|
|
570
569
|
};
|
|
571
570
|
output: {
|
|
@@ -591,11 +590,11 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
591
590
|
};
|
|
592
591
|
};
|
|
593
592
|
outputFormat: "json";
|
|
594
|
-
status:
|
|
593
|
+
status: 200;
|
|
595
594
|
} | {
|
|
596
595
|
input: {
|
|
597
596
|
param: {
|
|
598
|
-
font: string
|
|
597
|
+
font: string;
|
|
599
598
|
};
|
|
600
599
|
};
|
|
601
600
|
output: {
|
|
@@ -622,14 +621,14 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
622
621
|
};
|
|
623
622
|
};
|
|
624
623
|
outputFormat: "json";
|
|
625
|
-
status:
|
|
624
|
+
status: 200;
|
|
626
625
|
};
|
|
627
626
|
};
|
|
628
627
|
"/v1/languages/:language": {
|
|
629
628
|
$get: {
|
|
630
629
|
input: {
|
|
631
630
|
param: {
|
|
632
|
-
language: string
|
|
631
|
+
language: string;
|
|
633
632
|
};
|
|
634
633
|
};
|
|
635
634
|
output: {
|
|
@@ -646,11 +645,11 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
646
645
|
};
|
|
647
646
|
};
|
|
648
647
|
outputFormat: "json";
|
|
649
|
-
status:
|
|
648
|
+
status: 200;
|
|
650
649
|
} | {
|
|
651
650
|
input: {
|
|
652
651
|
param: {
|
|
653
|
-
language: string
|
|
652
|
+
language: string;
|
|
654
653
|
};
|
|
655
654
|
};
|
|
656
655
|
output: {
|
|
@@ -661,13 +660,15 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
661
660
|
status: 400;
|
|
662
661
|
};
|
|
663
662
|
};
|
|
663
|
+
} & {
|
|
664
|
+
"*": {};
|
|
664
665
|
} & {
|
|
665
666
|
"/": {
|
|
666
667
|
$get: {
|
|
667
668
|
input: {};
|
|
668
|
-
output:
|
|
669
|
-
outputFormat:
|
|
670
|
-
status:
|
|
669
|
+
output: undefined;
|
|
670
|
+
outputFormat: "redirect";
|
|
671
|
+
status: 302;
|
|
671
672
|
};
|
|
672
673
|
};
|
|
673
674
|
} & {
|
|
@@ -676,7 +677,7 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
|
|
|
676
677
|
input: {};
|
|
677
678
|
output: {};
|
|
678
679
|
outputFormat: "json";
|
|
679
|
-
status:
|
|
680
|
+
status: StatusCode;
|
|
680
681
|
};
|
|
681
682
|
};
|
|
682
683
|
}, "/">;
|
package/dist/server/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Languages } from '../lib';
|
|
2
|
-
|
|
3
2
|
export declare const entries: <const T extends object>(o: T) => { [K in keyof T]: [K, T[K]]; }[keyof T][];
|
|
4
3
|
export declare const keys: <const K extends PropertyKey>(o: Record<K, any>) => K[];
|
|
5
4
|
export declare const filterObject: <const T extends object>(o: T, predicate: (o: [keyof T, T[keyof T]]) => boolean) => {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Hono, MiddlewareHandler } from 'hono';
|
|
2
|
-
|
|
3
2
|
export declare const languagesFilter: (nested: boolean) => MiddlewareHandler;
|
|
4
|
-
declare const app: Hono<
|
|
3
|
+
declare const app: Hono<import('hono/types').BlankEnv, {
|
|
5
4
|
"/": {
|
|
6
5
|
$get: {
|
|
7
6
|
input: {};
|
|
8
|
-
output:
|
|
9
|
-
outputFormat:
|
|
10
|
-
status:
|
|
7
|
+
output: undefined;
|
|
8
|
+
outputFormat: "redirect";
|
|
9
|
+
status: 302;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
12
|
} & {
|
|
@@ -77,7 +76,7 @@ declare const app: Hono<{}, {
|
|
|
77
76
|
};
|
|
78
77
|
};
|
|
79
78
|
outputFormat: "json";
|
|
80
|
-
status:
|
|
79
|
+
status: 200;
|
|
81
80
|
};
|
|
82
81
|
};
|
|
83
82
|
} & {
|
|
@@ -89,7 +88,7 @@ declare const app: Hono<{}, {
|
|
|
89
88
|
};
|
|
90
89
|
} & {
|
|
91
90
|
param: {
|
|
92
|
-
word: string
|
|
91
|
+
word: string;
|
|
93
92
|
};
|
|
94
93
|
};
|
|
95
94
|
output: {
|
|
@@ -152,7 +151,7 @@ declare const app: Hono<{}, {
|
|
|
152
151
|
};
|
|
153
152
|
};
|
|
154
153
|
outputFormat: "json";
|
|
155
|
-
status:
|
|
154
|
+
status: 200;
|
|
156
155
|
} | {
|
|
157
156
|
input: {
|
|
158
157
|
query: {
|
|
@@ -160,7 +159,7 @@ declare const app: Hono<{}, {
|
|
|
160
159
|
};
|
|
161
160
|
} & {
|
|
162
161
|
param: {
|
|
163
|
-
word: string
|
|
162
|
+
word: string;
|
|
164
163
|
};
|
|
165
164
|
};
|
|
166
165
|
output: {
|
|
@@ -238,7 +237,7 @@ declare const app: Hono<{}, {
|
|
|
238
237
|
};
|
|
239
238
|
};
|
|
240
239
|
outputFormat: "json";
|
|
241
|
-
status:
|
|
240
|
+
status: 200;
|
|
242
241
|
};
|
|
243
242
|
};
|
|
244
243
|
} & {
|
|
@@ -250,7 +249,7 @@ declare const app: Hono<{}, {
|
|
|
250
249
|
};
|
|
251
250
|
} & {
|
|
252
251
|
param: {
|
|
253
|
-
word: string
|
|
252
|
+
word: string;
|
|
254
253
|
};
|
|
255
254
|
};
|
|
256
255
|
output: {
|
|
@@ -313,7 +312,7 @@ declare const app: Hono<{}, {
|
|
|
313
312
|
};
|
|
314
313
|
};
|
|
315
314
|
outputFormat: "json";
|
|
316
|
-
status:
|
|
315
|
+
status: 200;
|
|
317
316
|
} | {
|
|
318
317
|
input: {
|
|
319
318
|
query: {
|
|
@@ -321,7 +320,7 @@ declare const app: Hono<{}, {
|
|
|
321
320
|
};
|
|
322
321
|
} & {
|
|
323
322
|
param: {
|
|
324
|
-
word: string
|
|
323
|
+
word: string;
|
|
325
324
|
};
|
|
326
325
|
};
|
|
327
326
|
output: {
|
|
@@ -369,7 +368,7 @@ declare const app: Hono<{}, {
|
|
|
369
368
|
};
|
|
370
369
|
};
|
|
371
370
|
outputFormat: "json";
|
|
372
|
-
status:
|
|
371
|
+
status: 200;
|
|
373
372
|
};
|
|
374
373
|
};
|
|
375
374
|
} & {
|
|
@@ -381,7 +380,7 @@ declare const app: Hono<{}, {
|
|
|
381
380
|
};
|
|
382
381
|
} & {
|
|
383
382
|
param: {
|
|
384
|
-
sign: string
|
|
383
|
+
sign: string;
|
|
385
384
|
};
|
|
386
385
|
};
|
|
387
386
|
output: {
|
|
@@ -414,7 +413,7 @@ declare const app: Hono<{}, {
|
|
|
414
413
|
};
|
|
415
414
|
};
|
|
416
415
|
outputFormat: "json";
|
|
417
|
-
status:
|
|
416
|
+
status: 200;
|
|
418
417
|
} | {
|
|
419
418
|
input: {
|
|
420
419
|
query: {
|
|
@@ -422,7 +421,7 @@ declare const app: Hono<{}, {
|
|
|
422
421
|
};
|
|
423
422
|
} & {
|
|
424
423
|
param: {
|
|
425
|
-
sign: string
|
|
424
|
+
sign: string;
|
|
426
425
|
};
|
|
427
426
|
};
|
|
428
427
|
output: {
|
|
@@ -474,7 +473,7 @@ declare const app: Hono<{}, {
|
|
|
474
473
|
};
|
|
475
474
|
};
|
|
476
475
|
outputFormat: "json";
|
|
477
|
-
status:
|
|
476
|
+
status: 200;
|
|
478
477
|
};
|
|
479
478
|
};
|
|
480
479
|
} & {
|
|
@@ -486,7 +485,7 @@ declare const app: Hono<{}, {
|
|
|
486
485
|
};
|
|
487
486
|
} & {
|
|
488
487
|
param: {
|
|
489
|
-
sign: string
|
|
488
|
+
sign: string;
|
|
490
489
|
};
|
|
491
490
|
};
|
|
492
491
|
output: {
|
|
@@ -523,7 +522,7 @@ declare const app: Hono<{}, {
|
|
|
523
522
|
};
|
|
524
523
|
};
|
|
525
524
|
outputFormat: "json";
|
|
526
|
-
status:
|
|
525
|
+
status: 200;
|
|
527
526
|
} | {
|
|
528
527
|
input: {
|
|
529
528
|
query: {
|
|
@@ -531,7 +530,7 @@ declare const app: Hono<{}, {
|
|
|
531
530
|
};
|
|
532
531
|
} & {
|
|
533
532
|
param: {
|
|
534
|
-
sign: string
|
|
533
|
+
sign: string;
|
|
535
534
|
};
|
|
536
535
|
};
|
|
537
536
|
output: {
|
|
@@ -568,7 +567,7 @@ declare const app: Hono<{}, {
|
|
|
568
567
|
};
|
|
569
568
|
};
|
|
570
569
|
outputFormat: "json";
|
|
571
|
-
status:
|
|
570
|
+
status: 200;
|
|
572
571
|
};
|
|
573
572
|
};
|
|
574
573
|
} & {
|
|
@@ -576,7 +575,7 @@ declare const app: Hono<{}, {
|
|
|
576
575
|
$get: {
|
|
577
576
|
input: {
|
|
578
577
|
param: {
|
|
579
|
-
font: string
|
|
578
|
+
font: string;
|
|
580
579
|
};
|
|
581
580
|
};
|
|
582
581
|
output: {
|
|
@@ -602,11 +601,11 @@ declare const app: Hono<{}, {
|
|
|
602
601
|
};
|
|
603
602
|
};
|
|
604
603
|
outputFormat: "json";
|
|
605
|
-
status:
|
|
604
|
+
status: 200;
|
|
606
605
|
} | {
|
|
607
606
|
input: {
|
|
608
607
|
param: {
|
|
609
|
-
font: string
|
|
608
|
+
font: string;
|
|
610
609
|
};
|
|
611
610
|
};
|
|
612
611
|
output: {
|
|
@@ -634,7 +633,7 @@ declare const app: Hono<{}, {
|
|
|
634
633
|
};
|
|
635
634
|
};
|
|
636
635
|
outputFormat: "json";
|
|
637
|
-
status:
|
|
636
|
+
status: 200;
|
|
638
637
|
};
|
|
639
638
|
};
|
|
640
639
|
} & {
|
|
@@ -642,7 +641,7 @@ declare const app: Hono<{}, {
|
|
|
642
641
|
$get: {
|
|
643
642
|
input: {
|
|
644
643
|
param: {
|
|
645
|
-
language: string
|
|
644
|
+
language: string;
|
|
646
645
|
};
|
|
647
646
|
};
|
|
648
647
|
output: {
|
|
@@ -659,11 +658,11 @@ declare const app: Hono<{}, {
|
|
|
659
658
|
};
|
|
660
659
|
};
|
|
661
660
|
outputFormat: "json";
|
|
662
|
-
status:
|
|
661
|
+
status: 200;
|
|
663
662
|
} | {
|
|
664
663
|
input: {
|
|
665
664
|
param: {
|
|
666
|
-
language: string
|
|
665
|
+
language: string;
|
|
667
666
|
};
|
|
668
667
|
};
|
|
669
668
|
output: {
|