hyperledger / identus-edge-agent-sdk-ts

Apache License 2.0
15 stars 8 forks source link

fix: Compatibility issues with osx and unix platforms around the sed #217

Closed elribonazo closed 1 month ago

elribonazo commented 1 month ago

Description:

ATL-7138 Fixes issue with sed commands, we have been having some regression issues around how libraries are built. When wasm-pack builds the output for us, is generates :

if (typeof input === 'undefined') {
        input = new URL('anoncreds_bg.wasm', import.meta.url);
}

This peace of code is invalid and should be removed by the build command. We do this by running sed.

Please follow this article for more information: https://stackoverflow.com/questions/12696125/sed-edit-file-in-place

But we need to run different code depending on where the build is running from.

Checklist: