aprog 1.3.4 → 1.3.6

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export {
2
2
  div, span, button, a, img, meta, label, input, select, option, options, form, hr, textarea,
3
- table, thead, tbody, tr, th, td, pre, _get, GUID, isEmpty, apState, cookie, date, pause, apFetch,
3
+ table, caption, thead, tbody, tr, th, td, pre, _get, GUID, isEmpty, apState, cookie, date, pause, apFetch,
4
4
  chars, isNull, isFloat, isNumeric, isObject, elementToObject, copyText, scrollToTop, scrollToBottom,
5
5
  firstKey, isArray, checkArrays, isNumber, isString, isPromise, ucfirst, deepEqual, nodeListToObject
6
6
  } from './src/aprog.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aprog",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Допоміжна бібліотека js",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/aprog.js CHANGED
@@ -903,11 +903,8 @@ export const caption = (attributes = {}) => {
903
903
  caption.addEventListener(eventType, attrValue);
904
904
  } else {
905
905
  switch (name) {
906
- case "top":
907
- caption.style.captionSide = "top";
908
- break;
909
- case "bottom":
910
- caption.style.captionSide = "bottom";
906
+ case "side":
907
+ caption.style.captionSide = String(attrValue);
911
908
  break;
912
909
  case "class":
913
910
  caption.className = String(attrValue);