powerpagestoolkit 1.3.501 → 1.3.502

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.
@@ -804,7 +804,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
804
804
  _context.next = 7;
805
805
  break;
806
806
  }
807
- return _context.abrupt("return", new DOMNodeNotFoundError(this));
807
+ throw new DOMNodeNotFoundError(this);
808
808
  case 7:
809
809
  if (!this.element.classList.contains("boolean-radio")) {
810
810
  _context.next = 10;
@@ -822,7 +822,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
822
822
  case 16:
823
823
  _context.prev = 16;
824
824
  _context.t0 = _context["catch"](0);
825
- return _context.abrupt("return", new DOMNodeInitializationError(this, _context.t0));
825
+ throw new DOMNodeInitializationError(this, _context.t0);
826
826
  case 19:
827
827
  case "end":
828
828
  return _context.stop();
@@ -976,7 +976,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
976
976
  try {
977
977
  this.element.disabled = true;
978
978
  } catch (e) {
979
- return new Error("There was an error trying to disable the target: ".concat(this.target));
979
+ throw new Error("There was an error trying to disable the target: ".concat(this.target));
980
980
  }
981
981
  return this;
982
982
  }
@@ -986,7 +986,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
986
986
  try {
987
987
  this.element.disabled = false;
988
988
  } catch (e) {
989
- return new Error("There was an error trying to disable the target: ".concat(this.target));
989
+ throw new Error("There was an error trying to disable the target: ".concat(this.target));
990
990
  }
991
991
  return this;
992
992
  }
@@ -1100,7 +1100,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
1100
1100
  value: function setStyle(options) {
1101
1101
  var _this5 = this;
1102
1102
  if (Object.prototype.toString.call(options) !== "[object Object]") {
1103
- return new Error("powerpagestoolkit: 'DOMNodeReference.setStyle' required options to be in the form of an object. Argument passed was of type: ".concat(DOMNodeReferences_typeof(options)));
1103
+ throw new Error("powerpagestoolkit: 'DOMNodeReference.setStyle' required options to be in the form of an object. Argument passed was of type: ".concat(DOMNodeReferences_typeof(options)));
1104
1104
  }
1105
1105
  Object.keys(options).forEach(function (key) {
1106
1106
  _this5.element.style[key] = options[key];
@@ -1141,7 +1141,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
1141
1141
  });
1142
1142
  }
1143
1143
  } catch (e) {
1144
- return new ConditionalRenderingError(this, e);
1144
+ throw new ConditionalRenderingError(this, e);
1145
1145
  }
1146
1146
  return this;
1147
1147
  }
@@ -1160,7 +1160,7 @@ var DOMNodeReference = /*#__PURE__*/function () {
1160
1160
  //eslint-disable-next-line
1161
1161
  Page_Validators.push(newValidator);
1162
1162
  } else {
1163
- return new Error("Attempted to add to Validator where Page_Validators do not exist");
1163
+ throw new Error("Attempted to add to Validator where Page_Validators do not exist");
1164
1164
  }
1165
1165
  this.setRequiredLevel(isRequired(this));
1166
1166
  if (!dependencies) return this;
@@ -1260,7 +1260,7 @@ function _createDOMNodeReference() {
1260
1260
  _context3.prev = 7;
1261
1261
  _context3.t0 = _context3["catch"](0);
1262
1262
  console.error("There was an error creating a DOMNodeReference: ".concat(_context3.t0));
1263
- return _context3.abrupt("return", new Error(_context3.t0));
1263
+ throw new Error(_context3.t0);
1264
1264
  case 11:
1265
1265
  case "end":
1266
1266
  return _context3.stop();
@@ -1301,7 +1301,7 @@ function _createMultipleDOMNodeReferences() {
1301
1301
  _context4.prev = 10;
1302
1302
  _context4.t0 = _context4["catch"](0);
1303
1303
  console.error("There was an error creating multiple DOMNodeReferences: ".concat(_context4.t0));
1304
- return _context4.abrupt("return", new Error(_context4.t0));
1304
+ throw new Error(_context4.t0);
1305
1305
  case 14:
1306
1306
  case "end":
1307
1307
  return _context4.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "1.3.501",
3
+ "version": "1.3.502",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "./dist/index.bundle.js",
6
6
  "types": "index.d.ts",