File tree 3 files changed +3
-13
lines changed
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 31
31
"./package.json" : " ./package.json"
32
32
},
33
33
"dependencies" : {
34
- "@digitalbazaar/credentials-v2-context" : " github: digitalbazaar/credentials-v2-context#main" ,
34
+ "@digitalbazaar/credentials-v2-context" : " digitalbazaar/credentials-v2-context#main" ,
35
35
"@digitalbazaar/data-integrity-context" : " ^2.0.0" ,
36
36
"@digitalbazaar/http-client" : " ^4.1.0" ,
37
37
"@digitalbazaar/vc-bitstring-status-list-context" : " ^1.0.0" ,
47
47
"credentials-context" : " ^2.0.0" ,
48
48
"did-context" : " ^3.1.1" ,
49
49
"ed25519-signature-2020-context" : " ^1.1.0" ,
50
- "html-entities" : " ^2.3.3" ,
51
50
"jsonld-document-loader" : " ^1.2.1" ,
52
51
"x25519-key-agreement-2020-context" : " ^1.0.0"
53
52
},
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import { JsonLdDocumentLoader } from 'jsonld-document-loader';
21
21
import { CryptoLD } from '@digitalcredentials/crypto-ld' ;
22
22
import obContext from '@digitalcredentials/open-badges-context' ;
23
23
import { httpClient } from '@digitalbazaar/http-client' ;
24
- import { parseResponseBody } from './parseResponse' ;
25
24
26
25
const cryptoLd = new CryptoLD ( ) ;
27
26
cryptoLd . use ( Ed25519VerificationKey2020 ) ;
@@ -50,12 +49,11 @@ export const httpClientHandler = {
50
49
'Cache-Control' : 'no-cache' ,
51
50
'Pragma' : 'no-cache'
52
51
} ;
53
- result = await httpClient . get ( params . url , { headers } ) ;
52
+ ( { data : result } = await httpClient . get ( params . url , { headers } ) ) ;
54
53
} catch ( e : any ) {
55
54
throw new Error ( `NotFoundError loading "${ params . url } ": ${ e . message } ` ) ;
56
55
}
57
-
58
- return parseResponseBody ( result ) ;
56
+ return result ;
59
57
}
60
58
} ;
61
59
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments