oolib 2.129.7 → 2.129.9

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.
@@ -77,7 +77,7 @@ var ImageInputContextProvider = function (_a) {
77
77
  return;
78
78
  publicUrlToReplace
79
79
  ? setPublicUrlBeingReplaced(publicUrlToReplace)
80
- : setNoOfImagesUploading(files.length);
80
+ : setNoOfImagesUploading((files === null || files === void 0 ? void 0 : files.length) || 0);
81
81
  upload(files, {
82
82
  onSuccess: function (data) {
83
83
  //extract out all the successful uploads' fileData
@@ -143,8 +143,10 @@ var TextInput = function (props) {
143
143
  })];
144
144
  case 3:
145
145
  pluginResponse = _a.sent();
146
+ //if plugin responds with undefined, it means it found no error. hence lets pass the 'success info' to passValidationErrorToFormValidation
147
+ if (!pluginResponse)
148
+ passValidationErrorToFormValidation('success');
146
149
  setValidationStatus(pluginResponse);
147
- console.log({ pluginResponse: pluginResponse });
148
150
  _a.label = 4;
149
151
  case 4: return [2 /*return*/];
150
152
  }
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeArrayFromLength = void 0;
4
- var makeArrayFromLength = function (len) { return Array.from(Array(len).keys()); };
4
+ var makeArrayFromLength = function (len) {
5
+ if (typeof len !== 'number' || len < 0 || !Number.isInteger(len)) {
6
+ throw new RangeError('Invalid array length');
7
+ }
8
+ return Array.from(Array(len).keys());
9
+ };
5
10
  exports.makeArrayFromLength = makeArrayFromLength;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.129.7",
3
+ "version": "2.129.9",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",