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

deepcrypt

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepcrypt - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

index.js

@@ -43,3 +43,3 @@ // Part of https://github.com/chris-rock/node-crypto-examples

// recursively encrypt
if (typeof v[item] === 'object') {
if (v[item] && typeof v[item] === 'object') {
acc[item] = e(v[item])

@@ -46,0 +46,0 @@ return acc;

{
"name": "deepcrypt",
"version": "2.0.2",
"version": "2.0.3",
"description": "encrypt/decrypt js objects",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,3 +8,3 @@ var test = require('tape')

t.plan(8)
t.plan(10)
// basic tests

@@ -14,2 +14,4 @@ t.deepEqual(deepDecrypt(deepEncrypt({ foo: "foo" })), { foo: "foo" });

t.deepEqual(deepDecrypt(deepEncrypt({ foo: 1, bar: true })), { foo: 1, bar: true });
t.deepEqual(deepDecrypt(deepEncrypt({ bar: null })), { bar: null });
t.deepEqual(deepDecrypt(deepEncrypt({ foo: undefined, bar: null })), { foo: undefined, bar: null });

@@ -16,0 +18,0 @@ // test exlude fields

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