Socket
Socket
Sign inDemoInstall

web-auto-extractor

Package Overview
Dependencies
33
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.11 to 1.0.12

11

dist/parsers/jsonld-parser.js

@@ -16,5 +16,10 @@ 'use strict';

var parsedJSON = JSON.parse((0, _cheerio2.default)(item).text());
var type = parsedJSON['@type'];
jsonldData[type] = jsonldData[type] || [];
jsonldData[type].push(parsedJSON);
if (!Array.isArray(parsedJSON)) {
parsedJSON = [parsedJSON];
}
parsedJSON.forEach(function (obj) {
var type = obj['@type'];
jsonldData[type] = jsonldData[type] || [];
jsonldData[type].push(obj);
});
} catch (e) {

@@ -21,0 +26,0 @@ console.log('Error in jsonld parse - ' + e);

{
"name": "web-auto-extractor",
"version": "1.0.11",
"version": "1.0.12",
"description": "Automatically extracts structured information from webpages",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc