@elysiajs/eden 0.7.7 → 0.8.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/dist/fetch/index.d.ts +1 -1
- package/dist/fetch.d.mts +1 -1
- package/dist/fetch.d.ts +1 -1
- package/dist/treaty/index.d.ts +1 -1
- package/dist/treaty.d.mts +1 -1
- package/dist/treaty.d.ts +1 -1
- package/package.json +77 -73
package/dist/fetch/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Elysia } from 'elysia';
|
|
2
2
|
import type { EdenFetch } from './types';
|
|
3
3
|
export type { EdenFetch } from './types';
|
|
4
|
-
export declare const edenFetch: <App extends Elysia<any, any, any, any, any, any>>(server: string, config?: EdenFetch.Config) => EdenFetch.Create<App>;
|
|
4
|
+
export declare const edenFetch: <App extends Elysia<any, any, any, any, any, any, false>>(server: string, config?: EdenFetch.Config) => EdenFetch.Create<App>;
|
package/dist/fetch.d.mts
CHANGED
|
@@ -44,6 +44,6 @@ declare namespace EdenFetch {
|
|
|
44
44
|
}>>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare const edenFetch: <App extends Elysia<any, any, any, any, any, any>>(server: string, config?: EdenFetch.Config) => EdenFetch.Create<App>;
|
|
47
|
+
declare const edenFetch: <App extends Elysia<any, any, any, any, any, any, false>>(server: string, config?: EdenFetch.Config) => EdenFetch.Create<App>;
|
|
48
48
|
|
|
49
49
|
export { EdenFetch, edenFetch };
|
package/dist/fetch.d.ts
CHANGED
|
@@ -44,6 +44,6 @@ declare namespace EdenFetch {
|
|
|
44
44
|
}>>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare const edenFetch: <App extends Elysia<any, any, any, any, any, any>>(server: string, config?: EdenFetch.Config) => EdenFetch.Create<App>;
|
|
47
|
+
declare const edenFetch: <App extends Elysia<any, any, any, any, any, any, false>>(server: string, config?: EdenFetch.Config) => EdenFetch.Create<App>;
|
|
48
48
|
|
|
49
49
|
export { EdenFetch, edenFetch };
|
package/dist/treaty/index.d.ts
CHANGED
|
@@ -13,4 +13,4 @@ export declare class EdenWS<Schema extends InputSchema<any> = InputSchema> {
|
|
|
13
13
|
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): this;
|
|
14
14
|
close(): this;
|
|
15
15
|
}
|
|
16
|
-
export declare const edenTreaty: <App extends Elysia<any, any, any, any, any, any>>(domain: string, config?: EdenTreaty.Config) => EdenTreaty.Create<App>;
|
|
16
|
+
export declare const edenTreaty: <App extends Elysia<any, any, any, any, any, any, false>>(domain: string, config?: EdenTreaty.Config) => EdenTreaty.Create<App>;
|
package/dist/treaty.d.mts
CHANGED
|
@@ -116,6 +116,6 @@ declare class EdenWS<Schema extends InputSchema<any> = InputSchema> {
|
|
|
116
116
|
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): this;
|
|
117
117
|
close(): this;
|
|
118
118
|
}
|
|
119
|
-
declare const edenTreaty: <App extends Elysia<any, any, any, any, any, any>>(domain: string, config?: EdenTreaty.Config) => EdenTreaty.Create<App>;
|
|
119
|
+
declare const edenTreaty: <App extends Elysia<any, any, any, any, any, any, false>>(domain: string, config?: EdenTreaty.Config) => EdenTreaty.Create<App>;
|
|
120
120
|
|
|
121
121
|
export { EdenTreaty, EdenWS, edenTreaty };
|
package/dist/treaty.d.ts
CHANGED
|
@@ -116,6 +116,6 @@ declare class EdenWS<Schema extends InputSchema<any> = InputSchema> {
|
|
|
116
116
|
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): this;
|
|
117
117
|
close(): this;
|
|
118
118
|
}
|
|
119
|
-
declare const edenTreaty: <App extends Elysia<any, any, any, any, any, any>>(domain: string, config?: EdenTreaty.Config) => EdenTreaty.Create<App>;
|
|
119
|
+
declare const edenTreaty: <App extends Elysia<any, any, any, any, any, any, false>>(domain: string, config?: EdenTreaty.Config) => EdenTreaty.Create<App>;
|
|
120
120
|
|
|
121
121
|
export { EdenTreaty, EdenWS, edenTreaty };
|
package/package.json
CHANGED
|
@@ -1,78 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"main": "./dist/index.js",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"require": "./dist/index.js",
|
|
14
|
-
"import": "./dist/index.mjs",
|
|
15
|
-
"node": "./dist/index.js",
|
|
16
|
-
"default": "./dist/index.js",
|
|
17
|
-
"types": "./dist/index.d.ts"
|
|
2
|
+
"name": "@elysiajs/eden",
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Fully type-safe Elysia client",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "saltyAom",
|
|
7
|
+
"url": "https://github.com/SaltyAom",
|
|
8
|
+
"email": "saltyaom@gmail.com"
|
|
18
9
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"node": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./treaty": {
|
|
20
|
+
"require": "./dist/treaty.js",
|
|
21
|
+
"import": "./dist/treaty.mjs",
|
|
22
|
+
"node": "./dist/treaty.js",
|
|
23
|
+
"default": "./dist/treaty.js",
|
|
24
|
+
"types": "./dist/treaty/index.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./fetch": {
|
|
27
|
+
"require": "./dist/fetch.js",
|
|
28
|
+
"import": "./dist/fetch.mjs",
|
|
29
|
+
"node": "./dist/fetch.js",
|
|
30
|
+
"default": "./dist/fetch.js",
|
|
31
|
+
"types": "./dist/fetch/index.d.ts"
|
|
32
|
+
}
|
|
25
33
|
},
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
34
|
+
"types": "./src/index.ts",
|
|
35
|
+
"keywords": [
|
|
36
|
+
"elysia",
|
|
37
|
+
"eden",
|
|
38
|
+
"connector"
|
|
39
|
+
],
|
|
40
|
+
"homepage": "https://github.com/elysiajs/eden",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/elysiajs/eden"
|
|
44
|
+
},
|
|
45
|
+
"bugs": "https://github.com/elysiajs/eden/issues",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"scripts": {
|
|
48
|
+
"dev": "bun run --watch example/index.ts",
|
|
49
|
+
"test": "bun test",
|
|
50
|
+
"build": "rimraf dist && tsup",
|
|
51
|
+
"release": "npm run build && npm run test && npm publish --access public"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"elysia": ">= 0.8.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@sinclair/typebox": {
|
|
58
|
+
"optional": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@elysiajs/cors": "0.7.0",
|
|
63
|
+
"@sinclair/typebox": "^0.31.6",
|
|
64
|
+
"@types/node": "^18.15.5",
|
|
65
|
+
"bun-types": "^1.0.1",
|
|
66
|
+
"elysia": "0.8.0",
|
|
67
|
+
"esbuild": "^0.19.3",
|
|
68
|
+
"eslint": "^8.26.0",
|
|
69
|
+
"rimraf": "^4.4.1",
|
|
70
|
+
"tsup": "^7.2.0",
|
|
71
|
+
"typescript": "^5.2.2"
|
|
72
|
+
},
|
|
73
|
+
"prettier": {
|
|
74
|
+
"semi": false,
|
|
75
|
+
"tabWidth": 4,
|
|
76
|
+
"singleQuote": true,
|
|
77
|
+
"trailingComma": "none"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"superjson": "^2.2.1"
|
|
55
81
|
}
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@elysiajs/cors": "0.7.0",
|
|
59
|
-
"@sinclair/typebox": "^0.31.6",
|
|
60
|
-
"@types/node": "^18.15.5",
|
|
61
|
-
"bun-types": "^1.0.1",
|
|
62
|
-
"elysia": "^0.7.15",
|
|
63
|
-
"esbuild": "^0.19.3",
|
|
64
|
-
"eslint": "^8.26.0",
|
|
65
|
-
"rimraf": "^4.4.1",
|
|
66
|
-
"tsup": "^7.2.0",
|
|
67
|
-
"typescript": "^5.2.2"
|
|
68
|
-
},
|
|
69
|
-
"prettier": {
|
|
70
|
-
"semi": false,
|
|
71
|
-
"tabWidth": 4,
|
|
72
|
-
"singleQuote": true,
|
|
73
|
-
"trailingComma": "none"
|
|
74
|
-
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"superjson": "^2.2.1"
|
|
77
|
-
}
|
|
78
82
|
}
|