filefive 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "filefive",
3
3
  "description": "A SFTP/FTP client and dual-panel file manager for macOS and Linux",
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "license": "GPL-3.0",
6
6
  "author": "Max Miroshnikov",
7
7
  "bin": {
@@ -31,6 +31,7 @@
31
31
  "dev": "NODE_ENV=development nodemon src/index.ts",
32
32
  "build": "tsc -p .",
33
33
  "start": "node dist/index.js",
34
+ "test": "jest tests",
34
35
  "lint": "eslint",
35
36
  "publish": "tsc -p . && npm publish"
36
37
  },
@@ -52,6 +53,7 @@
52
53
  "@eslint/js": "^9.22.0",
53
54
  "@types/express": "^5.0.0",
54
55
  "@types/ftp": "^0.3.36",
56
+ "@types/jest": "^29.5.14",
55
57
  "@types/multer": "^1.4.12",
56
58
  "@types/node": "^22.12.0",
57
59
  "@types/ramda": "^0.30.2",
@@ -59,7 +61,9 @@
59
61
  "@types/whatwg-url": "^13.0.0",
60
62
  "@types/ws": "^8.5.14",
61
63
  "eslint": "^9.22.0",
64
+ "jest": "^29.7.0",
62
65
  "nodemon": "^3.1.9",
66
+ "ts-jest": "^29.3.2",
63
67
  "ts-node": "^10.9.2",
64
68
  "typescript": "^5.8.2",
65
69
  "typescript-eslint": "^8.26.1"
package/dist/transform.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.add = add;
7
- exports.remove = remove;
8
- exports.default = default_1;
9
- const uniqid_1 = __importDefault(require("./utils/uniqid"));
10
- const transformations = [];
11
- function add(f) {
12
- const id = (0, uniqid_1.default)();
13
- transformations.push({ id, f });
14
- return id;
15
- }
16
- function remove(id) {
17
- const i = transformations.findIndex(t => t.id == id);
18
- if (i >= 0) {
19
- transformations.splice(i, 1);
20
- }
21
- }
22
- function default_1(files) {
23
- return transformations.reduce((files, { f }) => f(files), files);
24
- }