Socket
Socket
Sign inDemoInstall

object-code

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-code - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

dist/hash.d.ts

@@ -25,3 +25,3 @@ /**

*/
export declare function hash(val: unknown, seen?: WeakSet<WeakKey>): number;
export declare function hash(val: unknown, seen?: WeakSet<object>): number;
//# sourceMappingURL=hash.d.ts.map
{
"name": "object-code",
"version": "1.3.2",
"version": "1.3.3",
"description": "A blazing fast hash code generator that supports every possible javascript value.",

@@ -5,0 +5,0 @@ "homepage": "https://tinylibs.js.org/packages/object-code",

@@ -27,3 +27,3 @@ import { sortNumbers } from './util';

*/
export function hash(val: unknown, seen?: WeakSet<WeakKey>): number {
export function hash(val: unknown, seen?: WeakSet<object>): number {
let h = 5381;

@@ -47,3 +47,3 @@

const key = keys[i];
const value = val[key as keyof typeof val] as WeakKey;
const value = val[key as keyof typeof val] as object;

@@ -50,0 +50,0 @@ h = (h * 33) ^ hash(key, seen);

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