@comunica/bus-rdf-update-hypermedia 4.5.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ $ yarn add @comunica/bus-rdf-update-hypermedia
17
17
 
18
18
  ## Bus usage
19
19
 
20
- * **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^4.0.0/components/context.jsonld"`
20
+ * **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^5.0.0/components/context.jsonld"`
21
21
  * **Bus name**: `ActorRdfUpdateHypermedia:_default_bus`
22
22
 
23
23
  ## Creating actors on this bus
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^4.0.0/components/context.jsonld",
4
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^5.0.0/components/context.jsonld",
4
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^5.0.0/components/context.jsonld"
5
5
  ],
6
6
  "@id": "npmd:@comunica/bus-rdf-update-hypermedia",
7
7
  "components": [
@@ -59,37 +59,37 @@
59
59
  "genericTypeInstances": [
60
60
  {
61
61
  "@type": "ParameterRangeGenericTypeReference",
62
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
62
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
63
63
  },
64
64
  {
65
65
  "@type": "ParameterRangeGenericTypeReference",
66
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
66
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
67
67
  },
68
68
  {
69
69
  "@type": "ParameterRangeGenericTypeReference",
70
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
70
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
71
71
  },
72
72
  {
73
73
  "@type": "ParameterRangeGenericTypeReference",
74
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
74
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
75
75
  }
76
76
  ]
77
77
  },
78
78
  {
79
79
  "@type": "ParameterRangeGenericTypeReference",
80
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
80
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
81
81
  },
82
82
  {
83
83
  "@type": "ParameterRangeGenericTypeReference",
84
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
84
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
85
85
  },
86
86
  {
87
87
  "@type": "ParameterRangeGenericTypeReference",
88
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
88
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
89
89
  },
90
90
  {
91
91
  "@type": "ParameterRangeGenericTypeReference",
92
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
92
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
93
93
  }
94
94
  ]
95
95
  },
