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

Function parseEnvironment

src/main/http/import/postman.ts:266–275  ·  view source on GitHub ↗
(
  raw: UnknownRecord,
  fileName: string,
  warnings: HttpImportWarning[],
)

Source from the content-addressed store, hash-verified

264}
265
266function parseEnvironment(
267 raw: UnknownRecord,
268 fileName: string,
269 warnings: HttpImportWarning[],
270): HttpImportEnvironment {
271 return {
272 name: normalizeImportName(raw.name, fileName.replace(/\.json$/i, '')),
273 variables: parseVariables(raw.values, fileName, warnings),
274 }
275}
276
277function parseRequest(
278 item: UnknownRecord,

Callers 1

parsePostmanFilesFunction · 0.70

Calls 2

normalizeImportNameFunction · 0.90
parseVariablesFunction · 0.85

Tested by

no test coverage detected