@blokjs/runner 0.6.13 → 0.6.14
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/dist/BlokResponse.d.ts
CHANGED
|
@@ -3,14 +3,20 @@ import type JsonLikeObject from "./types/JsonLikeObject";
|
|
|
3
3
|
export interface IBlokResponse extends ResponseContext {
|
|
4
4
|
steps: NodeBase[];
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Body shapes a node may return. Beyond JSON, the `http` trigger can emit raw
|
|
8
|
+
* binary (`Uint8Array`/`Buffer`/`ArrayBuffer`) and a branded response envelope
|
|
9
|
+
* (object) — so the union is widened to keep those returns type-safe.
|
|
10
|
+
*/
|
|
11
|
+
export type BlokResponseData = string | JsonLikeObject | JsonLikeObject[] | Uint8Array | ArrayBuffer;
|
|
6
12
|
export default class BlokResponse implements IBlokResponse {
|
|
7
13
|
steps: NodeBase[];
|
|
8
|
-
data:
|
|
14
|
+
data: BlokResponseData;
|
|
9
15
|
error: GlobalError | null;
|
|
10
16
|
success?: boolean | undefined;
|
|
11
17
|
contentType?: string | undefined;
|
|
12
18
|
constructor();
|
|
13
19
|
setError(error: GlobalError): void;
|
|
14
|
-
setSuccess(data:
|
|
20
|
+
setSuccess(data: BlokResponseData): void;
|
|
15
21
|
setSteps(steps: NodeBase[]): void;
|
|
16
22
|
}
|
package/dist/BlokResponse.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlokResponse.js","sourceRoot":"","sources":["../src/BlokResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlokResponse.js","sourceRoot":"","sources":["../src/BlokResponse.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,OAAO,YAAY;IACzB,KAAK,CAAa;IAClB,IAAI,CAAmB;IACvB,KAAK,CAAqB;IAC1B,OAAO,CAAuB;IAC9B,WAAW,CAAsB;IAExC;QACC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC;IACvC,CAAC;IAED,QAAQ,CAAC,KAAkB;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;IAChB,CAAC;IAED,UAAU,CAAC,IAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,QAAQ,CAAC,KAAiB;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blokjs/runner",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"vitest": "^4.0.18"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@blokjs/helper": "^0.6.
|
|
37
|
-
"@blokjs/shared": "^0.6.
|
|
36
|
+
"@blokjs/helper": "^0.6.14",
|
|
37
|
+
"@blokjs/shared": "^0.6.14",
|
|
38
38
|
"@grpc/grpc-js": "^1.12.0",
|
|
39
39
|
"@grpc/proto-loader": "^0.7.13",
|
|
40
40
|
"@opentelemetry/api": "^1.9.0",
|