Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datatransfer-tree

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatransfer-tree - npm Package Compare versions

Comparing version 1.0.0-alpha-2 to 1.0.0-alpha-3

2

dist/index.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc