@based/functions
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -6,4 +6,6 @@ import { AuthState } from './auth'; | ||
import { StreamFunctionOpts } from './stream'; | ||
import { Geo } from './geo'; | ||
export declare abstract class BasedFunctionClient { | ||
server: any; | ||
db: any; | ||
abstract call(name: string, payload?: any, ctx?: Context): Promise<any>; | ||
@@ -14,3 +16,4 @@ abstract query(name: string, payload?: any): BasedQuery; | ||
abstract sendAuthState(ctx: Context, authState: AuthState): void; | ||
abstract geo(ctx: Context): Promise<Geo>; | ||
abstract renewAuthState(ctx: Context, authState?: AuthState): Promise<AuthState>; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BasedFunctionClient = void 0; | ||
// TODO: this is the place where we will add extra specifications | ||
class BasedFunctionClient { | ||
@@ -6,0 +5,0 @@ } |
@@ -8,1 +8,2 @@ export * from './context'; | ||
export * from './channel'; | ||
export * from './geo'; |
@@ -24,2 +24,3 @@ "use strict"; | ||
__exportStar(require("./channel"), exports); | ||
__exportStar(require("./geo"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@based/functions", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,7 +6,9 @@ import { AuthState } from './auth' | ||
import { StreamFunctionOpts } from './stream' | ||
import { Geo } from './geo' | ||
// TODO: this is the place where we will add extra specifications | ||
export abstract class BasedFunctionClient { | ||
server: any | ||
db: any | ||
abstract call(name: string, payload?: any, ctx?: Context): Promise<any> | ||
@@ -26,2 +28,4 @@ | ||
abstract geo(ctx: Context): Promise<Geo> | ||
abstract renewAuthState( | ||
@@ -28,0 +32,0 @@ ctx: Context, |
@@ -8,1 +8,2 @@ export * from './context' | ||
export * from './channel' | ||
export * from './geo' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
83843
41
2117