@haluo/util 2.0.14 → 2.0.16

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,35 +1,3 @@
1
- import cookie from './modules/cookie';
2
- import date from './modules/date';
3
- import dom from './modules/dom';
4
- import filter from './modules/filter';
5
- import format from './modules/format';
6
- import match from './modules/match';
7
- import number from './modules/number';
8
- import tools from './modules/tools';
9
- import monitor from './modules/monitor';
10
- export * from './modules/monitor';
11
- interface Modules {
12
- cookie: typeof cookie;
13
- date: typeof date;
14
- dom: typeof dom;
15
- filter: typeof filter;
16
- format: typeof format;
17
- match: typeof match;
18
- number: typeof number;
19
- tools: typeof tools;
20
- monitor: typeof monitor;
1
+ export interface IObjectKey<T> {
2
+ [key: string]: T;
21
3
  }
22
- declare class Utils {
23
- constructor();
24
- /**
25
- * 挂载各组件
26
- * 示例:this.$cookie、this.$date、this.$match、this.$number、this.$tools
27
- * @param {Object} Vue 需要挂载的目标对象
28
- */
29
- install(app: any): void;
30
- }
31
- interface Utils extends Modules {
32
- }
33
- declare const _default: Utils;
34
- export default _default;
35
- export { cookie, date, dom, filter, format, match, number, tools, monitor };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@haluo/util",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "main": "./dist/index.js",
5
- "author": "<wanghui@jddmoto.com>",
5
+ "author": "<wanghui@mddmoto.com>",
6
6
  "description": "摩托范工具库",
7
7
  "scripts": {
8
8
  "build": "tsc",
@@ -14,7 +14,7 @@
14
14
  "precommit": "lint-staged"
15
15
  },
16
16
  "files": ["dist", "package.json"],
17
- "types": "dist/types/index.d.ts",
17
+ "types": "dist/index.d.ts",
18
18
  "lint-staged": {
19
19
  "src/**/*.{js,vue}": [
20
20
  "eslint --fix",