Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
Upgrade flow to 155
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Jul 15, 2021
1 parent ca5374c commit 09997c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ node_modules/grumbler-scripts/declarations.js
[options]
module.name_mapper='^src\(.*\)$' -> '<PROJECT_ROOT>/src/\1'
experimental.const_params=false
esproposal.export_star_as=enable
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"devDependencies": {
"auto-changelog": "^1.11.0",
"flow-bin": "^0.135.0",
"flow-bin": "0.155.0",
"grumbler-scripts": "^3",
"mocha": "^4"
},
Expand Down
1 change: 1 addition & 0 deletions src/bridge/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function setupOpenTunnelToParent({ send } : {| send : SendType |}) {
return;
}

// $FlowFixMe[object-this-reference]
tunnelWindow.sendMessage.apply(this, arguments);
}

Expand Down
2 changes: 2 additions & 0 deletions src/bridge/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ export function openTunnelToOpener({ on, send, receiveMessage } : {| on : OnType
try {
receiveMessage({
data: message,
// $FlowFixMe[object-this-reference]
origin: this.origin,
// $FlowFixMe[object-this-reference]
source: this.source
}, { on, send });
} catch (err) {
Expand Down
1 change: 1 addition & 0 deletions src/serialize/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export function deserializeFunction<T>(source : CrossDomainWindowType | ProxyWin
if (meth && meth.val !== crossDomainFunctionWrapper) {
return meth.val.apply({ source: window, origin: getDomain() }, arguments);
} else {
// $FlowFixMe[method-unbinding]
const args = Array.prototype.slice.call(arguments);

if (opts.fireAndForget) {
Expand Down

0 comments on commit 09997c9

Please sign in to comment.