@advertising-all/basic-user-api
Advanced tools
Comparing version 1.0.47 to 1.0.52
{ | ||
"name": "@advertising-all/basic-user-api", | ||
"version": "1.0.47", | ||
"version": "1.0.52", | ||
"description": "你好示例API", | ||
@@ -17,5 +17,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"dependencies": { | ||
"@mshow3/basic-user-api": "^1.0.23" | ||
} | ||
"dependencies": {} | ||
} |
@@ -15,3 +15,3 @@ "use strict"; | ||
}, ["user"], ""), | ||
allUser: api_1.DB_R(DbSchema_1.schemasUser.user, { | ||
allUser: api_1.DB_RU(DbSchema_1.schemasUser.user, { | ||
excludeFields: ["pwHash", "mobile", "email"], | ||
@@ -18,0 +18,0 @@ sessionMatch: {} |
@@ -19,2 +19,3 @@ "use strict"; | ||
var loginApi_1 = require("./api/loginApi"); | ||
var userApi_1 = require("./api/userApi"); | ||
var groupApi_1 = require("./api/groupApi"); | ||
@@ -28,3 +29,3 @@ var DbApi_1 = require("./db/DbApi"); | ||
pkg: { name: package_json_1.name, version: package_json_1.version, description: package_json_1.description }, | ||
api: __assign(__assign({}, loginApi_1.loginApi), groupApi_1.groupApi), | ||
api: __assign(__assign(__assign({}, loginApi_1.loginApi), groupApi_1.groupApi), userApi_1.userApi), | ||
db: __assign({}, DbApi_1.DbApi), | ||
@@ -31,0 +32,0 @@ session: __assign({}, SessionDefine_1.sessions), |
@@ -13,2 +13,3 @@ "use strict"; | ||
permissions: [], | ||
right: [] | ||
}, | ||
@@ -15,0 +16,0 @@ server: { |
{ | ||
"name": "@advertising-all/basic-user-api", | ||
"version": "1.0.47", | ||
"version": "1.0.52", | ||
"description": "你好示例API", | ||
@@ -17,5 +17,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"dependencies": { | ||
"@mshow3/basic-user-api": "^1.0.23" | ||
} | ||
"dependencies": {} | ||
} |
@@ -19,3 +19,3 @@ import { DB_CRUD, DB_R, DB_RU } from "@vmm/api"; | ||
), | ||
allUser: DB_R( | ||
allUser: DB_RU( | ||
schemasUser.user, | ||
@@ -22,0 +22,0 @@ { |
@@ -24,53 +24,54 @@ import { DbSchema, createDbSchemas } from "@vmm/api"; | ||
user: new DbSchema<// 数据库定义: | ||
{ | ||
name: string; // 用户登录名称 | ||
displayName?: string; //用户显示名称 | ||
pwHash: string; // 用户密码 | ||
// actor: string[]; // 用户角色 | ||
group: string[]; // 用户分组-->actor,menu | ||
avatar?: string; // 用户头像 | ||
tag?: string[]; // 用户标签 | ||
mobile?: string; // 用户手机号 | ||
email?: string; // 用户邮箱 | ||
permissions?: {}; // 自定义权限 | ||
// thirdAccounts?: string[]; // 第三方账户登录信息 | ||
// 三方moduleName:id | ||
extra?: {}; // 扩展信息 | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true } | ||
name: string; // 用户登录名称 | ||
displayName?: string; //用户显示名称 | ||
pwHash: string; // 用户密码 | ||
// actor: string[]; // 用户角色 | ||
group: string[]; // 用户分组-->actor,menu | ||
avatar?: string; // 用户头像 | ||
tag?: string[]; // 用户标签 | ||
mobile?: string; // 用户手机号 | ||
email?: string; // 用户邮箱 | ||
permissions?: {}; // 自定义权限 | ||
// thirdAccounts?: string[]; // 第三方账户登录信息 | ||
// 三方moduleName:id | ||
extra?: {}; // 扩展信息 | ||
right?: Array<string>; // 权限 | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true } | ||
} | ||
} | ||
} | ||
), | ||
), | ||
// 用户组 | ||
groups: new DbSchema<// 数据库定义: | ||
{ | ||
name: string; // 用户组名称 | ||
actor: string; // 用户组所属的角色名 | ||
pageGroup: string[]; // 页面权限组id | ||
bBase?: Boolean; // 基础分组,无法删除、修改(基础访客分组) | ||
bDefault?: Boolean; // 默认分组,用户注册时默认分配的分组 | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{} | ||
), | ||
{ | ||
name: string; // 用户组名称 | ||
actor: string; // 用户组所属的角色名 | ||
pageGroup: string[]; // 页面权限组id | ||
bBase?: Boolean; // 基础分组,无法删除、修改(基础访客分组) | ||
bDefault?: Boolean; // 默认分组,用户注册时默认分配的分组 | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{} | ||
), | ||
// 页面权限组 | ||
pageGroups: new DbSchema<// 数据库定义: | ||
{ | ||
name: string; // 页面组名称 | ||
menu: IPERMISSIONS[]; // 页面组 | ||
bBase?: Boolean; // 基础分组,无法删除、修改(基础访客:登录页面) | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{} | ||
), | ||
{ | ||
name: string; // 页面组名称 | ||
menu: IPERMISSIONS[]; // 页面组 | ||
bBase?: Boolean; // 基础分组,无法删除、修改(基础访客:登录页面) | ||
}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{} | ||
), | ||
// 黑名单 | ||
@@ -77,0 +78,0 @@ blackList: new DbSchema<IBlackList>( |
import { name, version, description } from '../package.json'; | ||
import { loginApi } from './api/loginApi'; | ||
import { userApi } from './api/userApi'; | ||
import { groupApi } from './api/groupApi'; | ||
@@ -14,3 +15,4 @@ import { DbApi } from './db/DbApi'; | ||
...loginApi, | ||
...groupApi | ||
...groupApi, | ||
...userApi | ||
}, | ||
@@ -17,0 +19,0 @@ db: { |
@@ -13,2 +13,3 @@ import { IPERMISSIONS } from '../db/DbSchema'; | ||
permissions: [] as IPERMISSIONS[], //用户权限组 | ||
right: [] | ||
}, | ||
@@ -15,0 +16,0 @@ server: { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22923
0
23
678
1
- Removed@mshow3/basic-user-api@^1.0.23
- Removed@mshow3/basic-user-api@1.0.70(transitive)