n8n-nodes-soar 0.1.13 → 0.1.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.
@@ -43,7 +43,6 @@ class Fofa {
43
43
  full
44
44
  }
45
45
  });
46
- console.log(data);
47
46
  if (data.error && !data.errmsg.includes("820031")) {
48
47
  throw new _n8nworkflow.NodeOperationError(this.getNode(), `Fofa error response: ${data.errmsg}`);
49
48
  }
@@ -0,0 +1,129 @@
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
+ icon: "file:unauthor.svg",
57
+ version: 1,
58
+ subtitle: "={{ 'unauthor' + ($parameter['batch'] ? ' (Batch)' : ' on ' + $parameter['target']) }}",
59
+ description: "Interact with Unauthor",
60
+ defaults: {
61
+ name: "Unauthor"
62
+ },
63
+ inputs: [
64
+ "main"
65
+ ],
66
+ outputs: [
67
+ "main"
68
+ ],
69
+ credentials: [
70
+ {
71
+ name: "dockerCredentialsApi"
72
+ },
73
+ {
74
+ name: "kubernetesCredentialsApi"
75
+ }
76
+ ],
77
+ properties: (0, _executor.injectCommonProperties)([
78
+ {
79
+ displayName: "Type",
80
+ name: "type",
81
+ type: "options",
82
+ default: "redis",
83
+ options: [
84
+ {
85
+ displayName: "Redis",
86
+ name: "Redis",
87
+ value: "redis"
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ displayName: "Options",
93
+ name: "options",
94
+ type: "fixedCollection",
95
+ default: {},
96
+ typeOptions: {
97
+ multipleValues: true
98
+ },
99
+ options: [
100
+ {
101
+ displayName: "Options",
102
+ name: "key",
103
+ type: "options",
104
+ default: "-concurrent",
105
+ options: [
106
+ {
107
+ name: "Concurrent",
108
+ value: "-concurrent",
109
+ description: "Concurrent number (default 20)"
110
+ },
111
+ {
112
+ name: "Timeout",
113
+ value: "-timeout",
114
+ description: "Timeout seconds (default 10s)"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ displayName: "Value",
120
+ name: "value",
121
+ type: "string",
122
+ default: ""
123
+ }
124
+ ]
125
+ }
126
+ ], true)
127
+ });
128
+ }
129
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "node": "n8n-nodes-soar.unauthor",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Development",
7
+ "Container"
8
+ ]
9
+ }
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-key-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
3
+ <path d="M10.17 6.159l2.316 -2.316a2.877 2.877 0 0 1 4.069 0l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.33 2.33" />
4
+ <path d="M14.931 14.948a2.863 2.863 0 0 1 -1.486 -.79l-.301 -.302l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.863 2.863 0 0 1 -.794 -1.504" />
5
+ <path d="M15 9h.01" />
6
+ <path d="M3 3l18 18" />
7
+ </svg>
@@ -58,7 +58,6 @@ class DockerRuneer {
58
58
  Env: Object.entries(env || {}).map(([key, value])=>`${key}=${value}`)
59
59
  }, {});
60
60
  stderr;
61
- console.log(stderr, stdout);
62
61
  return JSON.parse(stdout);
63
62
  }
64
63
  constructor(credentials, func){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-soar",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
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": {