Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
break;
case 'number':
console.log(`${indentString}${key}: ${value}\x1b[0m`);
break;
}
};
if (encoded) {
print('encoded', encoded);
try {
const tcModel = TCString.decode(encoded);
print('version', tcModel.version);
print('cmpId', tcModel.cmpId);
print('cmpVersion', tcModel.cmpVersion);
print('consentScreen', tcModel.consentScreen);
print('consentLanguage', tcModel.consentLanguage);
print('created', tcModel.created);
print('lastUpdated', tcModel.lastUpdated);
print('policyVersion', tcModel.policyVersion);
print('isServiceSpecific', tcModel.isServiceSpecific);
print('useNonStandardStacks', tcModel.useNonStandardStacks);
print('purposeOneTreatment', tcModel.purposeOneTreatment);
print('publisherCountryCode', tcModel.publisherCountryCode);
print('supportOOB', tcModel.supportOOB);
print('vendorListVersion', tcModel.vendorListVersion);
print('purposeConsents', tcModel.purposeConsents);
print('purposeLegitimateInterest', tcModel.purposeLegitimateInterest);