fix: upgrade directus sdk to version 11 (#20)
* fix: bump sdk version * fix: update directus sdk version to 11.0.7 --------- Co-authored-by: zs-ko <zs-ko@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers-contrib/features/redis-homebrew:1": {}
|
"ghcr.io/devcontainers-contrib/features/redis-homebrew:1": {},
|
||||||
|
"ghcr.io/devcontainers/features/python:1": {}
|
||||||
},
|
},
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
// "forwardPorts": [],
|
// "forwardPorts": [],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
// "postCreateCommand": "yarn install",
|
//"postCreateCommand": "yarn install",
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
// "customizations": {},
|
// "customizations": {},
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ PORT=8055
|
|||||||
|
|
||||||
PUBLIC_URL="http://localhost:8055"
|
PUBLIC_URL="http://localhost:8055"
|
||||||
|
|
||||||
|
AUTH_PROVIDERS="provider"
|
||||||
|
|
||||||
AUTH_PROVIDER_CLIENT_ID=YOUR_CLIENT_ID
|
AUTH_PROVIDER_CLIENT_ID=YOUR_CLIENT_ID
|
||||||
AUTH_PROVIDER_CLIENT_SECRET=YOUR_CLIENT_SECRET
|
AUTH_PROVIDER_CLIENT_SECRET=YOUR_CLIENT_SECRET
|
||||||
AUTH_PROVIDER_ISSUER_URL=YOUR_ISSUER_URL
|
AUTH_PROVIDER_ISSUER_URL=YOUR_ISSUER_URL
|
||||||
@@ -18,8 +20,8 @@ AUTH_PROVIDER_JWT_USEDB=true
|
|||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
### Redis
|
### Redis
|
||||||
REDIS_JWT_DB="directus-jwt"
|
REDIS_JWT_DB="2"
|
||||||
REDIS_DB="directus"
|
REDIS_DB="1"
|
||||||
REDIS_HOST="localhost"
|
REDIS_HOST="localhost"
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
@@ -31,7 +33,7 @@ REDIS_PORT=6379
|
|||||||
# you need to pass to the database instance.
|
# you need to pass to the database instance.
|
||||||
|
|
||||||
DB_CLIENT="sqlite3"
|
DB_CLIENT="sqlite3"
|
||||||
DB_FILENAME="/workspaces/directus-extension-external-jwt/data.db"
|
DB_FILENAME="./data.db"
|
||||||
|
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,7 +5,7 @@ dist
|
|||||||
|
|
||||||
# directus files
|
# directus files
|
||||||
*.db
|
*.db
|
||||||
extensions/
|
#extensions/*/**
|
||||||
uploads/
|
uploads/
|
||||||
.env
|
.env
|
||||||
|
|
||||||
|
|||||||
0
extensions/.gitkeep
Normal file
0
extensions/.gitkeep
Normal file
1
extensions/@zerosubnet/directus-extension-external-jwt
Symbolic link
1
extensions/@zerosubnet/directus-extension-external-jwt
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../dist
|
||||||
26
package.json
26
package.json
@@ -67,7 +67,7 @@
|
|||||||
"build": "directus-extension build",
|
"build": "directus-extension build",
|
||||||
"dev": "directus-extension build -w --no-minify",
|
"dev": "directus-extension build -w --no-minify",
|
||||||
"link": "directus-extension link",
|
"link": "directus-extension link",
|
||||||
"directus": "npx directus start",
|
"directus": "pnpm dlx directus start",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"test:coverage": "vitest run --coverage"
|
"test:coverage": "vitest run --coverage"
|
||||||
@@ -94,30 +94,30 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@directus/errors": "^0.2.4",
|
"@directus/errors": "^0.3.2",
|
||||||
"@directus/extensions-sdk": "^11.0.1",
|
"@directus/extensions-sdk": "^11.0.7",
|
||||||
"@directus/tsconfig": "^1.0.1",
|
"@directus/tsconfig": "^1.0.1",
|
||||||
"@directus/types": "^11.0.7",
|
"@directus/types": "^11.1.2",
|
||||||
"@directus/utils": "^11.0.6",
|
"@directus/utils": "^11.0.9",
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
"@semantic-release/commit-analyzer": "^10.0.4",
|
"@semantic-release/commit-analyzer": "^10.0.4",
|
||||||
"@semantic-release/exec": "^6.0.3",
|
"@semantic-release/exec": "^6.0.3",
|
||||||
"@semantic-release/github": "^9.2.6",
|
"@semantic-release/github": "^9.2.6",
|
||||||
"@semantic-release/npm": "^10.0.6",
|
"@semantic-release/npm": "^10.0.6",
|
||||||
"@types/chai": "^4.3.12",
|
"@types/chai": "^4.3.16",
|
||||||
"@types/chai-as-promised": "^7.1.8",
|
"@types/chai-as-promised": "^7.1.8",
|
||||||
"@types/config": "^3.3.3",
|
"@types/config": "^3.3.4",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"@types/jsonwebtoken": "^9.0.6",
|
"@types/jsonwebtoken": "^9.0.6",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/mocha": "^10.0.6",
|
"@types/mocha": "^10.0.6",
|
||||||
"@types/node": "^20.11.25",
|
"@types/node": "^20.14.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||||
"@vitest/coverage-istanbul": "^0.34.6",
|
"@vitest/coverage-istanbul": "^0.34.6",
|
||||||
"axios": "^1.6.7",
|
"axios": "^1.7.2",
|
||||||
"config": "^3.3.11",
|
"config": "^3.3.11",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-n": "^15.7.0",
|
"eslint-plugin-n": "^15.7.0",
|
||||||
"eslint-plugin-no-loops": "^0.3.0",
|
"eslint-plugin-no-loops": "^0.3.0",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.2.0",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
|
|
||||||
@@ -135,11 +135,11 @@
|
|||||||
"sqlite3": "^5.1.7",
|
"sqlite3": "^5.1.7",
|
||||||
"ts-mocha": "^10.0.0",
|
"ts-mocha": "^10.0.0",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.4.2",
|
"typescript": "^5.4.5",
|
||||||
"vitest": "^0.34.6"
|
"vitest": "^0.34.6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@keyv/redis": "^2.8.4",
|
"@keyv/redis": "^2.8.5",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"jwks-rsa": "^3.1.0",
|
"jwks-rsa": "^3.1.0",
|
||||||
"keyv": "^4.5.4",
|
"keyv": "^4.5.4",
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"vite": "^4.3.9",
|
"vite@<4.3.9": "^4.3.9",
|
||||||
"zod@<=3.22.2": ">=3.22.3",
|
"zod@<=3.22.2": ">=3.22.3",
|
||||||
"axios@<=1.4.0": ">=1.4.1"
|
"axios@<=1.4.0": ">=1.4.1"
|
||||||
}
|
}
|
||||||
|
|||||||
1823
pnpm-lock.yaml
generated
1823
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user