alert-message-plugin-flow-requests 1.0.1 → 1.1.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.
- package/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/webpack.config.cjs +4 -1
package/dist/bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AlertMessage=t():e.AlertMessage=t()}(self,()=>(()=>{"use strict";var __webpack_modules__={191(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedList=t.Node=void 0;class s{value;next;constructor(e,t){this.value=e,this.next=t}}t.Node=s;class o{head;tail;constructor(){this.head=null,this.tail=null}add(e){if(!this.head)return this.head=new s(e,null),void(this.tail=null);if(!this.head.next){const t=new s(e,null);return this.head.next=t,void(this.tail=t)}const t=this.tail,o=new s(e,null);t&&(t.next=o),this.tail=o}show(){if(!this.head)return null;let e=this.head;for(;null!=e;)e=e.value instanceof o?e.value.head:e.next}}t.LinkedList=o},638(__unused_webpack_module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.NodeBase=void 0;class NodeBase{state;constructor(e){this.state=e}parseExpression(expression){const regex=/{{(.*?)}}/g,matches=expression.match(regex);return matches&&matches.forEach(match=>{const key=match.replace("{{","").replace("}}","");let value=eval(key);"object"==typeof value&&(value=JSON.stringify(value)),expression=expression.replace(match,value)}),expression}getConfig(){throw new Error("Method not implemented")}execute(e){throw new Error("Method not implemented")}}exports.NodeBase=NodeBase},882(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Node=t.LinkedList=t.NodeBase=void 0;const o=s(638);Object.defineProperty(t,"NodeBase",{enumerable:!0,get:function(){return o.NodeBase}});const r=s(191);Object.defineProperty(t,"LinkedList",{enumerable:!0,get:function(){return r.LinkedList}}),Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return r.Node}})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](s,s.exports,__webpack_require__),s.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0});const t=__webpack_require__(882);class s extends t.NodeBase{constructor(e){super(e)}getConfig(){return{name:"AlertMessage",type:"AlertMessage",description:"Show alert message when execute the node",properties:[{label:"Message",name:"message",type:"text",required:!0,default:null}]}}async execute(e){const t=e.settings;return"undefined"!=typeof window?alert(t.message):console.log(t.message),{ok:!0}}}e.default=s})(),__webpack_exports__})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AlertMessage=t():e.AlertMessage=t()}(self,()=>(()=>{"use strict";var __webpack_modules__={191(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedList=t.Node=void 0;class s{value;next;constructor(e,t){this.value=e,this.next=t}}t.Node=s;class o{head;tail;constructor(){this.head=null,this.tail=null}add(e){if(!this.head)return this.head=new s(e,null),void(this.tail=null);if(!this.head.next){const t=new s(e,null);return this.head.next=t,void(this.tail=t)}const t=this.tail,o=new s(e,null);t&&(t.next=o),this.tail=o}show(){if(!this.head)return null;let e=this.head;for(;null!=e;)e=e.value instanceof o?e.value.head:e.next}}t.LinkedList=o},638(__unused_webpack_module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.NodeBase=void 0;class NodeBase{state;constructor(e){this.state=e}parseExpression(expression){const regex=/{{(.*?)}}/g,matches=expression.match(regex);return matches&&matches.forEach(match=>{const key=match.replace("{{","").replace("}}","");let value=eval(key);"object"==typeof value&&(value=JSON.stringify(value)),expression=expression.replace(match,value)}),expression}getConfig(){throw new Error("Method not implemented")}execute(e){throw new Error("Method not implemented")}}exports.NodeBase=NodeBase},882(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Node=t.LinkedList=t.NodeBase=void 0;const o=s(638);Object.defineProperty(t,"NodeBase",{enumerable:!0,get:function(){return o.NodeBase}});const r=s(191);Object.defineProperty(t,"LinkedList",{enumerable:!0,get:function(){return r.LinkedList}}),Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return r.Node}})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](s,s.exports,__webpack_require__),s.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0});const t=__webpack_require__(882);class s extends t.NodeBase{constructor(e){super(e)}getConfig(){return{name:"AlertMessage",type:"AlertMessage",description:"Show alert message when execute the node",properties:[{label:"Message",name:"message",type:"text",required:!0,default:null}]}}async execute(e){const t=e.settings;return"undefined"!=typeof window?alert(this.parseExpression(t.message)):console.log(t.message),{ok:!0}}}e.default=s})(),__webpack_exports__})());
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/webpack.config.cjs
CHANGED