Socket
Socket
Sign inDemoInstall

aws-crt

Package Overview
Dependencies
Maintainers
4
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-crt - npm Package Compare versions

Comparing version 1.15.5 to 1.15.6

2

dist.browser/browser/mqtt5_utils.js

@@ -163,3 +163,3 @@ "use strict";

function should_mqtt_js_use_clean_start(session_behavior) {
return session_behavior !== mqtt5.ClientSessionBehavior.RejoinPostSuccess;
return session_behavior !== mqtt5.ClientSessionBehavior.RejoinPostSuccess && session_behavior !== mqtt5.ClientSessionBehavior.RejoinAlways;
}

@@ -166,0 +166,0 @@ /** @internal */

@@ -85,3 +85,10 @@ /**

*/
RejoinPostSuccess = 2
RejoinPostSuccess = 2,
/**
* Always attempt to rejoin an existing session. Since the client does not yet support durable session persistence,
* this option is not guaranteed to be spec compliant because any unacknowledged qos1 publishes (which are
* part of the client session state) will not be present on the initial connection. Until we support
* durable session resumption, this option is technically spec-breaking, but useful.
*/
RejoinAlways = 3
}

@@ -88,0 +95,0 @@ /**

@@ -25,2 +25,9 @@ "use strict";

ClientSessionBehavior[ClientSessionBehavior["RejoinPostSuccess"] = 2] = "RejoinPostSuccess";
/**
* Always attempt to rejoin an existing session. Since the client does not yet support durable session persistence,
* this option is not guaranteed to be spec compliant because any unacknowledged qos1 publishes (which are
* part of the client session state) will not be present on the initial connection. Until we support
* durable session resumption, this option is technically spec-breaking, but useful.
*/
ClientSessionBehavior[ClientSessionBehavior["RejoinAlways"] = 3] = "RejoinAlways";
})(ClientSessionBehavior = exports.ClientSessionBehavior || (exports.ClientSessionBehavior = {}));

@@ -27,0 +34,0 @@ /**

@@ -85,3 +85,10 @@ /**

*/
RejoinPostSuccess = 2
RejoinPostSuccess = 2,
/**
* Always attempt to rejoin an existing session. Since the client does not yet support durable session persistence,
* this option is not guaranteed to be spec compliant because any unacknowledged qos1 publishes (which are
* part of the client session state) will not be present on the initial connection. Until we support
* durable session resumption, this option is technically spec-breaking, but useful.
*/
RejoinAlways = 3
}

@@ -88,0 +95,0 @@ /**

@@ -25,2 +25,9 @@ "use strict";

ClientSessionBehavior[ClientSessionBehavior["RejoinPostSuccess"] = 2] = "RejoinPostSuccess";
/**
* Always attempt to rejoin an existing session. Since the client does not yet support durable session persistence,
* this option is not guaranteed to be spec compliant because any unacknowledged qos1 publishes (which are
* part of the client session state) will not be present on the initial connection. Until we support
* durable session resumption, this option is technically spec-breaking, but useful.
*/
ClientSessionBehavior[ClientSessionBehavior["RejoinAlways"] = 3] = "RejoinAlways";
})(ClientSessionBehavior = exports.ClientSessionBehavior || (exports.ClientSessionBehavior = {}));

@@ -27,0 +34,0 @@ /**

@@ -108,2 +108,10 @@ /**

/**
* Create a new MQTT5 client builder that will create MQTT5 clients that connect to AWS IoT Core via websockets,
* authenticating via a custom authenticator.
*
* @param hostName - AWS IoT endpoint to connect to
* @param customAuthConfig - AWS IoT custom auth configuration
*/
static newWebsocketMqttBuilderWithCustomAuth(hostName: string, customAuthConfig: iot_shared.MqttConnectCustomAuthConfig): AwsIotMqtt5ClientConfigBuilder;
/**
* Overrides the default system trust store.

@@ -110,0 +118,0 @@ *

@@ -196,2 +196,17 @@ "use strict";

}
/**
* Create a new MQTT5 client builder that will create MQTT5 clients that connect to AWS IoT Core via websockets,
* authenticating via a custom authenticator.
*
* @param hostName - AWS IoT endpoint to connect to
* @param customAuthConfig - AWS IoT custom auth configuration
*/
static newWebsocketMqttBuilderWithCustomAuth(hostName, customAuthConfig) {
let builder = new AwsIotMqtt5ClientConfigBuilder(hostName, AwsIotMqtt5ClientConfigBuilder.DEFAULT_WEBSOCKET_MQTT_PORT, new io.TlsContextOptions());
builder.customAuthConfig = customAuthConfig;
builder.config.websocketHandshakeTransform = (request, done) => __awaiter(this, void 0, void 0, function* () {
done(0);
});
return builder;
}
/* Instance Methods for various config overrides */

@@ -198,0 +213,0 @@ /**

@@ -326,3 +326,5 @@ "use strict";

this.params.password = password;
this.tls_ctx_options.alpn_list = ["mqtt"];
if (!this.params.use_websocket) {
this.tls_ctx_options.alpn_list = ["mqtt"];
}
this.params.port = 443;

@@ -390,5 +392,2 @@ return this;

}
if (this.tls_ctx_options.alpn_list != ["mqtt"]) {
this.tls_ctx_options.alpn_list = ["mqtt"];
}
}

@@ -395,0 +394,0 @@ /*

{
"name": "aws-crt",
"version": "1.15.5",
"version": "1.15.6",
"description": "NodeJS/browser bindings to the aws-c-* libraries",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/awslabs/aws-crt-nodejs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc