Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adastradev/user-management-sdk

Package Overview
Dependencies
Maintainers
11
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adastradev/user-management-sdk - npm Package Compare versions

Comparing version 1.0.3-beta.1 to 1.0.3-beta.2

source/AuthManager.ts

2

dist/AuthManager.d.ts
import { ICognitoUserPoolLocator } from './ICognitoUserPoolLocator';
import * as AWS from 'aws-sdk';
import { CognitoUserSession } from 'amazon-cognito-identity-js';
import { GlobalConfigInstance } from 'aws-sdk/lib/config';
export declare function configureAwsProxy(awsConfig: GlobalConfigInstance): void;
export declare class AuthManager {

@@ -5,0 +7,0 @@ private locator;

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

var amazon_cognito_identity_js_1 = require("amazon-cognito-identity-js");
var proxy = require("proxy-agent");
function configureAwsProxy(awsConfig) {
if (process.env.HTTP_PROXY || process.env.HTTPS_PROXY) {
// TODO: does AWS support multiple proxy protocols simultaneously (HTTP and HTTPS proxy)
// For now, this prefers HTTPS over HTTP proxy protocol for HTTPS requests
var proxyUri = process.env.HTTP_PROXY;
if (proxyUri === undefined) {
proxyUri = process.env.HTTPS_PROXY;
}
awsConfig.update({
httpOptions: { agent: proxy(proxyUri) }
});
}
}
exports.configureAwsProxy = configureAwsProxy;
var AuthManager = /** @class */ (function () {

@@ -45,2 +60,4 @@ function AuthManager(locator, region) {

this.region = region;
// AWS module configuration
configureAwsProxy(AWS.config);
AWS.config.region = region;

@@ -47,0 +64,0 @@ }

5

package.json
{
"name": "@adastradev/user-management-sdk",
"version": "1.0.3-beta.1",
"version": "1.0.3-beta.2",
"description": "Astra user management SDK for JavaScript in the browser and Node.js",

@@ -30,3 +30,4 @@ "main": "dist/index.js",

"aws-sdk": "^2.354.0",
"axios": "^0.19.0-beta.1"
"axios": "^0.19.0-beta.1",
"proxy-agent": "^3.0.3"
},

@@ -33,0 +34,0 @@ "devDependencies": {

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