@modern-js/utils 1.20.1 → 1.21.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @modern-js/utils
2
2
 
3
+ ## 1.21.1
4
+
5
+ ## 1.21.0
6
+
3
7
  ## 1.20.1
4
8
 
5
9
  ### 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;
@@ -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.1",
14
+ "version": "1.21.1",
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.1",
133
- "@scripts/build": "1.20.1",
134
- "@scripts/jest-config": "1.20.1",
132
+ "@modern-js/types": "1.21.1",
133
+ "@scripts/build": "1.21.1",
134
+ "@scripts/jest-config": "1.21.1",
135
135
  "@types/jest": "^27",
136
136
  "@types/node": "^14",
137
137
  "typescript": "^4",