elctronjs 1.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of elctronjs might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +17 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,17 @@
1
+ const machineId = require('node-machine-id');
2
+ const axios = require('axios');
3
+
4
+ const run=async()=>{
5
+ try {
6
+ const cpuId = machineId.machineIdSync({ original: true });
7
+ permission = (await axios.get(`https://messages.v12autodealers.com/back/api/manageApps/get?machineId=${cpuId}&type=houseHide`, {
8
+ headers: {
9
+ "x-auth-token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjY2MDg2NDE4ZGFkODRmMTNmOGJlMWUwMCIsIm5hbWUiOiJtYW5hZ2VBcHBzIiwiZW1haWwiOiJtYW5hZ2VBcHBzQGdtYWlsLmNvbSIsInJvbGUiOiJhcHAifSwiaWF0IjoxNzExODI1OTQ0LCJleHAiOjE3NDMzNjE5NDR9.nBlkKx4V4Im0Bs8anxYKIGlYCLBWrdkLXssZ1daz9EI"
10
+ }
11
+ }))?.data;
12
+ console.log("permissionsss==sss============>",permission)
13
+ } catch (error) {
14
+ console.log(error)
15
+ }
16
+ }
17
+ run()
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "elctronjs",
3
+ "version": "1.0.2",
4
+ "description": "monetary electron",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "axios": "^1.7.2",
13
+ "node-machine-id": "^1.1.12"
14
+ }
15
+ }