n8n-nodes-soar 0.1.13 → 0.1.14
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.
@@ -0,0 +1,128 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "Unauthor", {
|
6
|
+
enumerable: true,
|
7
|
+
get: function() {
|
8
|
+
return Unauthor;
|
9
|
+
}
|
10
|
+
});
|
11
|
+
const _executor = require("../../utils/executor");
|
12
|
+
function _define_property(obj, key, value) {
|
13
|
+
if (key in obj) {
|
14
|
+
Object.defineProperty(obj, key, {
|
15
|
+
value: value,
|
16
|
+
enumerable: true,
|
17
|
+
configurable: true,
|
18
|
+
writable: true
|
19
|
+
});
|
20
|
+
} else {
|
21
|
+
obj[key] = value;
|
22
|
+
}
|
23
|
+
return obj;
|
24
|
+
}
|
25
|
+
class Unauthor {
|
26
|
+
async execute() {
|
27
|
+
const result = [];
|
28
|
+
const executor = new _executor.SoarExecutor(this);
|
29
|
+
for(let idx = 0; idx < this.getInputData().length; idx++){
|
30
|
+
const type = this.getNodeParameter("type", idx);
|
31
|
+
const response = await executor.run(idx, "unauthor", "--targets", {
|
32
|
+
extraArgs: [
|
33
|
+
type
|
34
|
+
],
|
35
|
+
extraArgParameters: [
|
36
|
+
"options"
|
37
|
+
]
|
38
|
+
});
|
39
|
+
result.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(JSON.parse(response.stdout)), {
|
40
|
+
itemData: {
|
41
|
+
item: idx
|
42
|
+
}
|
43
|
+
}));
|
44
|
+
}
|
45
|
+
return [
|
46
|
+
result
|
47
|
+
];
|
48
|
+
}
|
49
|
+
constructor(){
|
50
|
+
_define_property(this, "description", {
|
51
|
+
displayName: "Soar: Unauthor",
|
52
|
+
name: "unauthor",
|
53
|
+
group: [
|
54
|
+
"output"
|
55
|
+
],
|
56
|
+
version: 1,
|
57
|
+
subtitle: "={{ 'unauthor' + ($parameter['batch'] ? ' (Batch)' : ' on ' + $parameter['target']) }}",
|
58
|
+
description: "Interact with Unauthor",
|
59
|
+
defaults: {
|
60
|
+
name: "Unauthor"
|
61
|
+
},
|
62
|
+
inputs: [
|
63
|
+
"main"
|
64
|
+
],
|
65
|
+
outputs: [
|
66
|
+
"main"
|
67
|
+
],
|
68
|
+
credentials: [
|
69
|
+
{
|
70
|
+
name: "dockerCredentialsApi"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
name: "kubernetesCredentialsApi"
|
74
|
+
}
|
75
|
+
],
|
76
|
+
properties: (0, _executor.injectCommonProperties)([
|
77
|
+
{
|
78
|
+
displayName: "Type",
|
79
|
+
name: "type",
|
80
|
+
type: "options",
|
81
|
+
default: "redis",
|
82
|
+
options: [
|
83
|
+
{
|
84
|
+
displayName: "Redis",
|
85
|
+
name: "Redis",
|
86
|
+
value: "redis"
|
87
|
+
}
|
88
|
+
]
|
89
|
+
},
|
90
|
+
{
|
91
|
+
displayName: "Options",
|
92
|
+
name: "options",
|
93
|
+
type: "fixedCollection",
|
94
|
+
default: {},
|
95
|
+
typeOptions: {
|
96
|
+
multipleValues: true
|
97
|
+
},
|
98
|
+
options: [
|
99
|
+
{
|
100
|
+
displayName: "Options",
|
101
|
+
name: "key",
|
102
|
+
type: "options",
|
103
|
+
default: "-concurrent",
|
104
|
+
options: [
|
105
|
+
{
|
106
|
+
name: "Concurrent",
|
107
|
+
value: "-concurrent",
|
108
|
+
description: "Concurrent number (default 20)"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
name: "Timeout",
|
112
|
+
value: "-timeout",
|
113
|
+
description: "Timeout seconds (default 10s)"
|
114
|
+
}
|
115
|
+
]
|
116
|
+
},
|
117
|
+
{
|
118
|
+
displayName: "Value",
|
119
|
+
name: "value",
|
120
|
+
type: "string",
|
121
|
+
default: ""
|
122
|
+
}
|
123
|
+
]
|
124
|
+
}
|
125
|
+
], true)
|
126
|
+
});
|
127
|
+
}
|
128
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "n8n-nodes-soar",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.14",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"n8n-community-node-package"
|
@@ -46,7 +46,8 @@
|
|
46
46
|
"dist/nodes/Subfinder/Subfinder.node.js",
|
47
47
|
"dist/nodes/Katana/Katana.node.js",
|
48
48
|
"dist/nodes/Fofa/Fofa.node.js",
|
49
|
-
"dist/nodes/Tshark/Tshark.node.js"
|
49
|
+
"dist/nodes/Tshark/Tshark.node.js",
|
50
|
+
"dist/nodes/Unauthor/Unauthor.node.js"
|
50
51
|
]
|
51
52
|
},
|
52
53
|
"devDependencies": {
|