@edge-base/ssr 0.1.3 → 0.1.4
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/server-client.d.ts +3 -3
- package/dist/server-client.js +3 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* });
|
|
18
18
|
*
|
|
19
19
|
* const user = client.getUser();
|
|
20
|
-
* const posts = await client.db('shared').table('posts').
|
|
20
|
+
* const posts = await client.db('shared').table('posts').getList();
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
export { ServerEdgeBase, type ServerUser } from './server-client.js';
|
package/dist/index.js
CHANGED
package/dist/server-client.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* const client = createServerClient('https://my-app.edgebase.fun', {
|
|
11
11
|
* cookies: cookieStore,
|
|
12
12
|
* });
|
|
13
|
-
* const posts = await client.db('shared').table('posts').
|
|
13
|
+
* const posts = await client.db('shared').table('posts').getList();
|
|
14
14
|
* const health = await client.functions.get('public/health');
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
@@ -46,8 +46,8 @@ export declare class ServerEdgeBase {
|
|
|
46
46
|
* Access a database by namespace + optional instance ID.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
|
-
* const posts = await client.db('shared').table('posts').
|
|
50
|
-
* const docs = await client.db('workspace', 'ws-456').table('documents').
|
|
49
|
+
* const posts = await client.db('shared').table('posts').getList();
|
|
50
|
+
* const docs = await client.db('workspace', 'ws-456').table('documents').getList();
|
|
51
51
|
*/
|
|
52
52
|
db(namespace: string, id?: string): DbRef;
|
|
53
53
|
/**
|
package/dist/server-client.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* const client = createServerClient('https://my-app.edgebase.fun', {
|
|
11
11
|
* cookies: cookieStore,
|
|
12
12
|
* });
|
|
13
|
-
* const posts = await client.db('shared').table('posts').
|
|
13
|
+
* const posts = await client.db('shared').table('posts').getList();
|
|
14
14
|
* const health = await client.functions.get('public/health');
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
@@ -46,8 +46,8 @@ export class ServerEdgeBase {
|
|
|
46
46
|
* Access a database by namespace + optional instance ID.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
|
-
* const posts = await client.db('shared').table('posts').
|
|
50
|
-
* const docs = await client.db('workspace', 'ws-456').table('documents').
|
|
49
|
+
* const posts = await client.db('shared').table('posts').getList();
|
|
50
|
+
* const docs = await client.db('workspace', 'ws-456').table('documents').getList();
|
|
51
51
|
*/
|
|
52
52
|
db(namespace, id) {
|
|
53
53
|
return new DbRef(this.core, namespace, id, undefined, undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edge-base/ssr",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "EdgeBase SSR helpers — cookie-based token management for server-side rendering",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/edge-base/edgebase.git",
|
|
9
9
|
"directory": "packages/sdk/js/packages/ssr"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://edgebase
|
|
11
|
+
"homepage": "https://github.com/edge-base/edgebase/tree/main/packages/sdk/js/packages/ssr",
|
|
12
12
|
"bugs": "https://github.com/edge-base/edgebase/issues",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"edgebase",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@edge-base/core": "0.1.
|
|
38
|
+
"@edge-base/core": "0.1.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "^5.7.0"
|