@comunica/actor-query-operation-update-compositeupdate 2.4.0 → 2.5.1-alpha.32.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorQueryOperationUpdateCompositeUpdate.js","sourceRoot":"","sources":["ActorQueryOperationUpdateCompositeUpdate.ts"],"names":[],"mappings":";;;AACA,uEAGuC;AAKvC;;GAEG;AACH,MAAa,wCACX,SAAQ,sDAAyD;IACjE,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,aAAa,CACxB,SAAkC,EAClC,OAAuB;QAEvB,yCAAmB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,iBAA0C,EAAE,OAAuB;QAE3F,MAAM,OAAO,GAAG,GAAkB,EAAE,CAAC,CAAC,KAAK,IAAkB,EAAE;YAC7D,wCAAwC;YACxC,KAAK,MAAM,SAAS,IAAI,iBAAiB,CAAC,OAAO,EAAE;gBACjD,MAAM,SAAS,GAAG,yCAAmB;qBAClC,WAAW,CAAC,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBAClF,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;aAC3B;QACH,CAAC,CAAC,EAAE,CAAC;QAEL,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO;SACR,CAAC;IACJ,CAAC;CACF;AA9BD,4FA8BC","sourcesContent":["import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport {\n ActorQueryOperation,\n ActorQueryOperationTypedMediated,\n} from '@comunica/bus-query-operation';\nimport type { IActorTest } from '@comunica/core';\nimport type { IActionContext, IQueryOperationResult } from '@comunica/types';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica Update CompositeUpdate Query Operation Actor.\n */\nexport class ActorQueryOperationUpdateCompositeUpdate\n extends ActorQueryOperationTypedMediated<Algebra.CompositeUpdate> {\n public constructor(args: IActorQueryOperationTypedMediatedArgs) {\n super(args, 'compositeupdate');\n }\n\n public async testOperation(\n operation: Algebra.CompositeUpdate,\n context: IActionContext,\n ): Promise<IActorTest> {\n ActorQueryOperation.throwOnReadOnly(context);\n return true;\n }\n\n public async runOperation(operationOriginal: Algebra.CompositeUpdate, context: IActionContext):\n Promise<IQueryOperationResult> {\n const execute = (): Promise<void> => (async(): Promise<void> => {\n // Execute update operations in sequence\n for (const operation of operationOriginal.updates) {\n const subResult = ActorQueryOperation\n .getSafeVoid(await this.mediatorQueryOperation.mediate({ operation, context }));\n await subResult.execute();\n }\n })();\n\n return {\n type: 'void',\n execute,\n };\n }\n}\n"]}
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA2D","sourcesContent":["export * from './ActorQueryOperationUpdateCompositeUpdate';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-update-compositeupdate",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1-alpha.32.0",
|
|
4
4
|
"description": "A update-compositeupdate query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -24,12 +24,13 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"components",
|
|
26
26
|
"lib/**/*.d.ts",
|
|
27
|
-
"lib/**/*.js"
|
|
27
|
+
"lib/**/*.js",
|
|
28
|
+
"lib/**/*.js.map"
|
|
28
29
|
],
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@comunica/bus-query-operation": "
|
|
31
|
-
"@comunica/core": "
|
|
32
|
-
"@comunica/types": "
|
|
31
|
+
"@comunica/bus-query-operation": "2.5.1-alpha.32.0",
|
|
32
|
+
"@comunica/core": "2.5.1-alpha.32.0",
|
|
33
|
+
"@comunica/types": "2.5.1-alpha.32.0",
|
|
33
34
|
"sparqlalgebrajs": "^4.0.2"
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
@@ -37,5 +38,5 @@
|
|
|
37
38
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
38
39
|
"build:components": "componentsjs-generator"
|
|
39
40
|
},
|
|
40
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "3f04fbcb28737ec68227d694c127236ecf46235d"
|
|
41
42
|
}
|