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

idea-toolbox

Package Overview
Dependencies
Maintainers
2
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-toolbox - npm Package Compare versions

Comparing version 6.5.1 to 6.5.2

4

dist/src/cognitoUser.model.d.ts

@@ -29,2 +29,6 @@ /**

/**
* Check whether the user's attributes are valid.
*/
validate(): string[];
/**
* Whether the user is part of the administrators group.

@@ -31,0 +35,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CognitoUser = void 0;
const utils_1 = require("./utils");
/**

@@ -23,2 +24,13 @@ * A user stored in a Cognito User Pool.

/**
* Check whether the user's attributes are valid.
*/
validate() {
const e = [];
if ((0, utils_1.isEmpty)(this.name))
e.push('name');
if ((0, utils_1.isEmpty)(this.email, 'email'))
e.push('email');
return e;
}
/**
* Whether the user is part of the administrators group.

@@ -25,0 +37,0 @@ */

2

package.json
{
"name": "idea-toolbox",
"version": "6.5.1",
"version": "6.5.2",
"description": "IDEA's utility functions",

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