Socket
Socket
Sign inDemoInstall

@tamagui/web

Package Overview
Dependencies
Maintainers
2
Versions
800
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/web - npm Package Compare versions

Comparing version 1.28.0 to 1.28.1

11

dist/cjs/createVariables.js

@@ -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

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