"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/hoppscotch-app/newstore/RESTSession.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.

RESTSession.ts  (hoppscotch-2.2.1):RESTSession.ts  (hoppscotch-3.0.0)
import { pluck, distinctUntilChanged, map, filter } from "rxjs/operators" import { pluck, distinctUntilChanged, map, filter } from "rxjs/operators"
import { Ref } from "@nuxtjs/composition-api" import { Ref } from "vue"
import { import {
FormDataKeyValue, FormDataKeyValue,
HoppRESTHeader, HoppRESTHeader,
HoppRESTParam, HoppRESTParam,
HoppRESTReqBody, HoppRESTReqBody,
HoppRESTRequest, HoppRESTRequest,
RESTReqSchemaVersion, RESTReqSchemaVersion,
HoppRESTAuth, HoppRESTAuth,
ValidContentTypes, ValidContentTypes,
} from "@hoppscotch/data" } from "@hoppscotch/data"
import DispatchingStore, { defineDispatchers } from "./DispatchingStore" import DispatchingStore, { defineDispatchers } from "./DispatchingStore"
import { HoppRESTResponse } from "~/helpers/types/HoppRESTResponse" import { HoppRESTResponse } from "~/helpers/types/HoppRESTResponse"
import { useStream } from "~/helpers/utils/composables" import { useStream } from "@composables/stream"
import { HoppTestResult } from "~/helpers/types/HoppTestResult" import { HoppTestResult } from "~/helpers/types/HoppTestResult"
import { HoppRequestSaveContext } from "~/helpers/types/HoppRequestSaveContext" import { HoppRequestSaveContext } from "~/helpers/types/HoppRequestSaveContext"
import { applyBodyTransition } from "~/helpers/rules/BodyTransition" import { applyBodyTransition } from "~/helpers/rules/BodyTransition"
type RESTSession = { type RESTSession = {
request: HoppRESTRequest request: HoppRESTRequest
response: HoppRESTResponse | null response: HoppRESTResponse | null
testResults: HoppTestResult | null testResults: HoppTestResult | null
saveContext: HoppRequestSaveContext | null saveContext: HoppRequestSaveContext | null
} }
skipping to change at line 290 skipping to change at line 290
} }
}, },
updateResponse( updateResponse(
_curr: RESTSession, _curr: RESTSession,
{ updatedRes }: { updatedRes: HoppRESTResponse | null } { updatedRes }: { updatedRes: HoppRESTResponse | null }
) { ) {
return { return {
response: updatedRes, response: updatedRes,
} }
}, },
// eslint-disable-next-line @typescript-eslint/no-unused-vars
clearResponse(_curr: RESTSession) { clearResponse(_curr: RESTSession) {
return { return {
response: null, response: null,
} }
}, },
setTestResults( setTestResults(
_curr: RESTSession, _curr: RESTSession,
{ newResults }: { newResults: HoppTestResult | null } { newResults }: { newResults: HoppTestResult | null }
) { ) {
return { return {
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

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