@frogbotai/piece-image-helper 0.14.0 → 0.16.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type PieceFactoryConfig } from "frogbot/pieces";
1
+ import { type PieceFactoryConfig } from 'frogbot/pieces';
2
2
  export declare const imageHelperActions: readonly ["image_to_base64", "get_meta_data", "crop_image", "rotate_image", "resize_image", "compress_image"];
3
3
  export declare const imageHelperScopes: readonly [];
4
4
  export declare function createImageHelper(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,kBAAkB,+GAAgH,CAAC;AAChJ,eAAO,MAAM,iBAAiB,aAAc,CAAC;AAE7C,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUzD,sEAAsE;;IAEtE,sDAAsD;;IAEtD,oCAAoC;;IAEpC,wCAAwC;;IAExC,wCAAwC;;IAExC,+CAA+C;;IAE/C,qEAAqE;;EAGxE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,kBAAkB,+GAOrB,CAAC;AACX,eAAO,MAAM,iBAAiB,aAAc,CAAC;AAE7C,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUzD,sEAAsE;;IAEtE,sDAAsD;;IAEtD,oCAAoC;;IAEpC,wCAAwC;;IAExC,wCAAwC;;IAExC,+CAA+C;;IAE/C,qEAAqE;;EAGxE"}
package/dist/index.js CHANGED
@@ -1,31 +1,38 @@
1
1
  import * as module from '@activepieces/piece-image-helper';
2
- import { createActivepiecesPiece } from "frogbot/pieces";
3
- export const imageHelperActions = ['image_to_base64', 'get_meta_data', 'crop_image', 'rotate_image', 'resize_image', 'compress_image'];
2
+ import { createActivepiecesPiece } from 'frogbot/pieces';
3
+ export const imageHelperActions = [
4
+ 'image_to_base64',
5
+ 'get_meta_data',
6
+ 'crop_image',
7
+ 'rotate_image',
8
+ 'resize_image',
9
+ 'compress_image',
10
+ ];
4
11
  export const imageHelperScopes = [];
5
12
  export function createImageHelper(config) {
6
13
  const piece = createActivepiecesPiece({
7
14
  module: module,
8
- service: "image_helper",
9
- credentialType: "none",
15
+ service: 'image_helper',
16
+ credentialType: 'none',
10
17
  defaultActions: imageHelperActions,
11
18
  scopes: imageHelperScopes,
12
19
  config,
13
20
  });
14
21
  return Object.assign(piece, {
15
22
  /** Image to Base64: Converts an image to an url-like Base64 string */
16
- imageToBase64: piece.tool("image_to_base64"),
23
+ imageToBase64: piece.tool('image_to_base64'),
17
24
  /** Get image metadata: Gets metadata from an image */
18
- getMetaData: piece.tool("get_meta_data"),
25
+ getMetaData: piece.tool('get_meta_data'),
19
26
  /** Crop an image: Crops an image */
20
- cropImage: piece.tool("crop_image"),
27
+ cropImage: piece.tool('crop_image'),
21
28
  /** Rotate an image: Rotates an image */
22
- rotateImage: piece.tool("rotate_image"),
29
+ rotateImage: piece.tool('rotate_image'),
23
30
  /** Resize an image: Resizes an image */
24
- resizeImage: piece.tool("resize_image"),
31
+ resizeImage: piece.tool('resize_image'),
25
32
  /** Compresses an image: Compresses an image */
26
- compressImage: piece.tool("compress_image"),
33
+ compressImage: piece.tool('compress_image'),
27
34
  /** Image Conversion Helper: Converts a image to supported formats */
28
- convertImageFormat: piece.tool("convert_image_format"),
35
+ convertImageFormat: piece.tool('convert_image_format'),
29
36
  });
30
37
  }
31
38
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],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EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,cAAc;IACd,cAAc;IACd,gBAAgB;CACR,CAAC;AACX,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAW,CAAC;AAE7C,MAAM,UAAU,iBAAiB,CAAC,MAA2B;IAC3D,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,cAAc,EAAE,MAAM;QACtB,cAAc,EAAE,kBAAkB;QAClC,MAAM,EAAE,iBAAiB;QACzB,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,sEAAsE;QACtE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC5C,sDAAsD;QACtD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QACxC,oCAAoC;QACpC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;QACnC,wCAAwC;QACxC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,wCAAwC;QACxC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,+CAA+C;QAC/C,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;QAC3C,qEAAqE;QACrE,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC;KACvD,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-image-helper",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Image tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -22,11 +22,11 @@
22
22
  "@activepieces/piece-image-helper": "0.1.15"
23
23
  },
24
24
  "peerDependencies": {
25
- "frogbot": "0.14.0"
25
+ "frogbot": "0.16.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "5.6.2",
29
- "frogbot": "0.14.0"
29
+ "frogbot": "0.16.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"