@kulupu-linku/sona 2.1.1 → 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.
@@ -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: {
@@ -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: {
@@ -1,4 +1,4 @@
1
- import { s as app$2, t as app$1 } from "../v1-Da4_o5R1.mjs";
1
+ import { s as app$2, t as app$1 } from "../v1-BtCF6yRB.mjs";
2
2
  import { Hono } from "hono";
3
3
  import { cache } from "hono/cache";
4
4
  import { cors } from "hono/cors";
@@ -1,2 +1,2 @@
1
- import { n as config, r as languagesFilter, t as app } from "../../v1-Da4_o5R1.mjs";
1
+ import { n as config, r as languagesFilter, t as app } from "../../v1-BtCF6yRB.mjs";
2
2
  export { config, app as default, languagesFilter };
@@ -1,2 +1,2 @@
1
- import { c as config, l as fetchData, s as app } from "../../v1-Da4_o5R1.mjs";
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-Da4_o5R1.mjs";
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.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": {