diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
index 8f3c99ce..0080488a 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/nodejs.yml
@@ -11,7 +11,7 @@ jobs:
node-version:
- 22.x
- 24.x
- - 25.6.1
+ - 25.x
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
@@ -27,7 +27,7 @@ jobs:
run: bun i --no-save
- name: Lint
run: redrun fix:lint
- - uses: actions/cache@v4
+ - uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
diff --git a/bin/release.js b/bin/release.js
index a5eb39e2..fbc08e35 100755
--- a/bin/release.js
+++ b/bin/release.js
@@ -19,10 +19,12 @@ await main();
async function main() {
const history = '## Version history\n\n';
const link = '//github.com/coderaiser/cloudcmd/releases/tag/';
+
const template = '- ' +
'*{{ date }}*, ' +
'**[v{{ version }}]' +
- '(' + link +
+ '(' +
+ link +
'v{{ version }})**\n';
const {version} = Info;
@@ -35,10 +37,11 @@ async function main() {
await replaceVersion('README.md', version, versionNew);
await replaceVersion('HELP.md', version, versionNew);
- const historyNew = history + rendy(template, {
- date: shortdate(),
- version: versionNew,
- });
+ const historyNew = history +
+ rendy(template, {
+ date: shortdate(),
+ version: versionNew,
+ });
await replaceVersion('HELP.md', history, historyNew);
}
diff --git a/client/modules/edit-names.js b/client/modules/edit-names.js
index 45a0cf16..7bc29054 100644
--- a/client/modules/edit-names.js
+++ b/client/modules/edit-names.js
@@ -63,7 +63,10 @@ async function keyListener(event) {
if (ctrlMeta && event.keyCode === Key.S) {
hide();
- } else if (ctrlMeta && event.keyCode === Key.P) {
+ return;
+ }
+
+ if (ctrlMeta && event.keyCode === Key.P) {
const [, pattern] = await Dialog.prompt('Apply pattern:', '[n][e]');
pattern && applyPattern(pattern);
}
diff --git a/common/cloudfunc.spec.js b/common/cloudfunc.spec.js
index ec991f16..aa50a9f9 100644
--- a/common/cloudfunc.spec.js
+++ b/common/cloudfunc.spec.js
@@ -53,6 +53,7 @@ test('cloudfunc: buildFromJSON: ..', (t) => {
test('cloudfunc: getPathLink: /', (t) => {
const {pathLink} = template;
const result = getPathLink('/', '', pathLink);
+
const expected = montag`
/
`;
@@ -64,6 +65,7 @@ test('cloudfunc: getPathLink: /', (t) => {
test('cloudfunc: getPathLink: /hello/world', (t) => {
const {pathLink} = template;
const result = getPathLink('/hello/world', '', pathLink);
+
const expected = montag`
/hello/
`;
@@ -75,6 +77,7 @@ test('cloudfunc: getPathLink: /hello/world', (t) => {
test('cloudfunc: getPathLink: prefix', (t) => {
const {pathLink} = template;
const result = getPathLink('/hello/world', '/cloudcmd', pathLink);
+
const expected = montag`
/hello/
`;
@@ -86,6 +89,7 @@ test('cloudfunc: getPathLink: prefix', (t) => {
test('cloudfunc: getSize: dir', (t) => {
const type = 'directory';
const size = 0;
+
const result = _getSize({
type,
size,
@@ -100,6 +104,7 @@ test('cloudfunc: getSize: dir', (t) => {
test('cloudfunc: getSize: link: dir', (t) => {
const type = 'directory-link';
const size = 0;
+
const result = _getSize({
type,
size,
@@ -114,6 +119,7 @@ test('cloudfunc: getSize: link: dir', (t) => {
test('cloudfunc: getSize: link: file', (t) => {
const type = 'file-link';
const size = 0;
+
const result = _getSize({
type,
size,
@@ -128,6 +134,7 @@ test('cloudfunc: getSize: link: file', (t) => {
test('cloudfunc: getSize: file', (t) => {
const type = 'file';
const size = '100.00kb';
+
const result = _getSize({
type,
size,
diff --git a/common/util.spec.js b/common/util.spec.js
index 870e55e8..6a32848c 100644
--- a/common/util.spec.js
+++ b/common/util.spec.js
@@ -63,6 +63,7 @@ test('util: findObjByNameInArr: object', (t) => {
test('util: findObjByNameInArr: array', (t) => {
const name = 'hello';
const data = 'abc';
+
const item = {
name,
data,
diff --git a/server/cloudcmd.js b/server/cloudcmd.js
index 8a071c81..319cc4ae 100644
--- a/server/cloudcmd.js
+++ b/server/cloudcmd.js
@@ -51,6 +51,7 @@ export default cloudcmd;
export function cloudcmd(params) {
const p = params || {};
const options = p.config || {};
+
const config = p.configManager || createConfig({
configPath,
});
diff --git a/server/columns.js b/server/columns.js
index 570fe642..eff63957 100644
--- a/server/columns.js
+++ b/server/columns.js
@@ -35,6 +35,7 @@ export const getColumns = ({isDev = _isDev()} = {}) => {
const readFilesSyncMemo = nanomemoize((isDev) => {
const dist = getDist(isDev);
const columnsDir = path.join(__dirname, '..', dist, 'columns');
+
const names = fs
.readdirSync(columnsDir)
.filter(not(isMap));
diff --git a/server/config.js b/server/config.js
index d52088ab..0977b8a4 100644
--- a/server/config.js
+++ b/server/config.js
@@ -197,6 +197,7 @@ function get(manage, request, response) {
async function patch(manage, request, response) {
const name = 'config.json';
const cache = false;
+
const options = {
name,
request,
diff --git a/server/route.js b/server/route.js
index 3b764b81..1d887874 100644
--- a/server/route.js
+++ b/server/route.js
@@ -65,6 +65,7 @@ export const _getReadDir = getReadDir;
async function route({config, options, request, response}) {
const name = ponse.getPathName(request);
const gzip = true;
+
const p = {
request,
response,
diff --git a/server/route.spec.js b/server/route.spec.js
index c190eefc..7387a9fc 100644
--- a/server/route.spec.js
+++ b/server/route.spec.js
@@ -243,6 +243,7 @@ test('cloudcmd: route: sendIndex: encode', async (t) => {
test('cloudcmd: route: sendIndex: encode: not encoded', async (t) => {
const name = '">