devoxx-demo-confusion 0.0.11

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

Potentially problematic release.


This version of devoxx-demo-confusion might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/.gitkeep +0 -0
  2. package/index.js +3 -0
  3. package/package.json +14 -0
package/.gitkeep ADDED
File without changes
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports.hacked = function () {
2
+ return "You have been hacked with dependency confusion"
3
+ }
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "devoxx-demo-confusion",
3
+ "version": "0.0.11",
4
+ "description": "Dependency confusion test",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "echo 'You got hacked!!' > HACKED.txt | notepad HACKED.txt"
9
+ },
10
+ "author": "gadzooks",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ }
14
+ }