@qqi/log 0.0.1 → 0.0.2

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.
package/package.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "module": "index.mjs",
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
- "version": "0.0.1",
6
+ "version": "0.0.2",
7
7
  "name": "@qqi/log",
8
8
  "description": "原 @qqi/dev-log 中的 log 部分",
9
9
  "license": "MIT",
10
10
  "dependencies": {
11
11
  "@color-pen/static": "^1.0.0",
12
- "a-js-tools": "^1.0.1",
12
+ "a-js-tools": "^1.0.5",
13
13
  "a-type-of-js": "^1.0.2",
14
14
  "color-pen": "^2.0.11"
15
15
  },
package/src/index.cjs CHANGED
@@ -64,11 +64,11 @@ function Dog(options) {
64
64
  get() {
65
65
  return type || false;
66
66
  },
67
- set(type) {
68
- const new_type = setType.setType(type);
67
+ set(value) {
68
+ const new_type = setType.setType(value);
69
69
  if (new_type !== type) {
70
70
  type = new_type;
71
- managePrint.managePrint(new_type, _privateFunc, name);
71
+ managePrint.managePrint(type, _privateFunc, name);
72
72
  }
73
73
  },
74
74
  },
package/src/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { DevLog, DogOptions } from './type';
2
1
  /**
3
2
  *
4
3
  * @param options 配置项
5
4
  * @returns 函数对象
6
5
  *
7
6
  */
8
- declare const DogConstructor: import("a-js-tools").CreateConstructor<DevLog, [options?: DogOptions | undefined]>;
7
+ declare const DogConstructor: any;
9
8
  export { DogConstructor as Dog };
package/src/index.mjs CHANGED
@@ -62,11 +62,11 @@ function Dog(options) {
62
62
  get() {
63
63
  return type || false;
64
64
  },
65
- set(type) {
66
- const new_type = setType(type);
65
+ set(value) {
66
+ const new_type = setType(value);
67
67
  if (new_type !== type) {
68
68
  type = new_type;
69
- managePrint(new_type, _privateFunc, name);
69
+ managePrint(type, _privateFunc, name);
70
70
  }
71
71
  },
72
72
  },