Skip to content

Commit 52035ed

Browse files
author
pedro
committed
update:更换命名规范
1 parent 61cdfe6 commit 52035ed

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import isAsyncFunction from "is-async-function";
22
import { get, isArray, set, unset } from "lodash";
33
import { ParametersException } from "./exception";
44
import { Context } from "koa";
5-
import { extendedValidator } from "./extendedValidator";
5+
import { extendedValidator } from "./extended-validator";
66
import { getAllMethodNames } from "./util";
77

88
/**

lib/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { json, logging } from "./extend";
1414
import { NotFound, ParametersException } from "./exception";
1515
import { set, get, has, merge } from "lodash";
1616
import { Loader } from "./loader";
17-
import { LinRouter } from "./linRouter";
18-
import { verify } from "./passwordHash";
17+
import { LinRouter } from "./lin-router";
18+
import { verify } from "./password-hash";
1919

2020
// tslint:disable-next-line:variable-name
2121
export const __version__ = "0.0.1";

lib/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ export * from "./core";
22
export * from "./enums";
33
export * from "./exception";
44
export * from "./extend";
5-
export * from "./classValidator";
6-
export * from "./extendedValidator";
5+
export * from "./class-validator";
6+
export * from "./extended-validator";
77
export * from "./jwt";
88
export * from "./log";
99
export * from "./middleware";
1010
export * from "./mixin";
11-
export * from "./linRouter";
11+
export * from "./lin-router";
1212
export * from "./util";

lib/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Sequelize from "sequelize";
22
import { merge } from "lodash";
33
import { UserAdmin, UserActive } from "./enums";
44
import dayjs from "dayjs";
5-
import { generate } from "./passwordHash";
5+
import { generate } from "./password-hash";
66

77
export const InfoCrudMixin = {
88
attributes: {
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lin-cms",
3-
"version": "0.0.1-alpha4",
3+
"version": "0.0.1-alpha5",
44
"description": "The core library of Lin CMS, this package is just for test!",
55
"main": "lin/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)