@frogbotai/piece-crypto 0.15.0 → 0.17.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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
2
|
export declare const cryptoActions: readonly ["hash-text", "hmac-signature", "generate-password", "base64-decode", "base64-encode", "openpgpEncrypt"];
|
|
3
3
|
export declare const cryptoScopes: readonly [];
|
|
4
4
|
export declare function createCrypto(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,aAAa,
|
|
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,aAAa,mHAOhB,CAAC;AACX,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUpD,mFAAmF;;IAEnF,0GAA0G;;IAE1G,4HAA4H;;IAE5H,+EAA+E;;IAE/E,8DAA8D;;IAE9D,6DAA6D;;IAE7D,+DAA+D;;EAGlE"}
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
import * as module from '@activepieces/piece-crypto';
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
3
|
-
export const cryptoActions = [
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
|
+
export const cryptoActions = [
|
|
4
|
+
'hash-text',
|
|
5
|
+
'hmac-signature',
|
|
6
|
+
'generate-password',
|
|
7
|
+
'base64-decode',
|
|
8
|
+
'base64-encode',
|
|
9
|
+
'openpgpEncrypt',
|
|
10
|
+
];
|
|
4
11
|
export const cryptoScopes = [];
|
|
5
12
|
export function createCrypto(config) {
|
|
6
13
|
const piece = createActivepiecesPiece({
|
|
7
14
|
module: module,
|
|
8
|
-
service:
|
|
9
|
-
credentialType:
|
|
15
|
+
service: 'crypto',
|
|
16
|
+
credentialType: 'none',
|
|
10
17
|
defaultActions: cryptoActions,
|
|
11
18
|
scopes: cryptoScopes,
|
|
12
19
|
config,
|
|
13
20
|
});
|
|
14
21
|
return Object.assign(piece, {
|
|
15
22
|
/** Text to Hash: Converts text to a hash value using various hashing algorithms */
|
|
16
|
-
hashText: piece.tool(
|
|
23
|
+
hashText: piece.tool('hash-text'),
|
|
17
24
|
/** Generate HMAC Signature: Converts text to a HMAC signed hash value using various hashing algorithms */
|
|
18
|
-
hmacSignature: piece.tool(
|
|
25
|
+
hmacSignature: piece.tool('hmac-signature'),
|
|
19
26
|
/** Generate RSA Signature: Signs text with an RSA private key using SHA-256, SHA-384, or SHA-512 (RSA-SHA256 by default) */
|
|
20
|
-
rsaSignature: piece.tool(
|
|
27
|
+
rsaSignature: piece.tool('rsa-signature'),
|
|
21
28
|
/** Generate Password: Generates a random password with the specified length */
|
|
22
|
-
generatePassword: piece.tool(
|
|
29
|
+
generatePassword: piece.tool('generate-password'),
|
|
23
30
|
/** Base64 Decode: Converts base64 text back to plain text. */
|
|
24
|
-
base64Decode: piece.tool(
|
|
31
|
+
base64Decode: piece.tool('base64-decode'),
|
|
25
32
|
/** Base64 Encode: Converts plain text into base64 format. */
|
|
26
|
-
base64Encode: piece.tool(
|
|
33
|
+
base64Encode: piece.tool('base64-encode'),
|
|
27
34
|
/** OpenPGP Encrypt: Encrypt a file using OpenPGP public key */
|
|
28
|
-
openpgpEncrypt: piece.tool(
|
|
35
|
+
openpgpEncrypt: piece.tool('openpgpEncrypt'),
|
|
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"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,eAAe;IACf,eAAe;IACf,gBAAgB;CACR,CAAC;AACX,MAAM,CAAC,MAAM,YAAY,GAAG,EAAW,CAAC;AAExC,MAAM,UAAU,YAAY,CAAC,MAA2B;IACtD,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE,MAAM;QACtB,cAAc,EAAE,aAAa;QAC7B,MAAM,EAAE,YAAY;QACpB,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,mFAAmF;QACnF,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;QACjC,0GAA0G;QAC1G,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;QAC3C,4HAA4H;QAC5H,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QACzC,+EAA+E;QAC/E,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC;QACjD,8DAA8D;QAC9D,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QACzC,6DAA6D;QAC7D,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QACzC,+DAA+D;QAC/D,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-crypto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Cryptography tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@activepieces/piece-crypto": "0.0.22"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.17.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.17.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|