@hahnpro/flow-sdk 9.6.2 → 9.6.4-beta.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/dist/FlowApplication.d.ts +2 -2
- package/dist/FlowApplication.js +2 -6
- package/dist/flow.interface.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import { API,
|
|
2
|
+
import { API, HttpClientService, MockAPI } from '@hahnpro/hpc-api';
|
|
3
3
|
import { NatsConnection, ConnectionOptions as NatsConnectionOptions } from '@nats-io/nats-core';
|
|
4
4
|
import { AmqpConnectionManager } from 'amqp-connection-manager';
|
|
5
5
|
import { CloudEvent } from 'cloudevents';
|
|
@@ -16,7 +16,7 @@ interface FlowAppConfig {
|
|
|
16
16
|
amqpConnection?: AmqpConnectionManager;
|
|
17
17
|
natsConfig?: NatsConnectionOptions;
|
|
18
18
|
natsConnection?: NatsConnection;
|
|
19
|
-
apiClient?:
|
|
19
|
+
apiClient?: HttpClientService;
|
|
20
20
|
skipApi?: boolean;
|
|
21
21
|
explicitInit?: boolean;
|
|
22
22
|
mockApi?: MockAPI;
|
package/dist/FlowApplication.js
CHANGED
|
@@ -282,12 +282,8 @@ class FlowApplication {
|
|
|
282
282
|
this.contextManager.overwriteAllProperties(this.flow.properties ?? {});
|
|
283
283
|
try {
|
|
284
284
|
if (!this.skipApi && !(this._api instanceof hpc_api_1.MockAPI)) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
if (runAsOwner && owner) {
|
|
288
|
-
tokenSubject = owner.type === 'org' ? 'org-admin-' + owner.id : owner.id;
|
|
289
|
-
}
|
|
290
|
-
this._api = new hpc_api_1.API(this.apiClient, { tokenSubject });
|
|
285
|
+
const { owner } = this.context;
|
|
286
|
+
this._api = new hpc_api_1.API(this.apiClient, { activeOrg: owner?.id });
|
|
291
287
|
}
|
|
292
288
|
}
|
|
293
289
|
catch (err) {
|
package/dist/flow.interface.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './FlowApplication';
|
|
|
5
5
|
export * from './FlowElement';
|
|
6
6
|
export * from './FlowEvent';
|
|
7
7
|
export * from './FlowLogger';
|
|
8
|
-
export
|
|
8
|
+
export { FlowModule } from './FlowModule';
|
|
9
9
|
export * from './TestModule';
|
|
10
10
|
export * from './unit-decorators';
|
|
11
11
|
export * from './ContextManager';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IncompatableWith = void 0;
|
|
3
|
+
exports.IncompatableWith = exports.FlowModule = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("@hahnpro/hpc-api"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./flow.interface"), exports);
|
|
@@ -9,7 +9,8 @@ tslib_1.__exportStar(require("./FlowApplication"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./FlowElement"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./FlowEvent"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./FlowLogger"), exports);
|
|
12
|
-
|
|
12
|
+
var FlowModule_1 = require("./FlowModule");
|
|
13
|
+
Object.defineProperty(exports, "FlowModule", { enumerable: true, get: function () { return FlowModule_1.FlowModule; } });
|
|
13
14
|
tslib_1.__exportStar(require("./TestModule"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./unit-decorators"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ContextManager"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hahnpro/flow-sdk",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.4-beta.1",
|
|
4
4
|
"description": "SDK for building Flow Modules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@hahnpro/hpc-api": "2025.
|
|
28
|
-
"@nats-io/jetstream": "3.
|
|
29
|
-
"@nats-io/nats-core": "3.
|
|
30
|
-
"@nats-io/transport-node": "3.
|
|
31
|
-
"amqp-connection-manager": "4.1.
|
|
27
|
+
"@hahnpro/hpc-api": "2025.4.1-beta.2",
|
|
28
|
+
"@nats-io/jetstream": "3.2.0",
|
|
29
|
+
"@nats-io/nats-core": "3.2.0",
|
|
30
|
+
"@nats-io/transport-node": "3.2.0",
|
|
31
|
+
"amqp-connection-manager": "4.1.15",
|
|
32
32
|
"amqplib": "0.10.9",
|
|
33
33
|
"class-transformer": "0.5.1",
|
|
34
34
|
"class-validator": "~0.14.2",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"@types/amqplib": "0.10.7",
|
|
45
45
|
"@types/jest": "30.0.0",
|
|
46
46
|
"@types/lodash": "4.17.20",
|
|
47
|
-
"@types/node": "22.18.
|
|
47
|
+
"@types/node": "22.18.10",
|
|
48
48
|
"class-validator-jsonschema": "5.1.0",
|
|
49
|
-
"jest": "30.
|
|
50
|
-
"typescript": "5.9.
|
|
49
|
+
"jest": "30.2.0",
|
|
50
|
+
"typescript": "5.9.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"axios": "1.12.2",
|