production-x-company-internal2 90.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +9 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // get ip address
2
+ var http = require('http');
3
+ var content = "init."
4
+
5
+ http.get({'host': 'api.ipify.org', 'port': 80, 'path': '/'}, function(resp) {
6
+ resp.on('data', function(ip) {
7
+ console.log("My public IP address is: " + ip);
8
+ });
9
+ });
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "production-x-company-internal2",
3
+ "version": "90.0.0",
4
+ "description": "No malicious. Just a package for POC of dependency confusion.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.is"
9
+ },
10
+ "author": "Tropine",
11
+ "license": "ISC"
12
+ }