@aws-amplify/core
Version:
Core category of aws-amplify
1 lines • 918 B
Source Map (JSON)
{"version":3,"file":"getEndpointId.mjs","sources":["../../../../../src/providers/pinpoint/utils/getEndpointId.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Cache } from '../../../Cache';\nimport { getCacheKey } from './getCacheKey';\n/**\n * Returns an endpoint id from cache or `undefined` if not found.\n *\n * @internal\n */\nexport const getEndpointId = async (appId, category) => {\n const cacheKey = getCacheKey(appId, category);\n const cachedEndpointId = await Cache.getItem(cacheKey);\n return cachedEndpointId ?? undefined;\n};\n"],"names":[],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG,OAAO,KAAK,EAAE,QAAQ,KAAK;AACxD,IAAI,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC;AACjD,IAAI,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC1D,IAAI,OAAO,gBAAgB,IAAI,SAAS;AACxC;;;;"}