waf-captcha-frontend 0.0.5 → 0.0.7
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.cjs.js +1 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1 -1
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +1 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=(n,e="captchaForm")=>{var t;let o=document.getElementById(e);const l=null!==(t=document.getElementById(n))&&void 0!==t?t:document.body;return o||(o=document.createElement("div"),o.id=e,l.appendChild(o)),o},e=(e,t,o,l)=>{const{overlay:
|
|
1
|
+
"use strict";const n=(n,e="captchaForm")=>{var t;let o=document.getElementById(e);const l=null!==(t=document.getElementById(n))&&void 0!==t?t:document.body;return o||(o=document.createElement("div"),o.id=e,l.appendChild(o)),o},e=(e,t,o,l)=>{const{overlay:d,modal:a}=((n,e="modalOverlay",t="modal")=>{var o;const l=null!==(o=document.getElementById(n))&&void 0!==o?o:document.body;let d=document.getElementById(e),a=document.getElementById(t);return d||(d=document.createElement("div"),d.id="modalOverlay",d.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0,0,0,0.5);\n display: none;\n z-index: 9999;\n align-items: center;\n justify-content: center;\n ",l.appendChild(d)),a||(a=document.createElement("div"),a.id="modal",a.style.cssText="\n background: white;\n padding: 20px;\n border-radius: 8px;\n min-width: 300px;\n ",d.appendChild(a)),{overlay:d,modal:a}})(e,o,l),r=n(e,t);r.parentElement!==a&&a.appendChild(r),d.style.display="flex"},t="AwsWAFScript";exports.createCaptchaFetchHandler=o=>{!function(n){if(!n.API_KEY)throw new Error("API_KEY is not set");if(!n.JSAPI_URL)throw new Error("JSAPI_URL is not set");if(!n.captchaContainerId)throw new Error("the captcha container Id is not set")}(o),function(n){if(document.getElementById(t)||!n)return;const e=document.createElement("script");e.id=t,e.async=!1,e.src=n,document.head.appendChild(e)}(o.JSAPI_URL);return(t,l)=>{const d=n(o.captchaContainerId,null==o?void 0:o.captchaContentId);return new Promise((n,a)=>{window.AwsWafCaptcha?window.AwsWafIntegration?(e(o.captchaContainerId,null==o?void 0:o.captchaContentId,null==o?void 0:o.overlayId,null==o?void 0:o.modalId),window.AwsWafCaptcha.renderCaptcha(d,{onSuccess:()=>{var e;((n="modalOverlay")=>{const e=document.getElementById(n);e&&(e.style.display="none")})(null==o?void 0:o.overlayId),null===(e=null==o?void 0:o.onSuccess)||void 0===e||e.call(o),n(window.AwsWafIntegration.fetch(t,l))},onLoad:()=>{var n;null===(n=null==o?void 0:o.onLoad)||void 0===n||n.call(o)},onError:n=>{var e;null===(e=null==o?void 0:o.onError)||void 0===e||e.call(o,n),a(n)},onPuzzleTimeout:()=>{var n;null===(n=null==o?void 0:o.onError)||void 0===n||n.call(o,"CAPTCHA timeout"),a(new Error("CAPTCHA timeout"))},onPuzzleIncorrect:()=>{var n;null===(n=null==o?void 0:o.onPuzzleIncorrect)||void 0===n||n.call(o)},onPuzzleCorrect:()=>{var n;null===(n=null==o?void 0:o.onPuzzleCorrect)||void 0===n||n.call(o)},apiKey:o.API_KEY})):a(new Error("AwsWafIntegration is not available")):a(new Error("AWS WAF Captcha is not available"))})}};
|
|
2
2
|
//# sourceMappingURL=bundle.cjs.js.map
|
package/dist/bundle.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.cjs.js","sources":["../src/utils/modalUtils.ts","../src/utils/WAFScriptUtils.ts","../src/createCaptchaFetchHandler.ts"],"sourcesContent":[null,null,null],"names":["ensureCaptchaContainer","captchaContainerId","captchaContentId","container","document","getElementById","captchaContainer","_a","body","createElement","id","appendChild","showCaptchaModal","overlayId","modalId","overlay","modal","style","cssText","ensureModalContainer","captchaForm","parentElement","display","WAF_SCRIPT_ID","config","API_KEY","Error","JSAPI_URL","checkWAFconfig","AwsWafScript","async","src","head","loadCaptchaScript","path","init","Promise","resolve","reject","window","AwsWafCaptcha","AwsWafIntegration","renderCaptcha","onSuccess","hideCaptchaModal","fetch","onLoad","onError","error","call","onPuzzleTimeout","onPuzzleIncorrect","onPuzzleCorrect","apiKey"],"mappings":"aAAO,MAAMA,EAAyB,CAACC,EAA4BC,EAA2B,uBAC5F,IAAIC,EAAYC,SAASC,eAAeH,GACxC,MAAMI,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KAQjF,OANKL,IACHA,EAAYC,SAASK,cAAc,OACnCN,EAAUO,GAAKR,EACfI,EAAiBK,YAAYR,IAGxBA,GAyCIS,EAAmB,CAC9BX,EACAC,EACAW,EACAC,KAEA,MAAMC,QAAEA,EAAOC,MAAEA,GA5CiB,EAACf,EAA4BY,EAAY,eAAgBC,EAAU,iBACrG,MAAMR,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KACjF,IAAIO,EAAUX,SAASC,eAAeQ,GAClCG,EAAQZ,SAASC,eAAeS,GAgCpC,OA9BKC,IACHA,EAAUX,SAASK,cAAc,OACjCM,EAAQL,GAAK,eACbK,EAAQE,MAAMC,QAAU,qPAYxBZ,EAAiBK,YAAYI,IAG1BC,IACHA,EAAQZ,SAASK,cAAc,OAC/BO,EAAMN,GAAK,QACXM,EAAMC,MAAMC,QAAU,6GAMtBH,EAAQJ,YAAYK,IAGf,CAAED,UAASC,UASSG,CAAqBlB,EAAoBY,EAAWC,GACzEM,EAAcpB,EAAuBC,EAAoBC,GAE3DkB,EAAYC,gBAAkBL,GAChCA,EAAML,YAAYS,GAGpBL,EAAQE,MAAMK,QAAU,QC9DbC,EAAgB,iDCEaC,KDApC,SAAyBA,GAC7B,IAAKA,EAAOC,QACV,MAAM,IAAIC,MAAM,sBAGlB,IAAKF,EAAOG,UACV,MAAM,IAAID,MAAM,wBAGlB,IAAKF,EAAOvB,mBACV,MAAM,IAAIyB,MAAM,sCAEpB,CCXEE,CAAeJ,GDaX,SAA4BG,GAChC,GAAIvB,SAASC,eAAekB,KAAmBI,EAAW,OAC1D,MAAME,EAAezB,SAASK,cAAc,UAC5CoB,EAAanB,GAAKa,EAClBM,EAAaC,OAAQ,EACrBD,EAAaE,IAAMJ,EACnBvB,SAAS4B,KAAKrB,YAAYkB,EAC5B,CCnBEI,CAAkBT,EAAOG,
|
|
1
|
+
{"version":3,"file":"bundle.cjs.js","sources":["../src/utils/modalUtils.ts","../src/utils/WAFScriptUtils.ts","../src/createCaptchaFetchHandler.ts"],"sourcesContent":[null,null,null],"names":["ensureCaptchaContainer","captchaContainerId","captchaContentId","container","document","getElementById","captchaContainer","_a","body","createElement","id","appendChild","showCaptchaModal","overlayId","modalId","overlay","modal","style","cssText","ensureModalContainer","captchaForm","parentElement","display","WAF_SCRIPT_ID","config","API_KEY","Error","JSAPI_URL","checkWAFconfig","AwsWafScript","async","src","head","loadCaptchaScript","path","init","Promise","resolve","reject","window","AwsWafCaptcha","AwsWafIntegration","renderCaptcha","onSuccess","hideCaptchaModal","fetch","onLoad","onError","error","call","onPuzzleTimeout","onPuzzleIncorrect","onPuzzleCorrect","apiKey"],"mappings":"aAAO,MAAMA,EAAyB,CAACC,EAA4BC,EAA2B,uBAC5F,IAAIC,EAAYC,SAASC,eAAeH,GACxC,MAAMI,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KAQjF,OANKL,IACHA,EAAYC,SAASK,cAAc,OACnCN,EAAUO,GAAKR,EACfI,EAAiBK,YAAYR,IAGxBA,GAyCIS,EAAmB,CAC9BX,EACAC,EACAW,EACAC,KAEA,MAAMC,QAAEA,EAAOC,MAAEA,GA5CiB,EAACf,EAA4BY,EAAY,eAAgBC,EAAU,iBACrG,MAAMR,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KACjF,IAA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C,eAAeQ,GACpCE,IACFA,EAAQE,MAAMK,QAAU,SEvClBsB,CAAiBpB,eAAAA,EAAQX,mBACzBN,EAAAiB,aAAM,EAANA,EAAQmB,kCACRN,EAAQE,OAAOE,kBAAkBI,MAAMX,EAAMC,KAE/CW,OAAQ,mBACNvC,EAAAiB,aAAM,EAANA,EAAQsB,gCAEVC,QAAUC,UACO,QAAfzC,EAAAiB,aAAM,EAANA,EAAQuB,eAAO,IAAAxC,GAAAA,EAAA0C,KAAAzB,EAAGwB,GAClBV,EAAOU,IAETE,gBAAiB,WACA,QAAf3C,EAAAiB,aAAM,EAANA,EAAQuB,eAAO,IAAAxC,GAAAA,EAAA0C,KAAAzB,EAAG,mBAClBc,EAAO,IAAIZ,MAAM,qBAEnByB,kBAAmB,mBACjB5C,EAAAiB,aAAM,EAANA,EAAQ2B,2CAEVC,gBAAiB,mBACf7C,EAAAiB,aAAM,EAANA,EAAQ4B,yCAEVC,OAAQ7B,EAAOC,WAlCfa,EAAO,IAAIZ,MAAM,uCALjBY,EAAO,IAAIZ,MAAM"}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const n=(n,e="captchaForm")=>{var t;let o=document.getElementById(e);const l=null!==(t=document.getElementById(n))&&void 0!==t?t:document.body;return o||(o=document.createElement("div"),o.id=e,l.appendChild(o)),o},e=(e,t,o,l)=>{const{overlay:d,modal:a}=((n,e="modalOverlay",t="modal")=>{var o;const l=null!==(o=document.getElementById(n))&&void 0!==o?o:document.body;let d=document.getElementById(e),a=document.getElementById(t);return d||(d=document.createElement("div"),d.id="modalOverlay",d.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0,0,0,0.5);\n display: none;\n z-index: 9999;\n align-items: center;\n justify-content: center;\n ",l.appendChild(d)),a||(a=document.createElement("div"),a.id="modal",a.style.cssText="\n background: white;\n padding: 20px;\n border-radius: 8px;\n min-width: 300px;\n ",d.appendChild(a)),{overlay:d,modal:a}})(e,o,l),r=n(e,t);r.parentElement!==a&&a.appendChild(r),d.style.display="flex"},t="AwsWAFScript";const o=o=>{!function(n){if(!n.API_KEY)throw new Error("API_KEY is not set");if(!n.JSAPI_URL)throw new Error("JSAPI_URL is not set");if(!n.captchaContainerId)throw new Error("the captcha container Id is not set")}(o),function(n){if(document.getElementById(t)||!n)return;const e=document.createElement("script");e.id=t,e.async=!1,e.src=n,document.head.appendChild(e)}(o.JSAPI_URL);return(t,l)=>{const d=n(o.captchaContainerId,null==o?void 0:o.captchaContentId);return e(o.captchaContainerId,null==o?void 0:o.captchaContentId,null==o?void 0:o.overlayId,null==o?void 0:o.modalId),
|
|
1
|
+
const n=(n,e="captchaForm")=>{var t;let o=document.getElementById(e);const l=null!==(t=document.getElementById(n))&&void 0!==t?t:document.body;return o||(o=document.createElement("div"),o.id=e,l.appendChild(o)),o},e=(e,t,o,l)=>{const{overlay:d,modal:a}=((n,e="modalOverlay",t="modal")=>{var o;const l=null!==(o=document.getElementById(n))&&void 0!==o?o:document.body;let d=document.getElementById(e),a=document.getElementById(t);return d||(d=document.createElement("div"),d.id="modalOverlay",d.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0,0,0,0.5);\n display: none;\n z-index: 9999;\n align-items: center;\n justify-content: center;\n ",l.appendChild(d)),a||(a=document.createElement("div"),a.id="modal",a.style.cssText="\n background: white;\n padding: 20px;\n border-radius: 8px;\n min-width: 300px;\n ",d.appendChild(a)),{overlay:d,modal:a}})(e,o,l),r=n(e,t);r.parentElement!==a&&a.appendChild(r),d.style.display="flex"},t="AwsWAFScript";const o=o=>{!function(n){if(!n.API_KEY)throw new Error("API_KEY is not set");if(!n.JSAPI_URL)throw new Error("JSAPI_URL is not set");if(!n.captchaContainerId)throw new Error("the captcha container Id is not set")}(o),function(n){if(document.getElementById(t)||!n)return;const e=document.createElement("script");e.id=t,e.async=!1,e.src=n,document.head.appendChild(e)}(o.JSAPI_URL);return(t,l)=>{const d=n(o.captchaContainerId,null==o?void 0:o.captchaContentId);return new Promise((n,a)=>{window.AwsWafCaptcha?window.AwsWafIntegration?(e(o.captchaContainerId,null==o?void 0:o.captchaContentId,null==o?void 0:o.overlayId,null==o?void 0:o.modalId),window.AwsWafCaptcha.renderCaptcha(d,{onSuccess:()=>{var e;((n="modalOverlay")=>{const e=document.getElementById(n);e&&(e.style.display="none")})(null==o?void 0:o.overlayId),null===(e=null==o?void 0:o.onSuccess)||void 0===e||e.call(o),n(window.AwsWafIntegration.fetch(t,l))},onLoad:()=>{var n;null===(n=null==o?void 0:o.onLoad)||void 0===n||n.call(o)},onError:n=>{var e;null===(e=null==o?void 0:o.onError)||void 0===e||e.call(o,n),a(n)},onPuzzleTimeout:()=>{var n;null===(n=null==o?void 0:o.onError)||void 0===n||n.call(o,"CAPTCHA timeout"),a(new Error("CAPTCHA timeout"))},onPuzzleIncorrect:()=>{var n;null===(n=null==o?void 0:o.onPuzzleIncorrect)||void 0===n||n.call(o)},onPuzzleCorrect:()=>{var n;null===(n=null==o?void 0:o.onPuzzleCorrect)||void 0===n||n.call(o)},apiKey:o.API_KEY})):a(new Error("AwsWafIntegration is not available")):a(new Error("AWS WAF Captcha is not available"))})}};export{o as createCaptchaFetchHandler};
|
|
2
2
|
//# sourceMappingURL=bundle.esm.js.map
|
package/dist/bundle.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.esm.js","sources":["../src/utils/modalUtils.ts","../src/utils/WAFScriptUtils.ts","../src/createCaptchaFetchHandler.ts"],"sourcesContent":[null,null,null],"names":["ensureCaptchaContainer","captchaContainerId","captchaContentId","container","document","getElementById","captchaContainer","_a","body","createElement","id","appendChild","showCaptchaModal","overlayId","modalId","overlay","modal","style","cssText","ensureModalContainer","captchaForm","parentElement","display","WAF_SCRIPT_ID","createCaptchaFetchHandler","config","API_KEY","Error","JSAPI_URL","checkWAFconfig","AwsWafScript","async","src","head","loadCaptchaScript","path","init","Promise","resolve","reject","window","AwsWafCaptcha","AwsWafIntegration","renderCaptcha","onSuccess","hideCaptchaModal","fetch","onLoad","onError","error","call","onPuzzleTimeout","onPuzzleIncorrect","onPuzzleCorrect","apiKey"],"mappings":"AAAO,MAAMA,EAAyB,CAACC,EAA4BC,EAA2B,uBAC5F,IAAIC,EAAYC,SAASC,eAAeH,GACxC,MAAMI,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KAQjF,OANKL,IACHA,EAAYC,SAASK,cAAc,OACnCN,EAAUO,GAAKR,EACfI,EAAiBK,YAAYR,IAGxBA,GAyCIS,EAAmB,CAC9BX,EACAC,EACAW,EACAC,KAEA,MAAMC,QAAEA,EAAOC,MAAEA,GA5CiB,EAACf,EAA4BY,EAAY,eAAgBC,EAAU,iBACrG,MAAMR,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KACjF,IAAIO,EAAUX,SAASC,eAAeQ,GAClCG,EAAQZ,SAASC,eAAeS,GAgCpC,OA9BKC,IACHA,EAAUX,SAASK,cAAc,OACjCM,EAAQL,GAAK,eACbK,EAAQE,MAAMC,QAAU,qPAYxBZ,EAAiBK,YAAYI,IAG1BC,IACHA,EAAQZ,SAASK,cAAc,OAC/BO,EAAMN,GAAK,QACXM,EAAMC,MAAMC,QAAU,6GAMtBH,EAAQJ,YAAYK,IAGf,CAAED,UAASC,UASSG,CAAqBlB,EAAoBY,EAAWC,GACzEM,EAAcpB,EAAuBC,EAAoBC,GAE3DkB,EAAYC,gBAAkBL,GAChCA,EAAML,YAAYS,GAGpBL,EAAQE,MAAMK,QAAU,QC9DbC,EAAgB,eCEtB,MAAMC,EAA6BC,KDApC,SAAyBA,GAC7B,IAAKA,EAAOC,QACV,MAAM,IAAIC,MAAM,sBAGlB,IAAKF,EAAOG,UACV,MAAM,IAAID,MAAM,wBAGlB,IAAKF,EAAOxB,mBACV,MAAM,IAAI0B,MAAM,sCAEpB,CCXEE,CAAeJ,GDaX,SAA4BG,GAChC,GAAIxB,SAASC,eAAekB,KAAmBK,EAAW,OAC1D,MAAME,EAAe1B,SAASK,cAAc,UAC5CqB,EAAapB,GAAKa,EAClBO,EAAaC,OAAQ,EACrBD,EAAaE,IAAMJ,EACnBxB,SAAS6B,KAAKtB,YAAYmB,EAC5B,CCnBEI,CAAkBT,EAAOG,
|
|
1
|
+
{"version":3,"file":"bundle.esm.js","sources":["../src/utils/modalUtils.ts","../src/utils/WAFScriptUtils.ts","../src/createCaptchaFetchHandler.ts"],"sourcesContent":[null,null,null],"names":["ensureCaptchaContainer","captchaContainerId","captchaContentId","container","document","getElementById","captchaContainer","_a","body","createElement","id","appendChild","showCaptchaModal","overlayId","modalId","overlay","modal","style","cssText","ensureModalContainer","captchaForm","parentElement","display","WAF_SCRIPT_ID","createCaptchaFetchHandler","config","API_KEY","Error","JSAPI_URL","checkWAFconfig","AwsWafScript","async","src","head","loadCaptchaScript","path","init","Promise","resolve","reject","window","AwsWafCaptcha","AwsWafIntegration","renderCaptcha","onSuccess","hideCaptchaModal","fetch","onLoad","onError","error","call","onPuzzleTimeout","onPuzzleIncorrect","onPuzzleCorrect","apiKey"],"mappings":"AAAO,MAAMA,EAAyB,CAACC,EAA4BC,EAA2B,uBAC5F,IAAIC,EAAYC,SAASC,eAAeH,GACxC,MAAMI,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAIH,SAASI,KAQjF,OANKL,IACHA,EAAYC,SAASK,cAAc,OACnCN,EAAUO,GAAKR,EACfI,EAAiBK,YAAYR,IAGxBA,GAyCIS,EAAmB,CAC9BX,EACAC,EACAW,EACAC,KAEA,MAAMC,QAAEA,EAAOC,MAAEA,GA5CiB,EAACf,EAA4BY,EAAY,eAAgBC,EAAU,iBACrG,MAAMR,EAA8D,QAA3CC,EAAAH,SAASC,eAAeJ,UAAmB,IAAAM,EAAAA,EAAI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C/B,EAAoB,kBACnD,MAAME,EAAUX,SAASC,eAAeQ,GACpCE,IACFA,EAAQE,MAAMK,QAAU,SEvClBuB,CAAiBpB,eAAAA,EAAQZ,mBACzBN,EAAAkB,aAAM,EAANA,EAAQmB,kCACRN,EAAQE,OAAOE,kBAAkBI,MAAMX,EAAMC,KAE/CW,OAAQ,mBACNxC,EAAAkB,aAAM,EAANA,EAAQsB,gCAEVC,QAAUC,UACO,QAAf1C,EAAAkB,aAAM,EAANA,EAAQuB,eAAO,IAAAzC,GAAAA,EAAA2C,KAAAzB,EAAGwB,GAClBV,EAAOU,IAETE,gBAAiB,WACA,QAAf5C,EAAAkB,aAAM,EAANA,EAAQuB,eAAO,IAAAzC,GAAAA,EAAA2C,KAAAzB,EAAG,mBAClBc,EAAO,IAAIZ,MAAM,qBAEnByB,kBAAmB,mBACjB7C,EAAAkB,aAAM,EAANA,EAAQ2B,2CAEVC,gBAAiB,mBACf9C,EAAAkB,aAAM,EAANA,EAAQ4B,yCAEVC,OAAQ7B,EAAOC,WAlCfa,EAAO,IAAIZ,MAAM,uCALjBY,EAAO,IAAIZ,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waf-captcha-frontend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "is a lightweight JavaScript/TypeScript library that provides seamless integration with AWS WAF Captcha for fetch-based HTTP requests. The package handles captcha challenges transparently, intercepting requests and displaying captcha modals when required by AWS WAF.",
|
|
5
5
|
"main": "dist/bundle.cjs.js",
|
|
6
6
|
"module": "dist/bundle.esm.js",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "ISC",
|
|
20
|
-
"type": "module",
|
|
21
20
|
"devDependencies": {
|
|
22
21
|
"@rollup/plugin-terser": "^0.4.4",
|
|
23
22
|
"@rollup/plugin-typescript": "^12.3.0",
|