File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @substrate-system/drag-drop" ,
3- "version" : " 0.3.5 " ,
3+ "version" : " 0.4.0 " ,
44 "type" : " module" ,
55 "description" : " Simplify the drag & drop API" ,
66 "directories" : {
Original file line number Diff line number Diff line change 11import type { ListenerObject } from './index.js'
2- import Debug from '@substrate-system/debug'
3- const debug = Debug ( )
42
53/**
64 * An object with file paths as keys.
@@ -69,12 +67,9 @@ export async function handleItems (
6967 items :DataTransferItemList ,
7068 showHiddenFiles :boolean = false
7169) :Promise < DropRecord > {
72- debug ( 'handling it' , showHiddenFiles )
7370 let files :DropRecord = { }
7471 for ( let i = 0 ; i < items . length ; i ++ ) {
7572 const item = items [ i ] . webkitGetAsEntry ( )
76- debug ( 'fullpath' , item ?. fullPath )
77- debug ( 'the pop' , item ?. fullPath . split ( '/' ) . pop ( ) )
7873 if ( item ?. fullPath . split ( '/' ) . pop ( ) ?. startsWith ( '.' ) ) {
7974 if ( ! showHiddenFiles ) continue
8075 }
You can’t perform that action at this time.
0 commit comments