@aws-amplify/storage
Version:
Storage category of aws-amplify
1 lines • 904 B
Source Map (JSON)
{"version":3,"file":"urlDecoder.mjs","sources":["../../../../../src/providers/s3/utils/urlDecoder.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Decodes a URL-encoded string by replacing '+' characters with spaces and applying `decodeURIComponent`.\n * Reference:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url\n * @param {string} value - The URL-encoded string to decode.\n * @returns {string} The decoded string.\n */\nexport const urlDecode = (value) => {\n return decodeURIComponent(value.replace(/\\+/g, ' '));\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,SAAS,GAAG,CAAC,KAAK,KAAK;AACpC,IAAI,OAAO,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACxD;;;;"}