@pipedream/helper_functions
Advanced tools
@@ -7,4 +7,4 @@ // legacy_hash_id: a_0Mio28 | ||
| name: "Base64 Decode String", | ||
| description: "Accepts a base64-encoded string, returns a decoded UTF-8 string", | ||
| version: "0.1.2", | ||
| description: "Accepts a base64-encoded string, returns the decoded data as a UTF-8 string or raw binary", | ||
| version: "0.1.3", | ||
| annotations: { | ||
@@ -19,9 +19,25 @@ destructiveHint: false, | ||
| data: { | ||
| label: "Data", | ||
| type: "string", | ||
| description: "The base64-encoded string to decode.", | ||
| }, | ||
| outputFormat: { | ||
| type: "string", | ||
| label: "Output Format", | ||
| description: "The format of the decoded output. Use `utf8` to return a decoded string, or `binary` to return the raw bytes (as a Buffer).", | ||
| options: [ | ||
| "utf8", | ||
| "binary", | ||
| ], | ||
| default: "utf8", | ||
| optional: true, | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const buffer = Buffer.from(this.data, "base64"); | ||
| $.export("data", buffer.toString("utf8")); | ||
| const output = this.outputFormat === "binary" | ||
| ? buffer | ||
| : buffer.toString("utf8"); | ||
| $.export("data", output); | ||
| }, | ||
| }; |
+1
-1
| { | ||
| "name": "@pipedream/helper_functions", | ||
| "version": "0.5.4", | ||
| "version": "0.5.5", | ||
| "description": "Pipedream Helper_functions Components", | ||
@@ -5,0 +5,0 @@ "main": "helper_functions.app.mjs", |
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
49666
1.05%1488
1.09%0
-100%