"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/hoppscotch-app/helpers/import-export/import/insomnia.ts" between
hoppscotch-2.2.1.tar.gz and hoppscotch-3.0.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

insomnia.ts  (hoppscotch-2.2.1):insomnia.ts  (hoppscotch-3.0.0)
import IconInsomnia from "~icons/hopp/insomnia"
import { convert, ImportRequest } from "insomnia-importers" import { convert, ImportRequest } from "insomnia-importers"
import { pipe, flow } from "fp-ts/function" import { pipe, flow } from "fp-ts/function"
import { import {
HoppRESTAuth, HoppRESTAuth,
HoppRESTHeader, HoppRESTHeader,
HoppRESTParam, HoppRESTParam,
HoppRESTReqBody, HoppRESTReqBody,
HoppRESTRequest, HoppRESTRequest,
knownContentTypes, knownContentTypes,
makeRESTRequest, makeRESTRequest,
skipping to change at line 213 skipping to change at line 214
), ),
requests: getRequestsIn(folderRes, resources).map(getHoppRequest), requests: getRequestsIn(folderRes, resources).map(getHoppRequest),
}) })
const getHoppCollections = (doc: InsomniaDoc) => const getHoppCollections = (doc: InsomniaDoc) =>
getFoldersIn(null, doc.data.resources).map((f) => getFoldersIn(null, doc.data.resources).map((f) =>
getHoppFolder(f, doc.data.resources) getHoppFolder(f, doc.data.resources)
) )
export default defineImporter({ export default defineImporter({
id: "insomnia",
name: "import.from_insomnia", name: "import.from_insomnia",
icon: "insomnia", applicableTo: ["my-collections", "team-collections", "url-import"],
icon: IconInsomnia,
steps: [ steps: [
step({ step({
stepName: "FILE_IMPORT", stepName: "FILE_IMPORT",
metadata: { metadata: {
caption: "import.from_insomnia_description", caption: "import.from_insomnia_description",
acceptedFileTypes: ".json, .yaml", acceptedFileTypes: ".json, .yaml",
}, },
}), }),
] as const, ] as const,
importer: ([fileContent]) => importer: ([fileContent]) =>
 End of changes. 3 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)