@aws-amplify/core
Version:
Core category of aws-amplify
1 lines • 1.39 kB
Source Map (JSON)
{"version":3,"file":"helpers.mjs","sources":["../../../../src/Platform/detection/helpers.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const globalExists = () => {\n return typeof global !== 'undefined';\n};\nexport const globalThisExists = () => {\n return typeof globalThis !== 'undefined';\n};\nexport const windowExists = () => {\n return typeof window !== 'undefined';\n};\nexport const documentExists = () => {\n return typeof document !== 'undefined';\n};\nexport const processExists = () => {\n return typeof process !== 'undefined';\n};\nexport const keyPrefixMatch = (object, prefix) => {\n return !!Object.keys(object).find(key => key.startsWith(prefix));\n};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,YAAY,GAAG,MAAM;AAClC,IAAI,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC;AACzC,EAAE;AACU,MAAC,gBAAgB,GAAG,MAAM;AACtC,IAAI,OAAO,OAAO,UAAU,KAAK,WAAW,CAAC;AAC7C,EAAE;AACU,MAAC,YAAY,GAAG,MAAM;AAClC,IAAI,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC;AACzC,EAAE;AACU,MAAC,cAAc,GAAG,MAAM;AACpC,IAAI,OAAO,OAAO,QAAQ,KAAK,WAAW,CAAC;AAC3C,EAAE;AACU,MAAC,aAAa,GAAG,MAAM;AACnC,IAAI,OAAO,OAAO,OAAO,KAAK,WAAW,CAAC;AAC1C,EAAE;AACU,MAAC,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK;AAClD,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AACrE;;;;"}