Skip to content

Commit

Permalink
chore(IT Wallet): [SIW-773] Add patch to cipher-base package (#5354)
Browse files Browse the repository at this point in the history
## Short description
This PR adds a patch to `cipher-base` package to solve an "issue" during
proximity verification flow. It could be related on how `io-app` do the
bundle of sub-dependencies (like import/export issue). The patch is also
related to these issues on other repositories:

-
https://stackoverflow.com/questions/74413490/uncaught-typeerror-cannot-read-properties-of-undefined-reading-call-at-hash
- browserify/cipher-base#10

## List of changes proposed in this pull request
- Add patch file using patch-package

## How to test
Static checks should be enough.
  • Loading branch information
hevelius committed Dec 20, 2023
1 parent ff8f59e commit a9242c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions patches/cipher-base+1.0.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/node_modules/cipher-base/index.js b/node_modules/cipher-base/index.js
index 6728005..16426bf 100644
--- a/node_modules/cipher-base/index.js
+++ b/node_modules/cipher-base/index.js
@@ -1,5 +1,5 @@
var Buffer = require('safe-buffer').Buffer
-var Transform = require('stream').Transform
+var Transform = require('readable-stream').Transform
var StringDecoder = require('string_decoder').StringDecoder
var inherits = require('inherits')

0 comments on commit a9242c1

Please sign in to comment.