Skip to content

Commit

Permalink
Replace deprecated repository setting in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Sep 24, 2023
1 parent 238f115 commit 34f6bd8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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"
}
}
4 changes: 4 additions & 0 deletions src/js/lib-x.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <Element>(<Element>event.target)?.closest(selector);
Expand All @@ -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) => {
Expand Down
7 changes: 4 additions & 3 deletions task-runner.sh.command
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34f6bd8

Please sign in to comment.