@tamagui/simple-hash
Advanced tools
Comparing version 1.111.12 to 1.111.13
@@ -23,2 +23,3 @@ var __defProp = Object.defineProperty; | ||
return cache.get(str); | ||
str[0] === "v" && str.startsWith("var(") && (str = str.slice(6, str.length - 1)); | ||
let hash = 0, valids = "", added = 0; | ||
@@ -25,0 +26,0 @@ const len = str.length; |
@@ -25,2 +25,3 @@ "use strict"; | ||
return cache.get(str); | ||
str[0] === "v" && str.startsWith("var(") && (str = str.slice(6, str.length - 1)); | ||
for (var hash = 0, valids = "", added = 0, len = str.length, i = 0; i < len; i++) { | ||
@@ -27,0 +28,0 @@ if (hashMin !== "strict" && added <= hashMin) { |
const cache = /* @__PURE__ */ new Map(), simpleHash = (str, hashMin = 10) => { | ||
if (cache.has(str)) | ||
return cache.get(str); | ||
str[0] === "v" && str.startsWith("var(") && (str = str.slice(6, str.length - 1)); | ||
let hash = 0, valids = "", added = 0; | ||
@@ -5,0 +6,0 @@ const len = str.length; |
@@ -5,2 +5,3 @@ var cache = /* @__PURE__ */new Map(), | ||
if (cache.has(str)) return cache.get(str); | ||
str[0] === "v" && str.startsWith("var(") && (str = str.slice(6, str.length - 1)); | ||
for (var hash = 0, valids = "", added = 0, len = str.length, i = 0; i < len; i++) { | ||
@@ -7,0 +8,0 @@ if (hashMin !== "strict" && added <= hashMin) { |
{ | ||
"name": "@tamagui/simple-hash", | ||
"version": "1.111.12", | ||
"version": "1.111.13", | ||
"sideEffects": false, | ||
@@ -32,3 +32,3 @@ "types": "./types/index.d.ts", | ||
"devDependencies": { | ||
"@tamagui/build": "1.111.12" | ||
"@tamagui/build": "1.111.13" | ||
}, | ||
@@ -35,0 +35,0 @@ "publishConfig": { |
@@ -8,2 +8,7 @@ const cache = new Map() | ||
// remove var() | ||
if (str[0] === 'v' && str.startsWith('var(')) { | ||
str = str.slice(6, str.length - 1) | ||
} | ||
let hash = 0 | ||
@@ -10,0 +15,0 @@ let valids = '' |
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
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
17525
283