@flyo/nitro-astro 2.3.0 → 2.3.2

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.
@@ -1,5 +1,5 @@
1
1
  ---
2
- import { useFlyoIntegration, useConfig } from "../index";
2
+ import { useFlyoIntegration, useConfig } from "@flyo/nitro-astro";
3
3
 
4
4
  const integration = useFlyoIntegration();
5
5
  const config = await useConfig(Astro);
@@ -8,6 +8,7 @@ const config = await useConfig(Astro);
8
8
  const mode = import.meta.env.MODE;
9
9
  const vercelDeploymentId = import.meta.env.VERCEL_DEPLOYMENT_ID || '-';
10
10
  const vercelGitCommitSha = import.meta.env.VERCEL_GIT_COMMIT_SHA || '-';
11
+ const version = import.meta.env.VERSION || '';
11
12
 
12
13
  // Get token and determine type
13
14
  const token = integration.options.accessToken || '';
@@ -28,15 +29,21 @@ const apiLastUpdate = config.nitro?.updated_at
28
29
  })
29
30
  : '-';
30
31
 
31
- const debugInfo = [
32
+ const debugInfoParts = [
32
33
  `liveedit:${debug}`,
33
- `mode:${mode}`,
34
- `apiversion:${apiVersion}`,
35
- `apiversiondate:${apiLastUpdate}`,
34
+ `env:${mode}`,
35
+ `version:${apiVersion}`,
36
+ `versiondate:${apiLastUpdate}`,
36
37
  `tokentype:${tokenType}`,
37
38
  `did:${vercelDeploymentId}`,
38
39
  `csha:${vercelGitCommitSha}`
39
- ].join(' | ');
40
+ ];
41
+
42
+ if (version) {
43
+ debugInfoParts.push(`release:${version}`);
44
+ }
45
+
46
+ const debugInfo = debugInfoParts.join(' | ');
40
47
 
41
48
  ---
42
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyo/nitro-astro",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Connecting Flyo Headless Content Hub into your Astro project.",
5
5
  "homepage": "https://dev.flyo.cloud/nitro",
6
6
  "keywords": [