@aws-amplify/pubsub
Advanced tools
Comparing version 1.1.0 to 1.1.1-unstable.9
@@ -187,12 +187,24 @@ "use strict"; | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var client; | ||
var client, err_1; | ||
var _this = this; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: return [4 /*yield*/, this.connect(clientId, { | ||
clientId: clientId, | ||
url: url, | ||
})]; | ||
case 0: | ||
client = null; | ||
_c.label = 1; | ||
case 1: | ||
_c.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, this.connect(clientId, { | ||
clientId: clientId, | ||
url: url, | ||
})]; | ||
case 2: | ||
client = _c.sent(); | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
err_1 = _c.sent(); | ||
observer.error({ message: 'Failed to connect', error: err_1 }); | ||
observer.complete(); | ||
return [2 /*return*/, undefined]; | ||
case 4: | ||
// subscribe to all topics for this client | ||
@@ -199,0 +211,0 @@ // store topic-client mapping |
{ | ||
"name": "@aws-amplify/pubsub", | ||
"version": "1.1.0", | ||
"version": "1.1.1-unstable.9+ece0b229", | ||
"description": "Pubsub category of aws-amplify", | ||
@@ -53,3 +53,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@aws-amplify/core": "^1.1.0", | ||
"@aws-amplify/core": "1.1.0", | ||
"uuid": "^3.2.1", | ||
@@ -84,3 +84,3 @@ "zen-observable": "^0.8.6" | ||
}, | ||
"gitHead": "b7d2eb97ca4e6023da2253821cf2d26a90773bfb" | ||
"gitHead": "ece0b229441357b754615052393e09bf8ecf6894" | ||
} |
@@ -132,6 +132,13 @@ /* | ||
// connect to new client | ||
const client = await this.connect(clientId, { | ||
clientId, | ||
url, | ||
}); | ||
let client = null; | ||
try { | ||
client = await this.connect(clientId, { | ||
clientId, | ||
url, | ||
}); | ||
} catch (err) { | ||
observer.error({ message: 'Failed to connect', error: err }); | ||
observer.complete(); | ||
return undefined; | ||
} | ||
@@ -138,0 +145,0 @@ // subscribe to all topics for this client |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
30345
5005344
1
+ Added@aws-amplify/core@1.1.0(transitive)
+ Addedaws-sdk@2.474.0(transitive)
- Removed@aws-amplify/core@1.3.3(transitive)
- Removedaws-sdk@2.518.0(transitive)
Updated@aws-amplify/core@1.1.0