@modernman00/shared-js-lib 1.2.68 → 1.2.71

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/FormHelper.js CHANGED
@@ -109,8 +109,9 @@ export default class FormHelper {
109
109
  const { name, value, id, type, placeholder } = input;
110
110
 
111
111
 
112
- // Skip non-input elements
112
+ // Skip elements without IDs or non-input elements
113
113
  if (
114
+ !id ||
114
115
  ['submit', 'button', 'g-recaptcha-response', 'cancel'].includes(name) ||
115
116
  ['button', 'showPassword', 'token', 'g-recaptcha-response'].includes(id) ||
116
117
  type === 'button' || optionalFields.includes(id) ||
@@ -185,13 +186,10 @@ export default class FormHelper {
185
186
  };
186
187
 
187
188
  this.data.flat().forEach(({ id, name, value }) => {
188
- if (['submit', 'button', 'token', 'checkbox'].includes(id) || ['token', 'submit'].includes(name)) return;
189
+ if (!id || ['submit', 'button', 'token', 'checkbox'].includes(id) || ['token', 'submit'].includes(name)) return;
189
190
 
190
191
  const element = this.id(id);
191
- if (!element) {
192
- console.error(`Element with ID '${id}' and post name '${name}' not found.`);
193
- return;
194
- }
192
+ if (!element) return; // Silently skip elements not found
195
193
 
196
194
  // Add event listeners to clear errors
197
195
  const clearErrorHandler = () => clearErrorForElement(id || name);
@@ -1,3 +1,3 @@
1
1
  <?php
2
- define('APP_VERSION', 'v1.2.67');
2
+ define('APP_VERSION', 'v1.2.71');
3
3
 
package/index.js CHANGED
@@ -14,4 +14,6 @@ export * from './AcctMgt/forgot.js';
14
14
  export * from './AcctMgt/login.js';
15
15
  export * from './AcctMgt/processAll.js';
16
16
  export * from './AcctMgt/update.js';
17
+ export * from './AcctMgt/registerHandler.js';
18
+ export * from './AcctMgt/recaptchaToken.js';
17
19
  export * from './general.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernman00/shared-js-lib",
3
- "version": "1.2.68",
3
+ "version": "1.2.71",
4
4
  "description": "Reusable JS utilities for numerous js problems",
5
5
  "homepage": "https://github.com/modernman00/shared-js-lib#readme",
6
6
  "keywords": [
@@ -71,3 +71,15 @@
71
71
 
72
72
  - 🔖 Bump version to v1.2.66 _(by modernman00)_
73
73
  - 🧹 Auto-commit before release _(by modernman00)_
74
+
75
+ ## v1.2.71 — 2026-05-07 18:15
76
+ ### Changelog for v1.2.71
77
+
78
+ - 🔖 Bump version to v1.2.71 _(by modernman00)_
79
+ - 🧹 Auto-commit before release _(by modernman00)_
80
+ - 🧹 Auto-commit before release _(by modernman00)_
81
+ - 🧹 Auto-commit before release _(by modernman00)_
82
+ - 🧹 Auto-commit before release _(by modernman00)_
83
+ - 🧹 Auto-commit before release _(by modernman00)_
84
+ - 🧹 Auto-commit before release _(by modernman00)_
85
+ - 🧹 Auto-commit before release _(by modernman00)_