alert-message-plugin-flow-requests 1.2.2 → 1.2.4

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.
@@ -108,12 +108,12 @@ var require_linkedlist = __commonJS({
108
108
  }
109
109
  show() {
110
110
  if (!this.head) return null;
111
- let start2 = this.head;
112
- while (start2 != null) {
113
- if (start2.value instanceof _LinkedList) {
114
- start2 = start2.value.head;
111
+ let start = this.head;
112
+ while (start != null) {
113
+ if (start.value instanceof _LinkedList) {
114
+ start = start.value.head;
115
115
  } else {
116
- start2 = start2.next;
116
+ start = start.next;
117
117
  }
118
118
  }
119
119
  }
@@ -153,150 +153,9 @@ var require_dist = __commonJS({
153
153
  }
154
154
  });
155
155
 
156
- // node_modules/.pnpm/alert-message-plugin-flow-requests@1.2.1_typescript@5.9.3_webpack@5.104.1/node_modules/alert-message-plugin-flow-requests/dist/browser-bundle.js
157
- var require_browser_bundle = __commonJS({
158
- "node_modules/.pnpm/alert-message-plugin-flow-requests@1.2.1_typescript@5.9.3_webpack@5.104.1/node_modules/alert-message-plugin-flow-requests/dist/browser-bundle.js"(exports, module) {
159
- var root;
160
- var factory;
161
- root = self, factory = () => (() => {
162
- var __webpack_modules__ = {
163
- 191(e, t) {
164
- Object.defineProperty(t, "__esModule", {
165
- value: true
166
- }), t.LinkedList = t.Node = void 0;
167
- class o {
168
- value;
169
- next;
170
- constructor(e2, t2) {
171
- this.value = e2, this.next = t2;
172
- }
173
- }
174
- t.Node = o;
175
- class r {
176
- head;
177
- tail;
178
- constructor() {
179
- this.head = null, this.tail = null;
180
- }
181
- add(e2) {
182
- if (!this.head) return this.head = new o(e2, null), void (this.tail = null);
183
- if (!this.head.next) {
184
- const t3 = new o(e2, null);
185
- return this.head.next = t3, void (this.tail = t3);
186
- }
187
- const t2 = this.tail, r2 = new o(e2, null);
188
- t2 && (t2.next = r2), this.tail = r2;
189
- }
190
- show() {
191
- if (!this.head) return null;
192
- let e2 = this.head;
193
- for (; null != e2; ) e2 = e2.value instanceof r ? e2.value.head : e2.next;
194
- }
195
- }
196
- t.LinkedList = r;
197
- },
198
- 638(__unused_webpack_module, exports) {
199
- Object.defineProperty(exports, "__esModule", {
200
- value: true
201
- }), exports.NodeBase = void 0;
202
- class NodeBase {
203
- state;
204
- constructor(e) {
205
- this.state = e;
206
- }
207
- parseExpression(expression) {
208
- const regex = /{{(.*?)}}/g, matches = expression.match(regex);
209
- return matches && matches.forEach((match) => {
210
- const key = match.replace("{{", "").replace("}}", "");
211
- let value = eval(key);
212
- "object" == typeof value && (value = JSON.stringify(value)), expression = expression.replace(match, value);
213
- }), expression;
214
- }
215
- getConfig() {
216
- throw new Error("Method not implemented");
217
- }
218
- execute(e) {
219
- throw new Error("Method not implemented");
220
- }
221
- }
222
- exports.NodeBase = NodeBase;
223
- },
224
- 882(e, t, o) {
225
- Object.defineProperty(t, "__esModule", {
226
- value: true
227
- }), t.Node = t.LinkedList = t.NodeBase = void 0;
228
- const r = o(638);
229
- Object.defineProperty(t, "NodeBase", {
230
- enumerable: true,
231
- get: function() {
232
- return r.NodeBase;
233
- }
234
- });
235
- const s = o(191);
236
- Object.defineProperty(t, "LinkedList", {
237
- enumerable: true,
238
- get: function() {
239
- return s.LinkedList;
240
- }
241
- }), Object.defineProperty(t, "Node", {
242
- enumerable: true,
243
- get: function() {
244
- return s.Node;
245
- }
246
- });
247
- }
248
- }, __webpack_module_cache__ = {};
249
- function __webpack_require__(e) {
250
- var t = __webpack_module_cache__[e];
251
- if (void 0 !== t) return t.exports;
252
- var o = __webpack_module_cache__[e] = {
253
- exports: {}
254
- };
255
- return __webpack_modules__[e](o, o.exports, __webpack_require__), o.exports;
256
- }
257
- var __webpack_exports__ = {};
258
- return (() => {
259
- var e = __webpack_exports__;
260
- Object.defineProperty(e, "__esModule", {
261
- value: true
262
- });
263
- const t = __webpack_require__(882);
264
- class o extends t.NodeBase {
265
- constructor(e2) {
266
- super(e2);
267
- }
268
- getConfig() {
269
- return {
270
- name: "AlertMessage",
271
- type: "AlertMessage",
272
- description: "Show alert message when execute the node",
273
- properties: [
274
- {
275
- label: "Message",
276
- name: "message",
277
- type: "text",
278
- required: true,
279
- default: null
280
- }
281
- ]
282
- };
283
- }
284
- async execute(e2) {
285
- const t2 = e2.settings;
286
- return "undefined" != typeof window ? alert(this.parseExpression(t2.message)) : console.log(t2.message), {
287
- ok: true
288
- };
289
- }
290
- }
291
- e.default = o;
292
- })(), __webpack_exports__;
293
- })(), "object" == typeof exports && "object" == typeof module ? module.exports = factory() : "function" == typeof define && define.amd ? define([], factory) : "object" == typeof exports ? exports.AlertMessage = factory() : root.AlertMessage = factory();
294
- }
295
- });
296
-
297
156
  // src/index.ts
298
- var import_core_package_mini_n8n = __toESM(require_dist());
299
- var AlertMessageNode = class extends import_core_package_mini_n8n.NodeBase {
157
+ var import_npm_core_package_mini_n8n = __toESM(require_dist());
158
+ var AlertMessageNode = class extends import_npm_core_package_mini_n8n.NodeBase {
300
159
  constructor(state) {
301
160
  super(state);
302
161
  }
@@ -328,15 +187,6 @@ var AlertMessageNode = class extends import_core_package_mini_n8n.NodeBase {
328
187
  };
329
188
  }
330
189
  };
331
- async function start() {
332
- const item = await Promise.resolve().then(() => __toESM(require_browser_bundle()));
333
- console.log(new item.default({}).execute({
334
- settings: {
335
- message: "a"
336
- }
337
- }));
338
- }
339
- start();
340
190
  var src_default = AlertMessageNode;
341
191
  export {
342
192
  src_default as default
@@ -4,16 +4,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __esm = (fn, res) => function __init() {
8
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
- };
10
7
  var __commonJS = (cb, mod) => function __require() {
11
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
9
  };
13
- var __export = (target, all) => {
14
- for (var name in all)
15
- __defProp(target, name, { get: all[name], enumerable: true });
16
- };
17
10
  var __copyProps = (to, from, except, desc) => {
18
11
  if (from && typeof from === "object" || typeof from === "function") {
19
12
  for (let key2 of __getOwnPropNames(from))
@@ -115,12 +108,12 @@ var require_linkedlist = __commonJS({
115
108
  }
116
109
  show() {
117
110
  if (!this.head) return null;
118
- let start2 = this.head;
119
- while (start2 != null) {
120
- if (start2.value instanceof _LinkedList) {
121
- start2 = start2.value.head;
111
+ let start = this.head;
112
+ while (start != null) {
113
+ if (start.value instanceof _LinkedList) {
114
+ start = start.value.head;
122
115
  } else {
123
- start2 = start2.next;
116
+ start = start.next;
124
117
  }
125
118
  }
126
119
  }
@@ -160,154 +153,9 @@ var require_dist = __commonJS({
160
153
  }
161
154
  });
162
155
 
163
- // node_modules/.pnpm/alert-message-plugin-flow-requests@1.2.1_typescript@5.9.3_webpack@5.104.1/node_modules/alert-message-plugin-flow-requests/dist/node-bundle.js
164
- var node_bundle_exports = {};
165
- __export(node_bundle_exports, {
166
- __esModule: () => __webpack_exports___esModule,
167
- default: () => __webpack_exports__
168
- });
169
- function __webpack_require__(e) {
170
- var t = __webpack_module_cache__[e];
171
- if (void 0 !== t) return t.exports;
172
- var s = __webpack_module_cache__[e] = {
173
- exports: {}
174
- };
175
- return __webpack_modules__[e](s, s.exports, __webpack_require__), s.exports;
176
- }
177
- var __webpack_modules__, __webpack_module_cache__, __webpack_exports__, __webpack_exports___esModule;
178
- var init_node_bundle = __esm({
179
- "node_modules/.pnpm/alert-message-plugin-flow-requests@1.2.1_typescript@5.9.3_webpack@5.104.1/node_modules/alert-message-plugin-flow-requests/dist/node-bundle.js"() {
180
- __webpack_modules__ = {
181
- 191(e, t) {
182
- Object.defineProperty(t, "__esModule", {
183
- value: true
184
- }), t.LinkedList = t.Node = void 0;
185
- class s {
186
- value;
187
- next;
188
- constructor(e2, t2) {
189
- this.value = e2, this.next = t2;
190
- }
191
- }
192
- t.Node = s;
193
- class o {
194
- head;
195
- tail;
196
- constructor() {
197
- this.head = null, this.tail = null;
198
- }
199
- add(e2) {
200
- if (!this.head) return this.head = new s(e2, null), void (this.tail = null);
201
- if (!this.head.next) {
202
- const t3 = new s(e2, null);
203
- return this.head.next = t3, void (this.tail = t3);
204
- }
205
- const t2 = this.tail, o2 = new s(e2, null);
206
- t2 && (t2.next = o2), this.tail = o2;
207
- }
208
- show() {
209
- if (!this.head) return null;
210
- let e2 = this.head;
211
- for (; null != e2; ) e2 = e2.value instanceof o ? e2.value.head : e2.next;
212
- }
213
- }
214
- t.LinkedList = o;
215
- },
216
- 638(__unused_webpack_module, exports) {
217
- Object.defineProperty(exports, "__esModule", {
218
- value: true
219
- }), exports.NodeBase = void 0;
220
- class NodeBase {
221
- state;
222
- constructor(e) {
223
- this.state = e;
224
- }
225
- parseExpression(expression) {
226
- const regex = /{{(.*?)}}/g, matches = expression.match(regex);
227
- return matches && matches.forEach((match) => {
228
- const key = match.replace("{{", "").replace("}}", "");
229
- let value = eval(key);
230
- "object" == typeof value && (value = JSON.stringify(value)), expression = expression.replace(match, value);
231
- }), expression;
232
- }
233
- getConfig() {
234
- throw new Error("Method not implemented");
235
- }
236
- execute(e) {
237
- throw new Error("Method not implemented");
238
- }
239
- }
240
- exports.NodeBase = NodeBase;
241
- },
242
- 882(e, t, s) {
243
- Object.defineProperty(t, "__esModule", {
244
- value: true
245
- }), t.Node = t.LinkedList = t.NodeBase = void 0;
246
- const o = s(638);
247
- Object.defineProperty(t, "NodeBase", {
248
- enumerable: true,
249
- get: function() {
250
- return o.NodeBase;
251
- }
252
- });
253
- const r = s(191);
254
- Object.defineProperty(t, "LinkedList", {
255
- enumerable: true,
256
- get: function() {
257
- return r.LinkedList;
258
- }
259
- }), Object.defineProperty(t, "Node", {
260
- enumerable: true,
261
- get: function() {
262
- return r.Node;
263
- }
264
- });
265
- }
266
- };
267
- __webpack_module_cache__ = {};
268
- __webpack_exports__ = {};
269
- (() => {
270
- var e = __webpack_exports__;
271
- Object.defineProperty(e, "__esModule", {
272
- value: true
273
- });
274
- const t = __webpack_require__(882);
275
- class s extends t.NodeBase {
276
- constructor(e2) {
277
- super(e2);
278
- }
279
- getConfig() {
280
- return {
281
- name: "AlertMessage",
282
- type: "AlertMessage",
283
- description: "Show alert message when execute the node",
284
- properties: [
285
- {
286
- label: "Message",
287
- name: "message",
288
- type: "text",
289
- required: true,
290
- default: null
291
- }
292
- ]
293
- };
294
- }
295
- async execute(e2) {
296
- const t2 = e2.settings;
297
- return "undefined" != typeof window ? alert(this.parseExpression(t2.message)) : console.log(t2.message), {
298
- ok: true
299
- };
300
- }
301
- }
302
- e.default = s;
303
- })();
304
- __webpack_exports___esModule = __webpack_exports__.__esModule;
305
- }
306
- });
307
-
308
156
  // src/index.ts
309
- var import_core_package_mini_n8n = __toESM(require_dist());
310
- var AlertMessageNode = class extends import_core_package_mini_n8n.NodeBase {
157
+ var import_npm_core_package_mini_n8n = __toESM(require_dist());
158
+ var AlertMessageNode = class extends import_npm_core_package_mini_n8n.NodeBase {
311
159
  constructor(state) {
312
160
  super(state);
313
161
  }
@@ -339,15 +187,6 @@ var AlertMessageNode = class extends import_core_package_mini_n8n.NodeBase {
339
187
  };
340
188
  }
341
189
  };
342
- async function start() {
343
- const item = await Promise.resolve().then(() => (init_node_bundle(), node_bundle_exports));
344
- console.log(new item.default({}).execute({
345
- settings: {
346
- message: "a"
347
- }
348
- }));
349
- }
350
- start();
351
190
  var src_default = AlertMessageNode;
352
191
  export {
353
192
  src_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alert-message-plugin-flow-requests",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Alert message plugin to Flow requests",
5
5
  "main": "./dist/node-bundle.js",
6
6
  "browser": "./dist/browser-bundle.js",
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  NodeConfig,
4
4
  NodeInput,
5
5
  NodeReturn,
6
- } from "core-package-mini-n8n";
6
+ } from "npm:core-package-mini-n8n";
7
7
 
8
8
  class AlertMessageNode extends NodeBase {
9
9
  constructor(state: any) {
@@ -39,21 +39,4 @@ class AlertMessageNode extends NodeBase {
39
39
  }
40
40
  }
41
41
 
42
- async function start() {
43
- const item = await import("alert-message-plugin-flow-requests");
44
- console.log(new item.default({}).execute({ settings: { message: "a" } }));
45
- }
46
-
47
- start();
48
-
49
- // import AlertMessageT from "../dist/node-bundle";
50
-
51
- // console.log(
52
- // new AlertMessageT.default().execute({
53
- // settings: {
54
- // message: "abc",
55
- // },
56
- // })
57
- // );
58
-
59
42
  export default AlertMessageNode;