Compare commits
2 Commits
fix/precis
...
fix/env-di
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
263f8b3588 | ||
|
|
fc9f933905 |
@@ -89,7 +89,6 @@ import { readFileAsText } from "~/helpers/functional/files"
|
||||
import xmlFormat from "xml-formatter"
|
||||
import { useNestedSetting } from "~/composables/settings"
|
||||
import { toggleNestedSetting } from "~/newstore/settings"
|
||||
import * as LJSON from "lossless-json"
|
||||
|
||||
type PossibleContentTypes = Exclude<
|
||||
ValidContentTypes,
|
||||
@@ -188,8 +187,8 @@ const prettifyRequestBody = () => {
|
||||
let prettifyBody = ""
|
||||
try {
|
||||
if (body.value.contentType.endsWith("json")) {
|
||||
const jsonObj = LJSON.parse(rawParamsBody.value as string)
|
||||
prettifyBody = LJSON.stringify(jsonObj, undefined, 2) as string
|
||||
const jsonObj = JSON.parse(rawParamsBody.value as string)
|
||||
prettifyBody = JSON.stringify(jsonObj, null, 2)
|
||||
} else if (body.value.contentType === "application/xml") {
|
||||
prettifyBody = prettifyXML(rawParamsBody.value as string)
|
||||
}
|
||||
|
||||
@@ -400,7 +400,7 @@ const HoppTestResultSchema = z
|
||||
(x) => "secret" in x && !x.secret
|
||||
).and(
|
||||
z.object({
|
||||
previousValue: z.string(),
|
||||
previousValue: z.optional(z.string()),
|
||||
})
|
||||
)
|
||||
),
|
||||
@@ -415,7 +415,7 @@ const HoppTestResultSchema = z
|
||||
(x) => "secret" in x && !x.secret
|
||||
).and(
|
||||
z.object({
|
||||
previousValue: z.string(),
|
||||
previousValue: z.optional(z.string()),
|
||||
})
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user