eser 3.0.0-rc.3 → 3.0.0

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/deno.json CHANGED
@@ -1,4 +1,7 @@
1
1
  {
2
+ "imports": {
3
+ "hono": "npm:hono@3.10.1"
4
+ },
2
5
  "tasks": {
3
6
  "dev": "deno run --unstable-kv --allow-net --watch main.js",
4
7
  "start": "deno run --unstable-kv --allow-net main.js"
package/hizli-api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Hono } from "npm:hono";
1
+ import { Hono } from "hono";
2
2
 
3
3
  const kv = await Deno.openKv();
4
4
 
@@ -48,14 +48,14 @@ export async function routeItemsClear(item, config, ctx) {
48
48
  export function validateConfig(options) {
49
49
  return {
50
50
  options: {
51
- name: options.isim ?? "hizli-api",
51
+ name: options?.isim ?? "hizli-api",
52
52
  messages: {
53
- welcome: options.mesajlar.hosgeldin ?? "Hoş geldin!",
54
- success: options.mesajlar.basarili ?? "Başarılı",
55
- fail: options.mesajlar.basarisiz ?? "Başarısız",
53
+ welcome: options?.mesajlar?.hosgeldin ?? "Hoş geldin!",
54
+ success: options?.mesajlar?.basarili ?? "Başarılı",
55
+ fail: options?.mesajlar?.basarisiz ?? "Başarısız",
56
56
  },
57
57
 
58
- items: options.nesneler ?? [],
58
+ items: options?.nesneler ?? [],
59
59
  },
60
60
  };
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eser",
3
- "version": "3.0.0-rc.3",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "main.js",
@@ -13,5 +13,8 @@
13
13
  "exports": {
14
14
  ".": "./mod.js",
15
15
  "./hizli-api": "./hizli-api.js"
16
+ },
17
+ "dependencies": {
18
+ "hono": "3.10.1"
16
19
  }
17
20
  }
package/deno.lock DELETED
@@ -1,57 +0,0 @@
1
- {
2
- "version": "3",
3
- "packages": {
4
- "specifiers": {
5
- "npm:eser": "npm:eser@3.0.0-rc.1",
6
- "npm:hono": "npm:hono@3.10.1"
7
- },
8
- "npm": {
9
- "eser@3.0.0-rc.1": {
10
- "integrity": "sha512-a7FzdiYZDE8mIvIZ9OtZeu7qSW8s/SvCq8kQ8TG44IQ5rvnkUPNJS030YnqU//iunOnMpHSZndk344/mKC/rbA==",
11
- "dependencies": {}
12
- },
13
- "hono@3.10.1": {
14
- "integrity": "sha512-4jPKCmYWLAoCMpmvOU+xNOQYdcNftip7sM/IsO8EPyGAtjk9fGNyUchG6huSzLrY449WDNGFPetVs5doepNnlA==",
15
- "dependencies": {}
16
- }
17
- }
18
- },
19
- "redirects": {
20
- "https://deno.land/x/hono/mod.ts": "https://deno.land/x/hono@v3.10.1/mod.ts"
21
- },
22
- "remote": {
23
- "https://deno.land/x/hono@v3.10.1/client/client.ts": "ff340f58041203879972dd368b011ed130c66914f789826610869a90603406bf",
24
- "https://deno.land/x/hono@v3.10.1/client/index.ts": "3ff4cf246f3543f827a85a2c84d66a025ac350ee927613629bda47e854bfb7ba",
25
- "https://deno.land/x/hono@v3.10.1/client/utils.ts": "053273c002963b549d38268a1b423ac8ca211a8028bdab1ed0b781a62aa5e661",
26
- "https://deno.land/x/hono@v3.10.1/compose.ts": "e8ab4b345aa367f2dd65f221c9fe829dd885326a613f4215b654f93a4066bb5c",
27
- "https://deno.land/x/hono@v3.10.1/context.ts": "261cc8b8b1e8f04b98beab1cca6692f317b7dc6d2b75b4f84c982e54cf1db730",
28
- "https://deno.land/x/hono@v3.10.1/helper/cookie/index.ts": "55ccd20bbd8d9a8bb2ecd998e90845c1d306c19027f54b3d1b89a5be35968b80",
29
- "https://deno.land/x/hono@v3.10.1/hono-base.ts": "cc55e0a4c63a7bdf44df3e804ea4737d5399eeb6606b45d102f8e48c3ff1e925",
30
- "https://deno.land/x/hono@v3.10.1/hono.ts": "2cc4c292e541463a4d6f83edbcea58048d203e9564ae62ec430a3d466b49a865",
31
- "https://deno.land/x/hono@v3.10.1/http-exception.ts": "6071df078b5f76d279684d52fe82a590f447a64ffe1b75eb5064d0c8a8d2d676",
32
- "https://deno.land/x/hono@v3.10.1/mod.ts": "90114a97be9111b348129ad0143e764a64921f60dd03b8f3da529db98a0d3a82",
33
- "https://deno.land/x/hono@v3.10.1/request.ts": "52330303dd7a3bf4f580fde0463ba608bc4c88a8b7b5edd7c1327064c7cf65ce",
34
- "https://deno.land/x/hono@v3.10.1/router.ts": "39d573f48baee429810cd583c931dd44274273c30804d538c86967d310ea4ab5",
35
- "https://deno.land/x/hono@v3.10.1/router/linear-router/index.ts": "8a2a7144c50b1f4a92d9ee99c2c396716af144c868e10608255f969695efccd0",
36
- "https://deno.land/x/hono@v3.10.1/router/linear-router/router.ts": "bc63e8b5bc1dabc815306d50bebd1bb5877ffa3936ba2ad7550d093c95ee6bd1",
37
- "https://deno.land/x/hono@v3.10.1/router/pattern-router/index.ts": "304a66c50e243872037ed41c7dd79ed0c89d815e17e172e7ad7cdc4bc07d3383",
38
- "https://deno.land/x/hono@v3.10.1/router/pattern-router/router.ts": "a9a5a2a182cce8c3ae82139892cc0502be7dd8f579f31e76d0302b19b338e548",
39
- "https://deno.land/x/hono@v3.10.1/router/reg-exp-router/index.ts": "52755829213941756159b7a963097bafde5cc4fc22b13b1c7c9184dc0512d1db",
40
- "https://deno.land/x/hono@v3.10.1/router/reg-exp-router/node.ts": "5b3fb80411db04c65df066e69fedb2c8c0844753c2633d703336de84d569252c",
41
- "https://deno.land/x/hono@v3.10.1/router/reg-exp-router/router.ts": "fbe8917aa24fe25d0208bfa82ce7f49ba0507f9ae158d4d0c177f6a061b0a561",
42
- "https://deno.land/x/hono@v3.10.1/router/reg-exp-router/trie.ts": "852ce7207e6701e47fa30889a0d2b8bfcd56d8862c97e7bc9831e0a64bd8835f",
43
- "https://deno.land/x/hono@v3.10.1/router/smart-router/index.ts": "74f9b4fe15ea535900f2b9b048581915f12fe94e531dd2b0032f5610e61c3bef",
44
- "https://deno.land/x/hono@v3.10.1/router/smart-router/router.ts": "71979c06b32b093960a6e8efc4c185e558f280bff18846b8b1cdc757ade6ff99",
45
- "https://deno.land/x/hono@v3.10.1/router/trie-router/index.ts": "3eb75e7f71ba81801631b30de6b1f5cefb2c7239c03797e2b2cbab5085911b41",
46
- "https://deno.land/x/hono@v3.10.1/router/trie-router/node.ts": "3af15fa9c9994a8664a2b7a7c11233504b5bb9d4fcf7bb34cf30d7199052c39f",
47
- "https://deno.land/x/hono@v3.10.1/router/trie-router/router.ts": "54ced78d35676302c8fcdda4204f7bdf5a7cc907fbf9967c75674b1e394f830d",
48
- "https://deno.land/x/hono@v3.10.1/utils/body.ts": "7a16a6656331a96bcae57642f8d5e3912bd361cbbcc2c0d2157ecc3f218f7a92",
49
- "https://deno.land/x/hono@v3.10.1/utils/buffer.ts": "9066a973e64498cb262c7e932f47eed525a51677b17f90893862b7279dc0773e",
50
- "https://deno.land/x/hono@v3.10.1/utils/cookie.ts": "19920ba6756944aae1ad8585c3ddeaa9df479733f59d05359db096f7361e5e4b",
51
- "https://deno.land/x/hono@v3.10.1/utils/crypto.ts": "bda0e141bbe46d3a4a20f8fbcb6380d473b617123d9fdfa93e4499410b537acc",
52
- "https://deno.land/x/hono@v3.10.1/utils/stream.ts": "1789dcc73c5b0ede28f83d7d34e47ae432c20e680907cb3275a9c9187f293983",
53
- "https://deno.land/x/hono@v3.10.1/utils/url.ts": "5fc3307ef3cb2e6f34ec2a03e3d7f2126c6a9f5f0eab677222df3f0e40bd7567",
54
- "https://deno.land/x/hono@v3.10.1/validator/index.ts": "6c986e8b91dcf857ecc8164a506ae8eea8665792a4ff7215471df669c632ae7c",
55
- "https://deno.land/x/hono@v3.10.1/validator/validator.ts": "afa5e52495e0996fbba61996736fab5c486590d72d376f809e9f9ff4e0c463e9"
56
- }
57
- }