jsonLens.ts (hoppscotch-2.2.1) | : | jsonLens.ts (hoppscotch-3.0.0) | ||
---|---|---|---|---|
import { defineAsyncComponent } from "vue" | ||||
import { isJSONContentType } from "../utils/contenttypes" | import { isJSONContentType } from "../utils/contenttypes" | |||
import { Lens } from "./lenses" | import { Lens } from "./lenses" | |||
const jsonLens: Lens = { | const jsonLens: Lens = { | |||
lensName: "response.json", | lensName: "response.json", | |||
isSupportedContentType: isJSONContentType, | isSupportedContentType: isJSONContentType, | |||
renderer: "json", | renderer: "json", | |||
rendererImport: () => | rendererImport: defineAsyncComponent( | |||
import("~/components/lenses/renderers/JSONLensRenderer.vue"), | () => import("~/components/lenses/renderers/JSONLensRenderer.vue") | |||
), | ||||
} | } | |||
export default jsonLens | export default jsonLens | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 4 lines changed or added |