rechrome 1.43.1 → 1.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -126,7 +126,8 @@ browser into an auth tool:
|
|
|
126
126
|
rech read-cookie d acme.slack.com --allow-domain acme.slack.com | slack auth cookie
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
- Reads via Playwright's `context.cookies()`, so `HttpOnly` cookies are included.
|
|
129
|
+
- Reads via Playwright's `context.cookies()`, so `HttpOnly` cookies are included. It works over the
|
|
130
|
+
extension bridge too: the relay answers the browser-level cookie query through an attached tab.
|
|
130
131
|
- `--allow-domain` is required, and the cookie's own domain must match it.
|
|
131
132
|
- Same pipe-only, never-logged, masked-afterwards rules as `read-secret`.
|
|
132
133
|
- On a shared (scoped) listener it is off until the host runs
|
package/package.json
CHANGED
|
@@ -65837,6 +65837,10 @@ var init_browserModel = __esm({
|
|
|
65837
65837
|
await this._sendToExtension("chrome.tabs.remove", [tabSession.tabId]);
|
|
65838
65838
|
return { success: true };
|
|
65839
65839
|
}
|
|
65840
|
+
// Any attached tab's relay sessionId, for browser-level commands the tab debugger can serve.
|
|
65841
|
+
anyAttachedSessionId() {
|
|
65842
|
+
return this._findTabSession(() => true)?.sessionId;
|
|
65843
|
+
}
|
|
65840
65844
|
getTargetInfo(sessionId) {
|
|
65841
65845
|
if (!sessionId)
|
|
65842
65846
|
return void 0;
|
|
@@ -65974,6 +65978,14 @@ var init_cdpRelayV2 = __esm({
|
|
|
65974
65978
|
return { result: await this._model.closeTarget(params2?.targetId) };
|
|
65975
65979
|
case "Target.getTargetInfo":
|
|
65976
65980
|
return { result: this._model.getTargetInfo(sessionId) };
|
|
65981
|
+
case "Storage.getCookies": {
|
|
65982
|
+
if (sessionId)
|
|
65983
|
+
return void 0;
|
|
65984
|
+
const tabSessionId = this._model.anyAttachedSessionId();
|
|
65985
|
+
if (!tabSessionId)
|
|
65986
|
+
throw new Error("Storage.getCookies: no tab is attached yet; open a page first");
|
|
65987
|
+
return { result: await this._model.sendCommand(tabSessionId, "Storage.getCookies", params2) };
|
|
65988
|
+
}
|
|
65977
65989
|
}
|
|
65978
65990
|
return void 0;
|
|
65979
65991
|
}
|