@nocobase/utils 0.15.0-alpha.2 → 0.15.0-alpha.3
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/lib/common.d.ts +1 -0
- package/lib/common.js +7 -2
- package/package.json +2 -2
package/lib/common.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export declare const isArray: (value: any) => value is any[];
|
|
|
3
3
|
export declare const isEmpty: (value: unknown) => boolean;
|
|
4
4
|
export declare const isPlainObject: (value: any) => boolean;
|
|
5
5
|
export declare const hasEmptyValue: (objOrArr: object | any[]) => any;
|
|
6
|
+
export declare const nextTick: (fn: () => void) => void;
|
package/lib/common.js
CHANGED
|
@@ -22,7 +22,8 @@ __export(common_exports, {
|
|
|
22
22
|
isArray: () => isArray,
|
|
23
23
|
isEmpty: () => isEmpty,
|
|
24
24
|
isPlainObject: () => isPlainObject,
|
|
25
|
-
isString: () => isString
|
|
25
|
+
isString: () => isString,
|
|
26
|
+
nextTick: () => nextTick
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(common_exports);
|
|
28
29
|
const isString = /* @__PURE__ */ __name((value) => {
|
|
@@ -63,11 +64,15 @@ const hasEmptyValue = /* @__PURE__ */ __name((objOrArr) => {
|
|
|
63
64
|
}
|
|
64
65
|
return result;
|
|
65
66
|
}, "hasEmptyValue");
|
|
67
|
+
const nextTick = /* @__PURE__ */ __name((fn) => {
|
|
68
|
+
setTimeout(fn);
|
|
69
|
+
}, "nextTick");
|
|
66
70
|
// Annotate the CommonJS export names for ESM import in node:
|
|
67
71
|
0 && (module.exports = {
|
|
68
72
|
hasEmptyValue,
|
|
69
73
|
isArray,
|
|
70
74
|
isEmpty,
|
|
71
75
|
isPlainObject,
|
|
72
|
-
isString
|
|
76
|
+
isString,
|
|
77
|
+
nextTick
|
|
73
78
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/utils",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"multer": "^1.4.5-lts.1",
|
|
16
16
|
"object-path": "^0.11.8"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "8f39868bd613a465efb20123094ebbc2390c1eef"
|
|
19
19
|
}
|