@comunica/bus-rdf-resolve-hypermedia-links
Advanced tools
Comparing version 3.2.1 to 3.2.4-alpha.47.0
import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core'; | ||
import { Actor } from '@comunica/core'; | ||
import type { IActionContext } from '@comunica/types'; | ||
import type * as RDF from '@rdfjs/types'; | ||
import type { ILink } from '@comunica/types'; | ||
/** | ||
@@ -16,7 +15,9 @@ * A comunica actor for rdf-resolve-hypermedia-links events. | ||
*/ | ||
export declare abstract class ActorRdfResolveHypermediaLinks extends Actor<IActionRdfResolveHypermediaLinks, IActorTest, IActorRdfResolveHypermediaLinksOutput> { | ||
export declare abstract class ActorRdfResolveHypermediaLinks<TS = undefined> extends Actor<IActionRdfResolveHypermediaLinks, IActorTest, IActorRdfResolveHypermediaLinksOutput, TS> { | ||
/** | ||
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus | ||
* @param args - | ||
* \ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus | ||
* \ @defaultNested {Hypermedia link resolution failed: none of the configured actors were able to resolve links from metadata} busFailMessage | ||
*/ | ||
constructor(args: IActorRdfResolveHypermediaLinksArgs); | ||
constructor(args: IActorRdfResolveHypermediaLinksArgs<TS>); | ||
} | ||
@@ -35,30 +36,3 @@ export interface IActionRdfResolveHypermediaLinks extends IAction { | ||
} | ||
/** | ||
* A link holder that can expose additional properties. | ||
*/ | ||
export interface ILink { | ||
/** | ||
* The URL identifying this link. | ||
*/ | ||
url: string; | ||
/** | ||
* An optional stream modifier. | ||
* This transformation will be applied on the stream of data quads that is obtained from dereferencing the given URL. | ||
* @param input The stream of data quads on the given URL. | ||
* @returns The stream of data quads to be used for this link instead of the given stream. | ||
*/ | ||
transform?: (input: RDF.Stream) => Promise<RDF.Stream>; | ||
/** | ||
* Optional context to apply onto mediators when handling this link as source. | ||
* All entries of this context will be added (or overwritten) into the existing context. | ||
*/ | ||
context?: IActionContext; | ||
/** | ||
* An optional link-specific metadata object. | ||
* This may be used to keep track of data that is relevant to links, | ||
* which could be used across actors. | ||
*/ | ||
metadata?: Record<string, any>; | ||
} | ||
export type IActorRdfResolveHypermediaLinksArgs = IActorArgs<IActionRdfResolveHypermediaLinks, IActorTest, IActorRdfResolveHypermediaLinksOutput>; | ||
export type IActorRdfResolveHypermediaLinksArgs<TS = undefined> = IActorArgs<IActionRdfResolveHypermediaLinks, IActorTest, IActorRdfResolveHypermediaLinksOutput, TS>; | ||
export type MediatorRdfResolveHypermediaLinks = Mediate<IActionRdfResolveHypermediaLinks, IActorRdfResolveHypermediaLinksOutput>; |
@@ -17,5 +17,9 @@ "use strict"; | ||
class ActorRdfResolveHypermediaLinks extends core_1.Actor { | ||
/* eslint-disable max-len */ | ||
/** | ||
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus | ||
* @param args - | ||
* \ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus | ||
* \ @defaultNested {Hypermedia link resolution failed: none of the configured actors were able to resolve links from metadata} busFailMessage | ||
*/ | ||
/* eslint-enable max-len */ | ||
constructor(args) { | ||
@@ -22,0 +26,0 @@ super(args); |
{ | ||
"name": "@comunica/bus-rdf-resolve-hypermedia-links", | ||
"version": "3.2.1", | ||
"version": "3.2.4-alpha.47.0", | ||
"description": "A comunica bus for rdf-resolve-hypermedia-links events.", | ||
"lsd:module": true, | ||
"license": "MIT", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/comunica-association" | ||
}, | ||
"homepage": "https://comunica.dev/", | ||
@@ -39,7 +43,6 @@ "repository": { | ||
"dependencies": { | ||
"@comunica/core": "^3.2.1", | ||
"@comunica/types": "^3.2.1", | ||
"@rdfjs/types": "*" | ||
"@comunica/core": "3.2.4-alpha.47.0", | ||
"@comunica/types": "3.2.4-alpha.47.0" | ||
}, | ||
"gitHead": "f558377c3cefbd1606c51ede80440b862e7dda4f" | ||
"gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
22816
2
0
82
1
+ Added@comunica/core@3.2.4-alpha.47.0(transitive)
+ Added@comunica/types@3.2.4-alpha.47.0(transitive)
+ Addedlru-cache@10.4.3(transitive)
- Removed@rdfjs/types@*
- Removed@comunica/core@3.3.0(transitive)
- Removed@comunica/types@3.3.0(transitive)