@comunica/actor-abstract-mediatyped
Advanced tools
Comparing version 2.8.2 to 2.10.0
@@ -9,3 +9,3 @@ import type { IActionContext } from '@comunica/types'; | ||
constructor(args: IActorArgsMediaTypedFixed<HI, HT, HO>); | ||
testHandle(action: HI, mediaType: string, context: IActionContext): Promise<HT>; | ||
testHandle(action: HI, mediaType: string | undefined, context: IActionContext): Promise<HT>; | ||
/** | ||
@@ -12,0 +12,0 @@ * Check to see if this actor can handle the given action. |
@@ -18,3 +18,3 @@ "use strict"; | ||
async testHandle(action, mediaType, context) { | ||
if (!(mediaType in this.mediaTypePriorities)) { | ||
if (!mediaType || !(mediaType in this.mediaTypePriorities)) { | ||
throw new Error(`Unrecognized media type: ${mediaType}`); | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "@comunica/actor-abstract-mediatyped", | ||
"version": "2.8.2", | ||
"version": "2.10.0", | ||
"description": "An abstract actor for handling mediatypes", | ||
@@ -35,4 +35,4 @@ "lsd:module": true, | ||
"dependencies": { | ||
"@comunica/core": "^2.8.2", | ||
"@comunica/types": "^2.8.2" | ||
"@comunica/core": "^2.10.0", | ||
"@comunica/types": "^2.10.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "scripts": { | ||
}, | ||
"gitHead": "293cf4edac83099ee3146a68161bea6b77edf300" | ||
"gitHead": "4d8603ca7e7606ca8eaef305e8753b3f91668f4e" | ||
} |
Sorry, the diff of this file is not supported yet
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
68135
Updated@comunica/core@^2.10.0
Updated@comunica/types@^2.10.0