@sdeverywhere/runtime 0.2.4 → 0.2.5

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/index.cjs CHANGED
@@ -591,8 +591,14 @@ var BufferedRunModelParams = class {
591
591
  }
592
592
  // from RunModelParams interface
593
593
  storeOutputs(array) {
594
- var _a;
595
- (_a = this.outputs.view) == null ? void 0 : _a.set(array);
594
+ if (this.outputs.view === void 0) {
595
+ return;
596
+ }
597
+ if (array.length > this.outputs.view.length) {
598
+ this.outputs.view.set(array.subarray(0, this.outputs.view.length));
599
+ } else {
600
+ this.outputs.view.set(array);
601
+ }
596
602
  }
597
603
  // from RunModelParams interface
598
604
  getLookups() {