@duet3d/objectmodel 3.7.0-beta.8 → 3.7.0-rc.1

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.
Files changed (42) hide show
  1. package/dist/ModelCollection.d.ts +11 -1
  2. package/dist/ModelCollection.js +24 -4
  3. package/dist/ObjectModel.js +2 -2
  4. package/dist/boards/directDisplay/DirectDisplayScreen.d.ts +1 -1
  5. package/dist/boards/directDisplay/DirectDisplayScreen.js +3 -3
  6. package/dist/boards/directDisplay/DirectDisplayScreenST7567.d.ts +1 -1
  7. package/dist/boards/directDisplay/DirectDisplayScreenST7567.js +3 -3
  8. package/dist/boards/index.d.ts +25 -10
  9. package/dist/boards/index.js +35 -14
  10. package/dist/documentation.json +1005 -206
  11. package/dist/enums.json +8 -7
  12. package/dist/move/index.d.ts +1 -0
  13. package/dist/move/index.js +1 -0
  14. package/dist/move/kinematics/CoreKinematics.d.ts +1 -1
  15. package/dist/move/kinematics/CoreKinematics.js +3 -3
  16. package/dist/move/kinematics/DeltaKinematics.d.ts +1 -1
  17. package/dist/move/kinematics/DeltaKinematics.js +3 -3
  18. package/dist/move/kinematics/HangprinterKinematics.d.ts +1 -1
  19. package/dist/move/kinematics/HangprinterKinematics.js +3 -3
  20. package/dist/move/kinematics/KinematicsBase.d.ts +6 -6
  21. package/dist/move/kinematics/KinematicsBase.js +7 -6
  22. package/dist/move/kinematics/PolarKinematics.d.ts +1 -1
  23. package/dist/move/kinematics/PolarKinematics.js +3 -3
  24. package/dist/move/kinematics/ScaraKinematics.d.ts +1 -1
  25. package/dist/move/kinematics/ScaraKinematics.js +3 -3
  26. package/dist/move/kinematics/index.d.ts +1 -1
  27. package/dist/move/kinematics/index.js +3 -3
  28. package/dist/plugins/PluginManifest.d.ts +1 -1
  29. package/dist/plugins/PluginManifest.js +2 -2
  30. package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.d.ts +1 -1
  31. package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.js +3 -3
  32. package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.d.ts +1 -1
  33. package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.js +3 -3
  34. package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.d.ts +1 -1
  35. package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.js +3 -3
  36. package/dist/sensors/FilamentMonitors/index.d.ts +1 -1
  37. package/dist/sensors/FilamentMonitors/index.js +3 -3
  38. package/dist/sensors/Probe.d.ts +9 -1
  39. package/dist/sensors/Probe.js +12 -0
  40. package/dist/state/MessageBox.d.ts +1 -1
  41. package/dist/state/MessageBox.js +2 -2
  42. package/package.json +2 -2
package/dist/enums.json CHANGED
@@ -127,12 +127,12 @@
127
127
  "coreXYUV",
128
128
  "coreXZ",
129
129
  "markForged",
130
- "fiveBarScara",
131
- "hangprinter",
132
- "linearDelta",
133
- "polar",
134
- "rotaryDelta",
135
- "scara",
130
+ "FiveBarScara",
131
+ "Hangprinter",
132
+ "delta",
133
+ "Polar",
134
+ "Rotary delta",
135
+ "Scara",
136
136
  "unknown"
137
137
  ],
138
138
  "move.shaping.type": [
@@ -276,7 +276,8 @@
276
276
  "8",
277
277
  "9",
278
278
  "10",
279
- "11"
279
+ "11",
280
+ "12"
280
281
  ],
