alaska-user
Advanced tools
Comparing version 0.8.2 to 0.9.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21648
753
+ Added@babel/runtime@7.26.0(transitive)
+ Addedalaska@0.9.18(transitive)
+ Addedalaska-field-datetime@0.9.1(transitive)
+ Addedalaska-field-image@0.9.2(transitive)
+ Addedalaska-field-number@0.9.2(transitive)
+ Addedalaska-field-password@0.9.1(transitive)
+ Addedalaska-field-relationship@0.9.2(transitive)
+ Addedalaska-field-select@0.9.1(transitive)
+ Addedalaska-field-text@0.9.2(transitive)
+ Addedalaska-middleware-session@0.2.2(transitive)
+ Addedasync@1.5.2(transitive)
+ Addedbluebird@2.10.2(transitive)
+ Addedbson@0.4.23(transitive)
+ Addedchain-function@1.0.1(transitive)
+ Addeddebug@2.2.0(transitive)
+ Addeddom-helpers@3.4.0(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedes6-promise@3.0.2(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addedhooks-fixed@1.1.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addedkareem@1.0.1(transitive)
+ Addedmongodb@2.1.18(transitive)
+ Addedmongodb-core@1.3.18(transitive)
+ Addedmongoose@4.4.20(transitive)
+ Addedmpath@0.2.1(transitive)
+ Addedmquery@1.11.0(transitive)
+ Addedms@0.7.1(transitive)
+ Addedmuri@1.1.0(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedpath-to-regexp@8.2.0(transitive)
+ Addedreact@15.7.016.14.0(transitive)
+ Addedreact-addons-css-transition-group@15.6.2(transitive)
+ Addedreact-addons-shallow-compare@15.6.3(transitive)
+ Addedreact-dom@15.7.016.14.0(transitive)
+ Addedreact-selectize@2.1.0(transitive)
+ Addedreact-transition-group@1.2.1(transitive)
+ Addedreadable-stream@1.0.31(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedscheduler@0.19.1(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedwarning@3.0.0(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
- Removedalaska-session@^0.1.1
- Removedacorn@5.7.4(transitive)
- Removedalaska@0.8.7(transitive)
- Removedalaska-field-datetime@0.8.1(transitive)
- Removedalaska-field-image@0.8.1(transitive)
- Removedalaska-field-number@0.8.0(transitive)
- Removedalaska-field-password@0.8.1(transitive)
- Removedalaska-field-relationship@0.8.2(transitive)
- Removedalaska-field-select@0.8.1(transitive)
- Removedalaska-field-text@0.8.1(transitive)
- Removedalaska-session@0.1.1(transitive)
- Removedast-types@0.9.6(transitive)
- Removedasync@2.6.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbluebird@3.5.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbson@1.0.9(transitive)
- Removedbuffer-shims@1.0.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedenvify@3.4.1(transitive)
- Removedes6-promise@3.2.1(transitive)
- Removedesprima@3.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
- Removedfbjs@0.6.1(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhooks-fixed@2.0.2(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedkareem@1.5.0(transitive)
- Removedlodash.get@4.4.2(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedmongodb@2.2.34(transitive)
- Removedmongodb-core@2.1.18(transitive)
- Removedmongoose@4.13.21(transitive)
- Removedmpath@0.5.1(transitive)
- Removedmquery@2.3.3(transitive)
- Removedmuri@1.3.0(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedq@1.5.1(transitive)
- Removedreact@0.14.10(transitive)
- Removedreact-addons-css-transition-group@0.14.8(transitive)
- Removedreact-addons-shallow-compare@0.14.8(transitive)
- Removedreact-dom@0.14.10(transitive)
- Removedreact-selectize@0.9.0(transitive)
- Removedreadable-stream@2.2.7(transitive)
- Removedrecast@0.11.23(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedstring_decoder@1.0.3(transitive)
- Removedthrough@2.3.8(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwhatwg-fetch@0.9.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedalaska-field-datetime@^0.9.0
Updatedalaska-field-image@^0.9.0
Updatedalaska-field-number@^0.9.0
Updatedalaska-field-password@^0.9.0
Updatedalaska-field-text@^0.9.0