Fix URL encoding test. (#329)
This commit is contained in:
Родитель
4add21a51a
Коммит
b12d59ed52
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
### 10/02/2018 0.7.2
|
||||
|
||||
- Fix URL encoding test.
|
||||
|
||||
### 10/02/2018 0.7.1
|
||||
|
||||
- Fix yasway.
|
||||
|
|
|
@ -638,7 +638,11 @@ export function getJsonContentType(
|
|||
*/
|
||||
export function isUrlEncoded(str: string): boolean {
|
||||
str = str || ""
|
||||
return str !== decodeURIComponent(str)
|
||||
try {
|
||||
return str !== decodeURIComponent(str)
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -81,6 +81,10 @@ async function validate<T>(
|
|||
return await func(options)
|
||||
} catch (err) {
|
||||
log.error(err)
|
||||
if (options.pretty) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.error(`internal error: ${err}`)
|
||||
}
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "0.7.1",
|
||||
"version": "0.7.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "0.7.1",
|
||||
"version": "0.7.2",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
|
Загрузка…
Ссылка в новой задаче