Skip to content

Commit

Permalink
Bump version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianosilvareis committed Apr 26, 2018
1 parent 863e62d commit 8f1a6ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 4 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
<script src="../dist/viacep.umd.js"></script>

<script>
const viacep = new ViaCep({});
const viacep = new ViaCep({
type: 'json'
});

const address = viacep.zipCod.getQuerty('29027422');
const address = viacep.zipCod.getXml('29027422');

const addressEl = document.getElementById('address');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "node-viacep",
"version": "1.0.3",
"description": "Empacotador da api ViaCep para projeto JS",
"main": "index.js",
"main": "lib/index.js",
"scripts": {
"clear": "rimraf lib && rimraf dist && rimraf coverage",
"build": "npm run clear && babel --out-dir lib src",
Expand Down
7 changes: 1 addition & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ export default class ViaCep {
request(url) {
this.url = url;

return fetch(url, {
mode: 'no-cors',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
});
return fetch(url);
}
}

0 comments on commit 8f1a6ea

Please sign in to comment.