Socket
Socket
Sign inDemoInstall

@adastradev/user-management-sdk

Package Overview
Dependencies
43
Maintainers
42
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 4.0.0-beta.1653511514034

2

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

@@ -7,0 +5,0 @@ lastRefresh: number;

@@ -39,22 +39,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthManager = exports.configureAwsProxy = void 0;
exports.AuthManager = void 0;
var AWS = require("aws-sdk/global");
var amazon_cognito_identity_js_1 = require("amazon-cognito-identity-js");
var proxy = require('proxy-agent');
// tslint:disable-next-line:no-duplicate-imports
var global_1 = require("aws-sdk/global");
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 () {

@@ -66,3 +51,2 @@ function AuthManager(locator, region) {

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

@@ -69,0 +53,0 @@ }

7

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

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

"amazon-cognito-identity-js": "^4.6.3",
"axios": "^0.25.0",
"node-fetch": "^2.6.7",
"proxy-agent": "^5.0.0"
"axios": "^0.26.0",
"node-fetch": "^2.6.7"
},

@@ -41,0 +40,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc