MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / parseViewName

Function parseViewName

src/lib/util.js:409–415  ·  view source on GitHub ↗
(viewName)

Source from the content-addressed store, hash-verified

407};
408
409export function parseViewName(viewName) {
410 const pair = viewName.split('-');
411 if (pair.length !== 2) {
412 throw new Error('Invalid view name.');
413 }
414 return {type: pair[0], id: pair[1]};
415}

Callers 9

util-test.jsFile · 0.90
verifyCreatePermissionFunction · 0.90
flushMethod · 0.90
addPortMethod · 0.90
removePortFunction · 0.90
initMainPortMethod · 0.90
addPortMethod · 0.90
removePortMethod · 0.90
getControllerDetailsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected