New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inlines

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inlines - npm Package Compare versions

Comparing version 0.4.0-alpha.10 to 0.4.0-alpha.11

2

dist/src/core/to-hash.d.ts

@@ -1,1 +0,1 @@

export declare const toHash: ((str: string, hash?: number) => number) | ((str: any) => any);
export declare const toHash: (str: any) => any;

@@ -5,7 +5,8 @@ import { stringHash } from '@saulx/hash';

let i = 0;
const hash = (str) => stringHash(str) >>> 0;
export const toHash = typeof window === 'object'
? stringHash
? hash
: (str) => {
// if it's ssr shorten it
const h = stringHash(str);
const h = hash(str);
if (!(h in cache)) {

@@ -12,0 +13,0 @@ i++;

{
"name": "inlines",
"description": "When you just want to use the style prop in React",
"version": "0.4.0-alpha.10",
"version": "0.4.0-alpha.11",
"main": "dist/src/index.js",

@@ -6,0 +6,0 @@ "types": "dist/src/index.d.ts",

@@ -5,9 +5,9 @@ import { stringHash } from '@saulx/hash'

let i = 0
const hash = (str) => stringHash(str) >>> 0
export const toHash =
typeof window === 'object'
? stringHash
? hash
: (str) => {
// if it's ssr shorten it
const h = stringHash(str)
const h = hash(str)
if (!(h in cache)) {

@@ -14,0 +14,0 @@ i++

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