@fleetbase/registry-bridge-engine 0.0.8 → 0.0.9

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.
@@ -41,7 +41,7 @@
41
41
  <div class="space-y-2">
42
42
  <div>
43
43
  <div class="text-sm font-semibold dark:text-gray-100">Version</div>
44
- <div class="text-sm dark:text-gray-200">{{this.extension.version}}</div>
44
+ <div class="text-sm dark:text-gray-200">{{this.extension.current_bundle_version}}</div>
45
45
  </div>
46
46
  <div>
47
47
  <div class="text-sm font-semibold dark:text-gray-100">Updated</div>
@@ -4,7 +4,7 @@ import { inject as service } from '@ember/service';
4
4
  import { action } from '@ember/object';
5
5
  import { task } from 'ember-concurrency';
6
6
  import { loadConnectAndInitialize } from '@stripe/connect-js';
7
- import config from '../config/environment';
7
+ import config from '../../../config/environment';
8
8
 
9
9
  export default class DevelopersPaymentsOnboardController extends Controller {
10
10
  @service fetch;
@@ -15,6 +15,7 @@ export default class RegistryExtensionModel extends Model {
15
15
  @attr('string') icon_uuid;
16
16
  @attr('string') public_id;
17
17
  @attr('string') current_bundle_public_id;
18
+ @attr('string') current_bundle_version;
18
19
  @attr('string') next_bundle_public_id;
19
20
  @attr('string') current_bundle_id;
20
21
  @attr('string') next_bundle_id;
package/composer.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbase/registry-bridge",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "keywords": [
6
6
  "fleetbase-extension",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "require": {
22
22
  "php": "^8.0",
23
- "fleetbase/core-api": "^1.4.30",
23
+ "fleetbase/core-api": "^1.5.0",
24
24
  "laravel/cashier": "^15.2.1",
25
25
  "php-http/guzzle7-adapter": "^1.0",
26
26
  "psr/http-factory-implementation": "*",
package/extension.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Registry Bridge",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "repository": "https://github.com/fleetbase/registry-bridge",
6
6
  "license": "AGPL-3.0-or-later",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbase/registry-bridge-engine",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "fleetbase": {
6
6
  "route": "extensions"
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@babel/core": "^7.23.2",
42
- "@fleetbase/ember-core": "^0.2.13",
42
+ "@fleetbase/ember-core": "^0.2.14",
43
43
  "@fleetbase/ember-ui": "^0.2.19",
44
44
  "@fortawesome/ember-fontawesome": "^2.0.0",
45
45
  "@fortawesome/fontawesome-svg-core": "6.4.0",
@@ -113,6 +113,7 @@ class RegistryExtension extends Model
113
113
  'current_bundle_filename',
114
114
  'current_bundle_id',
115
115
  'current_bundle_public_id',
116
+ 'current_bundle_version',
116
117
  'next_bundle_filename',
117
118
  'next_bundle_id',
118
119
  'next_bundle_public_id',
@@ -340,6 +341,18 @@ class RegistryExtension extends Model
340
341
  return data_get($this, 'currentBundle.bundle_filename');
341
342
  }
342
343
 
344
+ /**
345
+ * Get the current bundle version.
346
+ */
347
+ public function getCurrentBundleVersionAttribute(): ?string
348
+ {
349
+ if ($this->currentBundle instanceof RegistryExtensionBundle) {
350
+ return $this->currentBundle->version;
351
+ }
352
+
353
+ return data_get($this, 'currentBundle.version');
354
+ }
355
+
343
356
  /**
344
357
  * Get the next bundle public ID.
345
358
  */