🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@pipedream/helper_functions

Package Overview
Dependencies
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pipedream/helper_functions - npm Package Compare versions

Comparing version
0.5.4
to
0.5.5
+19
-3
actions/base64-decode-string/base64-decode-string.mjs

@@ -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",