From 8480427bf9ff3aca92241d8ad7ab7f5edeb3fa75 Mon Sep 17 00:00:00 2001 From: WoLfulus Date: Mon, 13 May 2024 15:31:42 -0300 Subject: [PATCH] 0.4.1 --- packages/cli/CHANGELOG.md | 6 ++++++ packages/cli/package.json | 2 +- packages/cli/types/schema.ts | 2 +- packages/indirectus/CHANGELOG.md | 8 ++++++++ packages/indirectus/package.json | 2 +- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 3295761..c53a4ac 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @indirectus/cli +## 0.4.1 + +### Patch Changes + +- path fix + ## 0.4.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 5f542fe..469af58 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@indirectus/cli", - "version": "0.4.0", + "version": "0.4.1", "license": "MIT", "description": "Directus Tools CLI.", "keywords": [ diff --git a/packages/cli/types/schema.ts b/packages/cli/types/schema.ts index 63af24a..1353ca3 100644 --- a/packages/cli/types/schema.ts +++ b/packages/cli/types/schema.ts @@ -122,7 +122,7 @@ export async function fetchSchema( } const url = new URL(directus.url); - url.pathname += "/schema/snapshot"; + url.pathname = (url.pathname?.replace(/\/$/, "") ?? "") + "/schema/snapshot"; url.searchParams.set("export", "json"); url.searchParams.set("access_token", directus.token); diff --git a/packages/indirectus/CHANGELOG.md b/packages/indirectus/CHANGELOG.md index bca3293..f4fa5eb 100644 --- a/packages/indirectus/CHANGELOG.md +++ b/packages/indirectus/CHANGELOG.md @@ -1,5 +1,13 @@ # indirectus +## 0.4.1 + +### Patch Changes + +- path fix +- Updated dependencies + - @indirectus/cli@0.4.1 + ## 0.4.0 ### Minor Changes diff --git a/packages/indirectus/package.json b/packages/indirectus/package.json index d9d3596..e2bb007 100644 --- a/packages/indirectus/package.json +++ b/packages/indirectus/package.json @@ -1,6 +1,6 @@ { "name": "indirectus", - "version": "0.4.0", + "version": "0.4.1", "license": "MIT", "description": "Directus Tools CLI.", "keywords": [