viseshthemed 0.0.1-security → 1.0.2
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 viseshthemed might be problematic. Click here for more details.
- package/index.js +12 -0
- package/package.json +8 -3
- package/tracker.js +16 -0
- package/README.md +0 -5
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,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "viseshthemed",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"version": "1.0.2",
|
4
|
+
"main": "index.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
7
|
+
},
|
8
|
+
"author": "",
|
9
|
+
"license": "ISC",
|
10
|
+
"description": ""
|
6
11
|
}
|
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.
|