281
282
  "spindles[].state": [
282
283
  "unconfigured",
@@ -43,6 +43,7 @@ export declare class Move extends ModelObject {
43
43
  readonly keepout: ModelCollection<KeepoutZone | null>;
44
44
  kinematics: Kinematics;
45
45
  limitAxes: boolean;
46
+ minSpeed: number;
46
47
  noMovesBeforeHoming: boolean;
47
48
  readonly motionSystems: ModelCollection<MotionSystem>;
48
49
  /**
@@ -57,6 +57,7 @@ export class Move extends ModelObject {
57
57
  this.keepout = new ModelCollection(KeepoutZone);
58
58
  this.kinematics = new CoreKinematics(KinematicsName.cartesian);
59
59
  this.limitAxes = true;
60
+ this.minSpeed = 30;
60
61
  this.noMovesBeforeHoming = true;
61
62
  this.motionSystems = new ModelCollection(MotionSystem);
62
63
  /**
@@ -4,6 +4,6 @@ export declare class CoreKinematics extends ZLeadscrewKinematics {
4
4
  constructor(name: KinematicsName);
5
5
  forwardMatrix: Array<Array<number>>;
6
6
  inverseMatrix: Array<Array<number>>;
7
- update(jsonElement: any): IModelObject | null;
7
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
8
8
  }
9
9
  export default CoreKinematics;
@@ -14,14 +14,14 @@ export class CoreKinematics extends ZLeadscrewKinematics {
14
14
  [0, 0, 1]
15
15
  ];
16
16
  }
17
- update(jsonElement) {
17
+ update(jsonElement, authoritative = false) {
18
18
  if (jsonElement === null) {
19
19
  throw new Error("Kinematics must not be null");
20
20
  }
21
21
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
22
- return getKinematics(jsonElement.name).update(jsonElement);
22
+ return getKinematics(jsonElement.name).update(jsonElement, authoritative);
23
23
  }
24
- return super.update(jsonElement);
24
+ return super.update(jsonElement, authoritative);
25
25
  }
26
26
  }
27
27
  export default CoreKinematics;
@@ -16,6 +16,6 @@ export declare class DeltaKinematics extends KinematicsBase {
16
16
  readonly towers: ModelCollection<DeltaTower>;
17
17
  xTilt: number;
18
18
  yTilt: number;
19
- update(jsonElement: any): IModelObject | null;
19
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
20
20
  }
21
21
  export default DeltaKinematics;
@@ -22,14 +22,14 @@ export class DeltaKinematics extends KinematicsBase {
22
22
  this.xTilt = 0;
23
23
  this.yTilt = 0;
24
24
  }
25
- update(jsonElement) {
25
+ update(jsonElement, authoritative = false) {
26
26
  if (jsonElement === null) {
27
27
  throw new Error("Kinematics must not be null");
28
28
  }
29
29
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
30
- return getKinematics(jsonElement.name).update(jsonElement);
30
+ return getKinematics(jsonElement.name).update(jsonElement, authoritative);
31
31
  }
32
- return super.update(jsonElement);
32
+ return super.update(jsonElement, authoritative);
33
33
  }
34
34
  }
35
35
  export default DeltaKinematics;
@@ -4,6 +4,6 @@ export declare class HangprinterKinematics extends KinematicsBase {
4
4
  anchors: Array<Array<number>>;
5
5
  printRadius: number;
6
6
  constructor();
7
- update(jsonElement: any): IModelObject | null;
7
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
8
8
  }
9
9
  export default HangprinterKinematics;
@@ -11,14 +11,14 @@ export class HangprinterKinematics extends KinematicsBase {
11
11
  ];
12
12
  this.printRadius = 1500;
13
13
  }
14
- update(jsonElement) {
14
+ update(jsonElement, authoritative = false) {
15
15
  if (jsonElement === null) {
16
16
  throw new Error("Kinematics must not be null");
17
17
  }
18
18
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
19
- return getKinematics(jsonElement.name).update(jsonElement);
19
+ return getKinematics(jsonElement.name).update(jsonElement, authoritative);
20
20
  }
21
- return super.update(jsonElement);
21
+ return super.update(jsonElement, authoritative);
22
22
  }
23
23
  }
24
24
  export default HangprinterKinematics;
@@ -6,12 +6,12 @@ export declare enum KinematicsName {
6
6
  coreXYUV = "coreXYUV",
7
7
  coreXZ = "coreXZ",
8
8
  markForged = "markForged",
9
- fiveBarScara = "fiveBarScara",
10
- hangprinter = "hangprinter",
11
- linearDelta = "linearDelta",
12
- polar = "polar",
13
- rotaryDelta = "rotaryDelta",
14
- scara = "scara",
9
+ fiveBarScara = "FiveBarScara",
10
+ hangprinter = "Hangprinter",
11
+ linearDelta = "delta",
12
+ polar = "Polar",
13
+ rotaryDelta = "Rotary delta",
14
+ scara = "Scara",
15
15
  unknown = "unknown"
16
16
  }
17
17
  export declare class MoveSegmentation extends ModelObject {
@@ -1,4 +1,5 @@
1
1
  import ModelObject from "../../ModelObject";
2
+ // Values are the spellings reported by RepRapFirmware, which are inconsistently capitalized
2
3
  export var KinematicsName;
3
4
  (function (KinematicsName) {
4
5
  KinematicsName["cartesian"] = "cartesian";
@@ -7,12 +8,12 @@ export var KinematicsName;
7
8
  KinematicsName["coreXYUV"] = "coreXYUV";
8
9
  KinematicsName["coreXZ"] = "coreXZ";
9
10
  KinematicsName["markForged"] = "markForged";
10
- KinematicsName["fiveBarScara"] = "fiveBarScara";
11
- KinematicsName["hangprinter"] = "hangprinter";
12
- KinematicsName["linearDelta"] = "linearDelta";
13
- KinematicsName["polar"] = "polar";
14
- KinematicsName["rotaryDelta"] = "rotaryDelta";
15
- KinematicsName["scara"] = "scara";
11
+ KinematicsName["fiveBarScara"] = "FiveBarScara";
12
+ KinematicsName["hangprinter"] = "Hangprinter";
13
+ KinematicsName["linearDelta"] = "delta";
14
+ KinematicsName["polar"] = "Polar";
15
+ KinematicsName["rotaryDelta"] = "Rotary delta";
16
+ KinematicsName["scara"] = "Scara";
16
17
  KinematicsName["unknown"] = "unknown";
17
18
  })(KinematicsName || (KinematicsName = {}));
18
19
  export class MoveSegmentation extends ModelObject {
@@ -7,6 +7,6 @@ export declare class PolarKinematics extends KinematicsBase {
7
7
  radiusMin: number;
8
8
  ttAccMax: number;
9
9
  ttSpeedMax: number;
10
- update(jsonElement: any): IModelObject | null;
10
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
11
11
  }
12
12
  export default PolarKinematics;
@@ -9,14 +9,14 @@ export class PolarKinematics extends KinematicsBase {
9
9
  this.ttAccMax = 0;
10
10
  this.ttSpeedMax = 0;
11
11
  }
12
- update(jsonElement) {
12
+ update(jsonElement, authoritative = false) {
13
13
  if (jsonElement === null) {
14
14
  throw new Error("Kinematics must not be null");
15
15
  }
16
16
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
17
- return getKinematics(jsonElement.name).update(jsonElement);
17
+ return getKinematics(jsonElement.name).update(jsonElement, authoritative);
18
18
  }
19
- return super.update(jsonElement);
19
+ return super.update(jsonElement, authoritative);
20
20
  }
21
21
  }
22
22
  export default PolarKinematics;
@@ -9,6 +9,6 @@ export declare class ScaraKinematics extends ZLeadscrewKinematics {
9
9
  thetaLimits: number[];
10
10
  xOffset: number;
11
11
  yOffset: number;
12
- update(jsonElement: any): IModelObject | null;
12
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
13
13
  }
14
14
  export default ScaraKinematics;
@@ -12,14 +12,14 @@ export class ScaraKinematics extends ZLeadscrewKinematics {
12
12
  this.xOffset = 0;
13
13
  this.yOffset = 0;
14
14
  }
15
- update(jsonElement) {
15
+ update(jsonElement, authoritative = false) {
16
16
  if (jsonElement === null) {
17
17
  throw new Error("Kinematics must not be null");
18
18
  }
19
19
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
20
- return getKinematics(jsonElement.name).update(jsonElement);
20
+ return getKinematics(jsonElement.name).update(jsonElement, authoritative);
21
21
  }
22
- return super.update(jsonElement);
22
+ return super.update(jsonElement, authoritative);
23
23
  }
24
24
  }
25
25
  export default ScaraKinematics;
@@ -2,7 +2,7 @@ import type { IModelObject } from "../../ModelObject";
2
2
  import KinematicsBase, { KinematicsName } from "./KinematicsBase";
3
3
  export declare class Kinematics extends KinematicsBase {
4
4
  constructor(name?: KinematicsName);
5
- update(jsonElement: any): IModelObject | null;
5
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
6
6
  }
7
7
  export default Kinematics;
8
8
  export declare function getKinematics(name: KinematicsName): KinematicsBase;
@@ -8,14 +8,14 @@ export class Kinematics extends KinematicsBase {
8
8
  constructor(name = KinematicsName.cartesian) {
9
9
  super(name);
10
10
  }
11
- update(jsonElement) {
11
+ update(jsonElement, authoritative = false) {
12
12
  if (jsonElement === null) {
13
13
  throw new Error("Kinematics must not be null");
14
14
  }
15
15
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
16
- return getKinematics(jsonElement.name).update(jsonElement);
16
+ return getKinematics(jsonElement.name).update(jsonElement, authoritative);
17
17
  }
18
- return super.update(jsonElement);
18
+ return super.update(jsonElement, authoritative);
19
19
  }
20
20
  }
21
21
  export default Kinematics;
@@ -64,6 +64,6 @@ export declare class PluginManifest extends ModelObject {
64
64
  rrfVersion: string | null;
65
65
  data: Map<string, any>;
66
66
  static checkVersion(actual: string, required: string): boolean;
67
- update(jsonElement: any): IModelObject | null;
67
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
68
68
  }
69
69
  export default PluginManifest;
@@ -109,14 +109,14 @@ export class PluginManifest extends ModelObject {
109
109
  }
110
110
  return true;
111
111
  }
112
- update(jsonElement) {
112
+ update(jsonElement, authoritative = false) {
113
113
  if (typeof jsonElement.data === "object") {
114
114
  for (const key in jsonElement.data) {
115
115
  this.data.set(key, jsonElement.data[key]);
116
116
  }
117
117
  delete jsonElement.data;
118
118
  }
119
- return super.update(jsonElement);
119
+ return super.update(jsonElement, authoritative);
120
120
  }
121
121
  }
122
122
  export default PluginManifest;
@@ -18,6 +18,6 @@ export declare class LaserFilamentMonitor extends Duet3DFilamentMonitor {
18
18
  constructor();
19
19
  calibrated: LaserFilamentMonitorCalibrated | null;
20
20
  readonly configured: LaserFilamentMonitorConfigured;
21
- update(jsonElement: any): IModelObject | null;
21
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
22
22
  }
23
23
  export default LaserFilamentMonitor;
@@ -28,14 +28,14 @@ export class LaserFilamentMonitor extends Duet3DFilamentMonitor {
28
28
  this.configured = new LaserFilamentMonitorConfigured();
29
29
  ModelObject.wrapModelProperty(this, "calibrated", LaserFilamentMonitorCalibrated);
30
30
  }
31
- update(jsonElement) {
31
+ update(jsonElement, authoritative = false) {
32
32
  if (jsonElement === null) {
33
33
  return null;
34
34
  }
35
35
  if (typeof jsonElement.type === "string" && jsonElement.type !== this.type) {
36
- return getFilamentMonitor(jsonElement.type).update(jsonElement);
36
+ return getFilamentMonitor(jsonElement.type).update(jsonElement, authoritative);
37
37
  }
38
- return super.update(jsonElement);
38
+ return super.update(jsonElement, authoritative);
39
39
  }
40
40
  }
41
41
  export default LaserFilamentMonitor;
@@ -18,6 +18,6 @@ export declare class PulsedFilamentMonitor extends FilamentMonitorBase {
18
18
  calibrated: PulsedFilamentMonitorCalibrated | null;
19
19
  readonly configured: PulsedFilamentMonitorConfigured;
20
20
  position: number;
21
- update(jsonElement: any): IModelObject | null;
21
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
22
22
  }
23
23
  export default PulsedFilamentMonitor;
@@ -27,14 +27,14 @@ export class PulsedFilamentMonitor extends FilamentMonitorBase {
27
27
  this.position = 0;
28
28
  ModelObject.wrapModelProperty(this, "calibrated", PulsedFilamentMonitorCalibrated);
29
29
  }
30
- update(jsonElement) {
30
+ update(jsonElement, authoritative = false) {
31
31
  if (jsonElement === null) {
32
32
  return null;
33
33
  }
34
34
  if (typeof jsonElement.type === "string" && jsonElement.type !== this.type) {
35
- return getFilamentMonitor(jsonElement.type).update(jsonElement);
35
+ return getFilamentMonitor(jsonElement.type).update(jsonElement, authoritative);
36
36
  }
37
- return super.update(jsonElement);
37
+ return super.update(jsonElement, authoritative);
38
38
  }
39
39
  }
40
40
  export default PulsedFilamentMonitor;
@@ -19,6 +19,6 @@ export declare class RotatingMagnetFilamentMonitor extends Duet3DFilamentMonitor
19
19
  agc: number | null;
20
20
  calibrated: RotatingMagnetFilamentMonitorCalibrated | null;
21
21
  readonly configured: RotatingMagnetFilamentMonitorConfigured;
22
- update(jsonElement: any): IModelObject | null;
22
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
23
23
  }
24
24
  export default RotatingMagnetFilamentMonitor;
@@ -29,14 +29,14 @@ export class RotatingMagnetFilamentMonitor extends Duet3DFilamentMonitor {
29
29
  this.configured = new RotatingMagnetFilamentMonitorConfigured();
30
30
  ModelObject.wrapModelProperty(this, "calibrated", RotatingMagnetFilamentMonitorCalibrated);
31
31
  }
32
- update(jsonElement) {
32
+ update(jsonElement, authoritative = false) {
33
33
  if (jsonElement === null) {
34
34
  return null;
35
35
  }
36
36
  if (typeof jsonElement.type === "string" && jsonElement.type !== this.type) {
37
- return getFilamentMonitor(jsonElement.type).update(jsonElement);
37
+ return getFilamentMonitor(jsonElement.type).update(jsonElement, authoritative);
38
38
  }
39
- return super.update(jsonElement);
39
+ return super.update(jsonElement, authoritative);
40
40
  }
41
41
  }
42
42
  export default RotatingMagnetFilamentMonitor;
@@ -1,7 +1,7 @@
1
1
  import type { IModelObject } from "../../ModelObject";
2
2
  import FilamentMonitorBase, { FilamentMonitorType } from "./FilamentMonitorBase";
3
3
  export declare class FilamentMonitor extends FilamentMonitorBase {
4
- update(jsonElement: any): IModelObject | null;
4
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
5
5
  }
6
6
  export default FilamentMonitor;
7
7
  export declare function getFilamentMonitor(type: FilamentMonitorType): FilamentMonitorBase;
@@ -3,14 +3,14 @@ import LaserFilamentMonitor from "./LaserFilamentMonitor";
3
3
  import PulsedFilamentMonitor from "./PulsedFilamentMonitor";
4
4
  import RotatingMagnetFilamentMonitor from "./RotatingMagnetFilamentMonitor";
5
5
  export class FilamentMonitor extends FilamentMonitorBase {
6
- update(jsonElement) {
6
+ update(jsonElement, authoritative = false) {
7
7
  if (jsonElement === null) {
8
8
  return null;
9
9
  }
10
10
  if (typeof jsonElement.type === "string" && jsonElement.type !== this.type) {
11
- return getFilamentMonitor(jsonElement.type).update(jsonElement);
11
+ return getFilamentMonitor(jsonElement.type).update(jsonElement, authoritative);
12
12
  }
13
- return super.update(jsonElement);
13
+ return super.update(jsonElement, authoritative);
14
14
  }
15
15
  }
16
16
  export default FilamentMonitor;
@@ -11,7 +11,14 @@ export declare enum ProbeType {
11
11
  unfilteredDigital = 8,
12
12
  blTouch = 9,
13
13
  zMotorStall = 10,
14
- scanningAnalog = 11
14
+ scanningAnalog = 11,
15
+ loadCell = 12
16
+ }
17
+ export declare class ProbeLoadCell extends ModelObject {
18
+ force: number;
19
+ gramsPerCount: number;
20
+ preload: number;
21
+ preloadWindow: Array<number>;
15
22
  }
16
23
  export declare class ProbeTouchMode extends ModelObject {
17
24
  active: boolean;
@@ -31,6 +38,7 @@ export declare class Probe extends ModelObject {
31
38
  diveHeights: Array<number>;
32
39
  isCalibrated: boolean | null;
33
40
  lastStopHeight: number;
41
+ loadCell: ProbeLoadCell | null;
34
42
  maxProbeCount: number;
35
43
  measuredHeight: number | null;
36
44
  offsets: Array<number>;
@@ -13,7 +13,17 @@ export var ProbeType;
13
13
  ProbeType[ProbeType["blTouch"] = 9] = "blTouch";
14
14
  ProbeType[ProbeType["zMotorStall"] = 10] = "zMotorStall";
15
15
  ProbeType[ProbeType["scanningAnalog"] = 11] = "scanningAnalog";
16
+ ProbeType[ProbeType["loadCell"] = 12] = "loadCell";
16
17
  })(ProbeType || (ProbeType = {}));
18
+ export class ProbeLoadCell extends ModelObject {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.force = 0;
22
+ this.gramsPerCount = 0;
23
+ this.preload = 0;
24
+ this.preloadWindow = [0, 0];
25
+ }
26
+ }
17
27
  export class ProbeTouchMode extends ModelObject {
18
28
  constructor() {
19
29
  super(...arguments);
@@ -36,6 +46,7 @@ export class Probe extends ModelObject {
36
46
  this.diveHeights = [0, 0];
37
47
  this.isCalibrated = null;
38
48
  this.lastStopHeight = 0;
49
+ this.loadCell = null;
39
50
  this.maxProbeCount = 1;
40
51
  this.measuredHeight = null;
41
52
  this.offsets = [0, 0];
@@ -50,6 +61,7 @@ export class Probe extends ModelObject {
50
61
  this.triggerHeight = 0.7;
51
62
  this.type = ProbeType.none;
52
63
  this.value = [];
64
+ ModelObject.wrapModelProperty(this, "loadCell", ProbeLoadCell);
53
65
  ModelObject.wrapModelProperty(this, "touchMode", ProbeTouchMode);
54
66
  }
55
67
  }
@@ -22,6 +22,6 @@ export declare class MessageBox extends ModelObject {
22
22
  seq: number;
23
23
  timeout: number;
24
24
  title: string;
25
- update(jsonElement: any): IModelObject | null;
25
+ update(jsonElement: any, authoritative?: boolean): IModelObject | null;
26
26
  }
27
27
  export default MessageBox;
@@ -25,11 +25,11 @@ export class MessageBox extends ModelObject {
25
25
  this.timeout = 0;
26
26
  this.title = "";
27
27
  }
28
- update(jsonElement) {
28
+ update(jsonElement, authoritative = false) {
29
29
  if (jsonElement instanceof Object && (typeof jsonElement.default === "number" || typeof jsonElement.default === "string")) {
30
30
  this.default = jsonElement.default;
31
31
  }
32
- return super.update(jsonElement);
32
+ return super.update(jsonElement, authoritative);
33
33
  }
34
34
  }
35
35
  export default MessageBox;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.7.0-beta.8",
3
+ "version": "3.7.0-rc.1",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "test": "tsc -p tsconfig.test.json --noEmit && jest --config jestconfig.json",
19
19
  "build": "tsc && node scripts/extract-metadata.ts",
20
20
  "prepare": "npm run build",
21
- "prepublishOnly": "npm test"
21
+ "prepublishOnly": "npm test && node scripts/check-metadata.ts"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",