@tamagui/get-font-sized
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -69,3 +69,3 @@ "use strict"; | ||
function getDefaultSizeToken(font) { | ||
if (cache.has(font)) { | ||
if (typeof font === "object" && cache.has(font)) { | ||
return cache.get(font); | ||
@@ -72,0 +72,0 @@ } |
@@ -46,3 +46,3 @@ import { getTokens, getVariableValue } from "@tamagui/core"; | ||
function getDefaultSizeToken(font) { | ||
if (cache.has(font)) { | ||
if (typeof font === "object" && cache.has(font)) { | ||
return cache.get(font); | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "@tamagui/get-font-sized", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"types": "./types/index.d.ts", | ||
@@ -21,7 +21,7 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/core": "^1.1.8", | ||
"@tamagui/core": "^1.1.9", | ||
"react": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "^1.1.8", | ||
"@tamagui/build": "^1.1.9", | ||
"@types/react": "^18.0.15" | ||
@@ -28,0 +28,0 @@ }, |
@@ -62,3 +62,3 @@ import { getTokens, getVariableValue } from '@tamagui/core' | ||
function getDefaultSizeToken(font: GenericFont) { | ||
if (cache.has(font)) { | ||
if (typeof font === 'object' && cache.has(font)) { | ||
return cache.get(font)! | ||
@@ -65,0 +65,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19536
Updated@tamagui/core@^1.1.9