@aws-amplify/storage
Version:
Storage category of aws-amplify
1 lines • 961 B
Source Map (JSON)
{"version":3,"file":"constructContentDisposition.mjs","sources":["../../../../../src/providers/s3/utils/constructContentDisposition.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const constructContentDisposition = (contentDisposition) => {\n if (!contentDisposition)\n return undefined;\n if (typeof contentDisposition === 'string')\n return contentDisposition;\n const { type, filename } = contentDisposition;\n return filename !== undefined ? `${type}; filename=\"${filename}\"` : type;\n};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,2BAA2B,GAAG,CAAC,kBAAkB,KAAK;AACnE,IAAI,IAAI,CAAC,kBAAkB;AAC3B,QAAQ,OAAO,SAAS;AACxB,IAAI,IAAI,OAAO,kBAAkB,KAAK,QAAQ;AAC9C,QAAQ,OAAO,kBAAkB;AACjC,IAAI,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,kBAAkB;AACjD,IAAI,OAAO,QAAQ,KAAK,SAAS,GAAG,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;AAC5E;;;;"}