@domain.js/main 0.6.5 → 0.6.6
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/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -105,5 +105,5 @@ export declare const deepReaddir: (dir: string, exts: Set<string>, excludes?: Se
|
|
|
105
105
|
* 判断某个值是否为一个流
|
|
106
106
|
* @param stream 要判断的对象
|
|
107
107
|
*/
|
|
108
|
-
export declare const isStream: (stream: any) =>
|
|
108
|
+
export declare const isStream: (stream: any) => boolean;
|
|
109
109
|
export {};
|
package/dist/utils/index.js
CHANGED
|
@@ -209,5 +209,5 @@ exports.deepReaddir = deepReaddir;
|
|
|
209
209
|
* 判断某个值是否为一个流
|
|
210
210
|
* @param stream 要判断的对象
|
|
211
211
|
*/
|
|
212
|
-
const isStream = (stream) => stream && typeof stream === "object" && typeof stream.pipe === "function";
|
|
212
|
+
const isStream = (stream) => Boolean(stream && typeof stream === "object" && typeof stream.pipe === "function");
|
|
213
213
|
exports.isStream = isStream;
|