@edge-base/ssr 0.1.3 → 0.1.5
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/README.md +9 -1
- 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/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/edge-base/edgebase">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/edge-base/edgebase/main/docs/static/img/logo-icon.svg" alt="EdgeBase Logo" width="72" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
1
7
|
<h1 align="center">@edge-base/ssr</h1>
|
|
2
8
|
|
|
3
9
|
<p align="center">
|
|
@@ -35,7 +41,9 @@ It is built for:
|
|
|
35
41
|
|
|
36
42
|
If you are writing browser code, use [`@edge-base/web`](https://www.npmjs.com/package/@edge-base/web). If you need privileged admin access from the server, use [`@edge-base/admin`](https://www.npmjs.com/package/@edge-base/admin).
|
|
37
43
|
|
|
38
|
-
EdgeBase is
|
|
44
|
+
EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.
|
|
45
|
+
|
|
46
|
+
This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: [edge-base/edgebase](https://github.com/edge-base/edgebase).
|
|
39
47
|
|
|
40
48
|
> Beta: the package is already usable, but some APIs may still evolve before general availability.
|
|
41
49
|
|
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.5",
|
|
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.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "^5.7.0"
|