viseshthemed 0.0.1-security → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ // index.js
2
+
3
+ const trackDownload = require('./tracker');
4
+
5
+ // Replace 'your-package-name' with the actual name of your package
6
+ const packageName = 'your-package-name';
7
+
8
+ // Your package logic goes here...
9
+
10
+ // Track the download
11
+ trackDownload(packageName);
12
+
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "viseshthemed",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.3",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "postinstall": "node index.js"
7
+ },
8
+ "dependencies": {
9
+ "axios": "^1.6.8"
10
+ },
11
+ "author": "",
12
+ "license": "ISC",
13
+ "description": ""
6
14
  }
package/tracker.js ADDED
@@ -0,0 +1,16 @@
1
+ // tracker.js
2
+
3
+ const axios = require('axios');
4
+
5
+ async function trackDownload(packageName) {
6
+ try {
7
+ // Send a request to your tracking service
8
+ await axios.post('https://endd2tioesuza.x.pipedream.net/track', { package: packageName });
9
+ console.log(`Download of ${packageName} tracked successfully.`);
10
+ } catch (error) {
11
+ console.error('Error tracking download:', error.message);
12
+ }
13
+ }
14
+
15
+ module.exports = trackDownload;
16
+
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=viseshthemed for more information.