@@ -126,19 +126,19 @@
126
126
  "genericTypeInstances": [
127
127
  {
128
128
  "@type": "ParameterRangeGenericTypeReference",
129
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
129
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
130
130
  },
131
131
  {
132
132
  "@type": "ParameterRangeGenericTypeReference",
133
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
133
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
134
134
  },
135
135
  {
136
136
  "@type": "ParameterRangeGenericTypeReference",
137
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
137
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
138
138
  },
139
139
  {
140
140
  "@type": "ParameterRangeGenericTypeReference",
141
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
141
+ "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^5.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/bus-rdf-update-hypermedia",
6
6
  "@type": "Module",
@@ -3,7 +3,7 @@
3
3
  "https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
4
4
  {
5
5
  "npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
6
- "cbruh": "npmd:@comunica/bus-rdf-update-hypermedia/^4.0.0/",
6
+ "cbruh": "npmd:@comunica/bus-rdf-update-hypermedia/^5.0.0/",
7
7
  "ActorRdfUpdateHypermedia": {
8
8
  "@id": "cbruh:components/ActorRdfUpdateHypermedia.jsonld#ActorRdfUpdateHypermedia",
9
9
  "@prefix": true,
File without changes
@@ -14,6 +14,7 @@ const core_1 = require("@comunica/core");
14
14
  * @see IActorRdfUpdateHypermediaOutput
15
15
  */
16
16
  class ActorRdfUpdateHypermedia extends core_1.Actor {
17
+ destinationType;
17
18
  /* eslint-disable max-len */
18
19
  /**
19
20
  * @param args -
@@ -1 +1 @@
1
- {"version":3,"file":"ActorRdfUpdateHypermedia.js","sourceRoot":"","sources":["ActorRdfUpdateHypermedia.ts"],"names":[],"mappings":";;;AAEA,yCAAiD;AAEjD;;;;;;;;;;GAUG;AACH,MAAsB,wBACpB,SAAQ,YAAkF;IAG1F,4BAA4B;IAC5B;;;;;OAKG;IACH,2BAA2B;IAC3B,YAAmB,IAAuC,EAAE,eAAuB;QACjF,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,MAAkC;QAClD,IAAI,MAAM,CAAC,oBAAoB,IAAI,IAAI,CAAC,eAAe,KAAK,MAAM,CAAC,oBAAoB,EAAE,CAAC;YACxF,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,2CAA2C,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;QAC/G,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAGF;AAzBD,4DAyBC","sourcesContent":["import type { IQuadDestination } from '@comunica/bus-rdf-update-quads';\nimport type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate, TestResult } from '@comunica/core';\nimport { failTest, Actor } from '@comunica/core';\n\n/**\n * A comunica actor for rdf-update-hypermedia events.\n *\n * Actor types:\n * * Input: IActionRdfUpdateHypermedia: The metadata in the document.\n * * Test: <none>\n * * Output: IActorRdfUpdateHypermediaOutput: An RDF destination.\n *\n * @see IActionRdfUpdateHypermedia\n * @see IActorRdfUpdateHypermediaOutput\n */\nexport abstract class ActorRdfUpdateHypermedia<TS = undefined>\n extends Actor<IActionRdfUpdateHypermedia, IActorTest, IActorRdfUpdateHypermediaOutput, TS> {\n protected readonly destinationType: string;\n\n /* eslint-disable max-len */\n /**\n * @param args -\n * \\ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\n * \\ @defaultNested {RDF hypermedia updating failed: none of the configured actors were able to handle an update for ${action.url}} busFailMessage\n * @param destinationType - The destination type.\n */\n /* eslint-enable max-len */\n public constructor(args: IActorRdfUpdateHypermediaArgs<TS>, destinationType: string) {\n super(args);\n this.destinationType = destinationType;\n }\n\n public async test(action: IActionRdfUpdateHypermedia): Promise<TestResult<IActorTest, TS>> {\n if (action.forceDestinationType && this.destinationType !== action.forceDestinationType) {\n return failTest(`Actor ${this.name} is not able to handle destination type ${action.forceDestinationType}.`);\n }\n return this.testMetadata(action);\n }\n\n public abstract testMetadata(action: IActionRdfUpdateHypermedia): Promise<TestResult<IActorTest, TS>>;\n}\n\nexport interface IActionRdfUpdateHypermedia extends IAction {\n /**\n * The URL of the destination that was fetched.\n */\n url: string;\n /**\n * A metadata key-value mapping.\n */\n metadata: Record<string, any>;\n /**\n * If the destination already exists.\n */\n exists: boolean;\n /**\n * The explicitly requested destination type.\n * If set, the destination type of the actor MUST explicitly match the given forced type.\n */\n forceDestinationType?: string;\n}\n\nexport interface IActorRdfUpdateHypermediaOutput extends IActorOutput {\n /**\n * The destination for quads.\n */\n destination: IQuadDestination;\n}\n\nexport type IActorRdfUpdateHypermediaArgs<TS = undefined> = IActorArgs<\nIActionRdfUpdateHypermedia,\nIActorTest,\nIActorRdfUpdateHypermediaOutput,\nTS\n>;\n\nexport type MediatorRdfUpdateHypermedia = Mediate<IActionRdfUpdateHypermedia, IActorRdfUpdateHypermediaOutput>;\n"]}
1
+ {"version":3,"file":"ActorRdfUpdateHypermedia.js","sourceRoot":"","sources":["ActorRdfUpdateHypermedia.ts"],"names":[],"mappings":";;;AAEA,yCAAiD;AAEjD;;;;;;;;;;GAUG;AACH,MAAsB,wBACpB,SAAQ,YAAkF;IACvE,eAAe,CAAS;IAE3C,4BAA4B;IAC5B;;;;;OAKG;IACH,2BAA2B;IAC3B,YAAmB,IAAuC,EAAE,eAAuB;QACjF,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,MAAkC;QAClD,IAAI,MAAM,CAAC,oBAAoB,IAAI,IAAI,CAAC,eAAe,KAAK,MAAM,CAAC,oBAAoB,EAAE,CAAC;YACxF,OAAO,IAAA,eAAQ,EAAC,SAAS,IAAI,CAAC,IAAI,2CAA2C,MAAM,CAAC,oBAAoB,GAAG,CAAC,CAAC;QAC/G,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAGF;AAzBD,4DAyBC","sourcesContent":["import type { IQuadDestination } from '@comunica/bus-rdf-update-quads';\nimport type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate, TestResult } from '@comunica/core';\nimport { failTest, Actor } from '@comunica/core';\n\n/**\n * A comunica actor for rdf-update-hypermedia events.\n *\n * Actor types:\n * * Input: IActionRdfUpdateHypermedia: The metadata in the document.\n * * Test: <none>\n * * Output: IActorRdfUpdateHypermediaOutput: An RDF destination.\n *\n * @see IActionRdfUpdateHypermedia\n * @see IActorRdfUpdateHypermediaOutput\n */\nexport abstract class ActorRdfUpdateHypermedia<TS = undefined>\n extends Actor<IActionRdfUpdateHypermedia, IActorTest, IActorRdfUpdateHypermediaOutput, TS> {\n protected readonly destinationType: string;\n\n /* eslint-disable max-len */\n /**\n * @param args -\n * \\ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\n * \\ @defaultNested {RDF hypermedia updating failed: none of the configured actors were able to handle an update for ${action.url}} busFailMessage\n * @param destinationType - The destination type.\n */\n /* eslint-enable max-len */\n public constructor(args: IActorRdfUpdateHypermediaArgs<TS>, destinationType: string) {\n super(args);\n this.destinationType = destinationType;\n }\n\n public async test(action: IActionRdfUpdateHypermedia): Promise<TestResult<IActorTest, TS>> {\n if (action.forceDestinationType && this.destinationType !== action.forceDestinationType) {\n return failTest(`Actor ${this.name} is not able to handle destination type ${action.forceDestinationType}.`);\n }\n return this.testMetadata(action);\n }\n\n public abstract testMetadata(action: IActionRdfUpdateHypermedia): Promise<TestResult<IActorTest, TS>>;\n}\n\nexport interface IActionRdfUpdateHypermedia extends IAction {\n /**\n * The URL of the destination that was fetched.\n */\n url: string;\n /**\n * A metadata key-value mapping.\n */\n metadata: Record<string, any>;\n /**\n * If the destination already exists.\n */\n exists: boolean;\n /**\n * The explicitly requested destination type.\n * If set, the destination type of the actor MUST explicitly match the given forced type.\n */\n forceDestinationType?: string;\n}\n\nexport interface IActorRdfUpdateHypermediaOutput extends IActorOutput {\n /**\n * The destination for quads.\n */\n destination: IQuadDestination;\n}\n\nexport type IActorRdfUpdateHypermediaArgs<TS = undefined> = IActorArgs<\nIActionRdfUpdateHypermedia,\nIActorTest,\nIActorRdfUpdateHypermediaOutput,\nTS\n>;\n\nexport type MediatorRdfUpdateHypermedia = Mediate<IActionRdfUpdateHypermedia, IActorRdfUpdateHypermediaOutput>;\n"]}
package/lib/index.d.ts CHANGED
File without changes
package/lib/index.js CHANGED
File without changes
package/lib/index.js.map CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/bus-rdf-update-hypermedia",
3
- "version": "4.5.0",
3
+ "version": "5.0.2",
4
4
  "description": "A comunica bus for rdf-update-hypermedia events.",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "build:components": "componentsjs-generator"
41
41
  },
42
42
  "dependencies": {
43
- "@comunica/bus-rdf-update-quads": "^4.5.0",
44
- "@comunica/core": "^4.5.0"
43
+ "@comunica/bus-rdf-update-quads": "^5.0.2",
44
+ "@comunica/core": "^5.0.2"
45
45
  },
46
- "gitHead": "2bcd98c387a021fc5c08d375793c205ca3d1bf0d"
46
+ "gitHead": "3b29f914010fd2fc56682a0ceff962ef6ff24f32"
47
47
  }