Skip to content

Commit

Permalink
sdk changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Nov 24, 2024
1 parent 23cbae9 commit d654057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"clean": "rimraf ./dist",
"build": "npm run build:browser",
"build": "npm run build:node && npm run build:browser",
"build:node": "npm run build:tsc && npm run build:esm",
"build:esm": "tsc --outDir dist/node/esm --declaration --declarationDir dist/types",
"build:browser": "rollup --verbose -c rollup.config.mjs --failAfterWarnings --filterLogs \"/* @__PURE__ */\"",
Expand Down
2 changes: 1 addition & 1 deletion src/iden3comm/handlers/credential-proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class CredentialProposalHandler
acc.credentialsToRequest = [...acc.credentialsToRequest, ...directiveCredentials];
delete directive.purpose;
const meta = Array.isArray(acc.metadata.data) ? acc.metadata.data : [acc.metadata.data];
acc.metadata.data = [...meta, directive];
acc.metadata.data = [...meta, directive as JsonDocumentObject];
return acc;
},
{
Expand Down

0 comments on commit d654057

Please sign in to comment.