bruce-models 1.8.6 → 1.8.8

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.
@@ -675,7 +675,7 @@
675
675
  }
676
676
  else {
677
677
  formData = new FormData();
678
- if (params.formData) {
678
+ if (params === null || params === void 0 ? void 0 : params.formData) {
679
679
  for (const key in params.formData) {
680
680
  formData.append(key, params.formData[key]);
681
681
  }
@@ -1973,7 +1973,9 @@
1973
1973
  const end = str.indexOf("}");
1974
1974
  if (end > -1) {
1975
1975
  if (start < end) {
1976
- return { path: str.substring(start + 2, end), text: str.substring(start, end) };
1976
+ const path = str.substring(start + 2, end);
1977
+ const txt = str.substring(start, end + 1);
1978
+ return { path: path, text: txt };
1977
1979
  }
1978
1980
  }
1979
1981
  }
@@ -2988,7 +2990,7 @@
2988
2990
  throw ("Entity ID, Type ID, and File are required.");
2989
2991
  }
2990
2992
  const url = `entity/${entityId}/attachment/${typeId}`;
2991
- const res = yield api.UPLOAD(url, file, reqParams);
2993
+ const res = yield api.UPLOAD(url, file, exports.Api.PrepReqParams(reqParams));
2992
2994
  api.Cache.RemoveByStartsWith(GetListCacheKey(entityId));
2993
2995
  return {
2994
2996
  attachment: res