dinegg 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
+ import AppCache from "../../lib/core/AppCache";
1
2
  declare const _default: {
2
- /** app挂载内存缓存对象 */
3
- readonly cache: any;
3
+ /** app挂载内存缓存对象
4
+ * -简单的内存缓存操作类map
5
+ */
6
+ readonly cache: AppCache;
4
7
  };
5
8
  export default _default;
@@ -11,7 +11,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  const AppCache_1 = require("../../lib/core/AppCache");
12
12
  const cacheKeySymbol = Symbol("dinegg#appCacheTempKey");
13
13
  exports.default = {
14
- /** app挂载内存缓存对象 */
14
+ /** app挂载内存缓存对象
15
+ * -简单的内存缓存操作类map
16
+ */
15
17
  get cache() {
16
18
  if (!this[cacheKeySymbol]) {
17
19
  // @ts-ignore
@@ -20,4 +22,4 @@ exports.default = {
20
22
  return this[cacheKeySymbol];
21
23
  },
22
24
  };
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhcHBsaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztHQU9HO0FBQ0gsWUFBWSxDQUFDOztBQUViLHNEQUErQztBQUUvQyxNQUFNLGNBQWMsR0FBRyxNQUFNLENBQUMsd0JBQXdCLENBQUMsQ0FBQztBQUV4RCxrQkFBZTtJQUNkLGtCQUFrQjtJQUNsQixJQUFJLEtBQUs7UUFDUixJQUFJLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxFQUFFO1lBQzFCLGFBQWE7WUFDYixJQUFJLENBQUMsY0FBYyxDQUFDLEdBQUcsa0JBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQ2xEO1FBQ0QsT0FBTyxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUM7SUFDN0IsQ0FBQztDQUNELENBQUMifQ==
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhcHBsaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztHQU9HO0FBQ0gsWUFBWSxDQUFDOztBQUViLHNEQUErQztBQUUvQyxNQUFNLGNBQWMsR0FBRyxNQUFNLENBQUMsd0JBQXdCLENBQUMsQ0FBQztBQUV4RCxrQkFBZTtJQUNkOztPQUVHO0lBQ0gsSUFBSSxLQUFLO1FBQ1IsSUFBSSxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsRUFBRTtZQUMxQixhQUFhO1lBQ2IsSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLGtCQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztTQUNsRDtRQUNELE9BQU8sSUFBSSxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQzdCLENBQUM7Q0FDRCxDQUFDIn0=
package/index.d.ts CHANGED
@@ -25,7 +25,6 @@ import "./lib/typings/shim.validate";
25
25
  interface ExtendContextType {}
26
26
 
27
27
  import { AbstractPermissionAccessControl } from "./decorator";
28
- import AppCache from "./lib/core/AppCache";
29
28
  import DineggAPIClient from "./lib/core/ClusterClient/DineggAPIClient";
30
29
 
31
30
  /** 装饰器方法函数签名 */
@@ -99,8 +98,7 @@ declare module "egg" {
99
98
  }
100
99
 
101
100
  interface Application {
102
- /** 简单的内存缓存操作类map */
103
- cache: AppCache;
101
+
104
102
  /** 外部实现的权限控制类挂载在app上,该类必须实现了抽象类 */
105
103
  PermissionAccessControl: typeof AbstractPermissionAccessControl;
106
104
  /** egg框架内的cluster方法 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinegg",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "egg framework dinegg.",
5
5
  "dependencies": {
6
6
  "@diyaner/egg-sequelize": "^6.0.0",
@@ -37,7 +37,7 @@
37
37
  "tsc": "tsc",
38
38
  "clean:js": "ets clean",
39
39
  "clean": "tsc -b --clean",
40
- "release": "tsc && npm publish && npm run clean",
40
+ "release": "tsc && ets && npm publish && npm run clean",
41
41
  "cov": "tsc && egg-bin cov && npm run clean",
42
42
  "lint": "eslint . --resolve-plugins-relative-to .",
43
43
  "ci": "npm run lint && npm run cov",
@@ -75,7 +75,8 @@
75
75
  "tshelper.js",
76
76
  "lib/**/*.d.ts",
77
77
  "decorator/**/*.js",
78
- "decorator/**/*.d.ts"
78
+ "decorator/**/*.d.ts",
79
+ "typings/**/*.d.ts"
79
80
  ],
80
81
  "eslintIgnore": [
81
82
  "coverage",
@@ -0,0 +1,10 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ import ExtendApplication from '../../../app/extend/application';
7
+ type ExtendApplicationType = typeof ExtendApplication;
8
+ declare module 'egg' {
9
+ interface Application extends ExtendApplicationType { }
10
+ }
@@ -0,0 +1,10 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ import ExtendContext from '../../../app/extend/context';
7
+ type ExtendContextType = typeof ExtendContext;
8
+ declare module 'egg' {
9
+ interface Context extends ExtendContextType { }
10
+ }
@@ -0,0 +1,10 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ import ExtendIHelper from '../../../app/extend/helper';
7
+ type ExtendIHelperType = typeof ExtendIHelper;
8
+ declare module 'egg' {
9
+ interface IHelper extends ExtendIHelperType { }
10
+ }
@@ -0,0 +1,7 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ export * from 'egg';
7
+ export as namespace Egg;
@@ -0,0 +1,14 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ import ExportCatchNoCatchError from '../../../app/middleware/catchNoCatchError';
7
+ import ExportJwtLogin from '../../../app/middleware/jwtLogin';
8
+
9
+ declare module 'egg' {
10
+ interface IMiddleware {
11
+ catchNoCatchError: typeof ExportCatchNoCatchError;
12
+ jwtLogin: typeof ExportJwtLogin;
13
+ }
14
+ }
@@ -0,0 +1,16 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ type AnyClass = new (...args: any[]) => any;
7
+ type AnyFunc<T = any> = (...args: any[]) => T;
8
+ type CanExportFunc = AnyFunc<Promise<any>> | AnyFunc<IterableIterator<any>>;
9
+ type AutoInstanceType<T, U = T extends CanExportFunc ? T : T extends AnyFunc ? ReturnType<T> : T> = U extends AnyClass ? InstanceType<U> : U;
10
+ import ExportRestful from '../../../app/service/restful';
11
+
12
+ declare module 'egg' {
13
+ interface IService {
14
+ restful: AutoInstanceType<typeof ExportRestful>;
15
+ }
16
+ }
@@ -0,0 +1,12 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ import { EggAppConfig } from 'egg';
7
+ import ExportConfigDefault from '../../config/config.default';
8
+ type ConfigDefault = ReturnType<typeof ExportConfigDefault>;
9
+ type NewEggAppConfig = ConfigDefault;
10
+ declare module 'egg' {
11
+ interface EggAppConfig extends NewEggAppConfig { }
12
+ }
@@ -0,0 +1,42 @@
1
+ // This file is created by egg-ts-helper@1.34.7
2
+ // Do not modify this file!!!!!!!!!
3
+ /* eslint-disable */
4
+
5
+ import 'egg';
6
+ import 'egg-onerror';
7
+ import 'egg-session';
8
+ import 'egg-i18n';
9
+ import 'egg-watcher';
10
+ import 'egg-multipart';
11
+ import 'egg-security';
12
+ import 'egg-development';
13
+ import 'egg-logrotator';
14
+ import 'egg-schedule';
15
+ import 'egg-static';
16
+ import 'egg-jsonp';
17
+ import 'egg-view';
18
+ import 'egg-cors';
19
+ import 'egg-jwt';
20
+ import '@diyaner/egg-sequelize';
21
+ import 'egg-validate';
22
+ import { EggPluginItem } from 'egg';
23
+ declare module 'egg' {
24
+ interface EggPlugin {
25
+ onerror?: EggPluginItem;
26
+ session?: EggPluginItem;
27
+ i18n?: EggPluginItem;
28
+ watcher?: EggPluginItem;
29
+ multipart?: EggPluginItem;
30
+ security?: EggPluginItem;
31
+ development?: EggPluginItem;
32
+ logrotator?: EggPluginItem;
33
+ schedule?: EggPluginItem;
34
+ static?: EggPluginItem;
35
+ jsonp?: EggPluginItem;
36
+ view?: EggPluginItem;
37
+ cors?: EggPluginItem;
38
+ jwt?: EggPluginItem;
39
+ sequelize?: EggPluginItem;
40
+ validate?: EggPluginItem;
41
+ }
42
+ }