Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@flowko/wh-wrapper

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowko/wh-wrapper - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

4

lib/client/client.js

@@ -699,3 +699,3 @@ "use strict";

data.append("messaging_product", "whatsapp");
if (media.startsWith("http")) {
if (media.startsWith("http") || media.startsWith("data")) {
const response = await axios_1.default.get(media, { responseType: "arraybuffer" });

@@ -711,3 +711,3 @@ const mimeType = response.headers["content-type"];

if (!fs_1.default.existsSync(media))
throw new Error("חובה לספק נתיב קובץ תקין");
throw new Error("A valid file path must be provided");
data.append("file", fs_1.default.createReadStream(media));

@@ -714,0 +714,0 @@ }

{
"name": "@flowko/wh-wrapper",
"version": "0.0.11",
"version": "0.0.12",
"description": "JavaScript wrapper for the WhatsApp Cloud API",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc