@modernman00/shared-js-lib 1.2.23 → 1.2.25

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.
@@ -1,9 +1,9 @@
1
- name: Semantic Release
1
+ name: Publish to npm
2
2
 
3
3
  on:
4
4
  push:
5
- branches:
6
- - main
5
+ tags:
6
+ - 'v*.*.*' # Trigger only on semantic version tags
7
7
 
8
8
  jobs:
9
9
  release:
@@ -13,7 +13,7 @@ jobs:
13
13
  - name: Checkout code
14
14
  uses: actions/checkout@v3
15
15
 
16
- - name: Setup Node.js
16
+ - name: Use Node.js
17
17
  uses: actions/setup-node@v3
18
18
  with:
19
19
  node-version: '18'
@@ -22,8 +22,19 @@ jobs:
22
22
  - name: Install dependencies
23
23
  run: npm ci
24
24
 
25
- - name: Run semantic-release
25
+ - name: Publish to npm
26
+ run: npm publish --access public
26
27
  env:
27
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
28
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29
- run: npx semantic-release
29
+
30
+ - name: Confirm publish
31
+ run: |
32
+ echo "🔍 Verifying publish..."
33
+ PACKAGE=$(node -p "require('./package.json').name")
34
+ VERSION=$(node -p "require('./package.json').version")
35
+ PUBLISHED=$(npm view $PACKAGE version)
36
+ if [[ "$PUBLISHED" == "$VERSION" ]]; then
37
+ echo "✅ $PACKAGE@$VERSION is live on npmjs.org"
38
+ else
39
+ echo "⚠️ Expected $VERSION, but registry shows $PUBLISHED"
40
+ fi
@@ -49,8 +49,8 @@ export const setupPasswordChange = ({
49
49
  showToggleId = 'showPassword_id',
50
50
  errorId = 'confirm_password_error',
51
51
  helpId = 'password_help',
52
- route = "",
53
- redirect = "",
52
+ route,
53
+ redirect,
54
54
  theme = 'bulma',
55
55
  maxLength = 50
56
56
  } = {}) => {
package/AcctMgt/code.js CHANGED
@@ -25,8 +25,8 @@ import { bindEvent } from '../Utility.js';
25
25
  */
26
26
  export function createCodeSubmitHandler({
27
27
  formId,
28
- inputId,
29
- buttonId,
28
+ inputId = 'code_id',
29
+ buttonId = 'button',
30
30
  route,
31
31
  redirect,
32
32
  theme = 'bulma',
package/AcctMgt/forgot.js CHANGED
@@ -31,8 +31,8 @@ import {bindEvent } from '../Utility.js';
31
31
  */
32
32
  export function forgotSubmitHandler({
33
33
  formId,
34
- inputId,
35
- buttonId,
34
+ inputId = 'email_id',
35
+ buttonId = 'button',
36
36
  route,
37
37
  redirect,
38
38
  theme = 'bulma',
package/AcctMgt/login.js CHANGED
@@ -37,10 +37,10 @@ import { showPassword } from './loginUtility.js';
37
37
  */
38
38
  export function createAdminLoginHandler({
39
39
  formId,
40
- emailId,
41
- passwordId,
42
- buttonId,
43
- showToggleId,
40
+ emailId = 'email_id',
41
+ passwordId = 'password_id',
42
+ buttonId = 'button',
43
+ showToggleId = 'showPassword_id',
44
44
  route,
45
45
  redirect,
46
46
  theme = 'bootstrap',
@@ -1,3 +1,3 @@
1
1
  <?php
2
- define('APP_VERSION', 'v1.2.23');
2
+ define('APP_VERSION', 'v1.2.26');
3
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernman00/shared-js-lib",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "Reusable JS utilities for numerous js problems",
5
5
  "homepage": "https://github.com/modernman00/shared-js-lib#readme",
6
6
  "keywords": [