🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

web-request-rpc

Package Overview
Dependencies
Maintainers
5
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-request-rpc - npm Package Compare versions

Comparing version
1.1.7
to
1.1.8
+5
-0
CHANGELOG.md
# web-request-rpc ChangeLog
## 1.1.8 - 2022-06-13
### Fixed
- Fix `window.opener` / `window.parent` reversal bug.
## 1.1.7 - 2021-01-22

@@ -4,0 +9,0 @@

+2
-2

@@ -30,3 +30,3 @@ /*!

* a handle) to send messages to
* (defaults to `window.parent || window.opener`).
* (defaults to `window.opener || window.parent`).
*

@@ -45,3 +45,3 @@ * @return a Promise that resolves to an RPC injector once connected.

self.origin = utils.parseUrl(origin).origin;
self._handle = options.handle || window.parent || window.opener;
self._handle = options.handle || window.opener || window.parent;

@@ -48,0 +48,0 @@ const pending = self._pending;

{
"name": "web-request-rpc",
"version": "1.1.7",
"version": "1.1.8",
"description": "Web Request RPC",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -53,3 +53,3 @@ /*!

* a handle) to listen for messages from
* (defaults to `window.parent || window.opener`).
* (defaults to `window.opener || window.parent`).
* [ignoreUnknownApi] `true` to ignore unknown API messages.

@@ -67,3 +67,3 @@ */

self.origin = utils.parseUrl(origin).origin;
self._handle = options.handle || window.parent || window.opener;
self._handle = options.handle || window.opener || window.parent;

@@ -70,0 +70,0 @@ const ignoreUnknownApi = (options.ignoreUnknownApi === 'true') || false;