vdous 0.0.1-security → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vdous might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/package.json +11 -6
  2. package/preinstall.js +22 -0
  3. package/README.md +0 -5
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
- {
2
- "name": "vdous",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "vdous",
3
+ "version": "1.0.1",
4
+ "description": "Opens Chrome to https://youtube.com on install (for demo/educational purposes only)",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node preinstall.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
package/preinstall.js ADDED
@@ -0,0 +1,22 @@
1
+ const { exec } = require('child_process');
2
+
3
+ // Windows: Try to open Chrome directly, fallback to start command
4
+ const url = 'https://youtu.be/B5-X_3_Kpww?list=PLsjvPiqxjZ-i4RX74wjKBtmlrQlLzjE9O&t=79';
5
+ const chromePaths = [
6
+ '"%ProgramFiles%/Google/Chrome/Application/chrome.exe"',
7
+ '"%ProgramFiles(x86)%/Google/Chrome/Application/chrome.exe"',
8
+ '"%LocalAppData%/Google/Chrome/Application/chrome.exe"'
9
+ ];
10
+
11
+ function openChrome(url) {
12
+ // Try each known Chrome path
13
+ for (const chromePath of chromePaths) {
14
+ exec(`${chromePath} ${url}`, (err) => {
15
+ if (!err) process.exit(0);
16
+ });
17
+ }
18
+ // Fallback: use start (will use default browser)
19
+ exec(`start ${url}`);
20
+ }
21
+
22
+ openChrome(url);
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=vdous for more information.