Skip to content

Commit 97cddc5

Browse files
Merge pull request #186 from filipedeschamps/security-fix
modules: update `node-fetch` to `2.6.1`
2 parents 9042dbd + 3a771d2 commit 97cddc5

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

package-lock.json

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
]
7272
},
7373
"dependencies": {
74-
"node-fetch": "2.6.0",
75-
"unfetch": "4.1.0"
74+
"node-fetch": "2.6.1"
7675
},
7776
"files": [
7877
"dist",

src/services/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ export function getAvailableServices () {
88

99
if (isBrowser) {
1010
return {
11-
brasilapi: BrasilAPI,
1211
viacep: ViaCep,
1312
widenet: WideNet,
13+
brasilapi: BrasilAPI
1414
}
1515
}
1616

1717
return {
18-
brasilapi: BrasilAPI,
18+
correios: Correios,
1919
viacep: ViaCep,
2020
widenet: WideNet,
21-
correios: Correios
21+
brasilapi: BrasilAPI
2222
}
2323
}

src/services/viacep.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export default function fetchViaCepService (cepWithLeftPad, proxyURL = '') {
99
method: 'GET',
1010
mode: 'cors',
1111
headers: {
12-
'content-type': 'application/json;charset=utf-8'
12+
'content-type': 'application/json;charset=utf-8',
13+
'user-agent': ''
1314
}
1415
}
1516

0 commit comments

Comments
 (0)