mirror of
https://github.com/unraid/api.git
synced 2026-01-01 22:20:05 -06:00
## Summary by CodeRabbit * **Bug Fixes** * Improved error handling to prevent runtime exceptions when certain configuration fields are undefined. * Updated test expectations to reflect new error handling behaviors. * **Refactor** * Streamlined and modularized the legacy configuration migration process for better maintainability. * Removed obsolete configuration fields and related validation from the configuration model. * **Tests** * Added and enhanced test suites to verify configuration migration, parsing, and URL resolution logic. * Improved test coverage and robustness with expanded mock data and flexible assertions. * **Chores** * Updated test scripts and dependencies for improved reliability and compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
102 lines
3.2 KiB
JSON
102 lines
3.2 KiB
JSON
{
|
|
"name": "unraid-api-plugin-connect",
|
|
"version": "1.0.0",
|
|
"main": "dist/index.js",
|
|
"type": "module",
|
|
"files": [
|
|
"dist",
|
|
"readme.md"
|
|
],
|
|
"scripts": {
|
|
"test": "vitest",
|
|
"clean": "rimraf dist",
|
|
"build": "tsc",
|
|
"prepare": "npm run build",
|
|
"format": "prettier --write \"src/**/*.{ts,js,json}\"",
|
|
"codegen": "MOTHERSHIP_GRAPHQL_LINK='https://staging.mothership.unraid.net/ws' graphql-codegen --config codegen.ts"
|
|
},
|
|
"keywords": [
|
|
"unraid",
|
|
"connect",
|
|
"unraid plugin"
|
|
],
|
|
"author": "Lime Technology, Inc. <unraid.net>",
|
|
"license": "GPL-2.0-or-later",
|
|
"description": "Unraid Connect plugin for Unraid API",
|
|
"devDependencies": {
|
|
"@apollo/client": "^3.11.8",
|
|
"@graphql-codegen/cli": "^5.0.3",
|
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
"@jsonforms/core": "^3.5.1",
|
|
"@nestjs/apollo": "^13.0.3",
|
|
"@nestjs/common": "^11.0.11",
|
|
"@nestjs/config": "^4.0.2",
|
|
"@nestjs/core": "^11.0.11",
|
|
"@nestjs/event-emitter": "^3.0.1",
|
|
"@nestjs/graphql": "^13.0.3",
|
|
"@nestjs/schedule": "^6.0.0",
|
|
"@runonflux/nat-upnp": "^1.0.2",
|
|
"@types/ini": "^4.1.1",
|
|
"@types/ip": "^1.1.3",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/node": "^22.14.0",
|
|
"@types/ws": "^8.18.0",
|
|
"camelcase-keys": "^9.1.3",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.1",
|
|
"execa": "^9.5.1",
|
|
"got": "^14.4.6",
|
|
"graphql": "^16.9.0",
|
|
"graphql-scalars": "^1.23.0",
|
|
"graphql-subscriptions": "^3.0.0",
|
|
"graphql-ws": "^6.0.0",
|
|
"ini": "^5.0.0",
|
|
"jose": "^6.0.0",
|
|
"lodash-es": "^4.17.21",
|
|
"nest-authz": "^2.14.0",
|
|
"prettier": "^3.5.3",
|
|
"rimraf": "^6.0.1",
|
|
"rxjs": "^7.8.2",
|
|
"type-fest": "^4.37.0",
|
|
"typescript": "^5.8.2",
|
|
"vitest": "^3.2.4",
|
|
"ws": "^8.18.0",
|
|
"zen-observable-ts": "^1.1.0"
|
|
},
|
|
"dependencies": {
|
|
"@unraid/shared": "workspace:*",
|
|
"ip": "^2.0.1",
|
|
"node-cache": "^5.1.2"
|
|
},
|
|
"peerDependencies": {
|
|
"@apollo/client": "^3.11.8",
|
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
"@jsonforms/core": "^3.5.1",
|
|
"@nestjs/apollo": "^13.0.3",
|
|
"@nestjs/common": "^11.0.11",
|
|
"@nestjs/config": "^4.0.2",
|
|
"@nestjs/core": "^11.0.11",
|
|
"@nestjs/event-emitter": "^3.0.1",
|
|
"@nestjs/graphql": "^13.0.3",
|
|
"@nestjs/schedule": "^6.0.0",
|
|
"@runonflux/nat-upnp": "^1.0.2",
|
|
"camelcase-keys": "^9.1.3",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.1",
|
|
"execa": "^9.5.1",
|
|
"got": "^14.4.6",
|
|
"graphql": "^16.9.0",
|
|
"graphql-scalars": "^1.23.0",
|
|
"graphql-subscriptions": "^3.0.0",
|
|
"graphql-ws": "^6.0.0",
|
|
"ini": "^5.0.0",
|
|
"jose": "^6.0.0",
|
|
"lodash-es": "^4.17.21",
|
|
"nest-authz": "^2.14.0",
|
|
"rxjs": "^7.8.2",
|
|
"ws": "^8.18.0",
|
|
"zen-observable-ts": "^1.1.0"
|
|
}
|
|
}
|