@tamagui/web
Advanced tools
Comparing version 1.28.0 to 1.28.1
@@ -29,8 +29,7 @@ "use strict"; | ||
let i = 0; | ||
for (let key in tokens) { | ||
for (let keyIn in tokens) { | ||
i++; | ||
const val = tokens[key]; | ||
if (key[0] === "$") { | ||
key = key.slice(1); | ||
} | ||
const val = tokens[keyIn]; | ||
const keyWithPrefix = keyIn[0] === "$" ? keyIn : `$${keyIn}`; | ||
const key = keyWithPrefix.slice(1); | ||
if ((0, import_createVariable.isVariable)(val)) { | ||
@@ -47,3 +46,3 @@ res[key] = val; | ||
} | ||
res[key] = (0, import_createVariable.isVariable)(val) ? val : (0, import_createVariable.createVariable)({ val, name, key: niceKey }); | ||
res[key] = (0, import_createVariable.isVariable)(val) ? val : (0, import_createVariable.createVariable)({ val, name, key: keyWithPrefix }); | ||
} | ||
@@ -50,0 +49,0 @@ return res; |
@@ -6,8 +6,7 @@ import { simpleHash } from "@tamagui/helpers"; | ||
let i = 0; | ||
for (let key in tokens) { | ||
for (let keyIn in tokens) { | ||
i++; | ||
const val = tokens[key]; | ||
if (key[0] === "$") { | ||
key = key.slice(1); | ||
} | ||
const val = tokens[keyIn]; | ||
const keyWithPrefix = keyIn[0] === "$" ? keyIn : `$${keyIn}`; | ||
const key = keyWithPrefix.slice(1); | ||
if (isVariable(val)) { | ||
@@ -24,3 +23,3 @@ res[key] = val; | ||
} | ||
res[key] = isVariable(val) ? val : createVariable({ val, name, key: niceKey }); | ||
res[key] = isVariable(val) ? val : createVariable({ val, name, key: keyWithPrefix }); | ||
} | ||
@@ -27,0 +26,0 @@ return res; |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.28.0", | ||
"version": "1.28.1", | ||
"source": "src/index.ts", | ||
@@ -30,9 +30,9 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.28.0", | ||
"@tamagui/constants": "1.28.0", | ||
"@tamagui/helpers": "1.28.0", | ||
"@tamagui/normalize-css-color": "1.28.0", | ||
"@tamagui/use-did-finish-ssr": "1.28.0", | ||
"@tamagui/use-event": "1.28.0", | ||
"@tamagui/use-force-update": "1.28.0" | ||
"@tamagui/compose-refs": "1.28.1", | ||
"@tamagui/constants": "1.28.1", | ||
"@tamagui/helpers": "1.28.1", | ||
"@tamagui/normalize-css-color": "1.28.1", | ||
"@tamagui/use-did-finish-ssr": "1.28.1", | ||
"@tamagui/use-event": "1.28.1", | ||
"@tamagui/use-force-update": "1.28.1" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "1.28.0", | ||
"@tamagui/build": "1.28.1", | ||
"@testing-library/react": "^13.4.0", | ||
@@ -46,0 +46,0 @@ "csstype": "^3.0.10", |
@@ -24,10 +24,7 @@ import { simpleHash } from '@tamagui/helpers' | ||
let i = 0 | ||
for (let key in tokens) { | ||
for (let keyIn in tokens) { | ||
i++ | ||
const val = tokens[key] | ||
// always remove $ prefix | ||
if (key[0] === '$') { | ||
// @ts-ignore | ||
key = key.slice(1) | ||
} | ||
const val = tokens[keyIn] | ||
const keyWithPrefix = keyIn[0] === '$' ? keyIn : `$${keyIn}` | ||
const key = keyWithPrefix.slice(1) | ||
if (isVariable(val)) { | ||
@@ -45,3 +42,3 @@ res[key] = val | ||
} | ||
res[key] = isVariable(val) ? val : createVariable({ val, name, key: niceKey }) | ||
res[key] = isVariable(val) ? val : createVariable({ val, name, key: keyWithPrefix }) | ||
} | ||
@@ -48,0 +45,0 @@ |
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
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
1166462
24637
+ Added@tamagui/compose-refs@1.28.1(transitive)
+ Added@tamagui/constants@1.28.1(transitive)
+ Added@tamagui/helpers@1.28.1(transitive)
+ Added@tamagui/normalize-css-color@1.28.1(transitive)
+ Added@tamagui/simple-hash@1.28.1(transitive)
+ Added@tamagui/use-did-finish-ssr@1.28.1(transitive)
+ Added@tamagui/use-event@1.28.1(transitive)
+ Added@tamagui/use-force-update@1.28.1(transitive)
- Removed@tamagui/compose-refs@1.28.0(transitive)
- Removed@tamagui/constants@1.28.0(transitive)
- Removed@tamagui/helpers@1.28.0(transitive)
- Removed@tamagui/normalize-css-color@1.28.0(transitive)
- Removed@tamagui/simple-hash@1.28.0(transitive)
- Removed@tamagui/use-did-finish-ssr@1.28.0(transitive)
- Removed@tamagui/use-event@1.28.0(transitive)
- Removed@tamagui/use-force-update@1.28.0(transitive)
Updated@tamagui/compose-refs@1.28.1
Updated@tamagui/constants@1.28.1
Updated@tamagui/helpers@1.28.1
Updated@tamagui/use-event@1.28.1