@aws-amplify/core
Version:
Core category of aws-amplify
1 lines • 861 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 (window.__NUXT__ !== undefined ||\n window.$nuxt !== undefined));\n}\nexport function nuxtSSRDetect() {\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,SAAS,MAAM,CAAC,QAAQ,KAAK,SAAS;AACtC,YAAY,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,EAAE;AACzC,CAAC;AACM,SAAS,aAAa,GAAG;AAChC,IAAI,QAAQ,YAAY,EAAE,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,WAAW,EAAE;AAC5E;;;;"}