@comunica/actor-dereference-fallback 3.2.4-alpha.47.0 → 3.3.0

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.
@@ -44,10 +44,6 @@
44
44
  {
45
45
  "@type": "ParameterRangeGenericTypeReference",
46
46
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
47
- },
48
- {
49
- "@type": "ParameterRangeGenericTypeReference",
50
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
51
47
  }
52
48
  ]
53
49
  },
@@ -62,10 +58,6 @@
62
58
  {
63
59
  "@type": "ParameterRangeGenericTypeReference",
64
60
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
65
- },
66
- {
67
- "@type": "ParameterRangeGenericTypeReference",
68
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
69
61
  }
70
62
  ]
71
63
  },
@@ -75,20 +67,6 @@
75
67
  },
76
68
  "comment": "The bus this actor subscribes to."
77
69
  },
78
- {
79
- "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_busFailMessage",
80
- "range": {
81
- "@type": "ParameterRangeUnion",
82
- "parameterRangeElements": [
83
- "xsd:string",
84
- {
85
- "@type": "ParameterRangeUndefined"
86
- }
87
- ]
88
- },
89
- "default": "Dereferencing failed: none of the configured actors were able to handle ${action.url}",
90
- "comment": "The message that will be configured in the bus for reporting failures. This message may be a template string that contains references to the executed `action`. For example, the following templated string is allowed: \"RDF dereferencing failed: no actors could handle ${action.handle.mediaType}\""
91
- },
92
70
  {
93
71
  "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_beforeActors",
94
72
  "range": {
@@ -111,10 +89,6 @@
111
89
  {
112
90
  "@type": "ParameterRangeGenericTypeReference",
113
91
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
114
- },
115
- {
116
- "@type": "ParameterRangeGenericTypeReference",
117
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
118
92
  }
119
93
  ]
120
94
  }
@@ -157,12 +131,6 @@
157
131
  "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_bus"
158
132
  }
159
133
  },
