(
filename?: string,
options: Partial<{
type: string
fallback: string | boolean
}> = {}
)
| 119 | */ |
| 120 | |
| 121 | export function contentDisposition( |
| 122 | filename?: string, |
| 123 | options: Partial<{ |
| 124 | type: string |
| 125 | fallback: string | boolean |
| 126 | }> = {} |
| 127 | ) { |
| 128 | // format into string |
| 129 | return format(new ContentDisposition(options.type || 'attachment', createParams(filename, options.fallback))) |
| 130 | } |
| 131 | |
| 132 | function decodefield(str: string) { |
| 133 | const match = EXT_VALUE_REGEXP.exec(str) |
no test coverage detected