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

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

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.12.1 to 1.13.0

6

lib/ActorRdfParseHtmlScript.d.ts

@@ -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"
}
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