datatransfer-tree
Advanced tools
Comparing version 1.0.0-alpha-2 to 1.0.0-alpha-3
export type * from './types'; | ||
export { default } from './getEntriesTree'; | ||
export { default, default as getEntriesTree } from './getEntriesTree'; |
@@ -1,1 +0,1 @@ | ||
var I=(p)=>Boolean(p&&p.isDirectory),h=I;var J=(p)=>Boolean(p&&p.isFile),k=J;var K=async(p)=>new Promise((u,x)=>{p.createReader().readEntries(u,x)}),q=K;var L=async(p)=>new Promise((u,x)=>{p.file(u,x)}),w=L;var A=async(p)=>{const u=p.filter(k),x=p.filter(h),B=Promise.all(u.map(async(m)=>{return{file:await w(m),filesystem:m.filesystem,fullPath:m.fullPath,name:m.name,type:"file"}})),C=Promise.all(x.map(async(m)=>{const z=await q(m);return{entries:await A(z),name:m.name,type:"directory"}})),[G,H]=await Promise.all([C,B]);return[...G,...H]},M=A;export{M as default}; | ||
var J=(p)=>Boolean(p&&p.isDirectory),h=J;var K=(p)=>Boolean(p&&p.isFile),k=K;var L=async(p)=>new Promise((u,x)=>{p.createReader().readEntries(u,x)}),q=L;var M=async(p)=>new Promise((u,x)=>{p.file(u,x)}),w=M;var A=async(p)=>{const u=p.filter(k),x=p.filter(h),C=Promise.all(u.map(async(m)=>{return{file:await w(m),filesystem:m.filesystem,fullPath:m.fullPath,name:m.name,type:"file"}})),G=Promise.all(x.map(async(m)=>{const z=await q(m);return{entries:await A(z),name:m.name,type:"directory"}})),[H,I]=await Promise.all([G,C]);return[...H,...I]},B=A;export{B as getEntriesTree,B as default}; |
{ | ||
"name": "datatransfer-tree", | ||
"version": "1.0.0-alpha-2", | ||
"version": "1.0.0-alpha-3", | ||
"description": "Library for parsing DataTransfer entries into a structured directory tree objects", | ||
@@ -5,0 +5,0 @@ "author": "Yuriy Yakym", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4363