@kulupu-linku/sona 2.1.0 → 2.1.2
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/lib/v1/client.d.mts +18 -18
- package/dist/lib/v2/client.d.mts +18 -18
- package/dist/server/index.mjs +1 -1
- package/dist/server/v1/index.mjs +1 -1
- package/dist/server/v2/index.mjs +1 -1
- package/dist/server/versioning.mjs +1 -1
- package/dist/{v1-Da4_o5R1.mjs → v1-BtCF6yRB.mjs} +1 -1
- package/package.json +22 -22
package/dist/lib/v1/client.d.mts
CHANGED
|
@@ -24,15 +24,6 @@ declare const client: (args?: {
|
|
|
24
24
|
status: _$hono_utils_http_status0.ContentfulStatusCode;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
} & {
|
|
28
|
-
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
29
|
-
$get: {
|
|
30
|
-
input: {};
|
|
31
|
-
output: undefined;
|
|
32
|
-
outputFormat: "redirect";
|
|
33
|
-
status: 302;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
27
|
} & {
|
|
37
28
|
v1: {
|
|
38
29
|
words: _$hono_client0.ClientRequest<string, "/v1/words", {
|
|
@@ -153,6 +144,15 @@ declare const client: (args?: {
|
|
|
153
144
|
}>;
|
|
154
145
|
};
|
|
155
146
|
};
|
|
147
|
+
} & {
|
|
148
|
+
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
149
|
+
$get: {
|
|
150
|
+
input: {};
|
|
151
|
+
output: undefined;
|
|
152
|
+
outputFormat: "redirect";
|
|
153
|
+
status: 302;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
156
|
} & {
|
|
157
157
|
v1: {
|
|
158
158
|
words: {
|
|
@@ -752,15 +752,6 @@ declare const client: (args?: {
|
|
|
752
752
|
}>;
|
|
753
753
|
};
|
|
754
754
|
};
|
|
755
|
-
} & {
|
|
756
|
-
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
757
|
-
$get: {
|
|
758
|
-
input: {};
|
|
759
|
-
output: undefined;
|
|
760
|
-
outputFormat: "redirect";
|
|
761
|
-
status: 302;
|
|
762
|
-
};
|
|
763
|
-
}>;
|
|
764
755
|
} & {
|
|
765
756
|
v2: {
|
|
766
757
|
words: _$hono_client0.ClientRequest<string, "/v2/words", {
|
|
@@ -889,6 +880,15 @@ declare const client: (args?: {
|
|
|
889
880
|
}>;
|
|
890
881
|
};
|
|
891
882
|
};
|
|
883
|
+
} & {
|
|
884
|
+
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
885
|
+
$get: {
|
|
886
|
+
input: {};
|
|
887
|
+
output: undefined;
|
|
888
|
+
outputFormat: "redirect";
|
|
889
|
+
status: 302;
|
|
890
|
+
};
|
|
891
|
+
}>;
|
|
892
892
|
} & {
|
|
893
893
|
v2: {
|
|
894
894
|
words: {
|
package/dist/lib/v2/client.d.mts
CHANGED
|
@@ -24,15 +24,6 @@ declare const client: (args?: {
|
|
|
24
24
|
status: _$hono_utils_http_status0.ContentfulStatusCode;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
} & {
|
|
28
|
-
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
29
|
-
$get: {
|
|
30
|
-
input: {};
|
|
31
|
-
output: undefined;
|
|
32
|
-
outputFormat: "redirect";
|
|
33
|
-
status: 302;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
27
|
} & {
|
|
37
28
|
v1: {
|
|
38
29
|
words: _$hono_client0.ClientRequest<string, "/v1/words", {
|
|
@@ -153,6 +144,15 @@ declare const client: (args?: {
|
|
|
153
144
|
}>;
|
|
154
145
|
};
|
|
155
146
|
};
|
|
147
|
+
} & {
|
|
148
|
+
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
149
|
+
$get: {
|
|
150
|
+
input: {};
|
|
151
|
+
output: undefined;
|
|
152
|
+
outputFormat: "redirect";
|
|
153
|
+
status: 302;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
156
|
} & {
|
|
157
157
|
v1: {
|
|
158
158
|
words: {
|
|
@@ -752,15 +752,6 @@ declare const client: (args?: {
|
|
|
752
752
|
}>;
|
|
753
753
|
};
|
|
754
754
|
};
|
|
755
|
-
} & {
|
|
756
|
-
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
757
|
-
$get: {
|
|
758
|
-
input: {};
|
|
759
|
-
output: undefined;
|
|
760
|
-
outputFormat: "redirect";
|
|
761
|
-
status: 302;
|
|
762
|
-
};
|
|
763
|
-
}>;
|
|
764
755
|
} & {
|
|
765
756
|
v2: {
|
|
766
757
|
words: _$hono_client0.ClientRequest<string, "/v2/words", {
|
|
@@ -889,6 +880,15 @@ declare const client: (args?: {
|
|
|
889
880
|
}>;
|
|
890
881
|
};
|
|
891
882
|
};
|
|
883
|
+
} & {
|
|
884
|
+
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
885
|
+
$get: {
|
|
886
|
+
input: {};
|
|
887
|
+
output: undefined;
|
|
888
|
+
outputFormat: "redirect";
|
|
889
|
+
status: 302;
|
|
890
|
+
};
|
|
891
|
+
}>;
|
|
892
892
|
} & {
|
|
893
893
|
v2: {
|
|
894
894
|
words: {
|
package/dist/server/index.mjs
CHANGED
package/dist/server/v1/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as config, r as languagesFilter, t as app } from "../../v1-
|
|
1
|
+
import { n as config, r as languagesFilter, t as app } from "../../v1-BtCF6yRB.mjs";
|
|
2
2
|
export { config, app as default, languagesFilter };
|
package/dist/server/v2/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as config, l as fetchData, s as app } from "../../v1-
|
|
1
|
+
import { c as config, l as fetchData, s as app } from "../../v1-BtCF6yRB.mjs";
|
|
2
2
|
export { config, app as default, fetchData };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as fetchFile, i as apps, o as versions } from "../v1-
|
|
1
|
+
import { a as fetchFile, i as apps, o as versions } from "../v1-BtCF6yRB.mjs";
|
|
2
2
|
export { apps, fetchFile, versions };
|
|
@@ -91,7 +91,7 @@ const singleItemEndpoint = (key, param, descriptor) => {
|
|
|
91
91
|
}, 400);
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
const app$1 = new Hono().get("/", (c) => c.redirect("/v2/words")).get("/words", langValidator, datasetEndpoint("words")).get("/words/:word", langValidator, zValidator("param", z.object({ word: z.string() })), singleItemEndpoint("words", "word", "word")).get("/glyphs", langValidator, datasetEndpoint("glyphs")).get("/glyphs/:glyph", langValidator, zValidator("param", z.object({ glyph: z.string() })), singleItemEndpoint("glyphs", "glyph", "glyph")).get("/sandbox", (c) => c.redirect("/v2/sandbox/words")).get("/sandbox/words", langValidator, datasetEndpoint("sandbox_words")).get("/sandbox/words/:word", langValidator, zValidator("param", z.object({ word: z.string() })), singleItemEndpoint("sandbox_words", "word", "sandbox word")).get("/sandbox/glyphs", langValidator, datasetEndpoint("sandbox_glyphs")).get("/sandbox/glyphs/:glyph", langValidator, zValidator("param", z.object({ glyph: z.string() })), singleItemEndpoint("sandbox_glyphs", "glyph", "sandbox glyph")).get("/luka_pona/signs", langValidator, datasetEndpoint("signs")).get("/luka_pona/signs/:sign", langValidator, zValidator("param", z.object({ sign: z.string() })), singleItemEndpoint("signs", "sign", "sign")).get("/luka_pona/fingerspellings", langValidator, datasetEndpoint("fingerspellings")).get("/luka_pona/fingerspellings/:fingerspelling", langValidator, zValidator("param", z.object({ sign: z.string() })), singleItemEndpoint("fingerspellings", "fingerspelling", "fingerspelling")).get("/fonts", datasetEndpoint("fonts")).get("/fonts/:font", zValidator("param", z.object({ font: z.string() })), singleItemEndpoint("fonts", "font", "font")).get("/languages", datasetEndpoint("languages")).get("/languages/:language", zValidator("param", z.object({ language: z.string() })), singleItemEndpoint("languages", "language", "language"));
|
|
94
|
+
const app$1 = new Hono().get("/", (c) => c.redirect("/v2/words")).get("/words", langValidator, datasetEndpoint("words")).get("/words/:word", langValidator, zValidator("param", z.object({ word: z.string() })), singleItemEndpoint("words", "word", "word")).get("/glyphs", langValidator, datasetEndpoint("glyphs")).get("/glyphs/:glyph", langValidator, zValidator("param", z.object({ glyph: z.string() })), singleItemEndpoint("glyphs", "glyph", "glyph")).get("/sandbox", (c) => c.redirect("/v2/sandbox/words")).get("/sandbox/words", langValidator, datasetEndpoint("sandbox_words")).get("/sandbox/words/:word", langValidator, zValidator("param", z.object({ word: z.string() })), singleItemEndpoint("sandbox_words", "word", "sandbox word")).get("/sandbox/glyphs", langValidator, datasetEndpoint("sandbox_glyphs")).get("/sandbox/glyphs/:glyph", langValidator, zValidator("param", z.object({ glyph: z.string() })), singleItemEndpoint("sandbox_glyphs", "glyph", "sandbox glyph")).get("/luka_pona/signs", langValidator, datasetEndpoint("signs")).get("/luka_pona/signs/:sign", langValidator, zValidator("param", z.object({ sign: z.string() })), singleItemEndpoint("signs", "sign", "sign")).get("/luka_pona/fingerspellings", langValidator, datasetEndpoint("fingerspellings")).get("/luka_pona/fingerspellings/:fingerspelling", langValidator, zValidator("param", z.object({ sign: z.string() })), singleItemEndpoint("fingerspellings", "fingerspelling", "fingerspelling")).get("/fonts", langValidator, datasetEndpoint("fonts")).get("/fonts/:font", langValidator, zValidator("param", z.object({ font: z.string() })), singleItemEndpoint("fonts", "font", "font")).get("/languages", datasetEndpoint("languages")).get("/languages/:language", zValidator("param", z.object({ language: z.string() })), singleItemEndpoint("languages", "language", "language"));
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/server/versioning.ts
|
|
97
97
|
const IMPORT_ROOT = "/src/raw/";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kulupu-linku/sona",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "A library providing TypeScript types and Zod schemas for the sona API",
|
|
5
5
|
"homepage": "https://linku.la/",
|
|
6
6
|
"bugs": {
|
|
@@ -29,45 +29,45 @@
|
|
|
29
29
|
"/generated"
|
|
30
30
|
],
|
|
31
31
|
"type": "module",
|
|
32
|
-
"main": "./dist/lib/v2/index.
|
|
33
|
-
"module": "./dist/lib/v2/index.
|
|
34
|
-
"types": "./dist/lib/v2/index.d.
|
|
32
|
+
"main": "./dist/lib/v2/index.mjs",
|
|
33
|
+
"module": "./dist/lib/v2/index.mjs",
|
|
34
|
+
"types": "./dist/lib/v2/index.d.mts",
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
37
|
-
"import": "./dist/lib/v2/index.
|
|
38
|
-
"types": "./dist/lib/v2/index.d.
|
|
37
|
+
"import": "./dist/lib/v2/index.mjs",
|
|
38
|
+
"types": "./dist/lib/v2/index.d.mts"
|
|
39
39
|
},
|
|
40
40
|
"./utils": {
|
|
41
|
-
"import": "./dist/lib/v2/utils.
|
|
42
|
-
"types": "./dist/lib/v2/utils.d.
|
|
41
|
+
"import": "./dist/lib/v2/utils.mjs",
|
|
42
|
+
"types": "./dist/lib/v2/utils.d.mts"
|
|
43
43
|
},
|
|
44
44
|
"./client": {
|
|
45
|
-
"import": "./dist/lib/v2/client.
|
|
46
|
-
"types": "./dist/lib/v2/client.d.
|
|
45
|
+
"import": "./dist/lib/v2/client.mjs",
|
|
46
|
+
"types": "./dist/lib/v2/client.d.mts"
|
|
47
47
|
},
|
|
48
48
|
"./v1": {
|
|
49
|
-
"import": "./dist/lib/v1/index.
|
|
50
|
-
"types": "./dist/lib/v1/index.d.
|
|
49
|
+
"import": "./dist/lib/v1/index.mjs",
|
|
50
|
+
"types": "./dist/lib/v1/index.d.mts"
|
|
51
51
|
},
|
|
52
52
|
"./v1/utils": {
|
|
53
|
-
"import": "./dist/lib/v1/utils.
|
|
54
|
-
"types": "./dist/lib/v1/utils.d.
|
|
53
|
+
"import": "./dist/lib/v1/utils.mjs",
|
|
54
|
+
"types": "./dist/lib/v1/utils.d.mts"
|
|
55
55
|
},
|
|
56
56
|
"./v1/client": {
|
|
57
|
-
"import": "./dist/lib/v1/client.
|
|
58
|
-
"types": "./dist/lib/v1/client.d.
|
|
57
|
+
"import": "./dist/lib/v1/client.mjs",
|
|
58
|
+
"types": "./dist/lib/v1/client.d.mts"
|
|
59
59
|
},
|
|
60
60
|
"./v2": {
|
|
61
|
-
"import": "./dist/lib/v2/index.
|
|
62
|
-
"types": "./dist/lib/v2/index.d.
|
|
61
|
+
"import": "./dist/lib/v2/index.mjs",
|
|
62
|
+
"types": "./dist/lib/v2/index.d.mts"
|
|
63
63
|
},
|
|
64
64
|
"./v2/utils": {
|
|
65
|
-
"import": "./dist/lib/v2/utils.
|
|
66
|
-
"types": "./dist/lib/v2/utils.d.
|
|
65
|
+
"import": "./dist/lib/v2/utils.mjs",
|
|
66
|
+
"types": "./dist/lib/v2/utils.d.mts"
|
|
67
67
|
},
|
|
68
68
|
"./v2/client": {
|
|
69
|
-
"import": "./dist/lib/v2/client.
|
|
70
|
-
"types": "./dist/lib/v2/client.d.
|
|
69
|
+
"import": "./dist/lib/v2/client.mjs",
|
|
70
|
+
"types": "./dist/lib/v2/client.d.mts"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|