Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cyclical-object-hash

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyclical-object-hash - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

3

index.js

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

const jc = require('json-cycle')
const stringify = require('fast-json-stable-stringify')

@@ -17,3 +16,3 @@ const blake2b = require('blake2b')

if (error.message.indexOf('circular') >= 0) {
string = stringify(jc.decycle(object))
string = stringify(object, {cycles: true})
} else {

@@ -20,0 +19,0 @@ throw error

{
"name": "cyclical-object-hash",
"version": "0.0.4",
"version": "0.0.5",
"description": "Deterministically hash a cyclical object with blake2b",

@@ -23,4 +23,3 @@ "main": "index.js",

"blake2b": "2.1.3",
"fast-json-stable-stringify": "2.0.0",
"json-cycle": "1.3.0"
"fast-json-stable-stringify": "2.0.0"
},

@@ -27,0 +26,0 @@ "devDependencies": {

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