@comunica/actor-rdf-parse-html-script
Advanced tools
Comparing version 1.12.1 to 1.13.0
@@ -1,2 +0,2 @@ | ||
import { IActionRootRdfParse, IActorOutputRootRdfParse, IActorTestRootRdfParse } from "@comunica/bus-rdf-parse"; | ||
import { IActionHandleRdfParse, IActionMediaTypesRdfParse, IActorOutputHandleRdfParse, IActorOutputMediaTypesRdfParse, IActorTestHandleRdfParse, IActorTestMediaTypesRdfParse } from "@comunica/bus-rdf-parse"; | ||
import { ActorRdfParseHtml, IActionRdfParseHtml, IActorRdfParseHtmlOutput } from "@comunica/bus-rdf-parse-html"; | ||
@@ -18,4 +18,4 @@ import { Actor, IActorArgs, IActorTest, Mediator } from "@comunica/core"; | ||
export interface IActorRdfParseHtmlScriptArgs extends IActorArgs<IActionRdfParseHtml, IActorTest, IActorRdfParseHtmlOutput> { | ||
mediatorRdfParseMediatypes: Mediator<Actor<IActionRootRdfParse, IActorTestRootRdfParse, IActorOutputRootRdfParse>, IActionRootRdfParse, IActorTestRootRdfParse, IActorOutputRootRdfParse>; | ||
mediatorRdfParseHandle: Mediator<Actor<IActionRootRdfParse, IActorTestRootRdfParse, IActorOutputRootRdfParse>, IActionRootRdfParse, IActorTestRootRdfParse, IActorOutputRootRdfParse>; | ||
mediatorRdfParseMediatypes: Mediator<Actor<IActionMediaTypesRdfParse, IActorTestMediaTypesRdfParse, IActorOutputMediaTypesRdfParse>, IActionMediaTypesRdfParse, IActorTestMediaTypesRdfParse, IActorOutputMediaTypesRdfParse>; | ||
mediatorRdfParseHandle: Mediator<Actor<IActionHandleRdfParse, IActorTestHandleRdfParse, IActorOutputHandleRdfParse>, IActionHandleRdfParse, IActorTestHandleRdfParse, IActorOutputHandleRdfParse>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { IActionRootRdfParse, IActorOutputRootRdfParse, IActorTestRootRdfParse } from "@comunica/bus-rdf-parse"; | ||
import { IActionHandleRdfParse, IActorOutputHandleRdfParse, IActorTestHandleRdfParse } from "@comunica/bus-rdf-parse"; | ||
import { IHtmlParseListener } from "@comunica/bus-rdf-parse-html"; | ||
@@ -15,9 +15,9 @@ import { ActionContext, Actor, Mediator } from "@comunica/core"; | ||
private readonly supportedTypes; | ||
private readonly context; | ||
private readonly context?; | ||
private baseIRI; | ||
private readonly headers; | ||
private readonly headers?; | ||
private readonly onlyFirstScript; | ||
private readonly targetScriptId; | ||
private handleMediaType; | ||
private textChunks; | ||
private handleMediaType?; | ||
private textChunks?; | ||
private textChunksJsonLd; | ||
@@ -27,5 +27,5 @@ private endBarrier; | ||
private isFinalJsonLdProcessing; | ||
constructor(mediatorRdfParseHandle: Mediator<Actor<IActionRootRdfParse, IActorTestRootRdfParse, IActorOutputRootRdfParse>, IActionRootRdfParse, IActorTestRootRdfParse, IActorOutputRootRdfParse>, cbQuad: (quad: RDF.Quad) => void, cbError: (error: Error) => void, cbEnd: () => void, supportedTypes: { | ||
constructor(mediatorRdfParseHandle: Mediator<Actor<IActionHandleRdfParse, IActorTestHandleRdfParse, IActorOutputHandleRdfParse>, IActionHandleRdfParse, IActorTestHandleRdfParse, IActorOutputHandleRdfParse>, cbQuad: (quad: RDF.Quad) => void, cbError: (error: Error) => void, cbEnd: () => void, supportedTypes: { | ||
[id: string]: number; | ||
}, context: ActionContext, baseIRI: string, headers: Headers); | ||
}, context: ActionContext | undefined, baseIRI: string, headers: Headers | undefined); | ||
static newErrorCoded(message: string, code: string): Error; | ||
@@ -32,0 +32,0 @@ onEnd(): void; |
@@ -11,4 +11,2 @@ "use strict"; | ||
constructor(mediatorRdfParseHandle, cbQuad, cbError, cbEnd, supportedTypes, context, baseIRI, headers) { | ||
this.handleMediaType = null; | ||
this.textChunks = null; | ||
this.textChunksJsonLd = []; | ||
@@ -26,3 +24,3 @@ this.endBarrier = 1; | ||
this.headers = headers; | ||
this.onlyFirstScript = context && context.get('extractAllScripts') === false; | ||
this.onlyFirstScript = context && context.get('extractAllScripts') === false || false; | ||
const fragmentPos = this.baseIRI.indexOf('#'); | ||
@@ -63,4 +61,4 @@ this.targetScriptId = fragmentPos > 0 ? this.baseIRI.substr(fragmentPos + 1, this.baseIRI.length) : null; | ||
// Reset the media type and text stream | ||
this.handleMediaType = null; | ||
this.textChunks = null; | ||
this.handleMediaType = undefined; | ||
this.textChunks = undefined; | ||
this.onEnd(); | ||
@@ -94,4 +92,4 @@ } | ||
// Reset the media type and text stream | ||
this.handleMediaType = null; | ||
this.textChunks = null; | ||
this.handleMediaType = undefined; | ||
this.textChunks = undefined; | ||
} | ||
@@ -111,3 +109,3 @@ } | ||
// Ignore script tag if only one should be extracted | ||
this.handleMediaType = null; | ||
this.handleMediaType = undefined; | ||
} | ||
@@ -132,3 +130,3 @@ else { | ||
else { | ||
this.handleMediaType = null; | ||
this.handleMediaType = undefined; | ||
} | ||
@@ -135,0 +133,0 @@ } |
{ | ||
"name": "@comunica/actor-rdf-parse-html-script", | ||
"version": "1.12.1", | ||
"version": "1.13.0", | ||
"description": "A html-script rdf-parse actor", | ||
@@ -45,4 +45,4 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-html-script", | ||
"devDependencies": { | ||
"@comunica/bus-rdf-parse": "^1.11.0", | ||
"@comunica/core": "^1.9.2" | ||
"@comunica/bus-rdf-parse": "^1.13.0", | ||
"@comunica/core": "^1.13.0" | ||
}, | ||
@@ -72,3 +72,3 @@ "jest": { | ||
}, | ||
"gitHead": "9f4f4c013308b068d3b32ccd43ac10783580cb91" | ||
"gitHead": "cd8df73fe091e3d7413147ec5301b47be2de392a" | ||
} |
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
17583
245