simple-keep-pc-awake
Advanced tools
Comparing version 1.2.0 to 1.2.1
37
index.js
@@ -122,3 +122,5 @@ #!/usr/bin/env node | ||
return Object.entries(welcomeSubheading).map(([key, value]) => `${key}: ${gradient(["#11998e", "#38ef7d"])(value)}`); | ||
return Object.entries(welcomeSubheading).map( | ||
([key, value]) => `${key}: ${gradient(["#11998e", "#38ef7d"])(value)}` | ||
); | ||
}; | ||
@@ -136,7 +138,31 @@ | ||
...getWelcomeSubheadings(), | ||
`Move offset: ${gradient(["#CAC531", "#F3F9A7"])(getMoveOffset().toString() + " pixels")}`, | ||
`Max idle time: ${gradient(["#CAC531", "#F3F9A7"])(getMaxIdleTime().seconds.toString() + " seconds")}`, | ||
`Move offset: ${gradient(["#CAC531", "#F3F9A7"])( | ||
getMoveOffset().toString() + " pixels" | ||
)}`, | ||
`Max idle time: ${gradient(["#CAC531", "#F3F9A7"])( | ||
getMaxIdleTime().seconds.toString() + " seconds" | ||
)}`, | ||
].join(" | ") + "\n" | ||
); | ||
console.log( | ||
chalk.bgYellow.red( | ||
"##############################################################################################################################\n" | ||
) | ||
); | ||
console.log( | ||
chalk.bold.red( | ||
`The package has been renamed to ${chalk.underline.yellow( | ||
"keep-me-up" | ||
)} and this version will no longer be maintained. Please use ${chalk.underline.green( | ||
"npx keep-me-up" | ||
)} from now on.` | ||
) | ||
); | ||
console.log( | ||
chalk.bgYellow.red( | ||
"\n##############################################################################################################################\n" | ||
) | ||
); | ||
/** Save settings so we don't do unnecessary operations */ | ||
@@ -177,3 +203,6 @@ const maxIdleTime = getMaxIdleTime(); | ||
const prevPosition = await mouse.getPosition(); | ||
const coordinates = new Point(prevPosition.x + moveOffset, prevPosition.y + moveOffset); | ||
const coordinates = new Point( | ||
prevPosition.x + moveOffset, | ||
prevPosition.y + moveOffset | ||
); | ||
await mouse.setPosition(coordinates); | ||
@@ -180,0 +209,0 @@ |
{ | ||
"name": "simple-keep-pc-awake", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A simple way to keep your PC awake with no configuration and setup.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
10173
200
0