New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/pubsub

Package Overview
Dependencies
Maintainers
10
Versions
2046
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/pubsub - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-unstable.9

22

lib/Providers/AWSAppSyncProvider.js

@@ -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

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