UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

1 lines 748 B
{"version":3,"file":"hexUtils.mjs","sources":["../../../../../src/providers/s3/utils/hexUtils.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { toBase64 } from './client/runtime';\nexport const hexToUint8Array = (hexString) => new Uint8Array((hexString.match(/\\w{2}/g) ?? []).map(h => parseInt(h, 16)));\nexport const hexToBase64 = (hexString) => toBase64(hexToUint8Array(hexString));\n"],"names":[],"mappings":";;;;;AAAA;AACA;AAEY,MAAC,eAAe,GAAG,CAAC,SAAS,KAAK,IAAI,UAAU,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC5G,MAAC,WAAW,GAAG,CAAC,SAAS,KAAK,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC;;;;"}