160
- {
161
- "keyRaw": "busFailMessage",
162
- "value": {
163
- "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_busFailMessage"
164
- }
165
- },
166
134
  {
167
135
  "keyRaw": "beforeActors",
168
136
  "value": {
@@ -14,9 +14,6 @@
14
14
  "args_bus": {
15
15
  "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_bus"
16
16
  },
17
- "args_busFailMessage": {
18
- "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_busFailMessage"
19
- },
20
17
  "args_beforeActors": {
21
18
  "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_beforeActors",
22
19
  "@container": "@list"
@@ -27,9 +24,6 @@
27
24
  "bus": {
28
25
  "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_bus"
29
26
  },
30
- "busFailMessage": {
31
- "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_busFailMessage"
32
- },
33
27
  "beforeActors": {
34
28
  "@id": "cadf:components/ActorDereferenceFallback.jsonld#ActorDereferenceFallback_args_beforeActors",
35
29
  "@container": "@list"
@@ -1,11 +1,11 @@
1
1
  import type { IActionDereference, IActorDereferenceOutput, IActorDereferenceArgs } from '@comunica/bus-dereference';
2
2
  import { ActorDereference } from '@comunica/bus-dereference';
3
- import type { IActorTest, TestResult } from '@comunica/core';
3
+ import type { IActorTest } from '@comunica/core';
4
4
  /**
5
5
  * A comunica Fallback Dereference Actor.
6
6
  */
7
7
  export declare class ActorDereferenceFallback extends ActorDereference {
8
8
  constructor(args: IActorDereferenceArgs);
9
- test(_action: IActionDereference): Promise<TestResult<IActorTest>>;
9
+ test(_action: IActionDereference): Promise<IActorTest>;
10
10
  run(action: IActionDereference): Promise<IActorDereferenceOutput>;
11
11
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActorDereferenceFallback = void 0;
4
4
  const bus_dereference_1 = require("@comunica/bus-dereference");
5
- const core_1 = require("@comunica/core");
6
5
  /**
7
6
  * A comunica Fallback Dereference Actor.
8
7
  */
@@ -11,7 +10,7 @@ class ActorDereferenceFallback extends bus_dereference_1.ActorDereference {
11
10
  super(args);
12
11
  }
13
12
  async test(_action) {
14
- return (0, core_1.passTestVoid)();
13
+ return true;
15
14
  }
16
15
  async run(action) {
17
16
  return this.handleDereferenceErrors(action, new Error(`Could not dereference '${action.url}'`));
@@ -1 +1 @@
1
- {"version":3,"file":"ActorDereferenceFallback.js","sourceRoot":"","sources":["ActorDereferenceFallback.ts"],"names":[],"mappings":";;;AACA,+DAA6D;AAE7D,yCAA8C;AAE9C;;GAEG;AACH,MAAa,wBAAyB,SAAQ,kCAAgB;IAC5D,YAAmB,IAA2B;QAC5C,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAA2B;QAC3C,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,MAA0B;QACzC,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IAClG,CAAC;CACF;AAZD,4DAYC","sourcesContent":["import type { IActionDereference, IActorDereferenceOutput, IActorDereferenceArgs } from '@comunica/bus-dereference';\nimport { ActorDereference } from '@comunica/bus-dereference';\nimport type { IActorTest, TestResult } from '@comunica/core';\nimport { passTestVoid } from '@comunica/core';\n\n/**\n * A comunica Fallback Dereference Actor.\n */\nexport class ActorDereferenceFallback extends ActorDereference {\n public constructor(args: IActorDereferenceArgs) {\n super(args);\n }\n\n public async test(_action: IActionDereference): Promise<TestResult<IActorTest>> {\n return passTestVoid();\n }\n\n public async run(action: IActionDereference): Promise<IActorDereferenceOutput> {\n return this.handleDereferenceErrors(action, new Error(`Could not dereference '${action.url}'`));\n }\n}\n"]}
1
+ {"version":3,"file":"ActorDereferenceFallback.js","sourceRoot":"","sources":["ActorDereferenceFallback.ts"],"names":[],"mappings":";;;AACA,+DAA6D;AAG7D;;GAEG;AACH,MAAa,wBAAyB,SAAQ,kCAAgB;IAC5D,YAAmB,IAA2B;QAC5C,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAA2B;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,MAA0B;QACzC,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IAClG,CAAC;CACF;AAZD,4DAYC","sourcesContent":["import type { IActionDereference, IActorDereferenceOutput, IActorDereferenceArgs } from '@comunica/bus-dereference';\nimport { ActorDereference } from '@comunica/bus-dereference';\nimport type { IActorTest } from '@comunica/core';\n\n/**\n * A comunica Fallback Dereference Actor.\n */\nexport class ActorDereferenceFallback extends ActorDereference {\n public constructor(args: IActorDereferenceArgs) {\n super(args);\n }\n\n public async test(_action: IActionDereference): Promise<IActorTest> {\n return true;\n }\n\n public async run(action: IActionDereference): Promise<IActorDereferenceOutput> {\n return this.handleDereferenceErrors(action, new Error(`Could not dereference '${action.url}'`));\n }\n}\n"]}
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "@comunica/actor-dereference-fallback",
3
- "version": "3.2.4-alpha.47.0",
3
+ "version": "3.3.0",
4
4
  "description": "A fallback dereference actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
7
- "funding": {
8
- "type": "opencollective",
9
- "url": "https://opencollective.com/comunica-association"
10
- },
11
7
  "homepage": "https://comunica.dev/",
12
8
  "repository": {
13
9
  "type": "git",
@@ -41,8 +37,8 @@
41
37
  "build:components": "componentsjs-generator"
42
38
  },
43
39
  "dependencies": {
44
- "@comunica/bus-dereference": "3.2.4-alpha.47.0",
45
- "@comunica/core": "3.2.4-alpha.47.0"
40
+ "@comunica/bus-dereference": "^3.3.0",
41
+ "@comunica/core": "^3.3.0"
46
42
  },
47
- "gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
43
+ "gitHead": "02bde397d206f1f5a523643a6a604c89e792e2f9"
48
44
  }