-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump deps & improve patches for @slack/web-rtm and @slack/web-api (#44)
- Loading branch information
Showing
8 changed files
with
75 additions
and
138 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/dist/RTMClient.js b/dist/RTMClient.js | ||
index 9a6715a20d5f8c688794d1b9057a64c266bc41ad..976b2bfdf9fed236f709050728e7001fb033a48f 100644 | ||
--- a/dist/RTMClient.js | ||
+++ b/dist/RTMClient.js | ||
@@ -419,7 +419,12 @@ class RTMClient extends eventemitter3_1.EventEmitter { | ||
if (this.agentConfig !== undefined) { | ||
options.agent = this.agentConfig; | ||
} | ||
- this.websocket = new ws_1.default(url, options); | ||
+ this.websocket = new ws_1.default(url, { | ||
+ ...options, | ||
+ headers: { | ||
+ ...(this.webClient.headers || {}), | ||
+ }, | ||
+ }); | ||
// attach event listeners | ||
this.websocket.addEventListener('open', (event) => this.stateMachine.handle('websocket open', event)); | ||
this.websocket.addEventListener('close', (event) => this.stateMachine.handle('websocket close', event)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
}, | ||
"dependencies": { | ||
"@slack/logger": "^4.0.0", | ||
"@slack/rtm-api": "^6.1.1", | ||
"@slack/rtm-api": "^6.2.0", | ||
"@slack/web-api": "^6.10.0", | ||
"@textshq/platform-sdk": "https://github.com/TextsHQ/platform-sdk#main", | ||
"eventemitter3": "^3.1.0", | ||
|
@@ -36,7 +36,7 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"@slack/web-api": "patch:@slack/web-api@npm%3A6.8.1#./.yarn/patches/@slack-web-api-npm-6.8.1-553b0045dc.patch", | ||
"@slack/rtm-api": "patch:@slack/rtm-api@npm%3A6.1.1#./.yarn/patches/@slack-rtm-api-npm-6.1.1-13c0993e53.patch" | ||
"@slack/web-api": "patch:@slack/web-api@npm%3A6.10.0#./.yarn/patches/@slack-web-api-npm-6.10.0-a5377899bb.patch", | ||
"@slack/rtm-api": "patch:@slack/rtm-api@npm%3A6.2.0#./.yarn/patches/@slack-rtm-api-npm-6.2.0-f7057dcae1.patch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters