New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tamagui/constants

Package Overview
Dependencies
Maintainers
1
Versions
976
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/constants - npm Package Compare versions

Comparing version 1.122.8 to 1.123.0

14

dist/cjs/constants.android.js
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {

@@ -16,10 +15,3 @@ for (var name in all)

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var constants_android_exports = {};

@@ -40,3 +32,3 @@ __export(constants_android_exports, {

module.exports = __toCommonJS(constants_android_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 = !0, isIos = !1, currentPlatform = "android";
var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android";
// Annotate the CommonJS export names for ESM import in node:

@@ -43,0 +35,0 @@ 0 && (module.exports = {

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {

@@ -16,10 +15,3 @@ for (var name in all)

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var constants_ios_exports = {};

@@ -40,3 +32,3 @@ __export(constants_ios_exports, {

module.exports = __toCommonJS(constants_ios_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 = !0, currentPlatform = "ios";
var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios";
// Annotate the CommonJS export names for ESM import in node:

@@ -43,0 +35,0 @@ 0 && (module.exports = {

@@ -1,6 +0,5 @@

var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {

@@ -15,10 +14,3 @@ for (var name in all)

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var constants_exports = {};

@@ -39,4 +31,4 @@ __export(constants_exports, {

module.exports = __toCommonJS(constants_exports);
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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
var import_react = require("react");
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.useEffect : import_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";
//# sourceMappingURL=constants.js.map
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {

@@ -16,10 +15,3 @@ for (var name in all)

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var constants_native_exports = {};

@@ -40,3 +32,3 @@ __export(constants_native_exports, {

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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native";
var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.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:

@@ -43,0 +35,0 @@ 0 && (module.exports = {

@@ -1,3 +0,3 @@

import React from "react";
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = React.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android";
import { useLayoutEffect } from "react";
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android";
export {

@@ -4,0 +4,0 @@ currentPlatform,

@@ -1,3 +0,3 @@

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 = !0, currentPlatform = "ios";
import { useLayoutEffect } from "react";
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios";
export {

@@ -4,0 +4,0 @@ currentPlatform,

@@ -1,3 +0,3 @@

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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
import { useEffect, useLayoutEffect } from "react";
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? useEffect : 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,

@@ -1,3 +0,3 @@

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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native";
import { useLayoutEffect } from "react";
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = 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.122.8",
"version": "1.123.0",
"types": "./types/index.d.ts",

@@ -21,3 +21,3 @@ "main": "dist/cjs",

"devDependencies": {
"@tamagui/build": "1.122.8",
"@tamagui/build": "1.123.0",
"react": "*"

@@ -24,0 +24,0 @@ },

@@ -1,2 +0,2 @@

import React from 'react'
import { useLayoutEffect } from 'react'

@@ -7,3 +7,3 @@ export const isWeb: boolean = false

export const isClient: boolean = false
export const useIsomorphicLayoutEffect = React.useLayoutEffect
export const useIsomorphicLayoutEffect: typeof useLayoutEffect = useLayoutEffect
export const isChrome: boolean = false

@@ -10,0 +10,0 @@ export const isWebTouchable: boolean = false

@@ -1,2 +0,2 @@

import React from 'react'
import { useLayoutEffect } from 'react'

@@ -7,3 +7,3 @@ export const isWeb: boolean = false

export const isClient: boolean = false
export const useIsomorphicLayoutEffect = React.useLayoutEffect
export const useIsomorphicLayoutEffect: typeof useLayoutEffect = useLayoutEffect
export const isChrome: boolean = false

@@ -10,0 +10,0 @@ export const isWebTouchable: boolean = false

@@ -1,2 +0,2 @@

import React from 'react'
import { useLayoutEffect, type useEffect } from 'react'

@@ -7,3 +7,3 @@ export const isWeb: boolean = false

export const isClient: boolean = false
export const useIsomorphicLayoutEffect = React.useLayoutEffect
export const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect
export const isChrome: boolean = false

@@ -10,0 +10,0 @@ export const isWebTouchable: boolean = false

@@ -1,18 +0,19 @@

import React from 'react'
import { useEffect, useLayoutEffect } from 'react'
export const isWeb: boolean = true
export const isWindowDefined = typeof window !== 'undefined'
export const isServer = isWeb && !isWindowDefined
export const isClient = isWeb && isWindowDefined
export const isWindowDefined: boolean = typeof window !== 'undefined'
export const isServer: boolean = isWeb && !isWindowDefined
export const isClient: boolean = isWeb && isWindowDefined
export const useIsomorphicLayoutEffect = isServer
? React.useEffect
: React.useLayoutEffect
export const isChrome =
export const useIsomorphicLayoutEffect: typeof useEffect = isServer
? useEffect
: useLayoutEffect
export const isChrome: boolean =
typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')
export const isWebTouchable =
export const isWebTouchable: boolean =
isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)
export const isTouchable = !isWeb || isWebTouchable
export const isTouchable: boolean = !isWeb || isWebTouchable
// set :boolean to avoid inferring type to false

@@ -19,0 +20,0 @@ export const isAndroid: boolean = false

@@ -1,2 +0,2 @@

import React from 'react';
import { useLayoutEffect } from "react";
export declare const isWeb: boolean;

@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean;

export declare const isClient: boolean;
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect;
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
export declare const isChrome: boolean;

@@ -13,3 +13,4 @@ export declare const isWebTouchable: boolean;

export declare const isIos: boolean;
export declare const currentPlatform: 'web' | 'ios' | 'native' | 'android';
export declare const currentPlatform: "web" | "ios" | "native" | "android";
//# sourceMappingURL=constants.android.d.ts.map

@@ -1,2 +0,2 @@

import React from 'react';
import { useEffect } from "react";
export declare const isWeb: boolean;

@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean;

export declare const isClient: boolean;
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect;
export declare const useIsomorphicLayoutEffect: typeof useEffect;
export declare const isChrome: boolean;

@@ -13,3 +13,4 @@ export declare const isWebTouchable: boolean;

export declare const isIos: boolean;
export declare const currentPlatform: 'web' | 'ios' | 'native' | 'android';
export declare const currentPlatform: "web" | "ios" | "native" | "android";
//# sourceMappingURL=constants.d.ts.map

@@ -1,2 +0,2 @@

import React from 'react';
import { useLayoutEffect } from "react";
export declare const isWeb: boolean;

@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean;

export declare const isClient: boolean;
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect;
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
export declare const isChrome: boolean;

@@ -13,3 +13,4 @@ export declare const isWebTouchable: boolean;

export declare const isIos: boolean;
export declare const currentPlatform: 'web' | 'ios' | 'native' | 'android';
export declare const currentPlatform: "web" | "ios" | "native" | "android";
//# sourceMappingURL=constants.ios.d.ts.map

@@ -1,2 +0,2 @@

import React from 'react';
import { type useEffect } from "react";
export declare const isWeb: boolean;

@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean;

export declare const isClient: boolean;
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect;
export declare const useIsomorphicLayoutEffect: typeof useEffect;
export declare const isChrome: boolean;

@@ -13,3 +13,4 @@ export declare const isWebTouchable: boolean;

export declare const isIos: boolean;
export declare const currentPlatform: 'web' | 'ios' | 'native' | 'android';
export declare const currentPlatform: "web" | "ios" | "native" | "android";
//# sourceMappingURL=constants.native.d.ts.map

@@ -1,2 +0,3 @@

export * from './constants';
export * from "./constants";
//# sourceMappingURL=index.d.ts.map

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc