@sdeverywhere/runtime 0.2.3 → 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
@@ -73,7 +73,9 @@ __export(src_exports, {
73
73
  getEncodedVarIndicesLength: () => getEncodedVarIndicesLength,
74
74
  getJsModelFunctions: () => getJsModelFunctions,
75
75
  initJsModel: () => initJsModel,
76
- initWasmModel: () => initWasmModel
76
+ initWasmModel: () => initWasmModel,
77
+ perfElapsed: () => perfElapsed,
78
+ perfNow: () => perfNow
77
79
  });
78
80
  module.exports = __toCommonJS(src_exports);
79
81
 
@@ -589,8 +591,14 @@ var BufferedRunModelParams = class {
589
591
  }
590
592
  // from RunModelParams interface
591
593
  storeOutputs(array) {
592
- var _a;
593
- (_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
+ }
594
602
  }
595
603
  // from RunModelParams interface
596
604
  getLookups() {
@@ -1923,6 +1931,8 @@ function createSimpleInputValue(varId) {
1923
1931
  getEncodedVarIndicesLength,
1924
1932
  getJsModelFunctions,
1925
1933
  initJsModel,
1926
- initWasmModel
1934
+ initWasmModel,
1935
+ perfElapsed,
1936
+ perfNow
1927
1937
  });
1928
1938
  //# sourceMappingURL=index.cjs.map