Socket
Socket
Sign inDemoInstall

amazon-cognito-identity-js

Package Overview
Dependencies
Maintainers
13
Versions
1619
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-cognito-identity-js - npm Package Compare versions

Comparing version 6.3.2-api-v6-models.40 to 6.3.2-api-v6-models.41

5

es/internals/InternalCognitoUserPool.js

@@ -8,2 +8,3 @@ /*

import CognitoUser from '../CognitoUser';
import { InternalCognitoUser } from '../internals';
import StorageHelper from '../StorageHelper';

@@ -119,3 +120,3 @@ var USER_POOL_ID_MAX_LENGTH = 55;

var returnData = {
user: new CognitoUser(cognitoUser),
user: new InternalCognitoUser(cognitoUser),
userConfirmed: data.UserConfirmed,

@@ -143,3 +144,3 @@ userSub: data.UserSub,

};
return new CognitoUser(cognitoUser);
return new InternalCognitoUser(cognitoUser);
}

@@ -146,0 +147,0 @@ return null;

47

internals/index.d.ts

@@ -25,25 +25,2 @@ import {

export class InternalCognitoUserPool {
constructor(
data: ICognitoUserPoolData,
wrapRefreshSessionCallback?: (target: NodeCallback.Any) => NodeCallback.Any
);
public getUserPoolId(): string;
public getUserPoolName(): string;
public getClientId(): string;
public signUp(
username: string,
password: string,
userAttributes: CognitoUserAttribute[],
validationData: CognitoUserAttribute[],
callback: NodeCallback<Error, ISignUpResult>,
clientMetadata?: ClientMetadata,
userAgentValue?: string
): void;
public getCurrentUser(): CognitoUser | null;
}
export class InternalCognitoUser {

@@ -238,2 +215,3 @@ constructor(data: ICognitoUserData);

callback: NodeCallback<Error, string>,
clientMetaData?: ClientMetadata,
userAgentValue?: string

@@ -297,1 +275,24 @@ ): void;

}
export class InternalCognitoUserPool {
constructor(
data: ICognitoUserPoolData,
wrapRefreshSessionCallback?: (target: NodeCallback.Any) => NodeCallback.Any
);
public getUserPoolId(): string;
public getUserPoolName(): string;
public getClientId(): string;
public signUp(
username: string,
password: string,
userAttributes: CognitoUserAttribute[],
validationData: CognitoUserAttribute[],
callback: NodeCallback<Error, ISignUpResult>,
clientMetadata?: ClientMetadata,
userAgentValue?: string
): void;
public getCurrentUser(): CognitoUser | null;
}

@@ -7,2 +7,3 @@ "use strict";

var _CognitoUser = _interopRequireDefault(require("../CognitoUser"));
var _internals = require("../internals");
var _StorageHelper = _interopRequireDefault(require("../StorageHelper"));

@@ -124,3 +125,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var returnData = {
user: new _CognitoUser["default"](cognitoUser),
user: new _internals.InternalCognitoUser(cognitoUser),
userConfirmed: data.UserConfirmed,

@@ -148,3 +149,3 @@ userSub: data.UserSub,

};
return new _CognitoUser["default"](cognitoUser);
return new _internals.InternalCognitoUser(cognitoUser);
}

@@ -151,0 +152,0 @@ return null;

{
"name": "amazon-cognito-identity-js",
"description": "Amazon Cognito Identity Provider JavaScript SDK",
"version": "6.3.2-api-v6-models.40+62a13d7bc",
"version": "6.3.2-api-v6-models.41+95cd0806f",
"author": {

@@ -77,3 +77,3 @@ "name": "Amazon Web Services",

},
"gitHead": "62a13d7bcd5a015eab416b66dff503b0f657f6bc"
"gitHead": "95cd0806f3b6a0414a6027c036fa9d46c2f15f73"
}

@@ -8,2 +8,3 @@ /*

import CognitoUser from '../CognitoUser';
import { InternalCognitoUser } from '../internals';
import StorageHelper from '../StorageHelper';

@@ -140,3 +141,3 @@

const returnData = {
user: new CognitoUser(cognitoUser),
user: new InternalCognitoUser(cognitoUser),
userConfirmed: data.UserConfirmed,

@@ -169,3 +170,3 @@ userSub: data.UserSub,

return new CognitoUser(cognitoUser);
return new InternalCognitoUser(cognitoUser);
}

@@ -172,0 +173,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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 too big to display

Sorry, the diff of this file is too big to display

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