From 750ec67a3fdddd82046b5da8bf9cc3ff3c0222f6 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Mon, 7 Nov 2022 13:55:16 +0100 Subject: [PATCH] Bump post-message-stream --- lavamoat/browserify/flask/policy.json | 119 ++++++++++---------------- package.json | 2 +- yarn.lock | 7 -- 3 files changed, 48 insertions(+), 80 deletions(-) diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 795f468facf7..d3e4bd68d0b2 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -1371,6 +1371,50 @@ "watchify>xtend": true } }, + "@metamask/post-message-stream": { + "globals": { + "WorkerGlobalScope": true, + "addEventListener": true, + "location.origin": true, + "onmessage": "write", + "postMessage": true, + "removeEventListener": true + }, + "packages": { + "@metamask/post-message-stream>@metamask/utils": true, + "@metamask/post-message-stream>readable-stream": true + } + }, + "@metamask/post-message-stream>@metamask/utils": { + "packages": { + "eslint>fast-deep-equal": true + } + }, + "@metamask/post-message-stream>readable-stream": { + "packages": { + "@metamask/post-message-stream>readable-stream>safe-buffer": true, + "@metamask/post-message-stream>readable-stream>string_decoder": true, + "@storybook/api>util-deprecate": true, + "browserify>browser-resolve": true, + "browserify>events": true, + "browserify>process": true, + "browserify>timers-browserify": true, + "pumpify>inherits": true, + "readable-stream>core-util-is": true, + "readable-stream>isarray": true, + "vinyl>cloneable-readable>process-nextick-args": true + } + }, + "@metamask/post-message-stream>readable-stream>safe-buffer": { + "packages": { + "browserify>buffer": true + } + }, + "@metamask/post-message-stream>readable-stream>string_decoder": { + "packages": { + "@metamask/post-message-stream>readable-stream>safe-buffer": true + } + }, "@metamask/providers>@metamask/object-multiplex": { "globals": { "console.warn": true @@ -1616,10 +1660,10 @@ }, "packages": { "@metamask/controllers": true, + "@metamask/post-message-stream": true, "@metamask/providers>@metamask/object-multiplex": true, "@metamask/rpc-methods": true, "@metamask/snap-controllers>@metamask/browser-passworder": true, - "@metamask/snap-controllers>@metamask/post-message-stream": true, "@metamask/snap-controllers>@xstate/fsm": true, "@metamask/snap-controllers>concat-stream": true, "@metamask/snap-controllers>gunzip-maybe": true, @@ -1647,45 +1691,6 @@ "browserify>buffer": true } }, - "@metamask/snap-controllers>@metamask/post-message-stream": { - "globals": { - "WorkerGlobalScope": true, - "addEventListener": true, - "location.origin": true, - "onmessage": "write", - "postMessage": true, - "removeEventListener": true - }, - "packages": { - "@metamask/snap-controllers>@metamask/post-message-stream>@metamask/utils": true, - "@metamask/snap-controllers>@metamask/post-message-stream>readable-stream": true - } - }, - "@metamask/snap-controllers>@metamask/post-message-stream>@metamask/utils": { - "packages": { - "eslint>fast-deep-equal": true - } - }, - "@metamask/snap-controllers>@metamask/post-message-stream>readable-stream": { - "packages": { - "@metamask/snap-controllers>@metamask/post-message-stream>readable-stream>string_decoder": true, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true, - "@storybook/api>util-deprecate": true, - "browserify>browser-resolve": true, - "browserify>events": true, - "browserify>process": true, - "browserify>timers-browserify": true, - "pumpify>inherits": true, - "readable-stream>core-util-is": true, - "readable-stream>isarray": true, - "vinyl>cloneable-readable>process-nextick-args": true - } - }, - "@metamask/snap-controllers>@metamask/post-message-stream>readable-stream>string_decoder": { - "packages": { - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true - } - }, "@metamask/snap-controllers>concat-stream": { "packages": { "@metamask/snap-controllers>concat-stream>readable-stream": true, @@ -1787,38 +1792,8 @@ "setTimeout": true }, "packages": { - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream": true, - "json-rpc-engine>@metamask/safe-event-emitter": true - } - }, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream": { - "packages": { - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>process-nextick-args": true, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>string_decoder": true, - "@storybook/api>util-deprecate": true, - "browserify>browser-resolve": true, - "browserify>events": true, - "browserify>process": true, - "browserify>timers-browserify": true, - "pumpify>inherits": true, - "readable-stream>core-util-is": true, - "readable-stream>isarray": true - } - }, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>process-nextick-args": { - "packages": { - "browserify>process": true - } - }, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": { - "packages": { - "browserify>buffer": true - } - }, - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>string_decoder": { - "packages": { - "@metamask/snap-controllers>json-rpc-middleware-stream>readable-stream>safe-buffer": true + "json-rpc-engine>@metamask/safe-event-emitter": true, + "readable-stream": true } }, "@metamask/snap-controllers>nanoid": { diff --git a/package.json b/package.json index 572226008690..3e05b3dc9515 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "@metamask/logo": "^3.1.1", "@metamask/metamask-eth-abis": "^3.0.0", "@metamask/obs-store": "^5.0.0", - "@metamask/post-message-stream": "^4.0.0", + "@metamask/post-message-stream": "^6.0.0", "@metamask/providers": "^10.0.0", "@metamask/rpc-methods": "^0.23.0", "@metamask/slip44": "^2.1.0", diff --git a/yarn.lock b/yarn.lock index 8017ea721bfc..3b45a5df4bf2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3105,13 +3105,6 @@ pump "^3.0.0" ses "0.12.4" -"@metamask/post-message-stream@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@metamask/post-message-stream/-/post-message-stream-4.0.0.tgz#72f120e562346ca86ccc9b3684023ad44265f0df" - integrity sha512-r0JcoWXNuHycProx8ClxiIElJY/GVb/0/WWXTMsZu7qDejLo52VNXlwfydCdVjbMXeoT2nK1Yt3d5gjmHy5BWw== - dependencies: - readable-stream "2.3.3" - "@metamask/post-message-stream@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@metamask/post-message-stream/-/post-message-stream-5.1.0.tgz#3e9a2ed11b540b3868a0a28ffa8ec5a6e5fca29d"