Skip to content

Commit

Permalink
fix: 修复 disableLoading 没有导出的问题; 增加 yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
smileShirmy committed Jul 12, 2020
1 parent a9d4741 commit 2f25662
Show file tree
Hide file tree
Showing 8 changed files with 4,628 additions and 12 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ npm-debug.log
yarn-error.log
node_modules/
package-lock.json
yarn.lock
coverage/
.idea/
run/
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ QQ 群号:643205479

## 版本日志

最新版本:`0.3.4`
最新版本:`0.3.5`

### 0.3.5

1. `A` 增加 yarn.lock
2. `F` 修复 disableLoading 没有导出的问题

### 0.3.4

Expand Down
8 changes: 1 addition & 7 deletions lib/core..ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import { set, get } from 'lodash';
import { config } from './config';

// tslint:disable-next-line:variable-name
export const __version__ = '0.3.2';

// 存放meta路由信息
export const routeMetaInfo = new Map();

// 当前文件路由是否挂载
export const disableLoading = Symbol('disableLoading');
export const __version__ = '0.3.5';

/**
* Lin核心类
Expand Down
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export * from './jwt'
export * from './loader'
export * from './interface'

export { Lin } from './core.'
export { Lin, __version__ } from './core.'
4 changes: 3 additions & 1 deletion lib/loader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import Router from 'koa-router';
import path from 'path';
import { Plugin } from '../plugin';
import { config } from '../config';
import { disableLoading } from '../core.';

const baseDir = config.getItem('baseDir', process.cwd())

// 当前文件路由是否挂载
export const disableLoading = Symbol('disableLoading');

/**
* 加载器
* 用于加载插件和路由文件
Expand Down
1 change: 0 additions & 1 deletion lib/utils/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from 'fs';
import path from 'path';
// import { routeMetaInfo } from './core';
import { unset } from 'lodash';
// import { ParametersException } from './exception';
// import { extendedValidator } from './extended-validator';
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"cms",
"koa"
],
"repository": {
"type": "git",
"url": "git+https://github.com/TaleLin/lin-cms-koa-core.git"
},
"author": "Pedro/Shirmy/Evan",
"license": "MIT",
"dependencies": {
Expand Down
4,613 changes: 4,613 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 2f25662

Please sign in to comment.