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

calais-entity-extractor

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calais-entity-extractor - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

8

lib/calais-entity-extractor.js

@@ -79,4 +79,6 @@ var request = require('request');

entity.nationality = p.nationality;
if (p.hasOwnProperty("commonname"))
if (p.hasOwnProperty("commonname")) {
entity.commonname = p.commonname;
entity.name = p.commonname;
}
if (p.hasOwnProperty("firstname"))

@@ -101,3 +103,3 @@ entity.firstname = p.firstname;

if (resolution.hasOwnProperty("commonname"))
entity.name = resolution.commonname;
entity.commonname = resolution.commonname;
}

@@ -109,3 +111,3 @@ } else if (entity.type == "City") {

if (resolution.hasOwnProperty("shortname"))
entity.name = resolution.shortname;
entity.commonname = resolution.shortname;
if (resolution.hasOwnProperty("containedbycountry"))

@@ -112,0 +114,0 @@ entity.country = resolution.containedbycountry;

{
"name": "calais-entity-extractor",
"version": "1.3.0",
"version": "1.3.1",
"description": "Extract entities from text using Open Calais.",

@@ -5,0 +5,0 @@ "scripts": {

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