New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

larvituser

Package Overview
Dependencies
Maintainers
2
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

larvituser - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

16

controllers/adminUsers/edit.js
'use strict';
const userLib = require(__dirname + '/../../index.js'),
const userLib = require('larvituser'),
async = require('async');

@@ -56,3 +56,5 @@

if (result !== true) {
data.global.errors.push('Username is taken by another user');
const err = new Error('Username is taken by another user');
data.global.errors.push(err.message);
return cb(err);
}

@@ -84,2 +86,6 @@

tasks.push(function(cb) {
if ( ! user) {
throw new Error('Ingen user?!??!');
}
if (data.global.formFields.username.trim() === user.username) {

@@ -167,4 +173,8 @@ cb();

async.series(tasks, function(err) {
cb(err, req, res, data);
if (err && ! data.global.errors) {
cb(err, req, res, data);
} else {
cb(null, req, res, data);
}
});
};

2

package.json
{
"name": "larvituser",
"version": "0.8.3",
"version": "0.8.4",
"author": {

@@ -5,0 +5,0 @@ "name": "Mikael 'Lilleman' Göransson",

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