Skip to content

Commit 91540be

Browse files
committed
rollback rdfjs-wrapper version upgrade
1 parent 2185748 commit 91540be

4 files changed

Lines changed: 24 additions & 21 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
],
3838
"license": "MIT",
3939
"dependencies": {
40-
"rdfjs-wrapper": "^0.28.0"
40+
"rdfjs-wrapper": "^0.15.0"
4141
},
4242
"devDependencies": {
4343
"@rdfjs/types": "^2",

src/solid/Email.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import { TermWrapper, ValueMapping, TermMapping } from 'rdfjs-wrapper';
1+
import { TermWrapper, ValueMappings, TermMappings } from 'rdfjs-wrapper';
22
import { VCARD, RDF } from '../vocabulary/mod.js';
33

44
export class Email extends TermWrapper {
55
get emailAddress(): string {
6-
return this.singular(VCARD.value, ValueMapping.literalToString);
6+
return this.singular(VCARD.value, ValueMappings.literalToString);
77
}
88

99
set emailAddress(value: string) {
10-
this.overwrite(VCARD.value, value, TermMapping.stringToLiteral);
10+
this.overwrite(VCARD.value, value, TermMappings.stringToLiteral);
1111
}
1212

1313
get emailType(): string | undefined {
14-
return this.singularNullable(RDF.type, ValueMapping.iriToString);
14+
return this.singularNullable(RDF.type, ValueMappings.iriToString);
1515
}
1616

1717
set emailType(value: string | undefined) {
18-
this.overwriteNullable(RDF.type, value, TermMapping.stringToIri);
18+
this.overwriteNullable(RDF.type, value, TermMappings.stringToIri);
1919
}
2020
}

src/solid/Telephone.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import { TermWrapper, ValueMapping, TermMapping } from 'rdfjs-wrapper';
1+
import { TermWrapper, ValueMappings, TermMappings } from 'rdfjs-wrapper';
22
import { VCARD } from '../vocabulary/mod.js';
33

44
export class Telephone extends TermWrapper {
55
get phoneNumber(): string {
6-
return this.singular(VCARD.hasValue, ValueMapping.literalToString) || '';
6+
return this.singular(VCARD.hasValue, ValueMappings.literalToString) || '';
77
}
88

99
set phoneNumber(value: string) {
10-
this.overwrite(VCARD.hasValue, value, TermMapping.stringToLiteral);
10+
this.overwrite(VCARD.hasValue, value, TermMappings.stringToLiteral);
1111
}
1212

1313
get phoneType(): string | undefined {
14-
return this.singularNullable(VCARD.telephoneType, ValueMapping.iriToString);
14+
return this.singularNullable(VCARD.telephoneType, ValueMappings.iriToString);
1515
}
1616

1717
set phoneType(value: string | undefined) {
18-
this.overwriteNullable(VCARD.telephoneType, value, TermMapping.stringToIri);
18+
this.overwriteNullable(VCARD.telephoneType, value, TermMappings.stringToIri);
1919
}
2020
}

src/vocabulary/vcard.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
21
export const VCARD = {
3-
fn: "http://www.w3.org/2006/vcard/ns#fn",
4-
hasEmail: "http://www.w3.org/2006/vcard/ns#hasEmail",
5-
hasValue: "http://www.w3.org/2006/vcard/ns#hasValue",
6-
hasPhoto: "http://www.w3.org/2006/vcard/ns#hasPhoto",
7-
hasTelephone: "http://www.w3.org/2006/vcard/ns#hasTelephone",
8-
title: "http://www.w3.org/2006/vcard/ns#title",
9-
hasUrl: "http://www.w3.org/2006/vcard/ns#hasUrl",
10-
organizationName: "http://www.w3.org/2006/vcard/ns#organization-name",
11-
role: "http://www.w3.org/2006/vcard/ns#organization-name",
2+
fn: "http://www.w3.org/2006/vcard/ns#fn",
3+
email: "http://www.w3.org/2006/vcard/ns#email",
4+
hasEmail: "http://www.w3.org/2006/vcard/ns#hasEmail",
5+
hasValue: "http://www.w3.org/2006/vcard/ns#hasValue",
6+
hasPhoto: "http://www.w3.org/2006/vcard/ns#hasPhoto",
7+
hasTelephone: "http://www.w3.org/2006/vcard/ns#hasTelephone",
8+
title: "http://www.w3.org/2006/vcard/ns#title",
9+
hasUrl: "http://www.w3.org/2006/vcard/ns#hasUrl",
10+
organizationName: "http://www.w3.org/2006/vcard/ns#organization-name",
11+
phone: "http://www.w3.org/2006/vcard/ns#phone",
12+
role: "http://www.w3.org/2006/vcard/ns#role",
13+
value: "http://www.w3.org/2006/vcard/ns#value",
14+
telephoneType: "http://www.w3.org/2006/vcard/ns#TelephoneType",
1215
} as const;

0 commit comments

Comments
 (0)