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

@adastradev/serverless-discovery-sdk

Package Overview
Dependencies
Maintainers
40
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adastradev/serverless-discovery-sdk - npm Package Compare versions

Comparing version 2.3.0-beta.1668638660051 to 2.3.0-beta.1668706278349

2

dist/DiscoverySdk.d.ts

@@ -15,3 +15,3 @@ export declare class DiscoverySdk {

} | {
URI: string;
URI: string | undefined;
isLatest: boolean;

@@ -18,0 +18,0 @@ currentVersion: any;

@@ -101,27 +101,14 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var URI, thisVersion, err_1, versionSpec, latestVer, retVal, err_2;
var URI, versionSpec, latestVer, retVal, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.api.lookupService(service, undefined, configVersion, undefined, shouldInvalidateCache)];
case 1:
thisVersion = _a.sent();
URI = thisVersion.data[0].ServiceURL;
return [3 /*break*/, 3];
case 2:
err_1 = _a.sent();
astra_logger_1.default.error("discovery failure for " + service + " " + configVersion, err_1);
return [2 /*return*/, {
isLatest: false
}];
case 3:
if (!!configVersion.includes('-')) return [3 /*break*/, 8];
if (!!configVersion.includes('-')) return [3 /*break*/, 5];
versionSpec = configVersion.split('.')[0] + '.x';
latestVer = void 0;
_a.label = 4;
case 4:
_a.trys.push([4, 6, , 7]);
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, this.api.lookupService(service, undefined, versionSpec, undefined, shouldInvalidateCache)];
case 5:
case 2:
retVal = _a.sent();

@@ -133,10 +120,10 @@ if (retVal && Array.isArray(retVal.data) && retVal.data.length > 0) {

}
return [3 /*break*/, 7];
case 6:
err_2 = _a.sent();
astra_logger_1.default.error("discovery failure for " + service + " " + versionSpec, err_2);
return [3 /*break*/, 4];
case 3:
err_1 = _a.sent();
astra_logger_1.default.error("discovery failure for " + service + " " + versionSpec, err_1);
return [2 /*return*/, {
isLatest: false
}];
case 7:
case 4:
// check returned version against this configVersion.

@@ -153,4 +140,4 @@ // if no results, allow to proceed. Is this the best way to handle?

}
_a.label = 8;
case 8: return [2 /*return*/, { isLatest: true, currentVersion: configVersion, URI: URI }];
_a.label = 5;
case 5: return [2 /*return*/, { isLatest: true, currentVersion: configVersion, URI: URI }];
}

@@ -157,0 +144,0 @@ });

{
"name": "@adastradev/serverless-discovery-sdk",
"version": "2.3.0-beta.1668638660051",
"version": "2.3.0-beta.1668706278349",
"description": "Serverless Service Discovery API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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