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

@accounts/common

Package Overview
Dependencies
Maintainers
4
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/common - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5-alpha.451f3013

flow-typed/npm/jest_v18.x.x.js

1

lib/config.js

@@ -12,2 +12,3 @@ 'use strict';

exports.default = {
siteUrl: 'http://localhost:3000',
sendVerificationEmail: false,

@@ -14,0 +15,0 @@ sendEnrollmentEmail: false,

3

lib/index.js

@@ -34,2 +34,3 @@ 'use strict';

exports.toUsernameAndEmail = _toUsernameAndEmail2.default;
exports.config = _config2.default; /* eslint-disable import/no-named-as-default */
exports.config = _config2.default;
/* eslint-disable import/no-named-as-default */

@@ -17,3 +17,3 @@ 'use strict';

var validateEmail = exports.validateEmail = function validateEmail(email) {
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email));
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(email || ''));
return isValid;

@@ -28,4 +28,4 @@ };

var validateUsername = exports.validateUsername = function validateUsername(username) {
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(username));
var isValid = !(0, _lodash.isEmpty)((0, _lodash.trim)(username || ''));
return isValid;
};
{
"name": "@accounts/common",
"version": "0.0.4",
"version": "0.0.5-alpha.451f3013",
"description": "Fullstack authentication and accounts-management",

@@ -12,2 +12,3 @@ "main": "lib/index.js",

"compile": "babel ./src --out-dir ./lib",
"postcompile": "npm run flow:prepublish",
"prepublish": "npm run compile",

@@ -17,2 +18,5 @@ "test": "npm run testonly",

"testonly": "jest",
"flow:check": "flow check",
"flow:gen": "flow gen-flow-files ./src/index.js > ./lib/index.js.flow",
"flow:prepublish": "for i in `ls ./src/*.js`; do cp $i `echo $i | sed \"s/src/lib/g\" | sed \"s/js/js\\.flow/g\"`; done",
"coverage": "npm run testonly -- --coverage",

@@ -57,3 +61,3 @@ "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"

"coveralls": "^2.11.14",
"flow-bin": "^0.37.0",
"flow-bin": "^0.39.0",
"jest": "^18.0.0",

@@ -60,0 +64,0 @@ "localstorage-polyfill": "^1.0.1",

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