Files
cloudron-box/package.json

78 lines
2.0 KiB
JSON
Raw Normal View History

{
"name": "cloudron-platform",
2025-02-13 10:22:12 +01:00
"description": "Cloudron Platform (Box)",
2025-06-06 08:26:21 +02:00
"version": "9.0.0",
"private": true,
Migrate codebase from CommonJS to ES Modules - Convert all require()/module.exports to import/export across 260+ files - Add "type": "module" to package.json to enable ESM by default - Add migrations/package.json with "type": "commonjs" to keep db-migrate compatible - Convert eslint.config.js to ESM with sourceType: "module" - Replace __dirname/__filename with import.meta.dirname/import.meta.filename - Replace require.main === module with process.argv[1] === import.meta.filename - Remove 'use strict' directives (implicit in ESM) - Convert dynamic require() in switch statements to static import lookup maps (dns.js, domains.js, backupformats.js, backupsites.js, network.js) - Extract self-referencing exports.CONSTANT patterns into standalone const declarations (apps.js, services.js, locks.js, users.js, mail.js, etc.) - Lazify SERVICES object in services.js to avoid circular dependency TDZ issues - Add clearMailQueue() to mailer.js for ESM-safe queue clearing in tests - Add _setMockApp() to ldapserver.js for ESM-safe test mocking - Add _setMockResolve() wrapper to dig.js for ESM-safe DNS mocking in tests - Convert backupupload.js to use dynamic imports so --check exits before loading the module graph (which requires BOX_ENV) - Update check-install to use ESM import for infra_version.js - Convert scripts/ (hotfix, release, remote_hotfix.js, find-unused-translations) - All 1315 tests passing Migration stats (AI-assisted using Cursor with Claude): - Wall clock time: ~3-4 hours - Assistant completions: ~80-100 - Estimated token usage: ~1-2M tokens Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 09:53:14 +01:00
"type": "module",
2023-04-14 19:31:45 +02:00
"contributors": [
"Girish",
"Johannes"
],
"repository": {
"type": "git",
2025-02-13 10:22:12 +01:00
"url": "https://git.cloudron.io/platform/box.git"
},
"dependencies": {
2026-03-02 08:40:19 +05:30
"@aws-sdk/client-route-53": "^3.1000.0",
"@aws-sdk/client-s3": "^3.1000.0",
"@aws-sdk/lib-storage": "^3.1000.0",
2026-02-18 19:59:58 +01:00
"@cloudron/connect-lastmile": "^3.0.0",
"@cloudron/manifest-format": "^6.1.0",
2026-02-18 19:59:58 +01:00
"@cloudron/pipework": "^2.1.2",
"@cloudron/superagent": "^2.1.1",
2025-11-11 08:59:12 +01:00
"@google-cloud/dns": "^5.3.1",
2026-02-06 18:23:30 +01:00
"@google-cloud/storage": "^7.19.0",
2026-03-02 08:40:19 +05:30
"@simplewebauthn/server": "^13.2.3",
"@smithy/node-http-handler": "^4.4.12",
"@smithy/util-retry": "^4.2.10",
"@types/node": "^25.3.3",
2025-02-05 10:41:30 +01:00
"async": "^3.2.6",
2019-06-14 15:31:13 -07:00
"connect": "^3.7.0",
2025-08-01 12:14:25 +02:00
"connect-timeout": "^1.9.1",
2025-02-05 10:41:30 +01:00
"cookie-parser": "^1.4.7",
2025-08-01 12:14:25 +02:00
"cookie-session": "^2.1.1",
2026-01-23 09:12:10 +01:00
"cron": "^4.4.0",
2023-11-26 09:46:51 +01:00
"db-migrate": "^0.11.14",
2025-02-05 14:39:14 +01:00
"db-migrate-mysql": "^3.0.0",
2025-10-02 08:34:32 +02:00
"dockerode": "^4.0.9",
2025-06-06 08:16:57 +02:00
"domrobot-client": "^3.3.0",
2026-01-23 09:12:10 +01:00
"ejs": "^4.0.1",
"express": "^5.2.1",
"jose": "^6.1.3",
2026-02-18 19:59:58 +01:00
"jsdom": "^28.1.0",
2026-01-23 09:12:10 +01:00
"jsonwebtoken": "^9.0.3",
2023-03-09 18:53:26 +01:00
"ldapjs": "^2.3.3",
2026-02-18 19:59:58 +01:00
"marked": "^17.0.3",
"moment": "^2.30.1",
2025-06-06 08:16:57 +02:00
"moment-timezone": "^0.6.0",
2022-04-15 07:24:40 -05:00
"multiparty": "^4.2.3",
2026-03-02 08:40:19 +05:30
"mysql2": "^3.18.2",
2026-02-14 19:45:15 +01:00
"nodemailer": "^8.0.1",
2026-02-19 13:36:26 +01:00
"oidc-provider": "^9.6.1",
2023-11-05 18:38:30 +01:00
"ovh": "^2.0.3",
2025-02-05 10:41:30 +01:00
"qrcode": "^1.5.4",
2026-04-01 09:40:28 +02:00
"@cloudron/safetydance": "^3.0.1",
2026-02-06 18:23:30 +01:00
"semver": "^7.7.4",
"speakeasy": "^2.0.0",
2026-03-02 08:40:19 +05:30
"tar-stream": "^3.1.8",
2025-07-14 10:26:13 +02:00
"tldjs": "^2.3.2",
2026-02-06 18:23:30 +01:00
"ua-parser-js": "^2.0.9",
2026-01-23 09:12:10 +01:00
"ws": "^8.19.0",
2023-07-28 09:35:39 +05:30
"xml2js": "^0.6.2"
},
"devDependencies": {
2026-02-14 19:45:15 +01:00
"@eslint/js": "^10.0.1",
2026-02-06 18:23:30 +01:00
"commander": "^14.0.3",
2023-03-29 23:09:15 +02:00
"easy-table": "^1.2.0",
2026-03-02 08:40:19 +05:30
"eslint": "^10.0.2",
2026-01-23 09:12:10 +01:00
"eventsource": "^4.1.0",
2026-03-02 08:40:19 +05:30
"globals": "^17.4.0",
"mocha": "^11.7.5",
2026-02-14 19:45:15 +01:00
"nock": "^14.0.11",
2025-11-24 13:57:58 +01:00
"ssh2": "^1.17.0"
},
"scripts": {
2022-11-05 15:26:56 +01:00
"test": "./run-tests"
}
}