@dev_ailaw/venus 1.369.0 → 1.371.0

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.
Files changed (2) hide show
  1. package/dist/venus.es.js +17 -4
  2. package/package.json +1 -1
package/dist/venus.es.js CHANGED
@@ -848,10 +848,15 @@ const selectFolderAndCreateZip = async () => {
848
848
  if (handle.kind === "directory") {
849
849
  const currentPath = path2 ? `${path2}/${handle.name}` : handle.name;
850
850
  folderSet.add(currentPath);
851
- for await (const entry of handle.entries()) {
852
- const childHandle = entry[1];
851
+ for await (const [, childHandle] of handle.entries()) {
853
852
  await traverseHandle(childHandle, currentPath);
854
853
  }
854
+ } else if (handle.kind === "file") {
855
+ const file = await handle.getFile();
856
+ if (file.name.includes(".DS_Store"))
857
+ return;
858
+ const filePath = path2 ? `${path2}/${file.name}` : file.name;
859
+ zip.file(filePath, await file.arrayBuffer());
855
860
  }
856
861
  };
857
862
  await traverseHandle(dirHandle, "");
@@ -860,7 +865,7 @@ const selectFolderAndCreateZip = async () => {
860
865
  const blob = await zip.generateAsync({ type: "blob" });
861
866
  const zipFileName = `${dirHandle.name}_package.zip`;
862
867
  return new File([blob], zipFileName, {
863
- type: "text/plain"
868
+ type: "application/zip"
864
869
  });
865
870
  }).then((result) => resolve(result)).catch((err) => {
866
871
  console.log("Directory picker cancelled or failed", err);
@@ -1701,6 +1706,13 @@ var i140gSupp = createForm({
1701
1706
  Preparer: [GlueRoleType.PREPARERPROFILE]
1702
1707
  }
1703
1708
  });
1709
+ var eoir40 = createForm({
1710
+ displayName: "EOIR-40",
1711
+ roles: {
1712
+ Beneficiary: [GlueRoleType.USERPROFILE],
1713
+ Preparer: [GlueRoleType.PREPARERPROFILE]
1714
+ }
1715
+ });
1704
1716
  const formRecords = {
1705
1717
  g28Company,
1706
1718
  g28Person,
@@ -1814,7 +1826,8 @@ const formRecords = {
1814
1826
  ds11,
1815
1827
  l1bp,
1816
1828
  i140g,
1817
- i140gSupp
1829
+ i140gSupp,
1830
+ eoir40
1818
1831
  };
1819
1832
  var index$2 = Object.values(formRecords);
1820
1833
  const acceptableFormats = [
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.369.0",
6
+ "version": "1.371.0",
7
7
  "files": [
8
8
  "dist"
9
9
  ],