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

klark-js-plugins

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klark-js-plugins - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

2

package.json
{
"name": "klark-js-plugins",
"version": "1.0.14",
"version": "1.0.15",
"description": "Plugin modules for KlarkJS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -280,10 +280,12 @@ 'use strict';

q.resolve()
.then(() => ({
user,
token: $crypto.randomBytes(8)
}))
.then(function({user, token}) {
user.password = token.toString('hex');
return user.save();
.then(function() {
return {
user: user,
token: $crypto.randomBytes(8)
};
})
.then(function(obj) {
obj.user.password = obj.token.toString('hex');
return obj.user.save();
})
.catch(function(reason) {

@@ -290,0 +292,0 @@ res.locals.errors.add('DB_ERROR', reason.errors || reason);

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