@modern-js/utils 1.20.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @modern-js/utils
2
2
 
3
+ ## 1.21.0
4
+
5
+ ## 1.20.1
6
+
7
+ ### Patch Changes
8
+
9
+ - 49515c5: fix(utils): failed to call logger.success method
10
+
11
+ fix(utils): 修复调用 logger.success 出现异常的问题
12
+
3
13
  ## 1.20.0
4
14
 
5
15
  ### Patch Changes
@@ -1,2 +1,3 @@
1
- export declare function applyOptionsChain<T, U>(defaults: T, options?: T | ((config: T, utils?: U) => T | void) | Array<T | ((config: T, utils?: U) => T | void)>, utils?: U, mergeFn?: typeof Object.assign): T;
2
- export declare function applyOptionsChain<T, U>(defaults: T, options: T | ((config: T, utils: U) => T | void) | Array<T | ((config: T, utils: U) => T | void)>, utils: U, mergeFn?: typeof Object.assign): T;
1
+ import type { Falsy } from './types';
2
+ export declare function applyOptionsChain<T, U>(defaults: T, options?: T | ((config: T, utils?: U) => T | void) | Array<T | ((config: T, utils?: U) => T | void)> | Falsy, utils?: U, mergeFn?: typeof Object.assign): T;
3
+ export declare function applyOptionsChain<T, U>(defaults: T, options: T | ((config: T, utils: U) => T | void) | Array<T | ((config: T, utils: U) => T | void)> | Falsy, utils: U, mergeFn?: typeof Object.assign): T;
package/dist/logger.d.ts CHANGED
@@ -27,6 +27,11 @@ declare const LOG_TYPES: {
27
27
  label: string;
28
28
  level: string;
29
29
  };
30
+ success: {
31
+ color: string;
32
+ label: string;
33
+ level: string;
34
+ };
30
35
  warn: {
31
36
  color: string;
32
37
  label: string;
package/dist/logger.js CHANGED
@@ -23,6 +23,11 @@ const LOG_TYPES = {
23
23
  label: 'info',
24
24
  level: 'info',
25
25
  },
26
+ success: {
27
+ color: 'green',
28
+ label: 'Success',
29
+ level: 'info',
30
+ },
26
31
  warn: {
27
32
  color: 'yellow',
28
33
  label: 'warn',
@@ -0,0 +1 @@
1
+ export declare type Falsy = false | null | undefined | 0 | '';
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.20.0",
14
+ "version": "1.21.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -129,9 +129,9 @@
129
129
  "lodash": "^4.17.21"
130
130
  },
131
131
  "devDependencies": {
132
- "@modern-js/types": "1.20.0",
133
- "@scripts/build": "1.20.0",
134
- "@scripts/jest-config": "1.20.0",
132
+ "@modern-js/types": "1.21.0",
133
+ "@scripts/build": "1.21.0",
134
+ "@scripts/jest-config": "1.21.0",
135
135
  "@types/jest": "^27",
136
136
  "@types/node": "^14",
137
137
  "typescript": "^4",