@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.8",
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: Record<string, any>): Record<string, any>
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
 
@@ -267,7 +267,6 @@ export class Representation {
267
267
  if (TEMPLATE.test(link.href)) link.templated = true
268
268
 
269
269
  // e.g. 'mco:rel'
270
-
271
270
  Reflect.set(links, key, (
272
271
  Reflect.has(links, key)
273
272
  ? [].concat(Reflect.get(links, key), link)
@@ -22,7 +22,6 @@ export class RepresentationFactory {
22
22
  }
23
23
 
24
24
  getRequestPath () {
25
- console.log(this.getRequest()?.path)
26
25
  return this.getRequest()?.path
27
26
  }
28
27