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

datatransfer-tree

Package Overview
Dependencies
Maintainers
2
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.2 to 1.1.0

dist/lib/isDirectoryNode.d.ts

1

dist/index.d.ts
export type * from './types';
export { isDirectoryNode, isFileNode } from './lib';
export { default, default as getEntriesTree } from './getEntriesTree';

2

dist/index.js

@@ -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",

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