From 9afadd6d6a9e59d6f0b2809cdbe76f800c0454a0 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Fri, 28 Jun 2024 18:28:45 -0300 Subject: [PATCH] fix: attachment descriptor parameters Signed-off-by: Allain Magyar --- integration-tests/e2e-tests/package.json | 2 +- integration-tests/e2e-tests/yarn.lock | 2 +- package-lock.json | 24 ++++-------------------- src/mercury/didcomm/Wrapper.ts | 2 +- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/integration-tests/e2e-tests/package.json b/integration-tests/e2e-tests/package.json index 3c1019ce7..065a88268 100644 --- a/integration-tests/e2e-tests/package.json +++ b/integration-tests/e2e-tests/package.json @@ -17,7 +17,7 @@ }, "homepage": "https://github.com/input-output-hk/atala-prism-wallet-sdk-ts-e2e", "dependencies": { - "@atala/prism-wallet-sdk": "../../", + "@atala/prism-wallet-sdk": "../..", "@cucumber/cucumber": "^10.3.1", "@cucumber/pretty-formatter": "^1.0.0", "@hyperledger-labs/open-enterprise-agent-ts-client": "^1.31.0", diff --git a/integration-tests/e2e-tests/yarn.lock b/integration-tests/e2e-tests/yarn.lock index 549201d27..a2173a505 100644 --- a/integration-tests/e2e-tests/yarn.lock +++ b/integration-tests/e2e-tests/yarn.lock @@ -17,7 +17,7 @@ hash.js "1.1.7" stream-browserify "3.0.0" -"@atala/prism-wallet-sdk@../../": +"@atala/prism-wallet-sdk@../..": version "3.1.0" dependencies: "@atala/apollo" "^1.3.5" diff --git a/package-lock.json b/package-lock.json index 1e738db0e..c1e92832d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -131,38 +131,22 @@ } }, "externals/generated/anoncreds-wasm-browser": { - "name": "anoncreds-wasm", - "version": "0.1.0", "dev": true }, "externals/generated/anoncreds-wasm-node": { - "name": "anoncreds-wasm", - "version": "0.1.0", "dev": true }, "externals/generated/didcomm-wasm-browser": { - "name": "didcomm-js", - "version": "0.4.1", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "externals/generated/didcomm-wasm-node": { - "name": "didcomm-js", - "version": "0.4.1", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "externals/generated/jwe-wasm-browser": { - "name": "jwe-rust", - "version": "0.4.1", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "externals/generated/jwe-wasm-node": { - "name": "jwe-rust", - "version": "0.4.1", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "node_modules/@ampproject/remapping": { "version": "2.3.0", diff --git a/src/mercury/didcomm/Wrapper.ts b/src/mercury/didcomm/Wrapper.ts index 4ce5f76c7..cc7b83f65 100644 --- a/src/mercury/didcomm/Wrapper.ts +++ b/src/mercury/didcomm/Wrapper.ts @@ -173,8 +173,8 @@ export class DIDCommWrapper implements DIDCommProtocol { return new Domain.AttachmentDescriptor( this.parseAttachmentDataToDomain(attachment.data), - attachment.id, attachment.media_type, + attachment.id, attachment.filename?.split("/"), attachment.format, attachment.lastmod_time?.toString(),