New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shibacore/apis

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shibacore/apis - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

13

build/whatsapp/messages.js

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

const _components = [];
const { bodyParameter, headerParameter } = components;
const { bodyParameter, headerParameter, quickReply } = components;
if (headerParameter) {

@@ -168,2 +168,13 @@ const header = {

}
if (quickReply && Array.isArray(quickReply)) {
quickReply.forEach((ele) => {
const value = {
type: "button",
sub_type: "quick_reply",
index: ele.index,
parameters: ele.parameters,
};
_components.push(value);
});
}
return _components;

@@ -170,0 +181,0 @@ }

14

build/whatsapp/parameter-types.d.ts

@@ -33,5 +33,8 @@ export type LanguageCode = "en_us";

export type Message_Header = TextParameter | ImageParameter | VideoParameter | DocumentParameter;
export type TemplateComponents = {
bodyParameter?: TextParameter[];
headerParameter?: Message_Header;
export type QuickReply = {
index: "0" | "1" | "2";
parameters: {
type: "payload";
payload: string;
}[];
};

@@ -111,2 +114,7 @@ type MessageResponse = {

export type UploadMIMEType = "image/jpeg" | "image/jpg" | "image/png" | "video/mp4" | "application/pdf";
export type TemplateComponents = {
bodyParameter?: TextParameter[];
headerParameter?: Message_Header;
quickReply?: Buttons<QuickReply>;
};
export declare function isResponseSuccess(data: MessageResponse): data is MessageResponse;

@@ -113,0 +121,0 @@ export declare function isMediaWithId(media: Media): media is MediaId;

{
"name": "@shibacore/apis",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "./build/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