|
|
@ -15,9 +15,13 @@ export function capitalize(aString: string) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export function decodeDataSource(encodedDataSource: string) { |
|
|
export function decodeDataSource(encodedDataSource: string) { |
|
|
|
|
|
if (encodedDataSource) { |
|
|
return Buffer.from(encodedDataSource, 'hex').toString(); |
|
|
return Buffer.from(encodedDataSource, 'hex').toString(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return undefined; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
export function downloadAsFile({ |
|
|
export function downloadAsFile({ |
|
|
content, |
|
|
content, |
|
|
contentType = 'text/plain', |
|
|
contentType = 'text/plain', |
|
|
|