datatransfer-tree
Advanced tools
Comparing version 1.0.2 to 1.1.0
export type * from './types'; | ||
export { isDirectoryNode, isFileNode } from './lib'; | ||
export { default, default as getEntriesTree } from './getEntriesTree'; |
@@ -1,1 +0,1 @@ | ||
var J=(p)=>Boolean(p&&p.isDirectory),k=J;var K=(p)=>Boolean(p&&p.isFile),m=K;var L=async(p)=>new Promise((x,h)=>{p.createReader().readEntries(x,h)}),q=L;var M=async(p)=>new Promise((x,h)=>{p.file(x,h)}),w=M;var A=async(p)=>{const x=p.filter(m),h=p.filter(k),C=Promise.all(x.map(async(u)=>{return{file:await w(u),filesystem:u.filesystem,fullPath:u.fullPath,name:u.name,type:"file"}})),G=Promise.all(h.map(async(u)=>{const z=await q(u);return{entries:await A(z),name:u.name,type:"directory"}})),[H,I]=await Promise.all([G,C]);return[...H,...I]},B=A;export{B as getEntriesTree,B as default}; | ||
var L=(p)=>Boolean(p&&p.isDirectory),h=L;var M=(p)=>p.type==="directory",A=M;var N=(p)=>Boolean(p&&p.isFile),k=N;var O=(p)=>p.type==="file",B=O;var Q=async(p)=>new Promise((x,m)=>{p.createReader().readEntries(x,m)}),q=Q;var R=async(p)=>new Promise((x,m)=>{p.file(x,m)}),w=R;var C=async(p)=>{const x=p.filter(k),m=p.filter(h),H=Promise.all(x.map(async(u)=>{return{file:await w(u),filesystem:u.filesystem,fullPath:u.fullPath,name:u.name,type:"file"}})),I=Promise.all(m.map(async(u)=>{const z=await q(u);return{entries:await C(z),name:u.name,type:"directory"}})),[J,K]=await Promise.all([I,H]);return[...J,...K]},G=C;export{B as isFileNode,A as isDirectoryNode,G as getEntriesTree,G as default}; |
export { default as isDirectory } from './isDirectory'; | ||
export { default as isDirectoryNode } from './isDirectoryNode'; | ||
export { default as isFile } from './isFile'; | ||
export { default as isFileNode } from './isFileNode'; | ||
export { default as readDirectoryEntries } from './readDirectoryEntries'; | ||
export { default as readFileEntryFile } from './readFileEntryFile'; |
{ | ||
"name": "datatransfer-tree", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"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
4882
14
39