Skip to content

Commit fbdc544

Browse files
committed
Update to rdf-data-factory v2
1 parent b5f66b4 commit fbdc544

File tree

3 files changed

+2141
-2001
lines changed

3 files changed

+2141
-2001
lines changed

lib/Resource.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export class Resource {
108108
'@id': termToString(this.term),
109109
...maxDepth !== 0 && Object.keys(this.properties).length > 0 ?
110110
{
111+
// eslint-disable-next-line unicorn/prefer-object-from-entries
111112
properties: Object.keys(this.properties).reduce((acc: any, key) => {
112113
acc[key] = this.properties[key].map(resource => resource.toJSON(maxDepth - 1));
113114
return acc;

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@
5252
"eslint-plugin-tsdoc": "^0.2.7",
5353
"eslint-plugin-unused-imports": "^2.0.0",
5454
"jest": "^29.0.0",
55-
"jest-rdf": "^1.7.0",
55+
"jest-rdf": "^2.0.0",
5656
"manual-git-changelog": "^1.0.1",
5757
"n3": "^1.6.3",
5858
"pre-commit": "^1.2.2",
59-
"rdf-quad": "^1.5.0",
59+
"rdf-quad": "^2.0.0",
6060
"streamify-string": "^1.0.1",
6161
"ts-jest": "^29.0.0",
62-
"typescript": "^5.0.0"
62+
"typescript": "^5.7.2"
6363
},
6464
"jest": {
6565
"setupFilesAfterEnv": [
@@ -98,10 +98,10 @@
9898
"version": "manual-git-changelog onversion"
9999
},
100100
"dependencies": {
101-
"@rdfjs/types": "*",
102101
"jsonld-context-parser": "^3.0.0",
103-
"rdf-data-factory": "^1.1.0",
104-
"rdf-string": "^1.6.0",
102+
"rdf-data-factory": "^2.0.1",
103+
"rdf-string": "^2.0.0",
105104
"streamify-array": "^1.0.1"
106-
}
105+
},
106+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
107107
}

0 commit comments

Comments
 (0)