File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ cp node_modules/@openpgp/web-stream-tools/lib/*.js $OUTDIR/lib/streams
7373STREAMS_REGEX=" s/'\.\/(streams|util|writer|reader|node-conversions)'/'\.\/\1\.js'/g"
7474STREAMS_FILES=$OUTDIR /lib/streams/*
7575# patch isUint8Array until https://github.com/openpgpjs/web-stream-tools/pull/23 is resolved
76- ISUINT8ARRAY_REGEX=" s/^ (\s*)return\x20Uint8Array\.prototype\.isPrototypeOf\(input\);/\1return\x20Uint8Array\.prototype\.isPrototypeOf\(input\)\x20\|\|\x20globalThis\.Uint8Array\.prototype\.isPrototypeOf\(input\);/mg "
76+ ISUINT8ARRAY_REGEX=" s/(\s*)return\x20Uint8Array\.prototype\.isPrototypeOf\(input\);/\1return\x20Uint8Array\.prototype\.isPrototypeOf\(input\)\x20\|\|\x20globalThis\.Uint8Array\.prototype\.isPrototypeOf\(input\);/g "
7777OPENPGP_FILE=$OUTDIR /lib/openpgp.js
7878if [[ " $OSTYPE " =~ ^darwin ]]; then # macOS needs additional parameter for backup files
7979 sed -i ' ' -E $STREAMS_REGEX $STREAMS_FILES
You can’t perform that action at this time.
0 commit comments