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

@based/client

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/client - npm Package Compare versions

Comparing version 4.8.7 to 4.8.8

dist/index_original.d.ts

19

dist/index.d.ts

@@ -9,2 +9,3 @@ import { BasedOpts, AuthState, FunctionResponseListeners, Settings, FunctionQueue, ObserveState, ObserveQueue, Cache, GetObserveQueue } from './types';

import { ChannelQueue, ChannelPublishQueue, ChannelState } from './types/channel';
import { CallOptions, QueryOptions } from './types';
export * from './authState/parseAuthState';

@@ -136,19 +137,7 @@ export * from './types/error';

*/
query(name: string, payload?: any, opts?: {
persistent: boolean;
}): BasedQuery;
query(name: string, payload?: any, opts?: QueryOptions): BasedQuery;
/**
Callable function, mostly used for modifications
```javascript
await client.call('db:set', {
type: 'fruit',
subType: 'apple',
name: 'jonagold'
})
```
Callable function, mostly used for modifications.
*/
call(name: string, payload?: any, opts?: {
retryStrategy: (err: Error, time: number, retries: number) => 0 | null | undefined | false | number;
}): Promise<any>;
call(name: string, payload?: any, opts?: CallOptions): Promise<any>;
/**

@@ -155,0 +144,0 @@ Stream large payload to a `stream-function`

@@ -267,11 +267,3 @@ "use strict";

/**
Callable function, mostly used for modifications
```javascript
await client.call('db:set', {
type: 'fruit',
subType: 'apple',
name: 'jonagold'
})
```
Callable function, mostly used for modifications.
*/

@@ -278,0 +270,0 @@ call(name, payload, opts) {

@@ -9,2 +9,8 @@ import { GenericObject } from './generic';

export type FunctionQueue = FunctionQueueItem[];
export type CallOptions = {
retryStrategy: (err: Error, time: number, retries: number) => 0 | null | undefined | false | number;
};
export type QueryOptions = {
persistent: boolean;
};
//# sourceMappingURL=functions.d.ts.map
{
"name": "@based/client",
"version": "4.8.7",
"version": "4.8.8",
"license": "MIT",
"main": "dist/index.js",
"scripts": {
"build": "npx tsc",
"build": "npx tsc && cp ./dist/index.d.ts ./dist/index_original.d.ts",
"test-stream": "npx ts-node ./test/browser/upload-file.ts",

@@ -9,0 +9,0 @@ "watch": "npm run build -- --watch",

Sorry, the diff of this file is not supported yet

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