@comunica/actor-rdf-parse-html-microdata
Advanced tools
Comparing version 3.3.0 to 4.0.1-alpha.48.0
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
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
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
20404
63
5
1
+ Added@comunica/bus-rdf-parse-html@4.0.1-alpha.48.0(transitive)
+ Added@comunica/context-entries@4.0.1-alpha.48.0(transitive)
+ Added@comunica/core@4.0.1-alpha.48.0(transitive)
+ Added@comunica/types@4.0.1-alpha.48.0(transitive)
+ Added@types/http-link-header@1.0.7(transitive)
+ Added@types/node@18.19.67(transitive)
+ Addedcross-fetch@3.1.8(transitive)
+ Addedhttp-link-header@1.1.3(transitive)
+ Addedjsonld-context-parser@2.4.0(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removed@comunica/bus-rdf-parse-html@3.3.0(transitive)
- Removed@comunica/core@3.3.0(transitive)
- Removed@comunica/types@3.3.0(transitive)