@learncard/credential-library 1.0.13 → 1.0.15
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/dist/credential-library.cjs.development.js +18 -5
- package/dist/credential-library.cjs.development.js.map +2 -2
- package/dist/credential-library.cjs.production.min.js +1 -1
- package/dist/credential-library.cjs.production.min.js.map +2 -2
- package/dist/credential-library.esm.js +18 -5
- package/dist/credential-library.esm.js.map +2 -2
- package/dist/fixtures/boost/community-award.d.ts.map +1 -1
- package/dist/fixtures/boost/delegate.d.ts.map +1 -1
- package/dist/fixtures/clr/westbridge-full.d.ts.map +1 -1
- package/dist/fixtures/obv3/endorsement.d.ts.map +1 -1
- package/dist/fixtures/obv3/professional-cert.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/issuance.test.ts +32 -14
- package/src/fixtures/boost/community-award.ts +3 -1
- package/src/fixtures/boost/delegate.ts +1 -0
- package/src/fixtures/clr/westbridge-full.ts +10 -1
- package/src/fixtures/obv3/endorsement.ts +1 -0
- package/src/fixtures/obv3/professional-cert.ts +5 -2
|
@@ -842,7 +842,8 @@ var obv3ProfessionalCert = {
|
|
|
842
842
|
credential: {
|
|
843
843
|
"@context": [
|
|
844
844
|
"https://www.w3.org/ns/credentials/v2",
|
|
845
|
-
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
|
|
845
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
|
|
846
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/extensions.json"
|
|
846
847
|
],
|
|
847
848
|
id: "urn:uuid:b34ca6cd-29d7-4b2f-9e99-4902fd84c5a1",
|
|
848
849
|
type: ["VerifiableCredential", "OpenBadgeCredential"],
|
|
@@ -1262,7 +1263,8 @@ var obv3EndorsementCredential = {
|
|
|
1262
1263
|
credential: {
|
|
1263
1264
|
"@context": [
|
|
1264
1265
|
"https://www.w3.org/ns/credentials/v2",
|
|
1265
|
-
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
|
|
1266
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
|
|
1267
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/extensions.json"
|
|
1266
1268
|
],
|
|
1267
1269
|
id: "urn:uuid:a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
|
|
1268
1270
|
type: ["VerifiableCredential", "EndorsementCredential"],
|
|
@@ -1990,7 +1992,8 @@ var boostCommunityAward = {
|
|
|
1990
1992
|
credential: {
|
|
1991
1993
|
"@context": [
|
|
1992
1994
|
"https://www.w3.org/ns/credentials/v2",
|
|
1993
|
-
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
|
|
1995
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
|
|
1996
|
+
"https://ctx.learncard.com/boosts/1.0.3.json"
|
|
1994
1997
|
],
|
|
1995
1998
|
id: "urn:uuid:d8c4f2a1-3b67-4e89-a1d0-5f9e7c2b8a43",
|
|
1996
1999
|
type: ["VerifiableCredential", "OpenBadgeCredential", "BoostCredential"],
|
|
@@ -2079,7 +2082,8 @@ var boostDelegate = {
|
|
|
2079
2082
|
credential: {
|
|
2080
2083
|
"@context": [
|
|
2081
2084
|
"https://www.w3.org/ns/credentials/v2",
|
|
2082
|
-
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
|
|
2085
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
|
|
2086
|
+
"https://ctx.learncard.com/boosts/1.0.3.json"
|
|
2083
2087
|
],
|
|
2084
2088
|
id: "urn:uuid:e7b3d1f4-9a26-4c58-b0d3-8f1e2c7a9b56",
|
|
2085
2089
|
type: ["VerifiableCredential", "OpenBadgeCredential", "BoostCredential"],
|
|
@@ -10841,7 +10845,9 @@ var clrWestbridgeFull = {
|
|
|
10841
10845
|
"@context": [
|
|
10842
10846
|
"https://www.w3.org/ns/credentials/v2",
|
|
10843
10847
|
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
|
|
10844
|
-
"https://purl.imsglobal.org/spec/clr/v2p0/context
|
|
10848
|
+
"https://purl.imsglobal.org/spec/clr/v2p0/context.json",
|
|
10849
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/extensions.json",
|
|
10850
|
+
{ IssuerPolicy: "https://westbridge.edu/credentials#IssuerPolicy" }
|
|
10845
10851
|
],
|
|
10846
10852
|
id: "urn:uuid:wb-clr-2025-jordan-reyes-001",
|
|
10847
10853
|
type: ["VerifiableCredential", "ClrCredential"],
|
|
@@ -10912,6 +10918,13 @@ var clrWestbridgeFull = {
|
|
|
10912
10918
|
}
|
|
10913
10919
|
],
|
|
10914
10920
|
credentialSubject: {
|
|
10921
|
+
// CLR v2's ClrSubject scoped context omits the Open Badges identifier term.
|
|
10922
|
+
"@context": {
|
|
10923
|
+
identifier: {
|
|
10924
|
+
"@id": "https://purl.imsglobal.org/spec/vc/ob/vocab.html#identifier",
|
|
10925
|
+
"@container": "@set"
|
|
10926
|
+
}
|
|
10927
|
+
},
|
|
10915
10928
|
id: "did:example:wb-student-2025-001",
|
|
10916
10929
|
type: ["ClrSubject"],
|
|
10917
10930
|
identifier: [
|