Skip to content

Commit 90dd48c

Browse files
committed
chore: bump deps
1 parent 9d05723 commit 90dd48c

File tree

3 files changed

+1323
-1122
lines changed

3 files changed

+1323
-1122
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@
2020
"@types/jest": "^29.0.0",
2121
"@types/jsonld": "^1.5.0",
2222
"@types/lodash.get": "^4.4.0",
23-
"@types/node": "^18.0.0",
24-
"@typescript-eslint/eslint-plugin": "^5.0.0",
25-
"@typescript-eslint/parser": "^5.0.0",
26-
"eslint": "^8.0.0",
27-
"eslint-config-prettier": "^8.0.0",
23+
"@types/node": "^22.0.0",
24+
"@typescript-eslint/eslint-plugin": "^8.0.0",
25+
"@typescript-eslint/parser": "^8.0.0",
26+
"eslint": "^9.0.0",
27+
"eslint-config-prettier": "^10.0.0",
2828
"eslint-import-resolver-typescript": "^3.5.1",
2929
"eslint-plugin-import": "^2.26.0",
30-
"eslint-plugin-prettier": "^4.0.0",
30+
"eslint-plugin-prettier": "^5.0.0",
3131
"eslint-watch": "^8.0.0",
3232
"jest": "^29.0.0",
3333
"jest-fetch-mock": "^3.0.0",
3434
"openapi-types": "^12.0.0",
35-
"prettier": "^2.2.0",
35+
"prettier": "^3.0.0",
3636
"ts-jest": "^29.0.0",
3737
"ts-node": "^10.9.0",
38-
"typescript": "^4.1.0"
38+
"typescript": "^5.7.0"
3939
},
4040
"dependencies": {
4141
"graphql": "^16.0.0",
42-
"inflection": "^1.13.0",
42+
"inflection": "^3.0.0",
4343
"jsonld": "^8.3.2",
44-
"jsonref": "^8.0.0",
44+
"jsonref": "^9.0.0",
4545
"lodash.get": "^4.4.0",
4646
"tslib": "^2.0.0"
4747
},

src/hydra/fetchResource.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import get from "lodash.get";
21
import type { EmptyResponseDocument, ResponseDocument } from "./fetchJsonLd.js";
32
import fetchJsonLd from "./fetchJsonLd.js";
43
import type { IriTemplateMapping, RequestInitExtended } from "./types.js";
@@ -16,10 +15,8 @@ export default (
1615
hasPrefix = "hydra:search" in (d as ResponseDocument).body;
1716
}
1817
return {
19-
parameters: get(
20-
d,
21-
hasPrefix ? "body.hydra:search.hydra:mapping" : "body.search.mapping"
22-
) as unknown as IriTemplateMapping[],
18+
parameters:
19+
(hasPrefix ? (d as any)?.body?.["hydra:search"]?.["hydra:mapping"] : (d as any)?.body?.search?.mapping) as unknown as IriTemplateMapping[],
2320
};
2421
});
2522
};

0 commit comments

Comments
 (0)