🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@farjs/filelist

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@farjs/filelist - npm Package Compare versions

Comparing version
0.8.0
to
0.8.1
+3
-3
package.json
{
"name": "@farjs/filelist",
"author": "viktor-podzigun",
"version": "0.8.0",
"version": "0.8.1",
"license": "MIT",

@@ -42,3 +42,3 @@ "description": "Common plugin/api/ui for FAR.js File Browser module",

"dependencies": {
"@farjs/ui": "0.9.0"
"@farjs/ui": "0.9.1"
},

@@ -52,3 +52,3 @@ "devDependencies": {

"mock-fn": "^1.1.0",
"prettier": "^2.8.8",
"prettier": "^3.8.1",
"quick-lint-js": "^3.0.0",

@@ -55,0 +55,0 @@ "react-assert": "^1.2.0",

@@ -53,3 +53,3 @@ /**

Math.min(itemsLength - newOffset - 1, currIndex - newOffset),
0
0,
);

@@ -151,3 +151,3 @@ return [newOffset, focused];

props.dispatch(
props.actions.changeDir(props.dispatch, "", FileListItem.currDir.name)
props.actions.changeDir(props.dispatch, "", FileListItem.currDir.name),
);

@@ -154,0 +154,0 @@ }

@@ -144,3 +144,3 @@ /**

console.log(
`Failed to close srcFile: ${source.file}, error: ${err}`
`Failed to close srcFile: ${source.file}, error: ${err}`,
);

@@ -165,3 +165,3 @@ });

return Promise.reject(err);
}
},
);

@@ -168,0 +168,0 @@ }

@@ -65,3 +65,3 @@ /**

const text = UiString(
name.replaceAll("\n", "").replaceAll("\r", "").replaceAll("\t", " ")
name.replaceAll("\n", "").replaceAll("\r", "").replaceAll("\t", " "),
);

@@ -72,3 +72,3 @@ const content = renderText(

style.bg,
text.ensureWidth(props.width, " ")
text.ensureWidth(props.width, " "),
);

@@ -107,3 +107,3 @@ const ending = text.strWidth() > props.width ? overlapEnd : borderEnd;

})
: null
: null,
);

@@ -110,0 +110,0 @@ };

@@ -39,3 +39,3 @@ /**

const [maybeQuickSearch, setMaybeQuickSearch] = useState(
/** @type {string | null} */ (null)
/** @type {string | null} */ (null),
);

@@ -47,3 +47,3 @@ const [showSortModes, setShowSortModes] = useState(false);

const index = props.state.currDir.items.findIndex((_) =>
_.name.startsWith(text)
_.name.startsWith(text),
);

@@ -105,3 +105,3 @@ if (index >= 0) {

props.dispatch(
props.actions.updateDir(props.dispatch, props.state.currDir.path)
props.actions.updateDir(props.dispatch, props.state.currDir.path),
);

@@ -134,4 +134,4 @@ } else if (

props.state.currDir.path,
targetDir.name
)
targetDir.name,
),
);

@@ -192,3 +192,3 @@ }

})
: null
: null,
);

@@ -195,0 +195,0 @@ };

@@ -98,3 +98,3 @@ /**

(res, item) => res + item.size,
0
0,
);

@@ -188,3 +188,3 @@ const selectedSizeFmt = formatSize(selectedSize);

})
: null
: null,
);

@@ -191,0 +191,0 @@ };

@@ -56,3 +56,3 @@ /**

/** @type {number} */ (el.aleft) + text.length,
/** @type {number} */ (el.atop)
/** @type {number} */ (el.atop),
);

@@ -101,4 +101,4 @@ }

content: text,
})
)
}),
),
);

@@ -105,0 +105,0 @@ };

@@ -40,3 +40,3 @@ /**

processed.items.findIndex((i) => i.name === focusedDir),
0
0,
);

@@ -62,3 +62,3 @@ }

const index = processed.items.findIndex(
(i) => i.name === currItem.name
(i) => i.name === currItem.name,
);

@@ -146,6 +146,6 @@ return index < 0

const dirs = currDir.items.filter(
(i) => i.name !== FileListItem.up.name && i.isDir
(i) => i.name !== FileListItem.up.name && i.isDir,
);
const files = currDir.items.filter(
(i) => i.name !== FileListItem.up.name && !i.isDir
(i) => i.name !== FileListItem.up.name && !i.isDir,
);

@@ -152,0 +152,0 @@ const sortedDirs = sortItems(dirs, sort);

@@ -98,3 +98,3 @@ /**

const colIndex = columnsPosRef.current.findIndex(
({ colLeft, colWidth }) => colLeft <= x && x < colLeft + colWidth
({ colLeft, colWidth }) => colLeft <= x && x < colLeft + colWidth,
);

@@ -173,3 +173,3 @@ if (colIndex !== -1) {

},
...renderedColumns
...renderedColumns,
);

@@ -176,0 +176,0 @@ };