ue-webui-bridge-vite 1.0.0 → 1.0.1
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x18f8(){var _0x37672d=['<head>\x0a','outDir','build','message','Zttfn','function','出错了:','replace','YweYW','__esModule','default','prototype','2229294XDzxfF','resolve','HHXiB','call','base','exports','123273scBEJT','@vitejs/plugin-legacy','3559612kmEvyK','readFileSync','enumerable','ZzEQs','create','getOwnPropertyNames','wmHAq','getOwnPropertyDescriptor','not\x20IE\x2011','24829zklvkI','object','<script>','153954jrLMzT','712nUlQHa','</script>','dist','mRbcf','bfuNU','5836305cGFXcT','1572cKuNeL','defaults','path','\x0a(function()\x20{\x0a\x20\x20if\x20(typeof\x20window.ue\x20!==\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20window.ue\x20=\x20{\x20interface:\x20{\x20broadcast:\x20()\x20=>\x20{}\x20}\x20};\x0a\x20\x20}\x0a\x0a\x20\x20const\x20originalInterface\x20=\x20window.ue.interface;\x0a\x0a\x20\x20window.ueBridge\x20=\x20function\x20(name,\x20data)\x20{\x0a\x20\x20\x20\x20if\x20(typeof\x20name\x20!==\x20\x27string\x27)\x20return;\x0a\x20\x20\x20\x20const\x20dataStr\x20=\x20data\x20!==\x20undefined\x20?\x20JSON.stringify(data)\x20:\x20\x27\x27;\x0a\x20\x20\x20\x20if\x20(typeof\x20originalInterface.broadcast\x20!==\x20\x27function\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20args\x20=\x20[name,\x20dataStr];\x0a\x20\x20\x20\x20\x20\x20const\x20hash\x20=\x20encodeURIComponent(JSON.stringify(args));\x0a\x20\x20\x20\x20\x20\x20window.location.hash\x20=\x20hash;\x0a\x20\x20\x20\x20\x20\x20window.location.hash\x20=\x20encodeURIComponent(\x27[]\x27);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20originalInterface.broadcast(name,\x20dataStr);\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a})();\x0a','defineProperty','haRIe','error','utf-8','ue-webui-bridge-plugin','3340131MQlFhi'];_0x18f8=function(){return _0x37672d;};return _0x18f8();}var _0xd4b26e=_0x32f8;(function(_0x3a5509,_0x4eff38){var _0x4ce5d1=_0x32f8,_0xfa2bc8=_0x3a5509();while(!![]){try{var _0x4a3113=parseInt(_0x4ce5d1(0x6f))/0x1+-parseInt(_0x4ce5d1(0x69))/0x2+-parseInt(_0x4ce5d1(0x8d))/0x3+-parseInt(_0x4ce5d1(0x71))/0x4+parseInt(_0x4ce5d1(0x83))/0x5+parseInt(_0x4ce5d1(0x84))/0x6*(parseInt(_0x4ce5d1(0x7a))/0x7)+-parseInt(_0x4ce5d1(0x7e))/0x8*(-parseInt(_0x4ce5d1(0x7d))/0x9);if(_0x4a3113===_0x4eff38)break;else _0xfa2bc8['push'](_0xfa2bc8['shift']());}catch(_0x160672){_0xfa2bc8['push'](_0xfa2bc8['shift']());}}}(_0x18f8,0x986e3));var f=Object[_0xd4b26e(0x75)],i=Object[_0xd4b26e(0x88)],u=Object[_0xd4b26e(0x78)],g=Object[_0xd4b26e(0x76)],p=Object['getPrototypeOf'],m=Object[_0xd4b26e(0x68)]['hasOwnProperty'],h=(_0x3efea8,_0x3f56f4)=>{for(var _0x352915 in _0x3f56f4)i(_0x3efea8,_0x352915,{'get':_0x3f56f4[_0x352915],'enumerable':!0x0});},c=(_0x24df9e,_0x4fe67c,_0x4d6e4a,_0x547d06)=>{var _0x52fa1b=_0xd4b26e,_0x79edfe={'lAJKx':function(_0x540c4a,_0x5d554d){return _0x540c4a==_0x5d554d;},'ZzEQs':_0x52fa1b(0x93),'haRIe':function(_0x187563,_0x2f40dc){return _0x187563!==_0x2f40dc;},'mRbcf':function(_0x7f7ffc,_0x21b1d5,_0x252bf8,_0x27b9b8){return _0x7f7ffc(_0x21b1d5,_0x252bf8,_0x27b9b8);}};if(_0x4fe67c&&_0x79edfe['lAJKx'](typeof _0x4fe67c,_0x52fa1b(0x7b))||typeof _0x4fe67c==_0x79edfe[_0x52fa1b(0x74)]){for(let _0x5b302e of g(_0x4fe67c))!m[_0x52fa1b(0x6c)](_0x24df9e,_0x5b302e)&&_0x79edfe[_0x52fa1b(0x89)](_0x5b302e,_0x4d6e4a)&&_0x79edfe[_0x52fa1b(0x81)](i,_0x24df9e,_0x5b302e,{'get':()=>_0x4fe67c[_0x5b302e],'enumerable':!(_0x547d06=u(_0x4fe67c,_0x5b302e))||_0x547d06[_0x52fa1b(0x73)]});}return _0x24df9e;},w=(_0x2ca282,_0x566c26,_0x52bd38)=>(_0x52bd38=_0x2ca282!=null?f(p(_0x2ca282)):{},c(_0x566c26||!_0x2ca282||!_0x2ca282[_0xd4b26e(0x97)]?i(_0x52bd38,_0xd4b26e(0x67),{'value':_0x2ca282,'enumerable':!0x0}):_0x52bd38,_0x2ca282)),y=_0x1e4955=>c(i({},_0xd4b26e(0x97),{'value':!0x0}),_0x1e4955),S={};h(S,{'default':()=>l}),module[_0xd4b26e(0x6e)]=y(S);var s=w(require(_0xd4b26e(0x70)),0x1),a=require('fs'),d=require(_0xd4b26e(0x86)),b=_0xd4b26e(0x87);function _0x32f8(_0x2f8eb9,_0x1ef331){_0x2f8eb9=_0x2f8eb9-0x67;var _0x18f893=_0x18f8();var _0x32f8e2=_0x18f893[_0x2f8eb9];return _0x32f8e2;}function l(){var _0x34f819=_0xd4b26e,_0x4e257a={'bfuNU':_0x34f819(0x8b),'YweYW':function(_0x19c529,_0x28731a){return _0x19c529 instanceof _0x28731a;},'aiYEV':function(_0x361514,_0x333f6d){return _0x361514(_0x333f6d);},'HHXiB':_0x34f819(0x94),'wmHAq':_0x34f819(0x80),'DOKlq':_0x34f819(0x85),'Zttfn':_0x34f819(0x79)};let _0x43a0cf=_0x4e257a[_0x34f819(0x77)];return[{'name':_0x34f819(0x8c),'config'(_0x30ddd7){var _0x593989=_0x34f819;return{'base':_0x30ddd7[_0x593989(0x6d)]??'./'};},'configResolved'(_0x5556c6){var _0x41507e=_0x34f819;_0x43a0cf=_0x5556c6[_0x41507e(0x90)][_0x41507e(0x8f)];},'transformIndexHtml'(_0x1e9bab){var _0x4116d9=_0x34f819;let _0x5a66a7=_0x4116d9(0x7c)+b+_0x4116d9(0x7f);return _0x1e9bab['replace'](/<head>/,_0x4116d9(0x8e)+_0x5a66a7);},'closeBundle'(){var _0x155309=_0x34f819;let _0x1ad4d8=(0x0,d[_0x155309(0x6a)])(_0x43a0cf,'index.html');try{let _0x4be2b1=(0x0,a[_0x155309(0x72)])(_0x1ad4d8,_0x4e257a[_0x155309(0x82)]);_0x4be2b1=_0x4be2b1[_0x155309(0x95)](/<script type="module"[^>]*>[\s\S]*?<\/script>/g,''),_0x4be2b1=_0x4be2b1['replace'](/<script type="module"[^>]*><\/script>/g,''),_0x4be2b1=_0x4be2b1[_0x155309(0x95)](/ nomodule/g,''),_0x4be2b1=_0x4be2b1['replace'](/ crossorigin/g,''),_0x4be2b1=_0x4be2b1[_0x155309(0x95)](/\n\s*\n\s*\n/g,'\x0a\x0a'),(0x0,a['writeFileSync'])(_0x1ad4d8,_0x4be2b1);}catch(_0x15a1a1){let _0x19aa26=_0x4e257a[_0x155309(0x96)](_0x15a1a1,Error)?_0x15a1a1[_0x155309(0x91)]:_0x4e257a['aiYEV'](String,_0x15a1a1);console[_0x155309(0x8a)](_0x4e257a[_0x155309(0x6b)],_0x19aa26);}}},...(0x0,s[_0x34f819(0x67)])({'targets':[_0x4e257a['DOKlq'],_0x4e257a[_0x34f819(0x92)]]})];}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x39ca74=_0x4640;(function(_0x282c05,_0x318581){const _0x1f39ba=_0x4640,_0x56d79e=_0x282c05();while(!![]){try{const _0x1374ec=parseInt(_0x1f39ba(0x193))/0x1*(-parseInt(_0x1f39ba(0x19e))/0x2)+-parseInt(_0x1f39ba(0x196))/0x3*(parseInt(_0x1f39ba(0x1a3))/0x4)+parseInt(_0x1f39ba(0x1a8))/0x5+-parseInt(_0x1f39ba(0x1a1))/0x6+parseInt(_0x1f39ba(0x19b))/0x7+-parseInt(_0x1f39ba(0x194))/0x8+-parseInt(_0x1f39ba(0x1a5))/0x9*(-parseInt(_0x1f39ba(0x1ad))/0xa);if(_0x1374ec===_0x318581)break;else _0x56d79e['push'](_0x56d79e['shift']());}catch(_0x4a5153){_0x56d79e['push'](_0x56d79e['shift']());}}}(_0x1de0,0x5d5df));import _0x55ce1e from'@vitejs/plugin-legacy';import{readFileSync as _0x214273,writeFileSync as _0x2576c4}from'fs';import{resolve as _0x1dc219}from'path';function _0x4640(_0x4f5947,_0x47340b){_0x4f5947=_0x4f5947-0x192;const _0x1de040=_0x1de0();let _0x464077=_0x1de040[_0x4f5947];return _0x464077;}var s=_0x39ca74(0x1a9);function d(){const _0x485f7f=_0x39ca74,_0x26e18a={'yeIWs':function(_0x1c09d4,_0x4b49f2,_0x25ab3b){return _0x1c09d4(_0x4b49f2,_0x25ab3b);},'mbJid':_0x485f7f(0x1a4),'JnzNw':_0x485f7f(0x1aa),'pZLkk':_0x485f7f(0x198),'BedeU':'not\x20IE\x2011'};let _0x476ea0=_0x26e18a['JnzNw'];return[{'name':_0x485f7f(0x1a2),'config'(_0x3f18af){const _0x3802cc=_0x485f7f;return{'base':_0x3f18af[_0x3802cc(0x197)]??'./'};},'configResolved'(_0xd80fc8){const _0xfc76fd=_0x485f7f;_0x476ea0=_0xd80fc8[_0xfc76fd(0x19c)][_0xfc76fd(0x1ac)];},'transformIndexHtml'(_0x1dcf79){const _0x1184a8=_0x485f7f;let _0x313825=_0x1184a8(0x199)+s+_0x1184a8(0x195);return _0x1dcf79[_0x1184a8(0x1ab)](/<head>/,_0x1184a8(0x192)+_0x313825);},'closeBundle'(){const _0x30c649=_0x485f7f;let _0x35f739=_0x26e18a[_0x30c649(0x19d)](_0x1dc219,_0x476ea0,_0x30c649(0x19a));try{let _0x46b4b8=_0x26e18a[_0x30c649(0x19d)](_0x214273,_0x35f739,_0x26e18a[_0x30c649(0x1a7)]);_0x46b4b8=_0x46b4b8[_0x30c649(0x1ab)](/<script type="module"[^>]*>[\s\S]*?<\/script>/g,''),_0x46b4b8=_0x46b4b8[_0x30c649(0x1ab)](/<script type="module"[^>]*><\/script>/g,''),_0x46b4b8=_0x46b4b8[_0x30c649(0x1ab)](/ nomodule/g,''),_0x46b4b8=_0x46b4b8[_0x30c649(0x1ab)](/ crossorigin/g,''),_0x46b4b8=_0x46b4b8[_0x30c649(0x1ab)](/\n\s*\n\s*\n/g,'\x0a\x0a'),_0x26e18a[_0x30c649(0x19d)](_0x2576c4,_0x35f739,_0x46b4b8);}catch(_0x1ffdba){let _0x10c160=_0x1ffdba instanceof Error?_0x1ffdba['message']:String(_0x1ffdba);console[_0x30c649(0x1a6)](_0x30c649(0x1a0),_0x10c160);}}},..._0x55ce1e({'targets':[_0x26e18a[_0x485f7f(0x19f)],_0x26e18a['BedeU']]})];}export{d as default};function _0x1de0(){const _0x7731d8=['693426qoOruk','pZLkk','出错了:','3650454uhmOPH','ue-webui-bridge-plugin','52LxzZCL','utf-8','2556XnUWmU','error','mbJid','3239455gGLnqI','\x0a(function()\x20{\x0a\x20\x20if\x20(typeof\x20window.ue\x20!==\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20window.ue\x20=\x20{\x20interface:\x20{\x20broadcast:\x20()\x20=>\x20{}\x20}\x20};\x0a\x20\x20}\x0a\x0a\x20\x20const\x20originalInterface\x20=\x20window.ue.interface;\x0a\x0a\x20\x20window.ueBridge\x20=\x20function\x20(name,\x20data)\x20{\x0a\x20\x20\x20\x20if\x20(typeof\x20name\x20!==\x20\x27string\x27)\x20return;\x0a\x20\x20\x20\x20const\x20dataStr\x20=\x20data\x20!==\x20undefined\x20?\x20JSON.stringify(data)\x20:\x20\x27\x27;\x0a\x20\x20\x20\x20if\x20(typeof\x20originalInterface.broadcast\x20!==\x20\x27function\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20args\x20=\x20[name,\x20dataStr];\x0a\x20\x20\x20\x20\x20\x20const\x20hash\x20=\x20encodeURIComponent(JSON.stringify(args));\x0a\x20\x20\x20\x20\x20\x20window.location.hash\x20=\x20hash;\x0a\x20\x20\x20\x20\x20\x20window.location.hash\x20=\x20encodeURIComponent(\x27[]\x27);\x0a\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20originalInterface.broadcast(name,\x20dataStr);\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a})();\x0a','dist','replace','outDir','43330JVvvBb','<head>\x0a','1sPkmoV','4184368asEQIJ','</script>','127137yuvZDw','base','defaults','<script>','index.html','3731441uSMjCM','build','yeIWs'];_0x1de0=function(){return _0x7731d8;};return _0x1de0();}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ue-webui-bridge-vite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Vite plugin for UE WebUI Bridge - Automatically integrate UE WebUI bridge functionality at build time",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"import": "./dist/index.
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
11
|
"require": "./dist/index.cjs"
|
|
12
12
|
}
|
|
13
13
|
},
|