Socket
Socket
Sign inDemoInstall

web-auto-extractor

Package Overview
Dependencies
97
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

abc.json

32

dist/parsers/micro-rdfa-parser.js

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

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _cheerio = require('cheerio');

@@ -56,10 +58,24 @@

if (idList.length === 0) {
idList = Object.keys(items).filter(function (id) {
return items[id].parentTypeId === null;
});
// START SIDE EFFECT: ITEM PATH INFO
idList.forEach(function (id, index) {
items[id].path = path.concat(index);
});
// END SIDE EFFECT: ITEM PATH INFO
var _ret = function () {
idList = Object.keys(items).filter(function (id) {
return items[id].parentTypeId === null;
});
// START SIDE EFFECT: ITEM PATH INFO
idList.forEach(function (id, index) {
items[id].path = path.concat([items[id].name, index]);
});
// END SIDE EFFECT: ITEM PATH INFO
var result = {};
var groupedIdListByName = _lodash2.default.groupBy(idList, function (id) {
return items[id].name;
});
Object.keys(groupedIdListByName).forEach(function (name) {
result[name] = normalize(items, groupedIdListByName[name], path);
});
return {
v: result
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
}

@@ -66,0 +82,0 @@ return idList.map(function (id, index) {

{
"name": "web-auto-extractor",
"version": "0.3.1",
"version": "0.3.2",
"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