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

alaska-user

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alaska-user - npm Package Compare versions

Comparing version 0.8.2 to 0.9.0

2

lib/alaska-user.js

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

'+appMiddlewares': [{
id: 'alaska-session',
id: 'alaska-middleware-session',
sort: 800,

@@ -44,0 +44,0 @@ options: MAIN.config('session')

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

}
ctx.body = ctx.user.data();
ctx.body = ctx.user.data('info');
});

@@ -54,0 +54,0 @@ return function (_x) {

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

let user = yield service.run('Login', { username, password });
ctx.body = user.data();
ctx.body = user.data('info');
});

@@ -35,0 +35,0 @@ return function (_x) {

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

var ref = (0, _co.wrap)(function* (ctx) {
service.run('Logout', { ctx });
yield service.run('Logout', { ctx });
ctx.body = {};

@@ -20,0 +20,0 @@ });

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

let user = yield service.run('Register', { username, password, ctx });
ctx.body = user.data();
ctx.body = user.data('info');
});

@@ -36,0 +36,0 @@ return function (_x) {

@@ -41,6 +41,9 @@ 'use strict';

Ability.label = 'Ability';
Ability.defaultColumns = '_id,title,service,createdAt';
Ability.defaultColumns = '_id title service createdAt';
Ability.searchFields = 'title';
Ability.fields = {
_id: String,
_id: {
type: String,
required: true
},
title: {

@@ -47,0 +50,0 @@ label: 'Title',

@@ -71,6 +71,9 @@ 'use strict';

Role.defaultSort = '-sort';
Role.defaultColumns = '_id,title,sort,createdAt';
Role.defaultColumns = '_id title sort createdAt';
Role.searchFields = 'title';
Role.fields = {
_id: String,
_id: {
type: String,
required: true
},
title: {

@@ -77,0 +80,0 @@ label: 'Title',

@@ -93,5 +93,10 @@ 'use strict';

User.title = 'username';
User.defaultColumns = 'avatar,username,email,roles,createdAt';
User.searchFields = 'username,email';
User.defaultColumns = 'avatar username email roles createdAt';
User.searchFields = 'username email';
User.defaultSort = '-createdAt';
User.noremove = true;
User.scopes = {
tiny: 'displayName avatar _username',
info: '*'
};
User.fields = {

@@ -137,2 +142,7 @@ username: {

}
};
User.virtuals = {
get displayName() {
return this.username;
}
};
{
"name": "alaska-user",
"version": "0.8.2",
"version": "0.9.0",
"description": "Alaska user service",

@@ -27,13 +27,13 @@ "main": "lib/alaska-user.js",

"peerDependencies": {
"alaska": "^0.8.6"
"alaska": "^0.9.0"
},
"dependencies": {
"alaska-field-datetime": "^0.8.0",
"alaska-field-image": "^0.8.0",
"alaska-field-number": "^0.8.0",
"alaska-field-password": "^0.8.0",
"alaska-field-relationship": "^0.8.0",
"alaska-field-text": "^0.8.0",
"alaska-session": "^0.1.1"
"alaska-field-datetime": "^0.9.0",
"alaska-field-image": "^0.9.0",
"alaska-field-number": "^0.9.0",
"alaska-field-password": "^0.9.0",
"alaska-field-relationship": "^0.9.0",
"alaska-field-text": "^0.9.0",
"alaska-middleware-session": "^0.2.0"
}
}
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