Socket
Socket
Sign inDemoInstall

apigratis-sdk-nodejs

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "apigratis-sdk-nodejs",
"version": "0.0.3",
"version": "0.0.4",
"description": "A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma",

@@ -5,0 +5,0 @@ "homepage": "https://apigratis.com.br",

@@ -5,19 +5,2 @@ const axios = require("axios");

static validateCredentials(credentials) {
if (
!credentials?.SecretKey ||
!credentials?.PublicToken ||
!credentials?.DeviceToken ||
!credentials?.BearerToken
) {
throw new Error("Invalid credentials");
}
}
static validateWBody(body) {
if (!body) {
throw new Error("Invalid body");
}
}
static async request(data) {

@@ -28,5 +11,2 @@

try {
this.validateCredentials(credentials);
this.validateBody(body);

@@ -33,0 +13,0 @@ const SERVER = "https://cluster-01.apigratis.com/api/v1/whatsapp/";

@@ -32,1 +32,3 @@ const APIGratis = require('apigratis-sdk-nodejs');

}
teste();
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc