@tamagui/constants
Advanced tools
Comparing version 1.118.3 to 1.118.4
@@ -39,3 +39,3 @@ var __create = Object.create; | ||
var import_react = __toESM(require("react")); | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.default.useEffect : import_react.default.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web"; | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.default.useEffect : import_react.default.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web"; | ||
//# sourceMappingURL=constants.js.map |
@@ -39,3 +39,3 @@ "use strict"; | ||
module.exports = __toCommonJS(constants_native_exports); | ||
var import_react = __toESM(require("react")), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.default.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native"; | ||
var import_react = __toESM(require("react")), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.default.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -42,0 +42,0 @@ 0 && (module.exports = { |
import React from "react"; | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? React.useEffect : React.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web"; | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? React.useEffect : React.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web"; | ||
export { | ||
@@ -4,0 +4,0 @@ currentPlatform, |
import React from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = React.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = React.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native"; | ||
export { | ||
@@ -4,0 +4,0 @@ currentPlatform, |
{ | ||
"name": "@tamagui/constants", | ||
"version": "1.118.3", | ||
"version": "1.118.4", | ||
"types": "./types/index.d.ts", | ||
@@ -21,3 +21,3 @@ "main": "dist/cjs", | ||
"devDependencies": { | ||
"@tamagui/build": "1.118.3", | ||
"@tamagui/build": "1.118.4", | ||
"react": "*" | ||
@@ -24,0 +24,0 @@ }, |
@@ -12,3 +12,3 @@ import React from 'react' | ||
export const isAndroid: boolean = false | ||
export const isIos: boolean = false | ||
export const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios' | ||
export const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'native' |
@@ -20,3 +20,3 @@ import React from 'react' | ||
export const isAndroid: boolean = false | ||
export const isIos: boolean = false | ||
export const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios' | ||
export const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33654
501
7