Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rep: (v) => {
if (List.isList(v.token)) {
return [v.token, v.scopesets];
} else {
let t = transit.objectToMap(v.token);
t.set("type", typeMap.indexOf(v.token.type));
return [t, v.scopesets];
}
}
});