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
0
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.3.0 to 4.0.1-alpha.48.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 } from '@comunica/core';
import type { IActorTest, TestResult } from '@comunica/core';
/**

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

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

@@ -5,2 +5,4 @@ "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");

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

async test(_action) {
return true;
return (0, core_1.passTestVoid)();
}
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({ baseIRI: action.baseIRI, xmlMode });
const htmlParseListener = new microdata_rdf_streaming_parser_1.MicrodataRdfParser({ dataFactory, baseIRI: action.baseIRI, xmlMode });
htmlParseListener.on('error', action.error);

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

{
"name": "@comunica/actor-rdf-parse-html-microdata",
"version": "3.3.0",
"version": "4.0.1-alpha.48.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/",

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

"dependencies": {
"@comunica/bus-rdf-parse-html": "^3.3.0",
"@comunica/core": "^3.3.0",
"@comunica/bus-rdf-parse-html": "4.0.1-alpha.48.0",
"@comunica/context-entries": "4.0.1-alpha.48.0",
"@comunica/core": "4.0.1-alpha.48.0",
"@comunica/types": "4.0.1-alpha.48.0",
"microdata-rdf-streaming-parser": "^2.0.1"
},
"gitHead": "02bde397d206f1f5a523643a6a604c89e792e2f9"
"gitHead": "4cc37905eab2c94a2e1d9cee0f51c53604f07da1"
}

@@ -25,3 +25,3 @@ # Comunica Microdata RDF Parse Html Actor

...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-html-microdata/^3.0.0/components/context.jsonld"
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-html-microdata/^4.0.0/components/context.jsonld"
],

@@ -28,0 +28,0 @@ "actors": [

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

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