Skip to content

Commit e76a32b

Browse files
authored
refactor: Remove lodash.get dependency (#154)
1 parent 7a1e724 commit e76a32b

13 files changed

+337
-249
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@
5252
"graphql": "^16.0.0",
5353
"inflection": "^3.0.0",
5454
"jsonld": "^8.3.2",
55-
"jsonref": "^9.0.0",
56-
"lodash.get": "^4.4.0"
55+
"jsonref": "^9.0.0"
5756
},
5857
"devDependencies": {
5958
"@types/inflection": "^1.13.0",
6059
"@types/jsonld": "^1.5.0",
61-
"@types/lodash.get": "^4.4.0",
6260
"@types/node": "^22.0.0",
6361
"@vitest/coverage-v8": "3.2.2",
6462
"globals": "^15.14.0",

pnpm-lock.yaml

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/hydra/fetchJsonLd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Document, JsonLd, RemoteDocument } from "jsonld/jsonld-spec.js";
2-
import type { RequestInitExtended } from "./types.js";
2+
import type { RequestInitExtended } from "../types.js";
33

44
const jsonLdMimeType = "application/ld+json";
55
const jsonProblemMimeType = "application/problem+json";

src/hydra/fetchResource.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fetchJsonLd from "./fetchJsonLd.js";
2-
import type { IriTemplateMapping, RequestInitExtended } from "./types.js";
2+
import type { IriTemplateMapping } from "./types.js";
3+
import type { RequestInitExtended } from "../types.js";
34

45
export default async function fetchResource(
56
resourceUrl: string,

src/hydra/getParameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Parameter } from "../Parameter.js";
22
import fetchResource from "./fetchResource.js";
33
import type { Resource } from "../Resource.js";
4-
import type { RequestInitExtended } from "./types.js";
4+
import type { RequestInitExtended } from "../types.js";
55

66
export default async function getParameters(
77
resource: Resource,

0 commit comments

Comments
 (0)