File tree Expand file tree Collapse file tree 4 files changed +38
-20
lines changed Expand file tree Collapse file tree 4 files changed +38
-20
lines changed Original file line number Diff line number Diff line change @@ -179,13 +179,9 @@ Leia nosso guia de contribuição [aqui](CONTRIBUTING.md)
179179
180180## Contribuidores
181181
182- | [ <img src =" https://avatars1.githubusercontent.com/u/8251208?v=3&s=115 " width =" 115 " ><br ><sub >@lucianopf </sub >] ( https://github.com/lucianopf ) | [ <img src =" https://avatars1.githubusercontent.com/u/7863230?v=3&s=115 " width =" 115 " ><br ><sub >@MarcoWorms </sub >] ( https://github.com/MarcoWorms ) | [ <img src =" https://avatars1.githubusercontent.com/u/551228?v=3&s=115 " width =" 115 " ><br ><sub >@caio-ribeiro-pereira </sub >] ( https://github.com/caio-ribeiro-pereira ) | [ <img src =" https://avatars1.githubusercontent.com/u/1225447?v=3&s=115 " width =" 115 " ><br ><sub >@chrisbenseler </sub >] ( https://github.com/chrisbenseler ) | [ <img src =" https://avatars0.githubusercontent.com/u/3428149?v=3&s=115 " width =" 115 " ><br ><sub >@luanmuniz </sub >] ( https://github.com/luanmuniz ) | [ <img src =" https://avatars3.githubusercontent.com/u/3094496?v=3&s=115 " width =" 115 " ><br ><sub >@AlbertoTrindade </sub >] ( https://github.com/AlbertoTrindade ) |
183- | :-:| :-:| :-:| :-:| :-:| :-:|
184- | [ <img src =" https://avatars1.githubusercontent.com/u/4137355?v=3&s=115 " width =" 115 " ><br ><sub >@pedrro </sub >] ( https://github.com/pedrro ) | [ <img src =" https://avatars1.githubusercontent.com/u/8260778?v=3&s=115 " width =" 115 " ><br ><sub >@petronetto </sub >] ( https://github.com/Petronetto ) | [ <img src =" https://avatars3.githubusercontent.com/u/434364?v=3&s=115 " width =" 115 " ><br ><sub >@olegon </sub >] ( https://github.com/olegon ) | [ <img src =" https://avatars3.githubusercontent.com/u/2177742?v=3&s=115 " width =" 115 " ><br ><sub >@jhonnymoreira </sub >] ( https://github.com/jhonnymoreira ) | [ <img src =" https://avatars3.githubusercontent.com/u/2955087?s=115&v=4 " width =" 115 " ><br ><sub >@claytonsilva </sub >] ( https://github.com/claytonsilva ) | [ <img src =" https://avatars1.githubusercontent.com/u/13632762?s=115 " width =" 115 " ><br ><sub >@thiamsantos </sub >] ( https://github.com/thiamsantos ) |
185- | [ <img src =" https://avatars2.githubusercontent.com/u/6232791?v=3&s=115 " width =" 115 " ><br ><sub >@flyingluscas </sub >] ( https://github.com/flyingluscas ) | [ <img src =" https://avatars1.githubusercontent.com/u/15306309?s=115&v=4 " width =" 115 " ><br ><sub >@otaviopace </sub >] ( https://github.com/otaviopace ) | [ <img src =" https://avatars1.githubusercontent.com/u/16264950?s=400&v=4 " width =" 115 " ><br ><sub >@vagnercardosoweb </sub >] ( https://github.com/vagnercardosoweb ) | [ <img src =" https://avatars2.githubusercontent.com/u/18074134?s=400&u=fd578b638c5c4dc69ded7ebd5fa834ff915a2250&v=4 " width =" 115 " ><br ><sub >@murilohns </sub >] ( https://github.com/murilohns ) | [ <img src =" https://avatars2.githubusercontent.com/u/36142371?s=400&u=24ff6d7b87af0b11414cb9be55615e717d2342aa&v=4 " width =" 115 " ><br ><sub >@dominguetigs </sub >] ( https://github.com/dominguetigs ) | [ <img src =" https://avatars.githubusercontent.com/u/3643096?s=115 " width =" 115 " ><br ><sub >@fontebasso </sub >] ( https://github.com/fontebasso ) |
186- | [ <img src =" https://avatars2.githubusercontent.com/u/6232791?v=3&s=115 " width =" 115 " ><br ><sub >@flyingluscas </sub >] ( https://github.com/flyingluscas ) | [ <img src =" https://avatars1.githubusercontent.com/u/15306309?s=115&v=4 " width =" 115 " ><br ><sub >@otaviopace </sub >] ( https://github.com/otaviopace ) | [ <img src =" https://avatars1.githubusercontent.com/u/16264950?s=400&v=4 " width =" 115 " ><br ><sub >@vagnercardosoweb </sub >] ( https://github.com/vagnercardosoweb ) | [ <img src =" https://avatars2.githubusercontent.com/u/18074134?s=400&u=fd578b638c5c4dc69ded7ebd5fa834ff915a2250&v=4 " width =" 115 " ><br ><sub >@murilohns </sub >] ( https://github.com/murilohns ) | [ <img src =" https://avatars2.githubusercontent.com/u/36142371?s=400&u=24ff6d7b87af0b11414cb9be55615e717d2342aa&v=4 " width =" 115 " ><br ><sub >@dominguetigs </sub >] ( https://github.com/dominguetigs ) | [ <img src =" https://avatars3.githubusercontent.com/u/37939755?s=400&v=4 " width =" 115 " ><br ><sub >@mshlz </sub >] ( https://github.com/mshlz ) |
182+ <a href =" https://github.com/brasilapi/cep-promise/graphs/contributors " ><img src =" https://contrib.rocks/image?repo=brasilapi/cep-promise " /></a >
187183
188184## Autor
189185
190186| [ <img src =" https://avatars0.githubusercontent.com/u/4248081?v=3&s=115 " ><br ><sub >@filipedeschamps </sub >] ( https://github.com/filipedeschamps ) |
191- | :---: |
187+ | :---: |
Original file line number Diff line number Diff line change @@ -8,21 +8,20 @@ declare module 'cep-promise' {
88 service : string
99 }
1010
11- // this workarround is because this : https://github.com/Microsoft/TypeScript/issues/5073
12- namespace cep { }
11+ export enum AvailableProviders {
12+ brasilapi = "brasilapi" ,
13+ correios = "correios" ,
14+ viacep = "viacep" ,
15+ widenet = "widenet"
16+ }
1317
14- type AvaliableProviders =
15- "brasilapi" |
16- "correios" |
17- "viacep" |
18- "widenet"
1918
2019 export interface Configurations {
21- providers ?: AvaliableProviders [ ] ,
20+ providers ?: AvailableProviders [ ] ,
2221 timeout ?: number
2322 }
2423
25- export function cep ( cep : string | number , configurations : Configurations ) : Promise < CEP >
24+ export function cep ( cep : string | number , configurations ? : Configurations ) : Promise < CEP >
2625
2726 export default cep
2827}
Original file line number Diff line number Diff line change 11{
22 "name" : " cep-promise" ,
3- "version" : " 4.1.1 " ,
3+ "version" : " 4.2.0 " ,
44 "description" : " Busca por CEP integrado diretamente aos serviços dos Correios e ViaCEP" ,
55 "main" : " dist/cep-promise.min.js" ,
66 "module" : " dist/cep-promise.min.js" ,
7+ "types" : " ./index.d.ts" ,
78 "scripts" : {
89 "dev" : " nodemon --watch src/ --exec \" npm run build\" " ,
910 "test" : " npm run coverage" ,
7475 ]
7576 },
7677 "dependencies" : {
77- "node-fetch" : " 2.6.1 " ,
78+ "node-fetch" : " 2.6.7 " ,
7879 "unfetch" : " 4.1.0"
7980 },
8081 "files" : [
You can’t perform that action at this time.
0 commit comments