@flowcore/cli 2.9.0 → 2.9.2
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/CHANGELOG.md +14 -0
- package/README.md +3 -3
- package/dist/commands/stream.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
|
|
11
11
|
* added description to start that includes week ([58687a7](https://github.com/flowcore-io/flowcore-cli/commit/58687a7bbb66aaa5d6da26af88e555cbb1e72467))
|
|
12
12
|
|
|
13
|
+
## [2.9.2](https://github.com/flowcore-io/flowcore-cli/compare/v2.9.1...v2.9.2) (2024-03-07)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* update log format in processEvents function to correctly output payload and response ([caeb368](https://github.com/flowcore-io/flowcore-cli/commit/caeb3689d0e72b931a45b8916f511e56c76b4aa2))
|
|
19
|
+
|
|
20
|
+
## [2.9.1](https://github.com/flowcore-io/flowcore-cli/compare/v2.9.0...v2.9.1) (2024-03-07)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* update log format in processEvents function to correctly output payload and response ([8945ef4](https://github.com/flowcore-io/flowcore-cli/commit/8945ef4e7d7dd05140f4624cba8cf816fdeb9705))
|
|
26
|
+
|
|
13
27
|
## [2.9.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.8.2...v2.9.0) (2024-03-07)
|
|
14
28
|
|
|
15
29
|
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @flowcore/cli
|
|
|
18
18
|
$ flowcore COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ flowcore (--version)
|
|
21
|
-
@flowcore/cli/2.9.
|
|
21
|
+
@flowcore/cli/2.9.2 linux-x64 node-v20.11.1
|
|
22
22
|
$ flowcore --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ flowcore COMMAND
|
|
@@ -75,7 +75,7 @@ EXAMPLES
|
|
|
75
75
|
$ flowcore apply -f ./path/to/manifest.yml
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.9.
|
|
78
|
+
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.9.2/src/commands/apply.ts)_
|
|
79
79
|
|
|
80
80
|
## `flowcore autocomplete [SHELL]`
|
|
81
81
|
|
|
@@ -755,7 +755,7 @@ EXAMPLES
|
|
|
755
755
|
$ flowcore stream https://flowcore.io/<org>/<data core>/<flow type>/[<event type1>,<event type2>,<event type3>].stream -o log -s 3m
|
|
756
756
|
```
|
|
757
757
|
|
|
758
|
-
_See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.9.
|
|
758
|
+
_See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.9.2/src/commands/stream.ts)_
|
|
759
759
|
|
|
760
760
|
## `flowcore version`
|
|
761
761
|
|
package/dist/commands/stream.js
CHANGED
|
@@ -192,10 +192,10 @@ export default class Stream extends BaseCommand {
|
|
|
192
192
|
const event = processingQueue.dequeue();
|
|
193
193
|
const outputPayload = payload ? event.payload : event;
|
|
194
194
|
if (output === "log") {
|
|
195
|
-
this.flags.json ? this.log(JSON.stringify({
|
|
195
|
+
this.flags.json && this.flags.output !== "log" ? this.log(JSON.stringify({
|
|
196
196
|
event: outputPayload,
|
|
197
197
|
type: "input",
|
|
198
|
-
}
|
|
198
|
+
})) : this.log(JSON.stringify(outputPayload));
|
|
199
199
|
continue;
|
|
200
200
|
}
|
|
201
201
|
!this.flags.json && this.log(`Sending event to ${destination}: ${event.eventId}`);
|
|
@@ -224,7 +224,7 @@ export default class Stream extends BaseCommand {
|
|
|
224
224
|
event: (await result.json()),
|
|
225
225
|
type: "output",
|
|
226
226
|
// eslint-disable-next-line no-await-in-loop
|
|
227
|
-
}
|
|
227
|
+
})) : this.log(`Response from ${destination}: ${JSON.stringify(await result.json())}`);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
catch (error) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"prestart": "npm run build",
|
|
91
91
|
"update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
|
|
92
92
|
},
|
|
93
|
-
"version": "2.9.
|
|
93
|
+
"version": "2.9.2",
|
|
94
94
|
"bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
|
|
95
95
|
"keywords": [
|
|
96
96
|
"flowcore",
|