pkg-pr-new 0.0.26 → 0.0.27

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/index.ts CHANGED
@@ -554,10 +554,10 @@ function hijackDeps(
554
554
  }
555
555
 
556
556
  function getFormEntrySize(entry: FormDataEntryValue) {
557
- if (entry instanceof File) {
558
- return entry.size;
557
+ if (typeof entry === 'string') {
558
+ return entry.length;
559
559
  }
560
- return entry.length;
560
+ return entry.size;
561
561
  }
562
562
 
563
563
  async function verifyCompactMode(packageName: string) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pkg-pr-new",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",