@based/client
Advanced tools
Comparing version 4.8.7 to 4.8.8
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235974
144
3486