Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@based/functions

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/functions - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

dist/geo.d.ts

3

dist/client.d.ts

@@ -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>;
}

1

dist/client.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc