@aws-amplify/pubsub
Advanced tools
Comparing version 1.0.33-unstable.6 to 1.0.33-unstable.7
@@ -21,2 +21,3 @@ import * as Observable from 'zen-observable'; | ||
protected readonly clientsQueue: ClientsQueue; | ||
protected readonly isSSLEnabled: boolean; | ||
protected getTopicForValue(value: any): any; | ||
@@ -23,0 +24,0 @@ getProviderName(): string; |
@@ -151,2 +151,9 @@ "use strict"; | ||
}); | ||
Object.defineProperty(MqttOverWSProvider.prototype, "isSSLEnabled", { | ||
get: function () { | ||
return !this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
MqttOverWSProvider.prototype.getTopicForValue = function (value) { return typeof value === 'object' && value[topicSymbol]; }; | ||
@@ -181,3 +188,3 @@ MqttOverWSProvider.prototype.getProviderName = function () { return 'MqttOverWSProvider'; }; | ||
client.connect({ | ||
useSSL: true, | ||
useSSL: _this.isSSLEnabled, | ||
mqttVersion: 3, | ||
@@ -184,0 +191,0 @@ onSuccess: function () { return resolve(client); }, |
@@ -74,3 +74,3 @@ "use strict"; | ||
if (!this._awsAppSyncProvider) { | ||
this._awsAppSyncProvider = new Providers_1.AWSAppSyncProvider(); | ||
this._awsAppSyncProvider = new Providers_1.AWSAppSyncProvider(this._options); | ||
} | ||
@@ -77,0 +77,0 @@ return this._awsAppSyncProvider; |
{ | ||
"name": "@aws-amplify/pubsub", | ||
"version": "1.0.33-unstable.6+c3c1e68e", | ||
"version": "1.0.33-unstable.7+4390e8ed", | ||
"description": "Pubsub category of aws-amplify", | ||
@@ -53,3 +53,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@aws-amplify/core": "1.0.32-unstable.6+c3c1e68e", | ||
"@aws-amplify/core": "1.0.32-unstable.7+4390e8ed", | ||
"uuid": "^3.2.1", | ||
@@ -84,3 +84,3 @@ "zen-observable": "^0.8.6" | ||
}, | ||
"gitHead": "c3c1e68ea4783a4f6ea475f3733edb9cd3413e58" | ||
"gitHead": "4390e8edd24027af42ce4717ec116af8ddb9b2fc" | ||
} |
@@ -81,2 +81,6 @@ /* | ||
protected get isSSLEnabled() { | ||
return !this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing; | ||
} | ||
protected getTopicForValue(value) { return typeof value === 'object' && value[topicSymbol]; } | ||
@@ -103,6 +107,6 @@ | ||
}; | ||
await new Promise((resolve, reject) => { | ||
client.connect({ | ||
useSSL: true, | ||
useSSL: this.isSSLEnabled, | ||
mqttVersion: 3, | ||
@@ -109,0 +113,0 @@ onSuccess: () => resolve(client), |
@@ -39,3 +39,3 @@ /* | ||
if (!this._awsAppSyncProvider) { | ||
this._awsAppSyncProvider = new AWSAppSyncProvider(); | ||
this._awsAppSyncProvider = new AWSAppSyncProvider(this._options); | ||
} | ||
@@ -42,0 +42,0 @@ return this._awsAppSyncProvider; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
5000571
30312
358