@activepieces/piece-text-helper 0.1.8 → 0.2.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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@activepieces/piece-text-helper",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "dependencies": {
5
5
  "@sinclair/typebox": "0.26.8",
6
- "axios": "^1.6.3",
6
+ "axios": "1.6.7",
7
7
  "dayjs": "1.11.9",
8
8
  "is-base64": "1.1.0",
9
9
  "jsdom": "23.0.1",
@@ -11,9 +11,9 @@
11
11
  "nanoid": "3.3.6",
12
12
  "semver": "7.6.0",
13
13
  "showdown": "2.1.0",
14
- "@activepieces/pieces-framework": "0.7.24",
15
- "@activepieces/shared": "0.10.93",
16
- "tslib": "2.6.1"
14
+ "@activepieces/pieces-framework": "0.7.28",
15
+ "@activepieces/shared": "0.10.99",
16
+ "tslib": "1.14.1"
17
17
  },
18
18
  "main": "./src/index.js",
19
19
  "type": "commonjs"
@@ -1,4 +1,4 @@
1
1
  export declare const concat: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").PieceAuthProperty, {
2
2
  texts: import("@activepieces/pieces-framework").ArrayProperty<true>;
3
- seperator: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
+ separator: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
4
  }>;
@@ -20,15 +20,15 @@ exports.concat = (0, pieces_framework_1.createAction)({
20
20
  displayName: 'Texts',
21
21
  required: true,
22
22
  }),
23
- seperator: pieces_framework_1.Property.ShortText({
24
- displayName: 'Seperator',
25
- description: 'The text that seperates the texts you want to concatenate',
23
+ separator: pieces_framework_1.Property.ShortText({
24
+ displayName: 'Separator',
25
+ description: 'The text that separates the texts you want to concatenate',
26
26
  required: false,
27
27
  }),
28
28
  },
29
29
  run: (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
30
30
  var _a;
31
- return ctx.propsValue.texts.join((_a = ctx.propsValue.seperator) !== null && _a !== void 0 ? _a : '');
31
+ return ctx.propsValue.texts.join((_a = ctx.propsValue.separator) !== null && _a !== void 0 ? _a : '');
32
32
  }),
33
33
  });
34
34
  //# sourceMappingURL=concat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"replace.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/text-helper/src/lib/actions/replace.ts"],"names":[],"mappings":";;;;AAAA,qEAAoF;AAEvE,QAAA,OAAO,GAAG,IAAA,+BAAY,EAAC;IAClC,WAAW,EACT,gFAAgF;IAClF,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,SAAS;IACf,oBAAoB,EAAE;QACpB,iBAAiB,EAAE;YACjB,IAAI,EAAE,IAAI;SACX;QACD,cAAc,EAAE;YACd,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,EAAE;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,sCAAsC;SACpD,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAClC,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,uDAAuD;SACrE,CAAC;KACH;IACD,GAAG,EAAE,CAAO,GAAG,EAAE,EAAE;QACjB,IAAI,GAAG,CAAC,UAAU,CAAC,gBAAgB,EAAE;YACnC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YACtD,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAChC,UAAU,EACV,GAAG,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAClC,CAAC;SACH;QACD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QAC3D,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CACnC,UAAU,EACV,GAAG,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAClC,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"replace.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/text-helper/src/lib/actions/replace.ts"],"names":[],"mappings":";;;;AAAA,qEAAoF;AAEvE,QAAA,OAAO,GAAG,IAAA,+BAAY,EAAC;IAClC,WAAW,EACT,gFAAgF;IAClF,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,SAAS;IACf,oBAAoB,EAAE;QACpB,iBAAiB,EAAE;YACjB,IAAI,EAAE,IAAI;SACX;QACD,cAAc,EAAE;YACd,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,EAAE;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,sCAAsC;SACpD,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAClC,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,uDAAuD;SACrE,CAAC;KACH;IACD,GAAG,EAAE,CAAO,GAAG,EAAE,EAAE;QACjB,IAAI,GAAG,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC;YACpC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YACtD,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAChC,UAAU,EACV,GAAG,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAClC,CAAC;QACJ,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QAC3D,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CACnC,UAAU,EACV,GAAG,CAAC,UAAU,CAAC,YAAY,IAAI,EAAE,CAClC,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export declare const split: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").PieceAuthProperty, {
2
2
  text: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- delimeter: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ delimiter: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
4
  }>;
@@ -4,7 +4,7 @@ exports.split = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
6
6
  exports.split = (0, pieces_framework_1.createAction)({
7
- description: 'Split a text by a delimeter',
7
+ description: 'Split a text by a delimiter',
8
8
  displayName: 'Split',
9
9
  name: 'split',
10
10
  errorHandlingOptions: {
@@ -20,13 +20,13 @@ exports.split = (0, pieces_framework_1.createAction)({
20
20
  displayName: 'Text',
21
21
  required: true,
22
22
  }),
23
- delimeter: pieces_framework_1.Property.ShortText({
24
- displayName: 'Delimeter',
23
+ delimiter: pieces_framework_1.Property.ShortText({
24
+ displayName: 'Delimiter',
25
25
  required: true,
26
26
  }),
27
27
  },
28
28
  run: (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
29
- return ctx.propsValue.text.split(ctx.propsValue.delimeter);
29
+ return ctx.propsValue.text.split(ctx.propsValue.delimiter);
30
30
  }),
31
31
  });
32
32
  //# sourceMappingURL=split.js.map