@comunica/actor-query-operation-ask 2.0.1-alpha.5.0 → 2.0.1-alpha.6.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.
|
@@ -111,19 +111,10 @@
|
|
|
111
111
|
"comment": "Actor that must be registered in the bus before this actor."
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"@id": "caqoa:components/ActorQueryOperationAsk.jsonld#ActorQueryOperationAsk__member_testOperation",
|
|
121
|
-
"memberFieldName": "testOperation"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"@id": "caqoa:components/ActorQueryOperationAsk.jsonld#ActorQueryOperationAsk__member_runOperation",
|
|
125
|
-
"memberFieldName": "runOperation"
|
|
126
|
-
}
|
|
114
|
+
"memberKeys": [
|
|
115
|
+
"constructor",
|
|
116
|
+
"testOperation",
|
|
117
|
+
"runOperation"
|
|
127
118
|
],
|
|
128
119
|
"constructorArguments": [
|
|
129
120
|
{
|
|
@@ -16,7 +16,7 @@ class ActorQueryOperationAsk extends bus_query_operation_1.ActorQueryOperationTy
|
|
|
16
16
|
// Call other query operations like this:
|
|
17
17
|
const output = await this.mediatorQueryOperation.mediate({ operation: operation.input, context });
|
|
18
18
|
const bindings = bus_query_operation_1.ActorQueryOperation.getSafeBindings(output);
|
|
19
|
-
const
|
|
19
|
+
const execute = () => new Promise((resolve, reject) => {
|
|
20
20
|
// Resolve to true if we find one element, and close immediately
|
|
21
21
|
bindings.bindingsStream.once('data', () => {
|
|
22
22
|
resolve(true);
|
|
@@ -27,7 +27,7 @@ class ActorQueryOperationAsk extends bus_query_operation_1.ActorQueryOperationTy
|
|
|
27
27
|
// Reject if an error occurs in the stream
|
|
28
28
|
bindings.bindingsStream.on('error', reject);
|
|
29
29
|
});
|
|
30
|
-
return { type: 'boolean',
|
|
30
|
+
return { type: 'boolean', execute };
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.ActorQueryOperationAsk = ActorQueryOperationAsk;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-ask",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.6.0",
|
|
4
4
|
"description": "A ask query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
|
+
"sideEffects": false,
|
|
16
17
|
"keywords": [
|
|
17
18
|
"comunica",
|
|
18
19
|
"actor",
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
"lib/**/*.js"
|
|
31
32
|
],
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@comunica/bus-query-operation": "2.0.1-alpha.
|
|
34
|
-
"@comunica/core": "2.0.1-alpha.
|
|
35
|
-
"@comunica/types": "2.0.1-alpha.
|
|
34
|
+
"@comunica/bus-query-operation": "2.0.1-alpha.6.0",
|
|
35
|
+
"@comunica/core": "2.0.1-alpha.6.0",
|
|
36
|
+
"@comunica/types": "2.0.1-alpha.6.0",
|
|
36
37
|
"sparqlalgebrajs": "^4.0.0"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
@@ -40,5 +41,5 @@
|
|
|
40
41
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
41
42
|
"build:components": "componentsjs-generator"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "bbf46a068e635256495a40e784a4691b22e88bd3"
|
|
44
45
|
}
|