@aws-amplify/core
Version:
Core category of aws-amplify
1 lines • 918 B
Source Map (JSON)
{"version":3,"file":"Nuxt.mjs","sources":["../../../../src/Platform/detection/Nuxt.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { globalExists, windowExists } from './helpers';\n// Tested with nuxt 2.15 / vue 2.7\nexport function nuxtWebDetect() {\n return (windowExists() &&\n // @ts-ignore\n (window['__NUXT__'] !== undefined || window['$nuxt'] !== undefined));\n}\nexport function nuxtSSRDetect() {\n // @ts-ignore\n return globalExists() && typeof global['__NUXT_PATHS__'] !== 'undefined';\n}\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACO,SAAS,aAAa,GAAG;AAChC,IAAI,QAAQ,YAAY,EAAE;AAC1B;AACA,SAAS,MAAM,CAAC,UAAU,CAAC,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,SAAS,CAAC,EAAE;AAC7E,CAAC;AACM,SAAS,aAAa,GAAG;AAChC;AACA,IAAI,OAAO,YAAY,EAAE,IAAI,OAAO,MAAM,CAAC,gBAAgB,CAAC,KAAK,WAAW,CAAC;AAC7E;;;;"}