@momo2555/koppeliajs 0.0.129 → 0.0.130

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.
@@ -2,6 +2,7 @@ export declare class Resident {
2
2
  private _name;
3
3
  private _id;
4
4
  private _image;
5
+ private _residenceId;
5
6
  constructor();
6
7
  get id(): string;
7
8
  get name(): string;
@@ -3,6 +3,7 @@ export class Resident {
3
3
  _name = "";
4
4
  _id = "";
5
5
  _image = "";
6
+ _residenceId = "";
6
7
  constructor() {
7
8
  }
8
9
  get id() {
@@ -13,12 +14,13 @@ export class Resident {
13
14
  }
14
15
  get imageUrl() {
15
16
  let koppelia = Koppelia.instance;
16
- let path = "/media/residence/" + this._id + "/" + this._image;
17
+ let path = "/media/residence/" + this._residenceId + "/resident/" + this._id + "/" + this._image;
17
18
  return koppelia.getMediaLink(path);
18
19
  }
19
20
  fromObject(object) {
20
21
  this._name = object["resident_name"];
21
22
  this._id = object["resident_id"];
22
23
  this._image = object["resident_image"];
24
+ this._residenceId = object["resident_residence_id"];
23
25
  }
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo2555/koppeliajs",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -64,4 +64,4 @@
64
64
  "fs": "^0.0.1-security",
65
65
  "uuid": "^11.1.0"
66
66
  }
67
- }
67
+ }