@comunica/core
Advanced tools
Comparing version 2.0.7-alpha.10.0 to 2.2.0
@@ -17,2 +17,3 @@ import type { IActionContext, IActionContextKey } from '@comunica/types'; | ||
getRaw(key: string): any | undefined; | ||
getSafe<V>(key: IActionContextKey<V>): V; | ||
has<V>(key: IActionContextKey<V>): boolean; | ||
@@ -19,0 +20,0 @@ hasRaw(key: string): boolean; |
@@ -33,2 +33,8 @@ "use strict"; | ||
} | ||
getSafe(key) { | ||
if (!this.has(key)) { | ||
throw new Error(`Context entry ${key.name} is required but not available`); | ||
} | ||
return this.get(key); | ||
} | ||
has(key) { | ||
@@ -35,0 +41,0 @@ return this.hasRaw(key.name); |
@@ -115,1 +115,3 @@ import type { ActionObserver } from './ActionObserver'; | ||
} | ||
export declare type IReply<I extends IAction = IAction, O extends IActorOutput = IActorOutput, T extends IActorTest = IActorTest> = IActorReply<Actor<I, T, O>, I, T, O>; | ||
export declare type IBus<I extends IAction = IAction, O extends IActorOutput = IActorOutput, T extends IActorTest = IActorTest> = Bus<Actor<I, T, O>, I, T, O>; |
{ | ||
"name": "@comunica/core", | ||
"version": "2.0.7-alpha.10.0", | ||
"version": "2.2.0", | ||
"description": "Lightweight, semantic and modular actor framework", | ||
@@ -38,4 +38,4 @@ "lsd:module": true, | ||
"dependencies": { | ||
"@comunica/types": "2.0.7-alpha.10.0", | ||
"immutable": "^3.8.2" | ||
"@comunica/types": "^2.2.0", | ||
"immutable": "^4.0.0" | ||
}, | ||
@@ -47,3 +47,3 @@ "scripts": { | ||
}, | ||
"gitHead": "9ad64da7bae9dda857e12b7bb0b3af58d5f0f2af" | ||
"gitHead": "00d4108e46250fb94b586bfb8caf5e8b1c704160" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
99083
1124
0
+ Added@comunica/types@2.10.0(transitive)
+ Addedimmutable@4.3.7(transitive)
- Removed@comunica/types@2.0.7-alpha.10.0(transitive)
- Removedimmutable@3.8.2(transitive)
Updated@comunica/types@^2.2.0
Updatedimmutable@^4.0.0