@salesforce/core 2.33.0 → 2.33.1
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.33.1](https://github.com/forcedotcom/sfdx-core/compare/v2.33.0...v2.33.1) (2021-12-15)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- faye doesn't use custom stuff passed it ([b1cefc7](https://github.com/forcedotcom/sfdx-core/commit/b1cefc76afde7f0dd56ed72b5539a47c118eef63))
|
|
10
|
+
|
|
5
11
|
## [2.33.0](https://github.com/forcedotcom/sfdx-core/compare/v2.32.0...v2.33.0) (2021-12-14)
|
|
6
12
|
|
|
7
13
|
### Features
|
|
@@ -335,6 +335,10 @@ exports.StreamingClient = StreamingClient;
|
|
|
335
335
|
* @see {@link StatusResult}
|
|
336
336
|
*/
|
|
337
337
|
constructor(org, channel, streamProcessor, envDep = lib_1.env) {
|
|
338
|
+
if (envDep) {
|
|
339
|
+
const logger = logger_1.Logger.childFromRoot('StreamingClient');
|
|
340
|
+
logger.warn('envDep is deprecated');
|
|
341
|
+
}
|
|
338
342
|
if (!streamProcessor) {
|
|
339
343
|
throw new sfdxError_1.SfdxError('Missing stream processor', 'MissingArg');
|
|
340
344
|
}
|
|
@@ -344,7 +348,6 @@ exports.StreamingClient = StreamingClient;
|
|
|
344
348
|
if (!channel) {
|
|
345
349
|
throw new sfdxError_1.SfdxError('Missing streaming channel', 'MissingArg');
|
|
346
350
|
}
|
|
347
|
-
this.envDep = envDep;
|
|
348
351
|
this.org = org;
|
|
349
352
|
this.apiVersion = org.getConnection().getApiVersion();
|
|
350
353
|
if (channel.startsWith('/system')) {
|
|
@@ -359,18 +362,7 @@ exports.StreamingClient = StreamingClient;
|
|
|
359
362
|
this.handshakeTimeout = StreamingClient.DefaultOptions.DEFAULT_HANDSHAKE_TIMEOUT;
|
|
360
363
|
this.streamingImpl = {
|
|
361
364
|
getCometClient: (url) => {
|
|
362
|
-
|
|
363
|
-
return new Faye.Client(url, {
|
|
364
|
-
// This parameter ensures all cookies regardless of path are included in subsequent requests. Otherwise
|
|
365
|
-
// only cookies with the path "/" and "/cometd" are known to be included.
|
|
366
|
-
// if SFDX_ENABLE_FAYE_COOKIES_ALLOW_ALL_PATHS is *not* set the default to true.
|
|
367
|
-
cookiesAllowAllPaths: x === undefined
|
|
368
|
-
? true
|
|
369
|
-
: this.envDep.getBoolean(StreamingClient.DefaultOptions.SFDX_ENABLE_FAYE_COOKIES_ALLOW_ALL_PATHS),
|
|
370
|
-
// WARNING - The allows request/response exchanges to be written to the log instance which includes
|
|
371
|
-
// header and cookie information.
|
|
372
|
-
enableRequestResponseLogging: this.envDep.getBoolean(StreamingClient.DefaultOptions.SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING),
|
|
373
|
-
});
|
|
365
|
+
return new Faye.Client(url);
|
|
374
366
|
},
|
|
375
367
|
setLogger: (logLine) => {
|
|
376
368
|
Faye.logger = {};
|