apigratis-sdk-nodejs
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "apigratis-sdk-nodejs", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma", | ||
"homepage": "https://apigratis.com.br", | ||
"author": { | ||
"name": "APIGratis", | ||
"email": "contato@apigratis.com.br", | ||
"url": "https://apigratis.com.br" | ||
}, | ||
"author": "APIGratis <contato@apigratis.com.br> (https://apigratis.com.br)", | ||
"main": "src/APIGratis.js", | ||
@@ -24,3 +20,3 @@ "strict": true, | ||
"cnpj", | ||
"correios" | ||
"correios" | ||
], | ||
@@ -42,3 +38,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "https://github.com/APIBrasil/apigratis-sdk-node.git" | ||
"url": "git+https://github.com/APIBrasil/apigratis-sdk-node.git" | ||
}, | ||
@@ -56,2 +52,2 @@ "dependencies": { | ||
"devDependencies": {} | ||
} | ||
} |
@@ -24,3 +24,3 @@ # SDK JavaScript - APIGratis by API BRASIL 🚀 | ||
## Instalando pacote com o composer | ||
```npm install apigratis``` | ||
```npm i apigratis-sdk-nodejs --save``` | ||
@@ -27,0 +27,0 @@ ## Mais informações |
@@ -1,2 +0,2 @@ | ||
const WhatsApp = require('apigratis'); | ||
const APIGratis = require('apigratis-sdk-nodejs'); | ||
@@ -7,3 +7,5 @@ async function teste() { | ||
const response = await WhatsApp.request({ | ||
let apigratis = new APIGratis(); | ||
const response = await apigratis.WhatsApp({ | ||
action: "sendText", | ||
@@ -23,19 +25,9 @@ credentials: { | ||
return response; | ||
console.log(response); | ||
} catch (error) { | ||
return { | ||
status: "error", | ||
message: error.message | ||
}; | ||
console.log(response); | ||
} | ||
} | ||
teste().then(result => { | ||
console.log(result); | ||
}).catch(error => { | ||
console.error(error); | ||
}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
445913
71
5043
1
4
5