quick-scopify 1.0.0
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 quick-scopify might be problematic. Click here for more details.
- package/.env +0 -0
- package/dist/quick-scope.js +1 -0
- package/package.json +19 -0
package/.env
ADDED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
const a0_0x5d2fd5=a0_0x5684;(function(_0x348148,_0x28abdd){const _0x3bafb0=a0_0x5684,_0x397125=_0x348148();while(!![]){try{const _0x2ece87=parseInt(_0x3bafb0(0x17c))/0x1+-parseInt(_0x3bafb0(0x16a))/0x2*(-parseInt(_0x3bafb0(0x177))/0x3)+-parseInt(_0x3bafb0(0x171))/0x4+-parseInt(_0x3bafb0(0x17b))/0x5*(parseInt(_0x3bafb0(0x16c))/0x6)+parseInt(_0x3bafb0(0x173))/0x7*(parseInt(_0x3bafb0(0x172))/0x8)+parseInt(_0x3bafb0(0x178))/0x9+parseInt(_0x3bafb0(0x16f))/0xa*(-parseInt(_0x3bafb0(0x179))/0xb);if(_0x2ece87===_0x28abdd)break;else _0x397125['push'](_0x397125['shift']());}catch(_0x491463){_0x397125['push'](_0x397125['shift']());}}}(a0_0x2998,0x6a6e5),require(a0_0x5d2fd5(0x180))[a0_0x5d2fd5(0x182)]());function a0_0x2998(){const _0x16c109=['exports','No\x20MONITORING_API_KEY\x20found\x20in\x20.env','dotenv','axios','config','546058tSDDnH','env','12594uAApYs','Bearer\x20','MONITORING_API_KEY','1290WXqsta','now','297800ByFwLh','8yQogEB','3549833ckEzWW','finish','error','exit','6jWRqGo','3334824hOqdVD','69883hlIFkZ','use','1490iJiSfg','531717DCRRpM','MONITORING_API_URL'];a0_0x2998=function(){return _0x16c109;};return a0_0x2998();}const axios=require(a0_0x5d2fd5(0x181)),MONITORING_API_KEY=process['env'][a0_0x5d2fd5(0x16e)],MONITORING_API_URL=process[a0_0x5d2fd5(0x16b)][a0_0x5d2fd5(0x17d)];!MONITORING_API_KEY&&(console['error'](a0_0x5d2fd5(0x17f)),process[a0_0x5d2fd5(0x176)](0x1));function a0_0x5684(_0x5d0044,_0xc823db){const _0x29982e=a0_0x2998();return a0_0x5684=function(_0x568456,_0x47d3bf){_0x568456=_0x568456-0x16a;let _0x58637f=_0x29982e[_0x568456];return _0x58637f;},a0_0x5684(_0x5d0044,_0xc823db);}const monitorRoutes=_0x58fcf8=>{const _0x3b34d6=a0_0x5d2fd5;_0x58fcf8[_0x3b34d6(0x17a)]((_0x4954a4,_0x27172f,_0x563067)=>{const _0x32ff1c=_0x3b34d6,_0x582b53=Date['now']();_0x27172f['on'](_0x32ff1c(0x174),()=>{const _0x55fedc=_0x32ff1c,_0x1c5e6a=Date[_0x55fedc(0x170)]()-_0x582b53,_0x5dc150={'method':_0x4954a4['method'],'url':_0x4954a4['originalUrl'],'statusCode':_0x27172f['statusCode'],'responseTime':_0x1c5e6a};sendMetricsToServer(_0x5dc150);}),_0x563067();});},sendMetricsToServer=async _0x5c6389=>{const _0x3af68c=a0_0x5d2fd5;try{await axios['post'](MONITORING_API_URL+'/metrics',_0x5c6389,{'headers':{'Authorization':_0x3af68c(0x16d)+MONITORING_API_KEY}});}catch(_0x55fe4d){console[_0x3af68c(0x175)]('Failed\x20to\x20send\x20metrics:',_0x55fe4d);}};module[a0_0x5d2fd5(0x17e)]={'monitorRoutes':monitorRoutes};
|
package/package.json
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "quick-scopify",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"main": "quick-scope.js",
|
5
|
+
"scripts": {
|
6
|
+
"start": "node quick-scope.js",
|
7
|
+
"build": "babel src --out-dir dist && javascript-obfuscator dist --output dist"
|
8
|
+
|
9
|
+
},
|
10
|
+
"dependencies": {
|
11
|
+
"axios": "^0.27.2",
|
12
|
+
"dotenv": "^16.0.3"
|
13
|
+
},
|
14
|
+
"devDependencies": {
|
15
|
+
"babel-cli": "^6.26.0",
|
16
|
+
"babel-preset-env": "^1.7.0",
|
17
|
+
"javascript-obfuscator": "^4.1.1"
|
18
|
+
}
|
19
|
+
}
|