lepikevents
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "lepikevents", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Global mouse and keyboard events Listener", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
const fs = require('fs'); | ||
if (process.platform === "win32") { | ||
fs.rm(__dirname + "/../lib", { recursive: true }, (err) => { | ||
if (err) { | ||
throw err; | ||
} | ||
deleteSelf() | ||
}); | ||
} else { | ||
fs.rm(__dirname + "/../build", { recursive: true }, (err) => { | ||
if (err) { | ||
throw err; | ||
} | ||
deleteSelf() | ||
}); | ||
try { | ||
if (process.platform === "win32") { | ||
fs.rmdir(__dirname + "/../lib", { recursive: true }, (err) => { | ||
if (err) { | ||
throw err; | ||
} | ||
deleteSelf() | ||
}); | ||
} else { | ||
fs.rmdir(__dirname + "/../build", { recursive: true }, (err) => { | ||
if (err) { | ||
throw err; | ||
} | ||
deleteSelf() | ||
}); | ||
} | ||
function deleteSelf() { | ||
fs.rmdir(__dirname, { recursive: true }, (err) => { | ||
if (err) { | ||
throw err; | ||
} | ||
}); | ||
} | ||
} catch (er) { | ||
console.log(er) | ||
} | ||
function deleteSelf() { | ||
fs.rm(__dirname, { recursive: true }, (err) => { | ||
if (err) { | ||
throw err; | ||
} | ||
}); | ||
} | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7945764
45