MCPcopy Index your code
hub / github.com/massCodeIO/massCode / parsePostmanQuery

Function parsePostmanQuery

src/main/http/import/postman.ts:136–148  ·  view source on GitHub ↗
(rawUrl: unknown)

Source from the content-addressed store, hash-verified

134}
135
136function parsePostmanQuery(rawUrl: unknown): HttpImportRequest['query'] {
137 if (!isRecord(rawUrl)) {
138 return []
139 }
140
141 return asArray(rawUrl.query)
142 .filter(isRecord)
143 .map(entry => ({
144 enabled: entry.disabled === true ? false : undefined,
145 key: asString(entry.key),
146 value: asString(entry.value),
147 }))
148}
149
150function parseUrl(rawUrl: unknown): {
151 url: string

Callers 1

parseUrlFunction · 0.85

Calls 3

isRecordFunction · 0.70
asArrayFunction · 0.70
asStringFunction · 0.70

Tested by

no test coverage detected