@comunica/bus-function-factory 4.4.0 → 4.4.2-alpha.49.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.
- package/components/ActorFunctionFactory.jsonld +0 -0
- package/components/ActorFunctionFactoryDedicated.jsonld +0 -0
- package/components/BusFunctionFactory.jsonld +0 -0
- package/components/components.jsonld +0 -0
- package/components/context.jsonld +0 -0
- package/lib/ActorFunctionFactory.d.ts +1 -1
- package/lib/ActorFunctionFactory.js +0 -0
- package/lib/ActorFunctionFactory.js.map +1 -1
- package/lib/ActorFunctionFactoryDedicated.d.ts +0 -0
- package/lib/ActorFunctionFactoryDedicated.js +0 -0
- package/lib/ActorFunctionFactoryDedicated.js.map +0 -0
- package/lib/BusFunctionFactory.d.ts +0 -0
- package/lib/BusFunctionFactory.js +0 -0
- package/lib/BusFunctionFactory.js.map +0 -0
- package/lib/implementation/Core.d.ts +0 -0
- package/lib/implementation/Core.js +0 -0
- package/lib/implementation/Core.js.map +0 -0
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -0
- package/lib/index.js.map +0 -0
- package/package.json +7 -7
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';
|
|
2
2
|
import { Actor, Mediator } from '@comunica/core';
|
|
3
3
|
import type { Expression, IEvalContext, IInternalEvaluator, TermExpression } from '@comunica/types';
|
|
4
|
-
import type { Algebra as Alg } from '
|
|
4
|
+
import type { Algebra as Alg } from '@comunica/utils-algebra';
|
|
5
5
|
/**
|
|
6
6
|
* A comunica actor for function factory events.
|
|
7
7
|
*
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorFunctionFactory.js","sourceRoot":"","sources":["ActorFunctionFactory.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAIjD;;;;;;;;;;;GAWG;AACH,MAAsB,oBAAqC,SACzD,YAA0E;IAC1E,4BAA4B;IAC5B;;;;OAIG;IACH,2BAA2B;IAC3B,YAAmB,IAAmC;QACpD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CAIF;AAfD,oDAeC;AA2CD,MAAsB,uBAAwB,SAAQ,eAKrD;CAGA;AARD,0DAQC","sourcesContent":["import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';\nimport { Actor, Mediator } from '@comunica/core';\nimport type { Expression, IEvalContext, IInternalEvaluator, TermExpression } from '@comunica/types';\nimport type { Algebra as Alg } from '
|
|
1
|
+
{"version":3,"file":"ActorFunctionFactory.js","sourceRoot":"","sources":["ActorFunctionFactory.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAIjD;;;;;;;;;;;GAWG;AACH,MAAsB,oBAAqC,SACzD,YAA0E;IAC1E,4BAA4B;IAC5B;;;;OAIG;IACH,2BAA2B;IAC3B,YAAmB,IAAmC;QACpD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CAIF;AAfD,oDAeC;AA2CD,MAAsB,uBAAwB,SAAQ,eAKrD;CAGA;AARD,0DAQC","sourcesContent":["import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';\nimport { Actor, Mediator } from '@comunica/core';\nimport type { Expression, IEvalContext, IInternalEvaluator, TermExpression } from '@comunica/types';\nimport type { Algebra as Alg } from '@comunica/utils-algebra';\n\n/**\n * A comunica actor for function factory events.\n *\n * Actor types:\n * * Input: IActionFunctions: A request to receive a function implementation for a given function name\n * and potentially the function arguments.\n * * Test: <none>\n * * Output: IActorFunctionsOutput: A function implementation.\n *\n * @see IActionFunctionFactory\n * @see IActorFunctionFactoryOutput\n */\nexport abstract class ActorFunctionFactory<TS = undefined> extends\n Actor<IActionFunctionFactory, IActorTest, IActorFunctionFactoryOutput, TS> {\n /* eslint-disable max-len */\n /**\n * @param args -\n * \\ @defaultNested {<default_bus> a <cbff:components/BusFunctionFactory.jsonld#BusFunctionFactory>} bus\n * \\ @defaultNested {Creation of function evaluator failed: no configured actor was able to evaluate function ${action.functionName}} busFailMessage\n */\n /* eslint-enable max-len */\n public constructor(args: IActorFunctionFactoryArgs<TS>) {\n super(args);\n }\n\n public abstract override run<T extends IActionFunctionFactory>(action: T):\n Promise<T extends { requireTermExpression: true } ? IActorFunctionFactoryOutputTerm : IActorFunctionFactoryOutput>;\n}\n\nexport interface IExpressionFunction {\n apply: (evalContext: IEvalContext) => Promise<TermExpression>;\n /**\n * The arity of the function will be checked when parsing and preparing a function.\n * This allows us to check if the query is correct even before we process any bindings.\n */\n checkArity: (args: Expression[]) => boolean;\n}\n\nexport interface ITermFunction extends IExpressionFunction {\n supportsTermExpressions: true;\n applyOnTerms: (args: TermExpression[], exprEval: IInternalEvaluator) => TermExpression;\n}\nexport interface IActionFunctionFactory extends IAction {\n /**\n * The name of the function to retrieve. Can be any string, a function name, or a URL.\n */\n functionName: string;\n /**\n * The arguments of the function, if they are known, and don't change.\n */\n arguments?: Alg.Expression[];\n /**\n * Whether the function should return a term expression.\n */\n requireTermExpression?: boolean;\n}\n\nexport interface IActorFunctionFactoryOutput extends IActorOutput, IExpressionFunction {}\n\nexport interface IActorFunctionFactoryOutputTerm extends IActorOutput, ITermFunction {}\n\nexport type IActorFunctionFactoryArgs<TS = undefined> = IActorArgs<\nIActionFunctionFactory,\nIActorTest,\nIActorFunctionFactoryOutput,\nTS\n>;\n\nexport type MediatorFunctionFactoryUnsafe = Mediate<IActionFunctionFactory, IActorFunctionFactoryOutput>;\n\nexport abstract class MediatorFunctionFactory extends Mediator<\nActor<IActionFunctionFactory, IActorTest, IActorFunctionFactoryOutput>,\nIActionFunctionFactory,\nIActorTest,\nIActorFunctionFactoryOutput\n> {\n public abstract override mediate: <T extends IActionFunctionFactory>(action: T) =>\n Promise<T extends { requireTermExpression: true } ? IActorFunctionFactoryOutputTerm : IActorFunctionFactoryOutput>;\n}\n"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
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-function-factory",
|
|
3
|
-
"version": "4.4.0",
|
|
3
|
+
"version": "4.4.2-alpha.49.0",
|
|
4
4
|
"description": "A comunica bus for function factory events.",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"build:components": "componentsjs-generator"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@comunica/context-entries": "
|
|
40
|
-
"@comunica/core": "
|
|
41
|
-
"@comunica/types": "
|
|
42
|
-
"@comunica/utils-
|
|
43
|
-
"
|
|
39
|
+
"@comunica/context-entries": "4.4.2-alpha.49.0",
|
|
40
|
+
"@comunica/core": "4.4.2-alpha.49.0",
|
|
41
|
+
"@comunica/types": "4.4.2-alpha.49.0",
|
|
42
|
+
"@comunica/utils-algebra": "4.4.2-alpha.49.0",
|
|
43
|
+
"@comunica/utils-expression-evaluator": "4.4.2-alpha.49.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ef6f96cfd8faf7c37955bb7e0fe9f6fc6a994bdf"
|
|
46
46
|
}
|