@aws-amplify/storage
Version:
Storage category of aws-amplify
1 lines • 749 B
Source Map (JSON)
{"version":3,"file":"resolveIdentityId.mjs","sources":["../../../../../src/providers/s3/utils/resolveIdentityId.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { StorageValidationErrorCode } from '../../../errors/types/validation';\nimport { assertValidationError } from '../../../errors/utils/assertValidationError';\nexport const resolveIdentityId = (identityId) => {\n assertValidationError(!!identityId, StorageValidationErrorCode.NoIdentityId);\n return identityId;\n};\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,iBAAiB,GAAG,CAAC,UAAU,KAAK;AACjD,IAAI,qBAAqB,CAAC,CAAC,CAAC,UAAU,EAAE,0BAA0B,CAAC,YAAY,CAAC;AAChF,IAAI,OAAO,UAAU;AACrB;;;;"}