@keload/node-red-dxp 1.23.2 → 1.24.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/cli/index.cjs +31 -35
- package/dist/editor/assets/pug/helper.pug +102 -0
- package/dist/editor/dom-helper/index.cjs +1 -1
- package/dist/editor/dom-helper/index.d.cts +14 -13
- package/dist/editor/dom-helper/index.d.ts +14 -13
- package/dist/editor/dom-helper/index.js +1 -1
- package/dist/editor/index.cjs +1 -1
- package/dist/editor/index.d.cts +5 -4
- package/dist/editor/index.d.ts +5 -4
- package/dist/editor/index.js +1 -1
- package/dist/editor/inject/dxpFormRow.cjs +1 -1
- package/dist/editor/inject/dxpFormRow.d.cts +10 -9
- package/dist/editor/inject/dxpFormRow.d.ts +10 -9
- package/dist/editor/inject/dxpFormRow.js +1 -1
- package/dist/index-BhYSgW2V.d.ts +6 -0
- package/dist/index-DKhJ6JZE.d.cts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +1 -1
- package/dist/src-DvBS17xd.js +0 -0
- package/dist/{types-B7YUmbnu.d.cts → types-B5Bh_DR_.d.cts} +8 -7
- package/dist/{types-B7YUmbnu.d.ts → types-BSEMgzWV.d.ts} +8 -7
- package/dist/utils/controller.cjs +1 -1
- package/dist/utils/controller.d.cts +16 -14
- package/dist/utils/{controller.d.ts → controller.d.mts} +16 -14
- package/dist/utils/controller.mjs +1 -0
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.d.cts +9 -5
- package/dist/utils/index.d.ts +9 -5
- package/dist/utils/index.js +1 -2
- package/package.json +28 -22
- package/dist/chunk-O2XFH626.js +0 -1
- package/dist/chunk-O55HBSM5.js +0 -1
- package/dist/chunk-YESMJQI4.js +0 -1
- package/dist/utils/controller.js +0 -1
- /package/dist/{chunk-Z65JVQED.js → src-BNoPX5QG.cjs} +0 -0
package/dist/utils/index.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
exports.isUrl=p;exports.isValidIP=g;exports.isValidIPv4=l;exports.isValidIPv6=a;exports.merge=o;exports.tryit=s;
|
|
1
|
+
const e=Array.isArray,t=e=>!!(e&&e.constructor&&e.call&&e.apply),n=e=>!(!e||!e.then||!t(e.then)),r=(e,t,n=!1)=>e?e.slice().sort(n===!0?(e,n)=>t(n)-t(e):(e,n)=>t(e)-t(n)):[];function*i(e,n,r=e=>e,i=1){let a=t(r)?r:()=>r,o=n?e:0,s=n==null?e:n;for(let e=o;e<=s&&(yield a(e),!(e+i>s));e+=i);}const a=(e,t,n,r)=>Array.from(i(e,t,n,r)),o=(e,t)=>e?e.reduce((e,n)=>{let[r,i]=e;return t(n)?[[...r,n],i]:[r,[...i,n]]},[[],[]]):[[],[]],s=(e,t,n)=>!t&&!e?[]:t?e?n?e.reduce((e,r)=>{let i=t.find(e=>n(r)===n(e));return i?e.push(i):e.push(r),e},[]):e:[]:e;function c(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,s,`next`,e)}function s(e){c(a,r,i,o,s,`throw`,e)}o(void 0)})}}const u=function(){var e=l(function*(e,t,n){let r=n!==void 0;if(!r&&(e==null?void 0:e.length)<1)throw Error(`Cannot reduce empty array with no init value`);let i=r?e:e.slice(1),a=r?n:e[0];for(let[e,n]of i.entries())a=yield t(a,n,e);return a});return function(t,n,r){return e.apply(this,arguments)}}(),d=function(){var e=l(function*(e,t){if(!e)return[];let n=[],r=0;for(let i of e){let e=yield t(i,r++);n.push(e)}return n});return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=l(function*(e){let t=[],[n,r]=yield _(e)((e,n)=>{var r;return t.push({fn:e,rethrow:(r=n==null?void 0:n.rethrow)==null?!1:r})});for(let{fn:e,rethrow:r}of t){let[t]=yield _(e)(n);if(t&&r)throw t}if(n)throw n;return r});return function(t){return e.apply(this,arguments)}}();var p=class extends Error{constructor(e=[]){var t,n,r,i;super(),this.name=`AggregateError(${(t=(n=e.find(e=>e.name))==null?void 0:n.name)==null?``:t}...)`,this.message=`AggregateError with ${e.length} errors`,this.stack=(r=(i=e.find(e=>e.stack))==null?void 0:i.stack)==null?this.stack:r,this.errors=e}};const m=function(){var e=l(function*(e,t,n){let i=t.map((e,t)=>({index:t,item:e})),s=function(){var e=l(function*(e){let t=[];for(;;){let r=i.pop();if(!r)return e(t);let[a,o]=yield _(n)(r.item);t.push({error:a,result:o,index:r.index})}});return function(t){return e.apply(this,arguments)}}(),c=a(1,e).map(()=>new Promise(s)),[u,d]=o(r((yield Promise.all(c)).flat(),e=>e.index),e=>!!e.error);if(u.length>0)throw new p(u.map(e=>e.error));return d.map(e=>e.result)});return function(t,n,r){return e.apply(this,arguments)}}(),h=function(){var e=l(function*(e,t){var n,r;let a=(n=e==null?void 0:e.times)==null?3:n,o=e==null?void 0:e.delay,s=(r=e==null?void 0:e.backoff)==null?null:r;for(let e of i(1,a)){let[n,r]=yield _(t)(e=>{throw{_exited:e}});if(!n)return r;if(n._exited)throw n._exited;if(e===a)throw n;o&&(yield g(o)),s&&(yield g(s(e)))}});return function(t,n){return e.apply(this,arguments)}}(),g=e=>new Promise(t=>setTimeout(t,e)),_=e=>(...t)=>{try{let r=e(...t);return n(r)?r.then(e=>[void 0,e]).catch(e=>[e,void 0]):[void 0,r]}catch(e){return[e,void 0]}};function v(e){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e)}function y(e){return/^(([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4}|:)|(([0-9a-fA-F]{1,4}:){1,6}:)|(([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2})|(([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3})|(([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4})|(([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5})|([0-9a-fA-F]{1,4}:)((:[0-9a-fA-F]{1,4}){1,6})|(:((:[0-9a-fA-F]{1,4}){1,7}|:))|(fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,})|(::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))|(([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])))$/.test(e)}function b(e){return v(e)||y(e)}function x(e,{lenient:t=!1}={}){if(typeof e!=`string`)throw TypeError(`isUrl: Expected a string`);let n=e.trim();if(n.includes(` `))return!1;try{return new URL(n),!0}catch(e){return t?x(`https://${n}`):!1}}exports.isUrl=x,exports.isValidIP=b,exports.isValidIPv4=v,exports.isValidIPv6=y,exports.merge=s,exports.tryit=_;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { merge, tryit } from "radash";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/validators.d.ts
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Validates if the given string is a valid IPv4 address.
|
|
@@ -72,8 +74,10 @@ declare function isValidIP(ip: string): boolean;
|
|
|
72
74
|
* isUrl("invalid url"); // false
|
|
73
75
|
* ```
|
|
74
76
|
*/
|
|
75
|
-
declare function isUrl(string: string, {
|
|
76
|
-
|
|
77
|
+
declare function isUrl(string: string, {
|
|
78
|
+
lenient
|
|
79
|
+
}?: {
|
|
80
|
+
lenient?: boolean;
|
|
77
81
|
}): boolean;
|
|
78
|
-
|
|
79
|
-
export { isUrl, isValidIP, isValidIPv4, isValidIPv6 };
|
|
82
|
+
//#endregion
|
|
83
|
+
export { isUrl, isValidIP, isValidIPv4, isValidIPv6, merge, tryit };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { merge, tryit } from "radash";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/validators.d.ts
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Validates if the given string is a valid IPv4 address.
|
|
@@ -72,8 +74,10 @@ declare function isValidIP(ip: string): boolean;
|
|
|
72
74
|
* isUrl("invalid url"); // false
|
|
73
75
|
* ```
|
|
74
76
|
*/
|
|
75
|
-
declare function isUrl(string: string, {
|
|
76
|
-
|
|
77
|
+
declare function isUrl(string: string, {
|
|
78
|
+
lenient
|
|
79
|
+
}?: {
|
|
80
|
+
lenient?: boolean;
|
|
77
81
|
}): boolean;
|
|
78
|
-
|
|
79
|
-
export { isUrl, isValidIP, isValidIPv4, isValidIPv6 };
|
|
82
|
+
//#endregion
|
|
83
|
+
export { isUrl, isValidIP, isValidIPv4, isValidIPv6, merge, tryit };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export{s as isUrl,A as isValidIP,a as isValidIPv4,i as isValidIPv6};
|
|
1
|
+
Array.isArray;const e=e=>!!(e&&e.constructor&&e.call&&e.apply),t=t=>!(!t||!t.then||!e(t.then)),n=(e,t,n=!1)=>e?e.slice().sort(n===!0?(e,n)=>t(n)-t(e):(e,n)=>t(e)-t(n)):[];function*r(t,n,r=e=>e,i=1){let a=e(r)?r:()=>r,o=n?t:0,s=n==null?t:n;for(let e=o;e<=s&&(yield a(e),!(e+i>s));e+=i);}const i=(e,t,n,i)=>Array.from(r(e,t,n,i)),a=(e,t)=>e?e.reduce((e,n)=>{let[r,i]=e;return t(n)?[[...r,n],i]:[r,[...i,n]]},[[],[]]):[[],[]],o=(e,t,n)=>!t&&!e?[]:t?e?n?e.reduce((e,r)=>{let i=t.find(e=>n(r)===n(e));return i?e.push(i):e.push(r),e},[]):e:[]:e;function s(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,c,`next`,e)}function c(e){s(a,r,i,o,c,`throw`,e)}o(void 0)})}}(function(){var e=c(function*(e,t,n){let r=n!==void 0;if(!r&&(e==null?void 0:e.length)<1)throw Error(`Cannot reduce empty array with no init value`);let i=r?e:e.slice(1),a=r?n:e[0];for(let[e,n]of i.entries())a=yield t(a,n,e);return a});return function(t,n,r){return e.apply(this,arguments)}})(),function(){var e=c(function*(e,t){if(!e)return[];let n=[],r=0;for(let i of e){let e=yield t(i,r++);n.push(e)}return n});return function(t,n){return e.apply(this,arguments)}}(),function(){var e=c(function*(e){let t=[],[n,r]=yield d(e)((e,n)=>{var r;return t.push({fn:e,rethrow:(r=n==null?void 0:n.rethrow)==null?!1:r})});for(let{fn:e,rethrow:r}of t){let[t]=yield d(e)(n);if(t&&r)throw t}if(n)throw n;return r});return function(t){return e.apply(this,arguments)}}();var l=class extends Error{constructor(e=[]){var t,n,r,i;super(),this.name=`AggregateError(${(t=(n=e.find(e=>e.name))==null?void 0:n.name)==null?``:t}...)`,this.message=`AggregateError with ${e.length} errors`,this.stack=(r=(i=e.find(e=>e.stack))==null?void 0:i.stack)==null?this.stack:r,this.errors=e}};(function(){var e=c(function*(e,t,r){let o=t.map((e,t)=>({index:t,item:e})),s=function(){var e=c(function*(e){let t=[];for(;;){let n=o.pop();if(!n)return e(t);let[i,a]=yield d(r)(n.item);t.push({error:i,result:a,index:n.index})}});return function(t){return e.apply(this,arguments)}}(),u=i(1,e).map(()=>new Promise(s)),[f,p]=a(n((yield Promise.all(u)).flat(),e=>e.index),e=>!!e.error);if(f.length>0)throw new l(f.map(e=>e.error));return p.map(e=>e.result)});return function(t,n,r){return e.apply(this,arguments)}})(),function(){var e=c(function*(e,t){var n,i;let a=(n=e==null?void 0:e.times)==null?3:n,o=e==null?void 0:e.delay,s=(i=e==null?void 0:e.backoff)==null?null:i;for(let e of r(1,a)){let[n,r]=yield d(t)(e=>{throw{_exited:e}});if(!n)return r;if(n._exited)throw n._exited;if(e===a)throw n;o&&(yield u(o)),s&&(yield u(s(e)))}});return function(t,n){return e.apply(this,arguments)}}();const u=e=>new Promise(t=>setTimeout(t,e)),d=e=>(...n)=>{try{let r=e(...n);return t(r)?r.then(e=>[void 0,e]).catch(e=>[e,void 0]):[void 0,r]}catch(e){return[e,void 0]}};function f(e){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e)}function p(e){return/^(([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4}|:)|(([0-9a-fA-F]{1,4}:){1,6}:)|(([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2})|(([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3})|(([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4})|(([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5})|([0-9a-fA-F]{1,4}:)((:[0-9a-fA-F]{1,4}){1,6})|(:((:[0-9a-fA-F]{1,4}){1,7}|:))|(fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,})|(::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9]))|(([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9])?[0-9])))$/.test(e)}function m(e){return f(e)||p(e)}function h(e,{lenient:t=!1}={}){if(typeof e!=`string`)throw TypeError(`isUrl: Expected a string`);let n=e.trim();if(n.includes(` `))return!1;try{return new URL(n),!0}catch(e){return t?h(`https://${n}`):!1}}export{h as isUrl,m as isValidIP,f as isValidIPv4,p as isValidIPv6,o as merge,d as tryit};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keload/node-red-dxp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "
|
|
8
|
-
"watch": "
|
|
7
|
+
"build": "tsdown",
|
|
8
|
+
"watch": "tsdown --watch",
|
|
9
9
|
"format": "pnpm biome format",
|
|
10
10
|
"lint": "pnpm biome lint",
|
|
11
11
|
"lint:check": "pnpm biome check",
|
|
@@ -61,47 +61,48 @@
|
|
|
61
61
|
},
|
|
62
62
|
"homepage": "https://github.com/clement-berard/node-red-dxp",
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "
|
|
64
|
+
"@biomejs/biome": "2.3.5",
|
|
65
65
|
"@release-it/conventional-changelog": "10.0.1",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"typedoc
|
|
71
|
-
"
|
|
72
|
-
"
|
|
66
|
+
"@types/pug": "^2.0.10",
|
|
67
|
+
"release-it": "19.0.6",
|
|
68
|
+
"tsdown": "^0.16.4",
|
|
69
|
+
"tsx": "4.20.6",
|
|
70
|
+
"typedoc": "0.28.14",
|
|
71
|
+
"typedoc-plugin-markdown": "4.9.0",
|
|
72
|
+
"typescript": "5.9.3",
|
|
73
|
+
"vitepress": "1.6.4",
|
|
73
74
|
"vitepress-plugin-npm-commands": "^0.8.1",
|
|
74
75
|
"vitepress-plugin-tabs": "^0.7.1",
|
|
75
|
-
"vitest": "
|
|
76
|
+
"vitest": "4.0.9"
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|
|
78
79
|
"@fullhuman/postcss-purgecss": "7.0.2",
|
|
79
80
|
"@types/html-minifier-terser": "7.0.2",
|
|
80
|
-
"@types/jquery": "3.5.
|
|
81
|
+
"@types/jquery": "3.5.33",
|
|
81
82
|
"@types/jqueryui": "1.12.24",
|
|
82
83
|
"@types/node-red": "1.3.5",
|
|
83
84
|
"@types/prettyjson": "0.0.33",
|
|
84
|
-
"autoprefixer": "10.4.
|
|
85
|
+
"autoprefixer": "10.4.22",
|
|
85
86
|
"browser-sync": "3.0.4",
|
|
86
87
|
"chokidar": "4.0.3",
|
|
87
|
-
"commander": "14.0.
|
|
88
|
+
"commander": "14.0.2",
|
|
88
89
|
"consola": "3.4.2",
|
|
89
90
|
"cosmiconfig": "9.0.0",
|
|
90
|
-
"cssnano": "7.
|
|
91
|
-
"esbuild": "0.
|
|
91
|
+
"cssnano": "7.1.2",
|
|
92
|
+
"esbuild": "0.27.0",
|
|
92
93
|
"fast-glob": "3.3.3",
|
|
93
94
|
"handlebars": "4.7.8",
|
|
94
95
|
"html-minifier-terser": "7.2.0",
|
|
95
96
|
"mdx-to-md": "0.5.2",
|
|
96
97
|
"merge-anything": "6.0.6",
|
|
97
|
-
"nodemon": "3.1.
|
|
98
|
-
"ora": "
|
|
98
|
+
"nodemon": "3.1.11",
|
|
99
|
+
"ora": "9.0.0",
|
|
99
100
|
"postcss": "8.5.6",
|
|
100
101
|
"prettyjson": "1.2.5",
|
|
101
102
|
"pug": "3.0.3",
|
|
102
103
|
"radash": "12.1.1",
|
|
103
|
-
"sass": "1.
|
|
104
|
-
"tailwindcss": "3
|
|
104
|
+
"sass": "1.94.0",
|
|
105
|
+
"tailwindcss": "^3"
|
|
105
106
|
},
|
|
106
107
|
"files": [
|
|
107
108
|
"dist"
|
|
@@ -111,6 +112,11 @@
|
|
|
111
112
|
"@biomejs/biome",
|
|
112
113
|
"@parcel/watcher",
|
|
113
114
|
"esbuild"
|
|
114
|
-
]
|
|
115
|
+
],
|
|
116
|
+
"updateConfig": {
|
|
117
|
+
"ignoreDependencies": [
|
|
118
|
+
"tailwindcss"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
115
121
|
}
|
|
116
122
|
}
|
package/dist/chunk-O2XFH626.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=Object.defineProperty;var e=(b,a,c)=>a in b?d(b,a,{enumerable:true,configurable:true,writable:true,value:c}):b[a]=c;var f=(b,a,c)=>e(b,typeof a!="symbol"?a+"":a,c);export{f as a};
|
package/dist/chunk-O55HBSM5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=e=>!!(e&&e.constructor&&e.call&&e.apply);var u=e=>!(!e||!e.then||!a(e.then));var p=(e,r,t)=>!r&&!e?[]:r?e?t?e.reduce((n,c)=>{let s=r.find(i=>t(c)===t(i));return s?n.push(s):n.push(c),n},[]):e:[]:e;var o=e=>(...r)=>{try{let t=e(...r);return u(t)?t.then(n=>[void 0,n]).catch(n=>[n,void 0]):[void 0,t]}catch(t){return [t,void 0]}};var f=e=>{if(!e||e.length===0)return "";let r=e.toLowerCase();return r.substring(0,1).toUpperCase()+r.substring(1,r.length)};var m=(e,r)=>{var c;let t=(c=e==null?void 0:e.replace(/([A-Z])+/g,f).split(/(?=[A-Z])|[\.\-\s_]/).map(s=>s.toLowerCase()))!=null?c:[];if(t.length===0)return "";if(t.length===1)return t[0];let n=t.reduce((s,i)=>`${s}_${i.toLowerCase()}`);return (r==null?void 0:r.splitOnNumber)===false?n:n.replace(/([A-Za-z]{1}[0-9]{1})/,s=>`${s[0]}_${s[1]}`)};export{p as a,o as b,m as c};
|
package/dist/chunk-YESMJQI4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=e=>!!(e&&e.constructor&&e.call&&e.apply);var u=e=>!(!e||!e.then||!a(e.then));var p=(e,r,t)=>!r&&!e?[]:r?e?t?e.reduce((n,c)=>{let s=r.find(i=>t(c)===t(i));return s?n.push(s):n.push(c),n},[]):e:[]:e;var o=e=>(...r)=>{try{let t=e(...r);return u(t)?t.then(n=>[void 0,n]).catch(n=>[n,void 0]):[void 0,t]}catch(t){return [t,void 0]}};var f=e=>{if(!e||e.length===0)return "";let r=e.toLowerCase();return r.substring(0,1).toUpperCase()+r.substring(1,r.length)};var m=(e,r)=>{var c;let t=(c=e==null?void 0:e.replace(/([A-Z])+/g,f).split(/(?=[A-Z])|[\.\-\s_]/).map(s=>s.toLowerCase()))!=null?c:[];if(t.length===0)return "";if(t.length===1)return t[0];let n=t.reduce((s,i)=>`${s}_${i.toLowerCase()}`);return (r==null?void 0:r.splitOnNumber)===false?n:n.replace(/([A-Za-z]{1}[0-9]{1})/,s=>`${s[0]}_${s[1]}`)};export{p as a,o as b,m as c};
|
package/dist/utils/controller.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var y=(e,r,o)=>new Promise((d,a)=>{var l=n=>{try{u(o.next(n));}catch(i){a(i);}},t=n=>{try{u(o.throw(n));}catch(i){a(i);}},u=n=>n.done?d(n.value):Promise.resolve(n.value).then(l,t);u((o=o.apply(e,r)).next());});function N(e,r){return typeof e!="boolean"?(console.warn("Payload must be a boolean (true or false)."),[null,null]):e?[r,null]:[null,r]}function P(e){return RED.nodes.getNode(e)}function f(e){return new Promise(r=>{try{RED.util.evaluateNodeProperty(e.value,e.type,e.node,e.msg,(o,d)=>{r([o,d]);});}catch(o){r([o,void 0]);}})}function c(e,r,o={typedSuffix:"Type"}){function d(t,u){return f({value:t,type:u,node:e,msg:r})}function a(t){return typeof t!="boolean"&&t===""}function l(i,x){return y(this,arguments,function*(t,u,n={strictDefaultValue:void 0}){let[,s]=yield d(t==null?void 0:t[u],t==null?void 0:t[`${String(u)}${o.typedSuffix}`]);return (n==null?void 0:n.strictDefaultValue)!==void 0&&a(s)?n.strictDefaultValue:s})}return {evaluateNodeProperty:d,quickNodePropertyEval:l}}export{f as evaluateNodeProperty,P as getREDNode,N as splitBooleanOutputs,c as useControllerNode};
|
|
File without changes
|