Skip to content

Commit 682c09c

Browse files
committed
fix: readme and more
1 parent 0d99e59 commit 682c09c

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ https://www.npmjs.com/package/apigratis-sdk-nodejs
3434
| Up | Services available | Description | Free | Beta | Stable |
3535
| --- | ------------------ | ------------------------------------- | ---- | ---- | ------ |
3636
|| WhatsAppService | API do WhatsApp Gratuita. ||||
37-
| | Receita Data CNPJ | API Dados CNPJ Receita. | | ||
38-
| | Receita Data CPF | API Dados de CPF Serasa. | | ||
39-
| | CorreiosService | API Busca encomendas Correios Brazil. | | ||
40-
| | CEPLocation | API CEP Geolocation + IBGE Brazil. | | ||
37+
| | Receita Data CNPJ | API Dados CNPJ Receita. | | ||
38+
| | Receita Data CPF | API Dados de CPF Serasa. | | ||
39+
| | CorreiosService | API Busca encomendas Correios Brazil. | | ||
40+
| | CEPLocation | API CEP Geolocation + IBGE Brazil. | | ||
4141
|| VehiclesService | API Placa Dados. ||||
42-
| | FipeService | API Placa FIPE. | | ||
42+
| | FipeService | API Placa FIPE. | | ||
4343

4444
## WhatsApp Service
4545

@@ -107,3 +107,5 @@ vehiclesApi
107107
})
108108
.then(resp => console.log(JSON.stringify(resp, undefined, ' ')));
109109
```
110+
111+
...Em breve mais exemplos

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apigratis-sdk-nodejs",
3-
"version": "0.1.1",
3+
"version": "0.1.4",
44
"description": "A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma",
55
"homepage": "https://apigratis.com.br",
66
"author": "APIGratis <contato@apigratis.com.br> (https://apigratis.com.br)",
@@ -20,7 +20,7 @@
2020
"correios"
2121
],
2222
"scripts": {
23-
"build": "tsc -p .",
23+
"build": "yarn tsc",
2424
"start": "tsc && link-module-alias && node dist/index.js",
2525
"dev": "tsc && link-module-alias && concurrently \"tsc --watch\" \"nodemon dist/index.js\"",
2626
"test": "jest",

src/Cep/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createApiInstance, Credentials } from '../GeneralAPI';
2+
3+
export const createCepApi = (credentials: Credentials) =>
4+
createApiInstance('cep', credentials);

src/GeneralAPI/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export type Action =
1212
| 'vehicles'
1313
| 'correios'
1414
| 'dados/cpf'
15-
| 'dados/cnpj';
15+
| 'dados/cnpj'
16+
| 'cep';
1617

1718
export const createApiInstance = (action: Action, credentials: Credentials) => {
1819
const axiosInstance = axios.create({

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export * from './Correios';
33
export * from './Vehicle';
44
export * from './Whatsapp';
55
export * from './Cpf';
6+
export * from './Cep';

0 commit comments

Comments
 (0)