@wavy/fn 0.0.5 → 0.0.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/main.cjs +8 -13
- package/dist/main.js +8 -13
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -484,19 +484,14 @@ function format(event, ...args) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
function isFile(value) {
|
|
487
|
-
const
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
text: null,
|
|
496
|
-
type: null,
|
|
497
|
-
webkitRelativePath: null
|
|
498
|
-
});
|
|
499
|
-
if (value && typeof value === "object" && fileKeys.every((key) => key in value) && fileKeys.length === Object.keys(value).length)
|
|
487
|
+
const requiredKeys = [
|
|
488
|
+
"name",
|
|
489
|
+
"size",
|
|
490
|
+
"type",
|
|
491
|
+
"lastModified",
|
|
492
|
+
"webkitRelativePath"
|
|
493
|
+
];
|
|
494
|
+
if (value && typeof value === "object" && requiredKeys.every((key) => key in value))
|
|
500
495
|
return true;
|
|
501
496
|
return false;
|
|
502
497
|
}
|
package/dist/main.js
CHANGED
|
@@ -387,19 +387,14 @@ function format(event, ...args) {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
function isFile(value) {
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
text: null,
|
|
399
|
-
type: null,
|
|
400
|
-
webkitRelativePath: null
|
|
401
|
-
});
|
|
402
|
-
if (value && typeof value === "object" && fileKeys.every((key) => key in value) && fileKeys.length === Object.keys(value).length)
|
|
390
|
+
const requiredKeys = [
|
|
391
|
+
"name",
|
|
392
|
+
"size",
|
|
393
|
+
"type",
|
|
394
|
+
"lastModified",
|
|
395
|
+
"webkitRelativePath"
|
|
396
|
+
];
|
|
397
|
+
if (value && typeof value === "object" && requiredKeys.every((key) => key in value))
|
|
403
398
|
return true;
|
|
404
399
|
return false;
|
|
405
400
|
}
|