diff --git a/package.json b/package.json index c8296e0..53600e9 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,10 @@ ".": "./dist/lib-x.js", "./": "./dist/" }, - "repository": "github:center-key/web-ignition", + "repository": { + "type": "git", + "url": "git+https://github.com/center-key/web-ignition.git" + }, "homepage": "https://github.com/center-key/web-ignition", "bugs": "https://github.com/center-key/web-ignition/issues", "docs": "https://github.com/center-key/web-ignition#readme", @@ -103,15 +106,15 @@ }, "devDependencies": { "@fortawesome/fontawesome-free": "~6.4", - "@types/node": "~20.5", - "@typescript-eslint/eslint-plugin": "~6.4", - "@typescript-eslint/parser": "~6.4", - "add-dist-header": "~1.2", + "@types/node": "~20.6", + "@typescript-eslint/eslint-plugin": "~6.7", + "@typescript-eslint/parser": "~6.7", + "add-dist-header": "~1.3", "assert-deep-strict-equal": "~1.1", "copy-file-util": "~1.1", "copy-folder-util": "~1.1", "csso-cli": "~4.0", - "eslint": "~8.47", + "eslint": "~8.50", "esm-to-plain-js": "~1.1", "jshint": "~2.13", "less": "~4.2", @@ -121,6 +124,6 @@ "run-scripts-util": "~1.2", "typescript": "~5.2", "uglify-js": "~3.17", - "w3c-html-validator": "~1.4" + "w3c-html-validator": "~1.5" } } diff --git a/src/js/lib-x.ts b/src/js/lib-x.ts index 58595dc..4e5b735 100644 --- a/src/js/lib-x.ts +++ b/src/js/lib-x.ts @@ -238,6 +238,8 @@ const libXDom = { libX.dom.on('submit', listener, { selector: selector ?? null }); }, onHoverIn(listener: LibXEventListener, selector: string) { + // Calls the listener function when the pointer devices moves over any of the elements + // matching the selector. let ready = true; const delegator = (event: Event) => { const target = (event.target)?.closest(selector); @@ -248,6 +250,8 @@ const libXDom = { globalThis.document.addEventListener('pointerover', delegator); }, onHoverOut(listener: LibXEventListener, selector: string) { + // Calls the listener function when the pointer devices moves off any of the elements + // matching the selector. let ready = false; let prevTarget: Element | null = null; const delegator = (event: Event) => { diff --git a/task-runner.sh.command b/task-runner.sh.command index 10565c2..e44042f 100755 --- a/task-runner.sh.command +++ b/task-runner.sh.command @@ -33,13 +33,14 @@ setupTools() { releaseInstructions() { cd $projectHome - repository=$(grep repository package.json | awk -F'"' '{print $4}' | sed s/github://) - package=https://raw.githubusercontent.com/$repository/main/package.json + org=$(grep git+https package.json | awk -F'/' '{print $4}') + name=$(grep '"name":' package.json | awk -F'"' '{print $4}') + package=https://raw.githubusercontent.com/$org/$name/main/package.json version=v$(grep '"version"' package.json | awk -F'"' '{print $4}') pushed=v$(curl --silent $package | grep '"version":' | awk -F'"' '{print $4}') minorVersion=$(echo ${pushed:1} | awk -F"." '{ print $1 "." $2 }') released=$(git tag | tail -1) - published=v$(npm view $repository version) + published=v$(npm view $name version) test $? -ne 0 && echo "NOTE: Ignore error if package is not yet published." echo "Local changes:" git status --short