@based/functions 3.3.2 → 3.3.3
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/client.d.ts +2 -0
- package/dist/client_original.d.ts +2 -0
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BasedChannel } from './channel.js';
|
|
|
3
3
|
import { Context } from './context.js';
|
|
4
4
|
import { BasedQuery } from './query.js';
|
|
5
5
|
import { StreamFunctionOpts } from './stream.js';
|
|
6
|
+
import { Geo } from './geo.js';
|
|
6
7
|
import type { DbClient } from '@based/db';
|
|
7
8
|
export declare abstract class BasedFunctionClient {
|
|
8
9
|
server: any;
|
|
@@ -15,6 +16,7 @@ export declare abstract class BasedFunctionClient {
|
|
|
15
16
|
abstract channel(name: string, payload?: any): BasedChannel;
|
|
16
17
|
abstract stream(name: string, payload: StreamFunctionOpts, ctx?: Context): Promise<any>;
|
|
17
18
|
abstract sendAuthState(ctx: Context, authState: AuthState): void;
|
|
19
|
+
abstract geo(ctx: Context): Geo;
|
|
18
20
|
abstract renewAuthState(ctx: Context, authState?: AuthState): Promise<AuthState>;
|
|
19
21
|
}
|
|
20
22
|
export type QueryMap = {
|
|
@@ -3,6 +3,7 @@ import { BasedChannel } from './channel.js';
|
|
|
3
3
|
import { Context } from './context.js';
|
|
4
4
|
import { BasedQuery } from './query.js';
|
|
5
5
|
import { StreamFunctionOpts } from './stream.js';
|
|
6
|
+
import { Geo } from './geo.js';
|
|
6
7
|
import type { DbClient } from '@based/db';
|
|
7
8
|
export declare abstract class BasedFunctionClient {
|
|
8
9
|
server: any;
|
|
@@ -15,6 +16,7 @@ export declare abstract class BasedFunctionClient {
|
|
|
15
16
|
abstract channel(name: string, payload?: any): BasedChannel;
|
|
16
17
|
abstract stream(name: string, payload: StreamFunctionOpts, ctx?: Context): Promise<any>;
|
|
17
18
|
abstract sendAuthState(ctx: Context, authState: AuthState): void;
|
|
19
|
+
abstract geo(ctx: Context): Geo;
|
|
18
20
|
abstract renewAuthState(ctx: Context, authState?: AuthState): Promise<AuthState>;
|
|
19
21
|
}
|
|
20
22
|
export type QueryMap = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@based/functions",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@based/db": "0.1.
|
|
20
|
+
"@based/db": "0.1.5",
|
|
21
21
|
"@based/utils": "1.1.1",
|
|
22
22
|
"utility-types": "^3.10.0"
|
|
23
23
|
},
|