Transpiled ES5 code to ES6/ES7
This commit is contained in:
@@ -522,8 +522,8 @@ export default {
|
||||
|
||||
try {
|
||||
let headers = {}
|
||||
this.headers.forEach((header) => {
|
||||
headers[header.key] = header.value
|
||||
this.headers.forEach(({ key, value }) => {
|
||||
headers[key] = value
|
||||
})
|
||||
|
||||
let variables = JSON.parse(this.variableString || "{}")
|
||||
@@ -624,8 +624,8 @@ export default {
|
||||
})
|
||||
|
||||
let headers = {}
|
||||
this.headers.forEach((header) => {
|
||||
headers[header.key] = header.value
|
||||
this.headers.forEach(({ key, value }) => {
|
||||
headers[key] = value
|
||||
})
|
||||
|
||||
const reqOptions = {
|
||||
|
||||
@@ -1409,7 +1409,7 @@ const parseHeaders = (xhr) => {
|
||||
return headerMap
|
||||
}
|
||||
export const findStatusGroup = (responseStatus) =>
|
||||
statusCategories.find((status) => status.statusCodeRegex.test(responseStatus))
|
||||
statusCategories.find(({ statusCodeRegex }) => statusCodeRegex.test(responseStatus))
|
||||
export default {
|
||||
directives: {
|
||||
textareaAutoHeight,
|
||||
|
||||
Reference in New Issue
Block a user