@duet3d/objectmodel 3.6.0-alpha.2 → 3.6.0-alpha.3
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.
- package/dist/ModelObject.js +1 -4
- package/dist/directories/index.js +7 -7
- package/package.json +1 -1
package/dist/ModelObject.js
CHANGED
|
@@ -33,12 +33,9 @@ class ModelObject {
|
|
|
33
33
|
if (prop !== updatedObject) {
|
|
34
34
|
const propDescriptor = Object.getOwnPropertyDescriptor(this, key);
|
|
35
35
|
if (propDescriptor !== undefined) {
|
|
36
|
-
if (propDescriptor.writable) {
|
|
36
|
+
if (propDescriptor.writable || propDescriptor.set !== undefined) {
|
|
37
37
|
this[ownKey] = updatedObject;
|
|
38
38
|
}
|
|
39
|
-
else if (propDescriptor.set !== undefined) {
|
|
40
|
-
propDescriptor.set(updatedObject);
|
|
41
|
-
}
|
|
42
39
|
else if (process.env.NODE_ENV !== "production") {
|
|
43
40
|
console.warn(`Model object ${key} changed but it could not be set due to missing setter`);
|
|
44
41
|
}
|
|
@@ -5,13 +5,13 @@ const ModelObject_1 = require("../ModelObject");
|
|
|
5
5
|
class Directories extends ModelObject_1.default {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
|
-
this.filaments = "0:/filaments";
|
|
9
|
-
this.firmware = "0:/firmware";
|
|
10
|
-
this.gCodes = "0:/gcodes";
|
|
11
|
-
this.macros = "0:/macros";
|
|
12
|
-
this.menu = "0:/menu";
|
|
13
|
-
this.system = "0:/sys";
|
|
14
|
-
this.web = "0:/www";
|
|
8
|
+
this.filaments = "0:/filaments/";
|
|
9
|
+
this.firmware = "0:/firmware/";
|
|
10
|
+
this.gCodes = "0:/gcodes/";
|
|
11
|
+
this.macros = "0:/macros/";
|
|
12
|
+
this.menu = "0:/menu/";
|
|
13
|
+
this.system = "0:/sys/";
|
|
14
|
+
this.web = "0:/www/";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.Directories = Directories;
|