@aloma.io/integration-sdk 3.3.23 → 3.3.34
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/build/builder/index.mjs
CHANGED
@@ -28,15 +28,15 @@ export class Builder {
|
|
28
28
|
async build() {
|
29
29
|
await this.parsePackageJson();
|
30
30
|
await this.discoverTypes();
|
31
|
-
await this.
|
31
|
+
await this.checkIcon();
|
32
32
|
// @ts-ignore
|
33
33
|
const Controller = (await import(__dirname + "/../../../../../build/controller/index.mjs")).default;
|
34
34
|
return new RuntimeContext(new Controller(), this.data);
|
35
35
|
}
|
36
|
-
async
|
36
|
+
async checkIcon() {
|
37
37
|
const data = this.data;
|
38
38
|
const root = __dirname + "/../../../../../";
|
39
|
-
data.
|
39
|
+
data.icon = `${root}/logo.png`;
|
40
40
|
}
|
41
41
|
async parsePackageJson() {
|
42
42
|
const data = this.data;
|
@@ -12,6 +12,7 @@ export default class RuntimeContext {
|
|
12
12
|
if (!(controller instanceof AbstractController))
|
13
13
|
throw new Error("the controller needs to extend AbstractController");
|
14
14
|
const data = this.data;
|
15
|
+
console.log(data, data.icon);
|
15
16
|
const connector = new Connector({
|
16
17
|
id: data.id,
|
17
18
|
version: data.version,
|
package/package.json
CHANGED
package/src/builder/index.mts
CHANGED
@@ -37,7 +37,7 @@ export class Builder {
|
|
37
37
|
async build(): Promise<RuntimeContext> {
|
38
38
|
await this.parsePackageJson();
|
39
39
|
await this.discoverTypes();
|
40
|
-
await this.
|
40
|
+
await this.checkIcon();
|
41
41
|
|
42
42
|
// @ts-ignore
|
43
43
|
const Controller = (
|
@@ -47,11 +47,11 @@ export class Builder {
|
|
47
47
|
return new RuntimeContext(new Controller(), this.data);
|
48
48
|
}
|
49
49
|
|
50
|
-
private async
|
50
|
+
private async checkIcon() {
|
51
51
|
const data = this.data;
|
52
52
|
const root = __dirname + "/../../../../../"
|
53
53
|
|
54
|
-
data.
|
54
|
+
data.icon = `${root}/logo.png`;
|
55
55
|
}
|
56
56
|
|
57
57
|
private async parsePackageJson() {
|