@comunica/actor-rdf-parse-html-microdata
Advanced tools
Comparing version 3.2.4-alpha.47.0 to 3.3.0
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3
0
17237
8935
60
+ Added@comunica/bus-rdf-parse-html@3.3.0(transitive)
+ Added@comunica/core@3.3.0(transitive)
+ Added@comunica/types@3.3.0(transitive)
- Removed@comunica/types@3.2.4-alpha.47.0
- Removed@comunica/bus-rdf-parse-html@3.2.4-alpha.47.0(transitive)
- Removed@comunica/context-entries@3.2.4-alpha.47.0(transitive)
- Removed@comunica/core@3.2.4-alpha.47.0(transitive)
- Removed@comunica/types@3.2.4-alpha.47.0(transitive)
- Removed@types/http-link-header@1.0.7(transitive)
- Removed@types/node@18.19.67(transitive)
- Removedcross-fetch@3.1.8(transitive)
- Removedhttp-link-header@1.1.3(transitive)
- Removedjsonld-context-parser@2.4.0(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedundici-types@5.26.5(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
Updated@comunica/core@^3.3.0