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

tfk-360-unwrap-contact

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfk-360-unwrap-contact - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

test/data/GetPrivatePersonsResultNoneFoundNull.json

4

index.js

@@ -9,4 +9,4 @@ 'use strict'

if (contact.GetPrivatePersonsResult && contact.GetPrivatePersonsResult.PrivatePersons) {
if (contact.GetPrivatePersonsResult.PrivatePersons.PrivatePersonBase) {
if (contact.GetPrivatePersonsResult) {
if (contact.GetPrivatePersonsResult.PrivatePersons && contact.GetPrivatePersonsResult.PrivatePersons.PrivatePersonBase) {
if (contact.GetPrivatePersonsResult.PrivatePersons.PrivatePersonBase.length === 1) {

@@ -13,0 +13,0 @@ person = contact.GetPrivatePersonsResult.PrivatePersons.PrivatePersonBase[0]

{
"name": "tfk-360-unwrap-contact",
"version": "2.0.0",
"version": "2.0.1",
"description": "Unwraps GetPrivatePersonsResult from Public 360",

@@ -39,2 +39,2 @@ "license": "MIT",

}
}
}

@@ -40,2 +40,10 @@ 'use strict'

tap.test('It returns false if no person found', function (test) {
var contact = require('./data/GetPrivatePersonsResultNoneFoundNull.json')
var expected = false
var result = unwrapContact(contact)
tap.equal(JSON.stringify(result), JSON.stringify(expected), 'Contact returned false OK')
test.done()
})
tap.test('It returns expected result', function (test) {

@@ -42,0 +50,0 @@ var contact = require('./data/GetPrivatePersonsResult.json')

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