@riligar/elysia-backup 1.1.0 → 1.3.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.
Files changed (3) hide show
  1. package/README.md +12 -12
  2. package/package.json +10 -6
  3. package/src/elysia-backup.js +1116 -373
package/README.md CHANGED
@@ -45,18 +45,18 @@ console.log('Backup UI at http://localhost:3000/backup')
45
45
 
46
46
  ## Configuration
47
47
 
48
- | Option | Type | Required | Description |
49
- | ----------------- | -------- | -------- | ------------------------------------------------------------- |
50
- | `bucket` | string | ✅ | R2/S3 bucket name |
51
- | `accessKeyId` | string | ✅ | R2/S3 Access Key ID |
52
- | `secretAccessKey` | string | ✅ | R2/S3 Secret Access Key |
53
- | `endpoint` | string | ✅ | R2/S3 Endpoint URL |
54
- | `sourceDir` | string | ✅ | Local directory to backup |
55
- | `prefix` | string | ❌ | Prefix for S3 keys (e.g., 'backups/') |
56
- | `extensions` | string[] | ❌ | File extensions to include |
57
- | `cronSchedule` | string | ❌ | Cron expression for scheduled backups |
58
- | `cronEnabled` | boolean | ❌ | Enable/disable scheduled backups |
59
- | `configPath` | string | ❌ | Path to save runtime config (default: './backup-config.json') |
48
+ | Option | Type | Required | Description |
49
+ | ----------------- | -------- | -------- | ------------------------------------------------------ |
50
+ | `bucket` | string | ✅ | R2/S3 bucket name |
51
+ | `accessKeyId` | string | ✅ | R2/S3 Access Key ID |
52
+ | `secretAccessKey` | string | ✅ | R2/S3 Secret Access Key |
53
+ | `endpoint` | string | ✅ | R2/S3 Endpoint URL |
54
+ | `sourceDir` | string | ✅ | Local directory to backup |
55
+ | `prefix` | string | ❌ | Prefix for S3 keys (e.g., 'backups/') |
56
+ | `extensions` | string[] | ❌ | File extensions to include |
57
+ | `cronSchedule` | string | ❌ | Cron expression for scheduled backups |
58
+ | `cronEnabled` | boolean | ❌ | Enable/disable scheduled backups |
59
+ | `configPath` | string | ❌ | Path to save runtime config (default: './config.json') |
60
60
 
61
61
  ## API Endpoints
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riligar/elysia-backup",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Elysia plugin for R2/S3 backup with a built-in UI dashboard",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -36,21 +36,25 @@
36
36
  "cloudflare",
37
37
  "bun"
38
38
  ],
39
- "author": "RiLiGar",
39
+ "author": {
40
+ "name": "Ciro Cesar Maciel",
41
+ "url": "https://github.com/ciro-maciel"
42
+ },
40
43
  "license": "MIT",
41
44
  "peerDependencies": {
42
45
  "elysia": ">=1.0.0",
43
46
  "@elysiajs/html": ">=1.0.0"
44
47
  },
45
48
  "dependencies": {
46
- "cron": "^3.1.0"
49
+ "cron": "^3.5.0",
50
+ "otplib": "^12.0.1",
51
+ "qrcode": "^1.5.4"
47
52
  },
48
53
  "devDependencies": {
49
- "@elysiajs/html": "^1.1.1",
54
+ "@elysiajs/html": "^1.4.0",
50
55
  "@semantic-release/changelog": "^6.0.3",
51
56
  "@semantic-release/git": "^10.0.1",
52
- "bun-types": "^1.1.34",
53
- "elysia": "^1.1.26",
57
+ "elysia": "^1.4.19",
54
58
  "semantic-release": "^24.2.9"
55
59
  }
56
60
  }