Skip to content

Commit

Permalink
fix: added dev dependencies for oid4vci-issuer-rest-client plus prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed Jun 15, 2023
1 parent 7db9c1b commit 7b6c2b3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions packages/oid4vci-issuer-rest-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ import { OID4VCIRestClient } from '@sphereon/ssi-sdk.oid4vci-issuer-rest-client'
const agent = createAgent<IOID4VCIRestClient>({
plugins: [
new OID4VCIRestClient({
baseUrl: 'my-issuer-base-url'
baseUrl: 'my-issuer-base-url',
}),
],
})
```


### Getting a credential offering uri:

```typescript
Expand All @@ -46,11 +45,12 @@ const request: IVCIClientCreateOfferUriRequestArgs = {
user_pin_required: false,
},
},
credentials: ['dbc2023']
credentials: ['dbc2023'],
}

const result: IVCIClientCreateOfferUriResponse = await agent.vciClientCreateOfferUri(request)
```

### Installation

```shell
Expand Down
9 changes: 5 additions & 4 deletions packages/oid4vci-issuer-rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
"cross-fetch": "^3.1.5"
},
"devDependencies": {
"did-resolver": "^4.1.0",
"typescript": "4.9.5",
"ts-node": "^10.9.1",
"@types/node": "^18.16.3",
"nock": "^13.3.0"
"@veramo/remote-client": "4.2.0",
"@veramo/remote-server": "4.2.0",
"nock": "^13.3.0",
"ts-node": "^10.9.1",
"typescript": "4.9.5"
},
"files": [
"dist/**/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export class OID4VCIRestClient implements IAgentPlugin {
body: JSON.stringify(request),
})
if (!origResponse.ok) {
return Promise.reject(Error(`request to ${url} returned ${origResponse.status}`));
return Promise.reject(Error(`request to ${url} returned ${origResponse.status}`))
}
return await origResponse.json()
} catch (e) {
debug(`Error on posting to url ${url}: ${e}`)
return Promise.reject(Error(`request to ${url} returned ${e}`));
return Promise.reject(Error(`request to ${url} returned ${e}`))
}
}

Expand Down
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b6c2b3

Please sign in to comment.