@sw-tsdk/connector 3.4.0 → 3.5.0

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/lib/logo.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function updateImage(directory: string, logoPath: string): Promise<void>;
1
+ export declare function updateImage(directory: string, logoPath: string, imageName?: string): Promise<void>;
package/lib/logo.js CHANGED
@@ -5,13 +5,13 @@ const common_1 = require("@sw-tsdk/common");
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
7
  const fs_extra_1 = require("fs-extra");
8
- async function updateImage(directory, logoPath) {
8
+ async function updateImage(directory, logoPath, imageName = 'logo') {
9
9
  const images = await common_1.ImageProcessor.process(logoPath);
10
10
  if (images === null) {
11
- throw new Error('Could not process image');
11
+ throw new Error('Could not process ' + imageName + ' image');
12
12
  }
13
13
  await (0, fs_extra_1.ensureDir)((0, node_path_1.join)(directory, 'image'));
14
- await node_fs_1.promises.writeFile((0, node_path_1.join)(directory, 'image', 'logo.png'), images.source.getRaw());
14
+ await node_fs_1.promises.writeFile((0, node_path_1.join)(directory, 'image', imageName + '.png'), images.source.getRaw());
15
15
  }
16
16
  exports.updateImage = updateImage;
17
17
  //# sourceMappingURL=logo.js.map
package/lib/logo.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"logo.js","sourceRoot":"","sources":["../src/logo.ts"],"names":[],"mappings":";;;AAAA,4CAA8C;AAC9C,qCAAgC;AAChC,yCAA8B;AAC9B,uCAAkC;AAE3B,KAAK,UAAU,WAAW,CAAC,SAAiB,EAAE,QAAgB;IACnE,MAAM,MAAM,GAAG,MAAM,uBAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACrD,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;KAC3C;IAED,MAAM,IAAA,oBAAS,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;IACzC,MAAM,kBAAQ,CAAC,SAAS,CAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;AACxF,CAAC;AARD,kCAQC"}
1
+ {"version":3,"file":"logo.js","sourceRoot":"","sources":["../src/logo.ts"],"names":[],"mappings":";;;AAAA,4CAA8C;AAC9C,qCAAgC;AAChC,yCAA8B;AAC9B,uCAAkC;AAE3B,KAAK,UAAU,WAAW,CAAC,SAAiB,EAAE,QAAgB,EAAE,SAAS,GAAG,MAAM;IACvF,MAAM,MAAM,GAAG,MAAM,uBAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACrD,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,SAAS,GAAG,QAAQ,CAAC,CAAA;KAC7D;IAED,MAAM,IAAA,oBAAS,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;IACzC,MAAM,kBAAQ,CAAC,SAAS,CAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,OAAO,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;AAChG,CAAC;AARD,kCAQC"}
package/package.json CHANGED
@@ -9,9 +9,9 @@
9
9
  "@oclif/core": "2.8.5",
10
10
  "@oclif/plugin-help": "5.2.9",
11
11
  "@oclif/plugin-plugins": "3.1.2",
12
- "@sw-tsdk/common": "^3.4.0",
13
- "@sw-tsdk/core": "^3.4.0",
14
- "@sw-tsdk/docker": "^3.4.0",
12
+ "@sw-tsdk/common": "^3.5.0",
13
+ "@sw-tsdk/core": "^3.5.0",
14
+ "@sw-tsdk/docker": "^3.5.0",
15
15
  "@swimlane/connector-interfaces": "1.11.0",
16
16
  "@swimlane/cosign": "1.4.1",
17
17
  "archiver": "5.3.1",
@@ -65,6 +65,6 @@
65
65
  "test": "jest --passWithNoTests"
66
66
  },
67
67
  "types": "lib/index.d.ts",
68
- "version": "3.4.0",
69
- "gitHead": "8487cb819d5bb192d6f24b868564c7c9c0990d23"
68
+ "version": "3.5.0",
69
+ "gitHead": "166711ae58ad963765003fcd1ee13540b900171b"
70
70
  }