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

@comunica/actor-rdf-parse-html-microdata

Package Overview
Dependencies
Maintainers
5
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/actor-rdf-parse-html-microdata - npm Package Compare versions

Comparing version 3.2.4-alpha.47.0 to 3.3.0

4

lib/ActorRdfParseHtmlMicrodata.d.ts
import type { IActionRdfParseHtml, IActorRdfParseHtmlArgs, IActorRdfParseHtmlOutput } from '@comunica/bus-rdf-parse-html';
import { ActorRdfParseHtml } from '@comunica/bus-rdf-parse-html';
import type { IActorTest, TestResult } from '@comunica/core';
import type { IActorTest } from '@comunica/core';
/**

@@ -9,4 +9,4 @@ * A comunica Microdata RDF Parse Html Actor.

constructor(args: IActorRdfParseHtmlArgs);
test(_action: IActionRdfParseHtml): Promise<TestResult<IActorTest>>;
test(_action: IActionRdfParseHtml): Promise<IActorTest>;
run(action: IActionRdfParseHtml): Promise<IActorRdfParseHtmlOutput>;
}

@@ -5,4 +5,2 @@ "use strict";

const bus_rdf_parse_html_1 = require("@comunica/bus-rdf-parse-html");
const context_entries_1 = require("@comunica/context-entries");
const core_1 = require("@comunica/core");
const microdata_rdf_streaming_parser_1 = require("microdata-rdf-streaming-parser");

@@ -17,9 +15,8 @@ /**

async test(_action) {
return (0, core_1.passTestVoid)();
return true;
}
async run(action) {
const dataFactory = action.context.getSafe(context_entries_1.KeysInitQuery.dataFactory);
const mediaType = action.headers ? action.headers.get('content-type') : null;
const xmlMode = mediaType?.includes('xml');
const htmlParseListener = new microdata_rdf_streaming_parser_1.MicrodataRdfParser({ dataFactory, baseIRI: action.baseIRI, xmlMode });
const htmlParseListener = new microdata_rdf_streaming_parser_1.MicrodataRdfParser({ baseIRI: action.baseIRI, xmlMode });
htmlParseListener.on('error', action.error);

@@ -26,0 +23,0 @@ htmlParseListener.on('data', action.emit);

{
"name": "@comunica/actor-rdf-parse-html-microdata",
"version": "3.2.4-alpha.47.0",
"version": "3.3.0",
"description": "A microdata rdf-parse-html actor",
"lsd:module": true,
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/comunica-association"
},
"homepage": "https://comunica.dev/",

@@ -44,9 +40,7 @@ "repository": {

"dependencies": {
"@comunica/bus-rdf-parse-html": "3.2.4-alpha.47.0",
"@comunica/context-entries": "3.2.4-alpha.47.0",
"@comunica/core": "3.2.4-alpha.47.0",
"@comunica/types": "3.2.4-alpha.47.0",
"@comunica/bus-rdf-parse-html": "^3.3.0",
"@comunica/core": "^3.3.0",
"microdata-rdf-streaming-parser": "^2.0.1"
},
"gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
"gitHead": "02bde397d206f1f5a523643a6a604c89e792e2f9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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