Socket
Socket
Sign inDemoInstall

@tamagui/simple-hash

Package Overview
Dependencies
Maintainers
1
Versions
946
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/simple-hash - npm Package Compare versions

Comparing version 1.7.7 to 1.7.8

3

dist/cjs/index.js

@@ -31,2 +31,5 @@ "use strict";

const char = str.charCodeAt(i);
if (char === 46) {
valids += "d0t";
}
if (isValidCSSCharCode(char) && len <= hashMin) {

@@ -33,0 +36,0 @@ valids += str[i];

@@ -7,2 +7,5 @@ const simpleHash = (str, hashMin = 10) => {

const char = str.charCodeAt(i);
if (char === 46) {
valids += "d0t";
}
if (isValidCSSCharCode(char) && len <= hashMin) {

@@ -9,0 +12,0 @@ valids += str[i];

4

package.json
{
"name": "@tamagui/simple-hash",
"version": "1.7.7",
"version": "1.7.8",
"sideEffects": false,

@@ -28,3 +28,3 @@ "types": "./types/index.d.ts",

"devDependencies": {
"@tamagui/build": "1.7.7"
"@tamagui/build": "1.7.8"
},

@@ -31,0 +31,0 @@ "publishConfig": {

@@ -7,2 +7,6 @@ export const simpleHash = (str: string, hashMin = 10) => {

const char = str.charCodeAt(i)
// . => d0t
if (char === 46) {
valids += 'd0t'
}
// dont do more than 10 non-hashed to avoid getting too girthy

@@ -9,0 +13,0 @@ if (isValidCSSCharCode(char) && len <= hashMin) {

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