@based/functions 1.0.0 → 1.0.1
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/.turbo/turbo-build.log +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/functions.d.ts +2 -2
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/functions.ts +2 -2
- package/dist/errors.d.ts +0 -0
- package/dist/errors.js +0 -2
- package/dist/errors.js.map +0 -1
- package/dist/network.d.ts +0 -0
- package/dist/network.js +0 -3
- package/dist/network.js.map +0 -1
- package/dist/types.d.ts +0 -0
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
package/dist/client.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare abstract class BasedFunctionClient {
|
|
|
7
7
|
abstract query(name: string, payload?: any): BasedQuery;
|
|
8
8
|
abstract stream(name: string, stream?: any, ctx?: Context): Promise<any>;
|
|
9
9
|
abstract sendAuthState(ctx: Context, authState: AuthState): void;
|
|
10
|
-
abstract renewAuthState(ctx: Context): void;
|
|
10
|
+
abstract renewAuthState(ctx: Context, authState?: AuthState): void;
|
|
11
11
|
}
|
package/dist/functions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Context, HttpSession } from './context';
|
|
3
3
|
import { BasedFunctionClient } from './client';
|
|
4
|
-
import {
|
|
4
|
+
import { Duplex } from 'stream';
|
|
5
5
|
export declare type ObservableUpdateFunction<K = any> = {
|
|
6
6
|
(data: K, checksum?: number, diff?: any, fromChecksum?: number, isDeflate?: boolean, rawData?: K, err?: any): void;
|
|
7
7
|
__internalObs__?: true;
|
|
@@ -13,7 +13,7 @@ export declare type StreamPayload<P = any> = {
|
|
|
13
13
|
payload?: P;
|
|
14
14
|
mimeType: string;
|
|
15
15
|
size: number;
|
|
16
|
-
stream:
|
|
16
|
+
stream: Duplex & {
|
|
17
17
|
size: number;
|
|
18
18
|
receivedBytes: number;
|
|
19
19
|
};
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
package/src/functions.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, HttpSession } from './context'
|
|
2
2
|
import { BasedFunctionClient } from './client'
|
|
3
|
-
import {
|
|
3
|
+
import { Duplex } from 'stream'
|
|
4
4
|
|
|
5
5
|
export type ObservableUpdateFunction<K = any> = {
|
|
6
6
|
(
|
|
@@ -35,7 +35,7 @@ export type StreamPayload<P = any> = {
|
|
|
35
35
|
payload?: P
|
|
36
36
|
mimeType: string
|
|
37
37
|
size: number
|
|
38
|
-
stream:
|
|
38
|
+
stream: Duplex & {
|
|
39
39
|
size: number
|
|
40
40
|
receivedBytes: number
|
|
41
41
|
}
|
package/dist/errors.d.ts
DELETED
|
File without changes
|
package/dist/errors.js
DELETED
package/dist/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,uDAAuD"}
|
package/dist/network.d.ts
DELETED
|
File without changes
|
package/dist/network.js
DELETED
package/dist/network.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":""}
|
package/dist/types.d.ts
DELETED
|
File without changes
|
package/dist/types.js
DELETED
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,iBAAiB"}
|