@modernpoacher/halacious 7.0.8 → 7.0.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/halacious",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9",
|
|
4
4
|
"description": "A HAL processor for Hapi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HAL",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"@hapi/vision": "^7.0.3",
|
|
60
60
|
"@modernpoacher/hooks": "^1.0.459",
|
|
61
61
|
"@sequencemedia/sinon-chai": "^0.0.6",
|
|
62
|
+
"@types/negotiator": "^0.6.3",
|
|
62
63
|
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
63
64
|
"@typescript-eslint/parser": "^6.19.1",
|
|
64
65
|
"chai": "^5.0.3",
|
package/src/index.d.mts
CHANGED
|
@@ -107,7 +107,7 @@ declare module '@modernpoacher/halacious/utils' {
|
|
|
107
107
|
|
|
108
108
|
export function isResponseStatusCodeInSuccessRange (statusCode: number | undefined): boolean
|
|
109
109
|
|
|
110
|
-
export function getFieldValueByPath (path?: string, context
|
|
110
|
+
export function getFieldValueByPath (path?: string, context?: Record<string, any>): Record<string, any>
|
|
111
111
|
|
|
112
112
|
export function getMediaType (request: { headers: Negotiator.Headers }, mediaTypes: string[]): string
|
|
113
113
|
|
package/src/representation.mjs
CHANGED