nucleus-core-ts 0.8.7 → 0.8.8
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/client.js +1 -1
- package/dist/fe/components/AbstractAnimatedBackground/index.js +437 -0
- package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.js +841 -0
- package/dist/fe/components/AuthorizationPage/components/ClaimList.js +100 -0
- package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.js +232 -0
- package/dist/fe/components/AuthorizationPage/components/RoleList.js +115 -0
- package/dist/fe/components/AuthorizationPage/index.js +6 -0
- package/dist/fe/components/AuthorizationPage/store/index.js +117 -0
- package/dist/fe/components/AuthorizationPage/theme/index.js +137 -0
- package/dist/fe/components/AuthorizationPage/types/index.js +1 -0
- package/dist/fe/components/Button/components/Button.js +158 -0
- package/dist/fe/components/Button/components/ButtonSpinner.js +52 -0
- package/dist/fe/components/Button/index.js +3 -0
- package/dist/fe/components/Button/theme/index.js +186 -0
- package/dist/fe/components/Button/types/index.js +1 -0
- package/dist/fe/components/Button/utils/cn.js +5 -0
- package/dist/fe/components/Captcha/components/Captcha.js +311 -0
- package/dist/fe/components/Captcha/index.js +2 -0
- package/dist/fe/components/Captcha/theme.js +52 -0
- package/dist/fe/components/Captcha/types.js +1 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.js +242 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.js +39 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.js +60 -0
- package/dist/fe/components/ChangePasswordPage/index.js +5 -0
- package/dist/fe/components/ChangePasswordPage/store/index.js +44 -0
- package/dist/fe/components/ChangePasswordPage/theme/index.js +87 -0
- package/dist/fe/components/ChangePasswordPage/types/index.js +1 -0
- package/dist/fe/components/Checkbox/components/Checkbox.js +115 -0
- package/dist/fe/components/Checkbox/components/CheckboxIcon.js +119 -0
- package/dist/fe/components/Checkbox/components/SwitchTrack.js +178 -0
- package/dist/fe/components/Checkbox/index.js +4 -0
- package/dist/fe/components/Checkbox/theme/index.js +221 -0
- package/dist/fe/components/Checkbox/types/index.js +1 -0
- package/dist/fe/components/Checkbox/utils/cn.js +5 -0
- package/dist/fe/components/DataTable/DataTable.js +225 -0
- package/dist/fe/components/DataTable/components/ActionCell.js +26 -0
- package/dist/fe/components/DataTable/components/DataCell.js +76 -0
- package/dist/fe/components/DataTable/components/EditableCell.js +221 -0
- package/dist/fe/components/DataTable/components/EmptyState.js +29 -0
- package/dist/fe/components/DataTable/components/HeaderCell.js +64 -0
- package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.js +66 -0
- package/dist/fe/components/DataTable/components/LoadingSpinner.js +19 -0
- package/dist/fe/components/DataTable/components/ResizeHandle.js +41 -0
- package/dist/fe/components/DataTable/components/SelectionCell.js +105 -0
- package/dist/fe/components/DataTable/components/SkeletonRow.js +56 -0
- package/dist/fe/components/DataTable/components/SkeletonTable.js +83 -0
- package/dist/fe/components/DataTable/components/SortIcon.js +39 -0
- package/dist/fe/components/DataTable/components/TableHeader.js +49 -0
- package/dist/fe/components/DataTable/components/TableRow.js +118 -0
- package/dist/fe/components/DataTable/components/index.js +14 -0
- package/dist/fe/components/DataTable/hooks/index.js +2 -0
- package/dist/fe/components/DataTable/hooks/useAutoFitColumn.js +23 -0
- package/dist/fe/components/DataTable/hooks/useResizeColumn.js +122 -0
- package/dist/fe/components/DataTable/index.js +3 -0
- package/dist/fe/components/DataTable/store/index.js +97 -0
- package/dist/fe/components/DataTable/theme/index.js +144 -0
- package/dist/fe/components/DataTable/types/index.js +1 -0
- package/dist/fe/components/DataTable/utils/cn.js +5 -0
- package/dist/fe/components/DatePicker/components/CalendarGrid.js +95 -0
- package/dist/fe/components/DatePicker/components/CalendarHeader.js +152 -0
- package/dist/fe/components/DatePicker/components/DatePicker.js +381 -0
- package/dist/fe/components/DatePicker/components/MonthYearSelector.js +93 -0
- package/dist/fe/components/DatePicker/index.js +7 -0
- package/dist/fe/components/DatePicker/locales/index.js +1113 -0
- package/dist/fe/components/DatePicker/theme/index.js +315 -0
- package/dist/fe/components/DatePicker/types/index.js +1 -0
- package/dist/fe/components/DatePicker/utils/cn.js +5 -0
- package/dist/fe/components/DatePicker/utils/date.js +132 -0
- package/dist/fe/components/DevicesPage/components/DeviceCard.js +251 -0
- package/dist/fe/components/DevicesPage/components/DevicesHeader.js +42 -0
- package/dist/fe/components/DevicesPage/components/DevicesPage.js +450 -0
- package/dist/fe/components/DevicesPage/index.js +5 -0
- package/dist/fe/components/DevicesPage/store/index.js +55 -0
- package/dist/fe/components/DevicesPage/theme/index.js +131 -0
- package/dist/fe/components/DevicesPage/types/index.js +1 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.js +214 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.js +42 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.js +59 -0
- package/dist/fe/components/ForgotPasswordPage/index.js +5 -0
- package/dist/fe/components/ForgotPasswordPage/store/index.js +28 -0
- package/dist/fe/components/ForgotPasswordPage/theme/index.js +87 -0
- package/dist/fe/components/ForgotPasswordPage/types/index.js +1 -0
- package/dist/fe/components/FormBuilder/components/FormBuilder.js +156 -0
- package/dist/fe/components/FormBuilder/components/FormField.js +218 -0
- package/dist/fe/components/FormBuilder/hooks/useFormBuilder.js +152 -0
- package/dist/fe/components/FormBuilder/index.js +4 -0
- package/dist/fe/components/FormBuilder/theme/index.js +134 -0
- package/dist/fe/components/FormBuilder/types/index.js +1 -0
- package/dist/fe/components/FormBuilder/utils/cn.js +5 -0
- package/dist/fe/components/FormBuilder/utils/fieldMapping.js +216 -0
- package/dist/fe/components/FormBuilder/utils/validation.js +78 -0
- package/dist/fe/components/LoginPage/components/LoginForm.js +214 -0
- package/dist/fe/components/LoginPage/components/LoginHeader.js +24 -0
- package/dist/fe/components/LoginPage/components/LoginPage.js +138 -0
- package/dist/fe/components/LoginPage/index.js +5 -0
- package/dist/fe/components/LoginPage/store/index.js +59 -0
- package/dist/fe/components/LoginPage/theme/index.js +98 -0
- package/dist/fe/components/LoginPage/types/index.js +1 -0
- package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.js +200 -0
- package/dist/fe/components/MagicLinkVerifyPage/index.js +3 -0
- package/dist/fe/components/MagicLinkVerifyPage/store.js +20 -0
- package/dist/fe/components/MagicLinkVerifyPage/theme.js +36 -0
- package/dist/fe/components/MagicLinkVerifyPage/types.js +1 -0
- package/dist/fe/components/NucleusEntityShowcase.js +1409 -0
- package/dist/fe/components/NucleusTextInput/components/FloatingLabel.js +56 -0
- package/dist/fe/components/NucleusTextInput/components/InputIcons.js +258 -0
- package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.js +321 -0
- package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.js +104 -0
- package/dist/fe/components/NucleusTextInput/components/TypewriterText.js +56 -0
- package/dist/fe/components/NucleusTextInput/index.js +7 -0
- package/dist/fe/components/NucleusTextInput/theme/index.js +121 -0
- package/dist/fe/components/NucleusTextInput/types/index.js +1 -0
- package/dist/fe/components/NucleusTextInput/utils/cn.js +5 -0
- package/dist/fe/components/NucleusTextInput/utils/format.js +62 -0
- package/dist/fe/components/NucleusTextInput/utils/validation.js +191 -0
- package/dist/fe/components/ProfilePage/components/AddressCard.js +196 -0
- package/dist/fe/components/ProfilePage/components/PhoneCard.js +206 -0
- package/dist/fe/components/ProfilePage/components/ProfileHeader.js +150 -0
- package/dist/fe/components/ProfilePage/components/ProfilePage.js +1336 -0
- package/dist/fe/components/ProfilePage/index.js +6 -0
- package/dist/fe/components/ProfilePage/store/index.js +115 -0
- package/dist/fe/components/ProfilePage/theme/index.js +168 -0
- package/dist/fe/components/ProfilePage/types/index.js +1 -0
- package/dist/fe/components/RangePicker/components/RangePicker.js +338 -0
- package/dist/fe/components/RangePicker/components/RangeThumb.js +68 -0
- package/dist/fe/components/RangePicker/components/RangeTooltip.js +45 -0
- package/dist/fe/components/RangePicker/components/RangeTrack.js +32 -0
- package/dist/fe/components/RangePicker/index.js +5 -0
- package/dist/fe/components/RangePicker/theme/index.js +88 -0
- package/dist/fe/components/RangePicker/types/index.js +1 -0
- package/dist/fe/components/RangePicker/utils/cn.js +3 -0
- package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.js +107 -0
- package/dist/fe/components/RegisterPage/components/RegisterForm.js +322 -0
- package/dist/fe/components/RegisterPage/components/RegisterHeader.js +23 -0
- package/dist/fe/components/RegisterPage/components/RegisterPage.js +85 -0
- package/dist/fe/components/RegisterPage/index.js +6 -0
- package/dist/fe/components/RegisterPage/store/index.js +106 -0
- package/dist/fe/components/RegisterPage/theme/index.js +128 -0
- package/dist/fe/components/RegisterPage/types/index.js +1 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.js +347 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.js +42 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.js +61 -0
- package/dist/fe/components/ResetPasswordPage/index.js +5 -0
- package/dist/fe/components/ResetPasswordPage/store/index.js +36 -0
- package/dist/fe/components/ResetPasswordPage/theme/index.js +99 -0
- package/dist/fe/components/ResetPasswordPage/types/index.js +1 -0
- package/dist/fe/components/SearchBox/components/SearchBox.js +271 -0
- package/dist/fe/components/SearchBox/components/SearchBoxDropdown.js +87 -0
- package/dist/fe/components/SearchBox/index.js +5 -0
- package/dist/fe/components/SearchBox/theme/index.js +184 -0
- package/dist/fe/components/SearchBox/types/index.js +1 -0
- package/dist/fe/components/SearchBox/utils/cn.js +5 -0
- package/dist/fe/components/SearchBox/utils/debounce.js +22 -0
- package/dist/fe/components/SearchBox/utils/sanitize.js +48 -0
- package/dist/fe/components/SelectBox/components/SelectBox.js +364 -0
- package/dist/fe/components/SelectBox/components/SelectDropdown.js +92 -0
- package/dist/fe/components/SelectBox/components/SelectOptionItem.js +43 -0
- package/dist/fe/components/SelectBox/components/SelectTrigger.js +22 -0
- package/dist/fe/components/SelectBox/index.js +5 -0
- package/dist/fe/components/SelectBox/theme/index.js +98 -0
- package/dist/fe/components/SelectBox/types/index.js +1 -0
- package/dist/fe/components/SelectBox/utils/cn.js +3 -0
- package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.js +107 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.js +142 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.js +23 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.js +263 -0
- package/dist/fe/components/SetPasswordPage/index.js +7 -0
- package/dist/fe/components/SetPasswordPage/store/index.js +79 -0
- package/dist/fe/components/SetPasswordPage/theme/index.js +98 -0
- package/dist/fe/components/SetPasswordPage/types/index.js +12 -0
- package/dist/fe/components/UsersPage/components/InviteUserModal.js +262 -0
- package/dist/fe/components/UsersPage/components/Pagination.js +147 -0
- package/dist/fe/components/UsersPage/components/RoleAssignmentModal.js +186 -0
- package/dist/fe/components/UsersPage/components/StatsCards.js +124 -0
- package/dist/fe/components/UsersPage/components/UserDetailDrawer.js +444 -0
- package/dist/fe/components/UsersPage/components/UserFilters.js +142 -0
- package/dist/fe/components/UsersPage/components/UserListItem.js +125 -0
- package/dist/fe/components/UsersPage/components/UserListSkeleton.js +40 -0
- package/dist/fe/components/UsersPage/components/UsersPage.js +556 -0
- package/dist/fe/components/UsersPage/index.js +10 -0
- package/dist/fe/components/UsersPage/store/index.js +151 -0
- package/dist/fe/components/UsersPage/theme/index.js +231 -0
- package/dist/fe/components/UsersPage/types/index.js +1 -0
- package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.js +290 -0
- package/dist/fe/components/VerifyEmailPage/index.js +3 -0
- package/dist/fe/components/VerifyEmailPage/store/index.js +45 -0
- package/dist/fe/components/VerifyEmailPage/theme/index.js +52 -0
- package/dist/fe/components/VerifyEmailPage/types/index.js +1 -0
- package/dist/fe/hooks/useNucleusEntity.js +247 -0
- package/dist/fe/index.js +28 -157
- package/dist/fe/types/index.js +1 -0
- package/dist/fe/utils/cn.js +5 -0
- package/dist/fe/utils/columnUtils.js +189 -0
- package/dist/fe/utils/endpointKeys.js +44 -0
- package/dist/index.js +1 -1
- package/dist/src/Client/Proxy/httpProxy.js +1 -0
- package/dist/src/Client/Proxy/index.js +1 -1
- package/dist/src/Client/Proxy/server.js +1 -0
- package/dist/src/Client/Proxy/types.js +1 -0
- package/dist/src/Client/Proxy/utils.js +1 -0
- package/dist/src/Client/Proxy/wsProxy.js +1 -0
- package/package.json +1 -1
- package/scripts/build.ts +32 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x50d0cc,_0x51704c){const _0x427fff=_0x1586,_0x5bba1a=_0x50d0cc();while(!![]){try{const _0x57f469=parseInt(_0x427fff(0x179))/0x1*(-parseInt(_0x427fff(0x180))/0x2)+-parseInt(_0x427fff(0x18a))/0x3+-parseInt(_0x427fff(0x174))/0x4*(parseInt(_0x427fff(0x17e))/0x5)+-parseInt(_0x427fff(0x18e))/0x6+-parseInt(_0x427fff(0x1a0))/0x7+-parseInt(_0x427fff(0x18c))/0x8*(-parseInt(_0x427fff(0x17f))/0x9)+parseInt(_0x427fff(0x19e))/0xa;if(_0x57f469===_0x51704c)break;else _0x5bba1a['push'](_0x5bba1a['shift']());}catch(_0x5d888a){_0x5bba1a['push'](_0x5bba1a['shift']());}}}(_0x3c21,0xaf919));import{createProxyLogger,matchPath,parseCookies,rewritePath}from'./utils';function _0x1586(_0x2df230,_0x303c59){_0x2df230=_0x2df230-0x174;const _0x3c2129=_0x3c21();let _0x158622=_0x3c2129[_0x2df230];if(_0x1586['ScByzP']===undefined){var _0x3fdbf2=function(_0x6872e5){const _0x464263='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2db472='',_0x26bdf8='';for(let _0x2c977c=0x0,_0x108b1d,_0x27a261,_0x4be8cc=0x0;_0x27a261=_0x6872e5['charAt'](_0x4be8cc++);~_0x27a261&&(_0x108b1d=_0x2c977c%0x4?_0x108b1d*0x40+_0x27a261:_0x27a261,_0x2c977c++%0x4)?_0x2db472+=String['fromCharCode'](0xff&_0x108b1d>>(-0x2*_0x2c977c&0x6)):0x0){_0x27a261=_0x464263['indexOf'](_0x27a261);}for(let _0x1ef02f=0x0,_0x7ed456=_0x2db472['length'];_0x1ef02f<_0x7ed456;_0x1ef02f++){_0x26bdf8+='%'+('00'+_0x2db472['charCodeAt'](_0x1ef02f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26bdf8);};_0x1586['Hxjwij']=_0x3fdbf2,_0x1586['jdEczx']={},_0x1586['ScByzP']=!![];}const _0x256963=_0x3c2129[0x0],_0x30562d=_0x2df230+_0x256963,_0x15d767=_0x1586['jdEczx'][_0x30562d];return!_0x15d767?(_0x158622=_0x1586['Hxjwij'](_0x158622),_0x1586['jdEczx'][_0x30562d]=_0x158622):_0x158622=_0x15d767,_0x158622;}function _0x3c21(){const _0x57152e=['B3jPz2LU','Cgf0Ag5HBwu','sfruucbqCM94Eq','zgvSzxrL','CMvKAxjLy3q','nJHztK9bq3C','rxjYB3i6ia','vgPNAKO','AuDMyuW','B25szxnWB25Zzq','mtq1mdy0B1jlruDM','Aw5MBW','Ag9ZDa','C3rHDhvZ','uNPwDhG','nJe2mtvNzLHkEvC','oty2nLfisKzzqq','nfHzrxfhvW','vhHhq0q','uhjVEhLPBMC6ia','z2v0','C3rYAw5NAwz5','BM93','qMfJA2vUzcbYzxf1zxn0ihrPBwvKig91Da','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','ywflC1a','yM9KEq','odyZode0DuXqwxvi','Bwv0Ag9K','nZK0nff0CfDjBq','DxjS','mtiXodKWnMTUEMnqyW','ywjVCNq','C2v0','AgvHzgvYCW','AgvHzgvYtMfTzq','vgLTzw91DcbHzNrLCIa','tKTtzLq','BLnZC0G','yxbWBgLJyxrPB24VANnVBG','BwvZC2fNzq','B25fCNjVCG','qMfKieDHDgv3yxK','q29UDgvUDc1uExbL','uKfnB0O','Dg9gAxHLza','DhjHBNnMzxiTzw5JB2rPBMC','mtG3oty3mZb3AgjbCgu','zgvIDwC','ody1ndiYnMHIB1LzCG','y29VA2LLtMfTzq','s3bVsg4','zxjYB3i','uMvXDwvZDcb0Aw1LB3v0','zM9SBg93uMvKAxjLy3rZ','vg9Rzw4GAw5Qzwn0zwqGzNjVBsbJB29RAwuGDg8G'];_0x3c21=function(){return _0x57152e;};return _0x3c21();}export function createHttpProxyHandler(_0x2e828){const _0x6f25cb=_0x1586,_0x48abdc={'nSssH':function(_0x37e418,_0x401a8d){return _0x37e418(_0x401a8d);},'TjgjJ':function(_0x165a13,_0xc6bf4c,_0x57aeef){return _0x165a13(_0xc6bf4c,_0x57aeef);},'MHPAZ':_0x6f25cb(0x1a7),'ZShfo':'authorization','RAMoJ':_0x6f25cb(0x17b),'aaKsP':'manual','TxGCD':function(_0x33ce45,_0x291269){return _0x33ce45(_0x291269);},'RzVtx':function(_0x4978f9,_0x410ed3){return _0x4978f9 instanceof _0x410ed3;},'iGfaL':_0x6f25cb(0x186),'KpoHn':_0x6f25cb(0x196),'ZLtjs':_0x6f25cb(0x199),'mIynk':function(_0xa9c751,_0x84346a,_0x61fe03){return _0xa9c751(_0x84346a,_0x61fe03);},'NKSfT':_0x6f25cb(0x1a9)},_0x3c067a=_0x48abdc['mIynk'](createProxyLogger,_0x48abdc[_0x6f25cb(0x194)],_0x2e828[_0x6f25cb(0x19f)]??![]);function _0x30738e(_0x85483f){for(const _0x14d2d9 of _0x2e828['targets']){if(matchPath(_0x85483f,_0x14d2d9['paths']))return _0x14d2d9;}return null;}function _0x449e29(_0x369d51,_0x6ee7f5){const _0x120687=_0x6ee7f5['url']['replace'](/\/$/,'');let _0x384881=_0x369d51;return _0x6ee7f5['pathRewrite']&&(_0x384881=rewritePath(_0x369d51,_0x6ee7f5['pathRewrite'])),''+_0x120687+_0x384881;}return{async 'handle'(_0x1b245c){const _0xa857cb=_0x6f25cb,_0x257881=new URL(_0x1b245c['url']),_0x1b3939=_0x257881[_0xa857cb(0x1a8)],_0x4dfa95=_0x48abdc[_0xa857cb(0x195)](_0x30738e,_0x1b3939);if(!_0x4dfa95)return null;const _0x1514d3=performance[_0xa857cb(0x185)](),_0x24a8df=_0x48abdc['TjgjJ'](_0x449e29,_0x1b3939,_0x4dfa95),_0x34958f=_0x257881['search']?''+_0x24a8df+_0x257881['search']:_0x24a8df;_0x3c067a['info'](_0xa857cb(0x182)+_0x1b245c['method']+'\x20'+_0x1b3939+'\x20->\x20'+_0x34958f),_0x2e828['onRequest']?.(_0x1b3939,_0x34958f);const _0x184283=new Headers(_0x1b245c[_0xa857cb(0x191)]);if(_0x4dfa95['changeOrigin']!==![]){const _0x101c8b=new URL(_0x4dfa95[_0xa857cb(0x18d)]);_0x184283[_0xa857cb(0x190)](_0xa857cb(0x17b),_0x101c8b['host']),_0x184283['set'](_0x48abdc['MHPAZ'],_0x101c8b[_0xa857cb(0x1a7)]);}if(_0x4dfa95[_0xa857cb(0x187)]){const _0x3d1d65=_0x48abdc[_0xa857cb(0x195)](parseCookies,_0x1b245c['headers'][_0xa857cb(0x183)]('cookie')),_0x1579b8=_0x3d1d65[_0x4dfa95[_0xa857cb(0x187)][_0xa857cb(0x1a1)]];if(_0x1579b8){const _0xb8dbf5=_0x4dfa95['injectTokenFromCookie'][_0xa857cb(0x192)]??_0x48abdc['ZShfo'];_0x184283['set'](_0xb8dbf5,'Bearer\x20'+_0x1579b8),_0x3c067a[_0xa857cb(0x17a)](_0xa857cb(0x1a6)+_0xb8dbf5);}}if(_0x4dfa95[_0xa857cb(0x191)])for(const [_0x2cce37,_0x4525da]of Object['entries'](_0x4dfa95[_0xa857cb(0x191)])){_0x184283['set'](_0x2cce37,_0x4525da);}_0x184283['delete'](_0x48abdc[_0xa857cb(0x19b)]);try{const _0x28572e=new AbortController(),_0x5c1dbb=_0x4dfa95['timeout']??0x7530,_0x3e0ee5=_0x48abdc[_0xa857cb(0x176)](setTimeout,()=>{const _0x3e133f=_0xa857cb;_0x28572e[_0x3e133f(0x18f)]();},_0x5c1dbb),_0x39f39f={};_0x39f39f['method']=_0x1b245c[_0xa857cb(0x18b)],_0x39f39f[_0xa857cb(0x191)]=_0x184283,_0x39f39f[_0xa857cb(0x189)]=_0x1b245c['body'],_0x39f39f['signal']=_0x28572e['signal'],_0x39f39f[_0xa857cb(0x1ab)]=_0x4dfa95[_0xa857cb(0x1a5)]===![]?_0x48abdc[_0xa857cb(0x188)]:'follow';const _0x33a802=await fetch(_0x34958f,_0x39f39f);_0x48abdc[_0xa857cb(0x181)](clearTimeout,_0x3e0ee5);const _0x57e865=performance['now']()-_0x1514d3;_0x3c067a[_0xa857cb(0x17a)]('Response:\x20'+_0x33a802[_0xa857cb(0x17c)]+'\x20('+_0x57e865['toFixed'](0x0)+'ms)'),_0x2e828[_0xa857cb(0x178)]?.(_0x1b3939,_0x33a802[_0xa857cb(0x17c)],_0x57e865);const _0x240104=new Headers(_0x33a802[_0xa857cb(0x191)]);return _0x240104['delete']('content-encoding'),_0x240104[_0xa857cb(0x1aa)](_0xa857cb(0x19d)),new Response(_0x33a802[_0xa857cb(0x189)],{'status':_0x33a802['status'],'statusText':_0x33a802['statusText'],'headers':_0x240104});}catch(_0x2bf43c){const _0x2dfcc4=performance[_0xa857cb(0x185)]()-_0x1514d3,_0x4c402b=_0x48abdc[_0xa857cb(0x17d)](_0x2bf43c,Error)?_0x2bf43c:new Error(String(_0x2bf43c));if(_0x4c402b['name']==='AbortError'){_0x3c067a['error'](_0xa857cb(0x193)+_0x2dfcc4[_0xa857cb(0x19c)](0x0)+'ms:\x20'+_0x1b3939),_0x2e828[_0xa857cb(0x198)]?.(new Error(_0xa857cb(0x1a4)),_0x1b3939,0x1f8);const _0x17040b={};_0x17040b[_0xa857cb(0x1a3)]='Gateway\x20Timeout',_0x17040b['message']=_0x48abdc[_0xa857cb(0x177)];const _0x412bd8={};_0x412bd8['Content-Type']=_0x48abdc[_0xa857cb(0x1a2)];const _0x4798af={};return _0x4798af['status']=0x1f8,_0x4798af[_0xa857cb(0x191)]=_0x412bd8,new Response(JSON[_0xa857cb(0x184)](_0x17040b),_0x4798af);}_0x3c067a[_0xa857cb(0x1a3)](_0xa857cb(0x175)+_0x1b3939,_0x4c402b['message']),_0x2e828[_0xa857cb(0x198)]?.(_0x4c402b,_0x1b3939,0x1f6);const _0x66e68f={};_0x66e68f['error']=_0x48abdc['ZLtjs'],_0x66e68f[_0xa857cb(0x197)]=_0x4c402b[_0xa857cb(0x197)];const _0x44b8ff={};_0x44b8ff[_0xa857cb(0x19a)]=_0x48abdc[_0xa857cb(0x1a2)];const _0x4e7a49={};return _0x4e7a49[_0xa857cb(0x17c)]=0x1f6,_0x4e7a49[_0xa857cb(0x191)]=_0x44b8ff,new Response(JSON[_0xa857cb(0x184)](_0x66e68f),_0x4e7a49);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x246a57,_0x27bd6a){var _0xbf9c66=_0x3a3d,_0x55223d=_0x246a57();while(!![]){try{var _0x4be436=-parseInt(_0xbf9c66(0xed))/0x1+parseInt(_0xbf9c66(0xeb))/0x2+parseInt(_0xbf9c66(0xef))/0x3+-parseInt(_0xbf9c66(0xf1))/0x4*(-parseInt(_0xbf9c66(0xec))/0x5)+-parseInt(_0xbf9c66(0xf3))/0x6+parseInt(_0xbf9c66(0xf0))/0x7*(parseInt(_0xbf9c66(0xee))/0x8)+-parseInt(_0xbf9c66(0xf2))/0x9;if(_0x4be436===_0x27bd6a)break;else _0x55223d['push'](_0x55223d['shift']());}catch(_0x3db8e7){_0x55223d['push'](_0x55223d['shift']());}}}(_0x20e4,0xe9af1));export{createHttpProxyHandler}from'./httpProxy';export{createProxyServer,defaultProxyConfig}from'./server';export{addQueryParam,createProxyLogger,globToRegex,httpToWs,loadEnvFile,matchPath,parseCookies,rewritePath,sanitizeForLog,wsToHttp}from'./utils';export{createWsProxyHandler,startWsProxyServer}from'./wsProxy';function _0x3a3d(_0x2f66d9,_0x3839bc){_0x2f66d9=_0x2f66d9-0xeb;var _0x20e463=_0x20e4();var _0x3a3d2a=_0x20e463[_0x2f66d9];if(_0x3a3d['MixDQW']===undefined){var _0x4f44f2=function(_0xa0e9a5){var _0x318198='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5ad44d='',_0x1ecc64='';for(var _0x54b93e=0x0,_0x4bbfa0,_0x3459a2,_0x2111df=0x0;_0x3459a2=_0xa0e9a5['charAt'](_0x2111df++);~_0x3459a2&&(_0x4bbfa0=_0x54b93e%0x4?_0x4bbfa0*0x40+_0x3459a2:_0x3459a2,_0x54b93e++%0x4)?_0x5ad44d+=String['fromCharCode'](0xff&_0x4bbfa0>>(-0x2*_0x54b93e&0x6)):0x0){_0x3459a2=_0x318198['indexOf'](_0x3459a2);}for(var _0x4699a4=0x0,_0x280fd2=_0x5ad44d['length'];_0x4699a4<_0x280fd2;_0x4699a4++){_0x1ecc64+='%'+('00'+_0x5ad44d['charCodeAt'](_0x4699a4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ecc64);};_0x3a3d['iDCcRW']=_0x4f44f2,_0x3a3d['OyLXOZ']={},_0x3a3d['MixDQW']=!![];}var _0x1eeafe=_0x20e463[0x0],_0x31c02e=_0x2f66d9+_0x1eeafe,_0x572613=_0x3a3d['OyLXOZ'][_0x31c02e];return!_0x572613?(_0x3a3d2a=_0x3a3d['iDCcRW'](_0x3a3d2a),_0x3a3d['OyLXOZ'][_0x31c02e]=_0x3a3d2a):_0x3a3d2a=_0x572613,_0x3a3d2a;}function _0x20e4(){var _0x36c2b9=['mJq3mxjbrML4tG','mtG3mty4uePtwMHY','mtm0odu4odHksNLfBNq','mZuYmty5ngrVD1L3uq','mJK3mZK2nKztDezUsa','mJbAEgDSBuO','nJC4mtq3zwDVuMzn','mJa4ndHmt0P4tgm','mZm3otG4nhzItvvkwa'];_0x20e4=function(){return _0x36c2b9;};return _0x20e4();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x5612b3=_0x42d6;(function(_0x2cd718,_0x306b15){const _0x7b533b=_0x42d6,_0x28fb49=_0x2cd718();while(!![]){try{const _0x47abfa=parseInt(_0x7b533b(0x19f))/0x1*(parseInt(_0x7b533b(0x18f))/0x2)+parseInt(_0x7b533b(0x182))/0x3*(parseInt(_0x7b533b(0x194))/0x4)+parseInt(_0x7b533b(0x185))/0x5*(-parseInt(_0x7b533b(0x18a))/0x6)+-parseInt(_0x7b533b(0x198))/0x7*(-parseInt(_0x7b533b(0x17d))/0x8)+-parseInt(_0x7b533b(0x19e))/0x9*(parseInt(_0x7b533b(0x19b))/0xa)+-parseInt(_0x7b533b(0x188))/0xb*(parseInt(_0x7b533b(0x193))/0xc)+parseInt(_0x7b533b(0x18d))/0xd;if(_0x47abfa===_0x306b15)break;else _0x28fb49['push'](_0x28fb49['shift']());}catch(_0xbf2b83){_0x28fb49['push'](_0x28fb49['shift']());}}}(_0x27fc,0x9697d));import{createHttpProxyHandler}from'./httpProxy';function _0x27fc(){const _0x58a84c=['D2vIC29JA2v0','Aw5MBW','whz0DuK','mJmXsgjPvu5r','icaTigrLDJOG','q3v6A2i','nJe3merICKjxvG','AgfUzgXL','C2vYDMu','mtC3otnQvLn5AwO','mZyXntjOrhbKq1m','Dg9mB3DLCKnHC2u','A2PIB0S','zw52','B3bLBG','DgfYz2v0CW','mc4WlJaUma','nZiWmdHeqxjtDLy','pIbszwfKEsbVBIbODhrWoI8V','tM8GBwf0y2HPBMCGChjVEhKGDgfYz2v0igzVCIb0AgLZihjLCxvLC3q','icaGic0G','Cgf0Ahm','m2jMrvn0qG','ChjVzhvJDgLVBG','icaTieHuvfaGDgfYz2v0CZOG','mtC0mtG1y2fmrNjh','zgvIDwC','z2v0','mZG1AMLMzMrb','uhjVEhKGu2vYDMvY','mte0DKHHvwzO','Cg9YDa','Ahr0Ca','mZeWodCWmtDWswLhyuu','AgvHzgvYCW','mtjPsvnMC3y','DxjS','C3rYAw5NAwz5','Ag9ZDg5HBwu','ndiYntu2EMjgA3LL','mZmWmJK2ogPfBuP0Ca'];_0x27fc=function(){return _0x58a84c;};return _0x27fc();}import{createProxyLogger,loadEnvFile}from'./utils';import{createWsProxyHandler}from'./wsProxy';function _0x42d6(_0x370f21,_0x40b345){_0x370f21=_0x370f21-0x177;const _0x27fc94=_0x27fc();let _0x42d64b=_0x27fc94[_0x370f21];if(_0x42d6['lwnsXM']===undefined){var _0x31ff60=function(_0xfcef79){const _0xbf5974='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a90f5='',_0x4642e6='';for(let _0xfec85c=0x0,_0x52abd3,_0x2a5836,_0x5bb682=0x0;_0x2a5836=_0xfcef79['charAt'](_0x5bb682++);~_0x2a5836&&(_0x52abd3=_0xfec85c%0x4?_0x52abd3*0x40+_0x2a5836:_0x2a5836,_0xfec85c++%0x4)?_0x2a90f5+=String['fromCharCode'](0xff&_0x52abd3>>(-0x2*_0xfec85c&0x6)):0x0){_0x2a5836=_0xbf5974['indexOf'](_0x2a5836);}for(let _0x3ebf75=0x0,_0x3d9d8d=_0x2a90f5['length'];_0x3ebf75<_0x3d9d8d;_0x3ebf75++){_0x4642e6+='%'+('00'+_0x2a90f5['charCodeAt'](_0x3ebf75)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4642e6);};_0x42d6['ByhthN']=_0x31ff60,_0x42d6['zwQPIX']={},_0x42d6['lwnsXM']=!![];}const _0x472a65=_0x27fc94[0x0],_0x4baf6d=_0x370f21+_0x472a65,_0x38da77=_0x42d6['zwQPIX'][_0x4baf6d];return!_0x38da77?(_0x42d64b=_0x42d6['ByhthN'](_0x42d64b),_0x42d6['zwQPIX'][_0x4baf6d]=_0x42d64b):_0x42d64b=_0x38da77,_0x42d64b;}export async function createProxyServer(_0x3e4464){const _0x3a60b9=_0x42d6,_0x277e75={'nLOZG':_0x3a60b9(0x195),'CnPKo':function(_0x2fe5f3,_0x1563e1){return _0x2fe5f3 instanceof _0x1563e1;},'kjboK':'Not\x20Found','jDVOV':_0x3a60b9(0x17f),'XvtuI':_0x3a60b9(0x17c),'kqZaH':function(_0x38f019,_0xda1ad8){return _0x38f019!==_0xda1ad8;},'fyJul':_0x3a60b9(0x189),'iAIKH':function(_0x535a45,_0x4a11be){return _0x535a45(_0x4a11be);},'WVVuV':function(_0x42805d,_0x44be9b){return _0x42805d(_0x44be9b);},'Cuzkb':function(_0x950147,_0x42540e){return _0x950147(_0x42540e);}},_0xd0bac=_0x3e4464['port']??0xfa0,_0x237956=_0x3e4464['hostname']??_0x277e75[_0x3a60b9(0x197)],_0x2931c9=_0x3e4464['dev']??_0x277e75['kqZaH'](process[_0x3a60b9(0x179)]['NODE_ENV'],'production'),_0x1978a2=createProxyLogger(_0x277e75['fyJul'],_0x2931c9);_0x3e4464['envPath']&&await _0x277e75['iAIKH'](loadEnvFile,_0x3e4464['envPath']);_0x1978a2[_0x3a60b9(0x196)]('Starting\x20proxy\x20server...'),_0x1978a2[_0x3a60b9(0x196)]('\x20\x20-\x20hostname:\x20'+_0x237956),_0x1978a2['info']('\x20\x20-\x20port:\x20'+_0xd0bac),_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x199)+_0x2931c9);const _0x66982a=_0x3e4464['ws']?_0x277e75['WVVuV'](createWsProxyHandler,{..._0x3e4464['ws'],'debug':_0x3e4464['ws']['debug']??_0x2931c9}):null,_0xd877ae=_0x3e4464[_0x3a60b9(0x18c)]?_0x277e75[_0x3a60b9(0x19a)](createHttpProxyHandler,{..._0x3e4464['http'],'debug':_0x3e4464[_0x3a60b9(0x18c)]['debug']??_0x2931c9}):null;if(_0x66982a&&_0x3e4464['ws']?.['targets']){_0x1978a2[_0x3a60b9(0x196)]('\x20\x20-\x20WebSocket\x20targets:\x20'+_0x3e4464['ws']['targets']['length']);for(const _0x3d9339 of _0x3e4464['ws']['targets']){_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x180)+_0x3d9339['url']+':\x20'+_0x3d9339[_0x3a60b9(0x181)]['join'](',\x20'));}}if(_0xd877ae&&_0x3e4464[_0x3a60b9(0x18c)]?.[_0x3a60b9(0x17b)]){_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x184)+_0x3e4464['http'][_0x3a60b9(0x17b)]['length']);for(const _0x5ed5ea of _0x3e4464['http']['targets']){_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x180)+_0x5ed5ea[_0x3a60b9(0x190)]+':\x20'+_0x5ed5ea[_0x3a60b9(0x181)]['join'](',\x20'));}}const _0x788f15={};_0x788f15[_0x3a60b9(0x17a)]=function(){},_0x788f15['message']=function(){},_0x788f15['close']=function(){},_0x788f15['drain']=function(){};const _0xc0701c=Bun[_0x3a60b9(0x19d)]({'port':_0xd0bac,'hostname':_0x237956,async 'fetch'(_0x3c730f,_0x6c560c){const _0x11fb56=_0x3a60b9;if(_0x3c730f[_0x11fb56(0x18e)][_0x11fb56(0x187)]('upgrade')?.[_0x11fb56(0x177)]()===_0x277e75['nLOZG']){if(_0x66982a){const _0x59cfce=_0x66982a['upgrade'](_0x3c730f,_0x6c560c);if(_0x59cfce===!![])return undefined;if(_0x277e75['CnPKo'](_0x59cfce,Response))return _0x59cfce;}}if(_0xd877ae){const _0x177788=await _0xd877ae[_0x11fb56(0x19c)](_0x3c730f);if(_0x177788)return _0x177788;}const _0x54b447={};_0x54b447['error']=_0x277e75[_0x11fb56(0x178)],_0x54b447['message']=_0x277e75['jDVOV'];const _0x37dd83={};_0x37dd83['Content-Type']='application/json';const _0x766f45={};return _0x766f45['status']=0x194,_0x766f45[_0x11fb56(0x18e)]=_0x37dd83,new Response(JSON[_0x11fb56(0x191)](_0x54b447),_0x766f45);},'websocket':_0x66982a?.['websocket']??_0x788f15});_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x17e)+_0x237956+':'+_0xd0bac);const _0x37763e={};return _0x37763e[_0x3a60b9(0x18b)]=_0xd0bac,_0x37763e[_0x3a60b9(0x192)]=_0x237956,_0x3e4464['onReady']?.(_0x37763e),_0xc0701c;}const _0x183250={};_0x183250[_0x5612b3(0x17b)]=[],_0x183250[_0x5612b3(0x186)]=![],_0x183250['allowHmr']=!![],_0x183250['rejectUnknown']=!![];const _0x3a364e={};_0x3a364e[_0x5612b3(0x17b)]=[],_0x3a364e['debug']=![];const _0x5ad083={};_0x5ad083[_0x5612b3(0x18b)]=0xfa0,_0x5ad083['hostname']='0.0.0.0',_0x5ad083['dev']=process[_0x5612b3(0x179)]['NODE_ENV']!==_0x5612b3(0x183),_0x5ad083['ws']=_0x183250,_0x5ad083['http']=_0x3a364e;export const defaultProxyConfig=_0x5ad083;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3ef5e0,_0x5c1108){const _0x285cf2=_0x1c60,_0x48b769=_0x3ef5e0();while(!![]){try{const _0xfa35ab=parseInt(_0x285cf2(0xc1))/0x1+-parseInt(_0x285cf2(0xcf))/0x2+-parseInt(_0x285cf2(0xd2))/0x3*(parseInt(_0x285cf2(0xc5))/0x4)+-parseInt(_0x285cf2(0xc8))/0x5+parseInt(_0x285cf2(0xc9))/0x6+-parseInt(_0x285cf2(0xcd))/0x7+-parseInt(_0x285cf2(0xba))/0x8*(-parseInt(_0x285cf2(0xc7))/0x9);if(_0xfa35ab===_0x5c1108)break;else _0x48b769['push'](_0x48b769['shift']());}catch(_0x2f2c2e){_0x48b769['push'](_0x48b769['shift']());}}}(_0x3a55,0x9dd2b));export function parseCookies(_0x58abc2){const _0x29e754=_0x1c60,_0x3cb20f={};_0x3cb20f[_0x29e754(0xd3)]=function(_0x3bcd87,_0x3f8225){return _0x3bcd87>_0x3f8225;};const _0x30aecc=_0x3cb20f,_0x56c34e={};if(!_0x58abc2)return _0x56c34e;for(const _0x2e6ecb of _0x58abc2['split'](';')){const [_0x1d4081,..._0x370ec4]=_0x2e6ecb['trim']()['split']('=');_0x1d4081&&_0x30aecc[_0x29e754(0xd3)](_0x370ec4[_0x29e754(0xcb)],0x0)&&(_0x56c34e[_0x1d4081]=decodeURIComponent(_0x370ec4['join']('=')));}return _0x56c34e;}export function globToRegex(_0x5c8fbf){const _0x388912=_0x1c60,_0x19919a={};_0x19919a['rRlUN']=_0x388912(0xbe);const _0x557edf=_0x19919a;let _0x496b1b=_0x5c8fbf[_0x388912(0xbf)](/:[\w]+\*/g,'*');return _0x496b1b=_0x496b1b[_0x388912(0xbf)](/[.+?^${}()|[\]\\]/g,_0x557edf[_0x388912(0xc4)]),_0x496b1b=_0x496b1b[_0x388912(0xbf)](/\*/g,'.*'),new RegExp('^'+_0x496b1b+'$');}function _0x1c60(_0x4b538d,_0x8bf406){_0x4b538d=_0x4b538d-0xb9;const _0x3a550b=_0x3a55();let _0x1c6069=_0x3a550b[_0x4b538d];if(_0x1c60['EFDBgA']===undefined){var _0x1f6e75=function(_0x4c2b21){const _0x11ff1c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40adcb='',_0x195da7='';for(let _0x10f1be=0x0,_0x5dcff7,_0x353799,_0x2a1904=0x0;_0x353799=_0x4c2b21['charAt'](_0x2a1904++);~_0x353799&&(_0x5dcff7=_0x10f1be%0x4?_0x5dcff7*0x40+_0x353799:_0x353799,_0x10f1be++%0x4)?_0x40adcb+=String['fromCharCode'](0xff&_0x5dcff7>>(-0x2*_0x10f1be&0x6)):0x0){_0x353799=_0x11ff1c['indexOf'](_0x353799);}for(let _0xfa01e0=0x0,_0x59f410=_0x40adcb['length'];_0xfa01e0<_0x59f410;_0xfa01e0++){_0x195da7+='%'+('00'+_0x40adcb['charCodeAt'](_0xfa01e0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x195da7);};_0x1c60['QAaDmm']=_0x1f6e75,_0x1c60['OTLjXM']={},_0x1c60['EFDBgA']=!![];}const _0xf94ef7=_0x3a550b[0x0],_0x256d93=_0x4b538d+_0xf94ef7,_0x2612db=_0x1c60['OTLjXM'][_0x256d93];return!_0x2612db?(_0x1c6069=_0x1c60['QAaDmm'](_0x1c6069),_0x1c60['OTLjXM'][_0x256d93]=_0x1c6069):_0x1c6069=_0x2612db,_0x1c6069;}export function matchPath(_0x1eb963,_0x425a08){const _0x59c317=_0x1c60,_0x53d734={'YaFan':function(_0x5e0ee5,_0x5c47fb){return _0x5e0ee5(_0x5c47fb);}};for(const _0x59c338 of _0x425a08){const _0x11e299=_0x53d734[_0x59c317(0xc6)](globToRegex,_0x59c338);if(_0x11e299[_0x59c317(0xc2)](_0x1eb963))return!![];}return![];}function _0x3a55(){const _0x2657e3=['CLjSvu4','mJqXnLbVu1zKEa','wwfgyw4','odmWnJfAvfLwCgW','mZG2mdG0mhjitKXjva','mtu2mZa2Cu9qsxHd','Ahr0Ca','BgvUz3rO','zw50CMLLCW','mJa5nJGYmKnHuNLWAW','Aw5JBhvKzxm','nZG1mdrmEfzQufy','Dgv4Da','zw52','mtKYovz1qMnREG','CgjUrg8','zxHPC3rZ','mtGXnNzmCezACa','y2H6q0i','zxjYB3i','C3bSAxq','xcqM','CMvWBgfJzq','zMLSzq','mJq3ndDIwNn4Bvm','DgvZDa','Bg9N'];_0x3a55=function(){return _0x2657e3;};return _0x3a55();}export function rewritePath(_0x2dd94f,_0x197466){const _0x56ded8=_0x1c60;for(const [_0x3d42da,_0x35ec5a]of Object[_0x56ded8(0xcc)](_0x197466)){const _0x3ef4fc=globToRegex(_0x3d42da);if(_0x3ef4fc[_0x56ded8(0xc2)](_0x2dd94f)){const _0x25ae8e=_0x3d42da[_0x56ded8(0xbf)](/\*.*$/,''),_0x135561=_0x35ec5a[_0x56ded8(0xbf)](/\*.*$/,'');return _0x2dd94f['replace'](_0x25ae8e,_0x135561);}}return _0x2dd94f;}export function addQueryParam(_0x59ff50,_0x58572c,_0xb224b1){const _0x1c7206=_0x1c60,_0x9c65c2=_0x59ff50[_0x1c7206(0xce)]('?')?'&':'?';return''+_0x59ff50+_0x9c65c2+encodeURIComponent(_0x58572c)+'='+encodeURIComponent(_0xb224b1);}export function httpToWs(_0x5b5a8f){return _0x5b5a8f['replace'](/^http/,'ws');}export function wsToHttp(_0xa916ba){const _0x534377=_0x1c60,_0x5636e2={};_0x5636e2['pCNGp']=_0x534377(0xca);const _0x572b04=_0x5636e2;return _0xa916ba[_0x534377(0xbf)](/^ws/,_0x572b04['pCNGp']);}export function createProxyLogger(_0x27f943,_0x231c6f){return{'info':(..._0x5b383e)=>{const _0x1a761c=_0x1c60;_0x231c6f&&console[_0x1a761c(0xc3)]('['+_0x27f943+']',..._0x5b383e);},'warn':(..._0x18bc06)=>{console['warn']('['+_0x27f943+']',..._0x18bc06);},'error':(..._0x41baf8)=>{const _0x361dee=_0x1c60;console[_0x361dee(0xbc)]('['+_0x27f943+']',..._0x41baf8);}};}export async function loadEnvFile(_0x329e93){const _0x30ef81=_0x1c60;try{const _0x27326f=Bun[_0x30ef81(0xc0)](_0x329e93),_0x413d11=await _0x27326f[_0x30ef81(0xb9)]();if(!_0x413d11)return;const _0x104d23=await _0x27326f[_0x30ef81(0xd0)]();for(const _0x209dd7 of _0x104d23[_0x30ef81(0xbd)]('\x0a')){const _0x135fb7=_0x209dd7['trim']();if(_0x135fb7&&!_0x135fb7['startsWith']('#')){const [_0x561d74,..._0x320b05]=_0x135fb7['split']('='),_0x2f6713=_0x320b05['join']('=')[_0x30ef81(0xbf)](/^["']|["']$/g,'');_0x561d74&&!process[_0x30ef81(0xd1)][_0x561d74]&&(process[_0x30ef81(0xd1)][_0x561d74]=_0x2f6713);}}}catch{}}export function sanitizeForLog(_0x1b20a6,_0x353c8d=0x32){const _0x24bd5f=_0x1c60,_0x332263={};_0x332263['chzCB']=function(_0x1ce4f9,_0x8ca2aa){return _0x1ce4f9<=_0x8ca2aa;};const _0x9ee0d7=_0x332263;if(_0x9ee0d7[_0x24bd5f(0xbb)](_0x1b20a6[_0x24bd5f(0xcb)],_0x353c8d))return _0x1b20a6;return _0x1b20a6['slice'](0x0,_0x353c8d)+'...';}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x169a25,_0xfaad65){const _0x1145f4=_0x2d84,_0x1e6f59=_0x169a25();while(!![]){try{const _0x5d6f53=-parseInt(_0x1145f4(0xac))/0x1*(parseInt(_0x1145f4(0xa7))/0x2)+-parseInt(_0x1145f4(0x96))/0x3*(parseInt(_0x1145f4(0x95))/0x4)+-parseInt(_0x1145f4(0x98))/0x5*(-parseInt(_0x1145f4(0xb3))/0x6)+parseInt(_0x1145f4(0xc9))/0x7*(-parseInt(_0x1145f4(0xaa))/0x8)+parseInt(_0x1145f4(0xb6))/0x9*(-parseInt(_0x1145f4(0xbc))/0xa)+parseInt(_0x1145f4(0xc2))/0xb+-parseInt(_0x1145f4(0xb8))/0xc*(-parseInt(_0x1145f4(0xc3))/0xd);if(_0x5d6f53===_0xfaad65)break;else _0x1e6f59['push'](_0x1e6f59['shift']());}catch(_0x9c3c7){_0x1e6f59['push'](_0x1e6f59['shift']());}}}(_0x36b3,0xdfbd3));function _0x2d84(_0x4330ae,_0x1d7aa9){_0x4330ae=_0x4330ae-0x8d;const _0x36b3b2=_0x36b3();let _0x2d84f4=_0x36b3b2[_0x4330ae];if(_0x2d84['yneWRX']===undefined){var _0x40b8af=function(_0x25b399){const _0x5d4d6b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40855b='',_0x3072a0='';for(let _0x4717ca=0x0,_0x3b11ba,_0x4eeb81,_0x4e1c67=0x0;_0x4eeb81=_0x25b399['charAt'](_0x4e1c67++);~_0x4eeb81&&(_0x3b11ba=_0x4717ca%0x4?_0x3b11ba*0x40+_0x4eeb81:_0x4eeb81,_0x4717ca++%0x4)?_0x40855b+=String['fromCharCode'](0xff&_0x3b11ba>>(-0x2*_0x4717ca&0x6)):0x0){_0x4eeb81=_0x5d4d6b['indexOf'](_0x4eeb81);}for(let _0x2f6494=0x0,_0x3bcd8c=_0x40855b['length'];_0x2f6494<_0x3bcd8c;_0x2f6494++){_0x3072a0+='%'+('00'+_0x40855b['charCodeAt'](_0x2f6494)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3072a0);};_0x2d84['GcaXQB']=_0x40b8af,_0x2d84['QXZMlY']={},_0x2d84['yneWRX']=!![];}const _0x49ac3f=_0x36b3b2[0x0],_0xa15ed2=_0x4330ae+_0x49ac3f,_0x13fb80=_0x2d84['QXZMlY'][_0xa15ed2];return!_0x13fb80?(_0x2d84f4=_0x2d84['GcaXQB'](_0x2d84f4),_0x2d84['QXZMlY'][_0xa15ed2]=_0x2d84f4):_0x2d84f4=_0x13fb80,_0x2d84f4;}import{addQueryParam,createProxyLogger,httpToWs,matchPath,parseCookies,rewritePath}from'./utils';export function createWsProxyHandler(_0x12484f){const _0x2fdfa2=_0x2d84,_0x2b2028={'qpyWP':'http','BsLqA':function(_0xcf1b65,_0x1e6a14){return _0xcf1b65(_0x1e6a14);},'NMJVl':_0x2fdfa2(0xa3),'gRaIo':function(_0x295fff,_0x5761e0){return _0x295fff!==_0x5761e0;},'HBoOF':function(_0x521456,_0x4e9efa){return _0x521456(_0x4e9efa);},'EPOgu':_0x2fdfa2(0xb5),'vvAKw':function(_0x4e516c,_0x49ec97){return _0x4e516c(_0x49ec97);},'tGpEA':function(_0x2e6efc,_0xa42fd1){return _0x2e6efc===_0xa42fd1;},'XcfhV':_0x2fdfa2(0xb9),'zlafH':'Backend\x20WebSocket\x20error','tuHdy':function(_0x211f22,_0x1cd467){return _0x211f22===_0x1cd467;},'XcPxH':function(_0x5900ba,_0x41be03,_0x53b7f8){return _0x5900ba(_0x41be03,_0x53b7f8);}},_0x25aa19=_0x2b2028['XcPxH'](createProxyLogger,_0x2fdfa2(0x9b),_0x12484f['debug']??![]);function _0x27f929(_0x3dbe3d){const _0x1ae32e=_0x2fdfa2;for(const _0x541a01 of _0x12484f[_0x1ae32e(0x9f)]){if(matchPath(_0x3dbe3d,_0x541a01[_0x1ae32e(0xb2)]))return _0x541a01;}return null;}function _0x22a75c(_0x4e094e,_0x334002,_0x3dc91a,_0x5ce1a7){const _0x410425=_0x2fdfa2;let _0x9836c6=_0x334002['url']['replace'](/\/$/,'');_0x9836c6['startsWith'](_0x2b2028['qpyWP'])&&(_0x9836c6=_0x2b2028['BsLqA'](httpToWs,_0x9836c6));let _0x58eb8b=_0x4e094e;_0x334002[_0x410425(0x92)]&&(_0x58eb8b=rewritePath(_0x4e094e,_0x334002['pathRewrite']));let _0x318b64=''+_0x9836c6+_0x58eb8b;const _0x1b201a=_0x5ce1a7[_0x410425(0x8e)]();_0x1b201a&&(_0x318b64=_0x318b64+'?'+_0x1b201a);if(_0x334002['injectTokenFromCookie']){const _0x2d2d18=_0x3dc91a[_0x334002[_0x410425(0xa5)][_0x410425(0xbb)]];if(_0x2d2d18){const _0x5148b1=_0x334002['injectTokenFromCookie'][_0x410425(0x9a)]??_0x2b2028['NMJVl'];_0x318b64=addQueryParam(_0x318b64,_0x5148b1,_0x2d2d18),_0x25aa19[_0x410425(0xb7)]('Token\x20injected\x20from\x20cookie');}}return _0x318b64;}return{'upgrade'(_0x12b2f3,_0x1ac804){const _0x2ae87c=_0x2fdfa2,_0x34c587=new URL(_0x12b2f3['url']),_0x4dfd57=_0x34c587['pathname'];if(_0x2b2028[_0x2ae87c(0xc4)](_0x12484f['allowHmr'],![])&&_0x4dfd57['startsWith'](_0x2ae87c(0x9d)))return _0x25aa19[_0x2ae87c(0xb7)](_0x2ae87c(0xa0)+_0x4dfd57),![];const _0x3929e4=_0x2b2028[_0x2ae87c(0xba)](_0x27f929,_0x4dfd57);if(!_0x3929e4){if(_0x12484f[_0x2ae87c(0x99)]!==![]){_0x25aa19[_0x2ae87c(0x90)]('No\x20target\x20found\x20for:\x20'+_0x4dfd57);const _0x186e7e={};return _0x186e7e['status']=0x194,new Response(_0x2b2028[_0x2ae87c(0xa2)],_0x186e7e);}return![];}const _0x5831b7=_0x2b2028[_0x2ae87c(0xa8)](parseCookies,_0x12b2f3[_0x2ae87c(0xb4)][_0x2ae87c(0xaf)]('cookie')),_0x46dc70=_0x22a75c(_0x4dfd57,_0x3929e4,_0x5831b7,_0x34c587[_0x2ae87c(0x8f)]);_0x25aa19[_0x2ae87c(0xb7)](_0x2ae87c(0xc5)+_0x4dfd57+_0x2ae87c(0x9c)+_0x46dc70);const _0xe892e5={};_0xe892e5['backendWs']=null,_0xe892e5[_0x2ae87c(0x9e)]=_0x4dfd57,_0xe892e5['target']=_0x46dc70,_0xe892e5[_0x2ae87c(0xca)]=[];const _0x205c5a={};_0x205c5a['data']=_0xe892e5;const _0x1595b6=_0x1ac804['upgrade'](_0x12b2f3,_0x205c5a);return _0x1595b6;},'websocket':{'open'(_0x361e86){const _0x1b38ae=_0x2fdfa2,_0x3189e6={};_0x3189e6[_0x1b38ae(0x94)]=_0x2b2028[_0x1b38ae(0xc7)];const _0x9ab78f=_0x3189e6,_0xf23e9f=_0x361e86['data'],_0xd9bd3d=new WebSocket(_0xf23e9f[_0x1b38ae(0xbe)]);_0xd9bd3d[_0x1b38ae(0xae)]=()=>{const _0x1cd550=_0x1b38ae;_0x25aa19['info'](_0x1cd550(0xa6)+_0xf23e9f[_0x1cd550(0x9e)]),_0x12484f['onOpen']?.(_0xf23e9f['path'],_0xf23e9f[_0x1cd550(0xbe)]);for(const _0x6c3aeb of _0xf23e9f[_0x1cd550(0xca)]){_0xd9bd3d[_0x1cd550(0x91)](_0x6c3aeb);}_0xf23e9f['buffer']=[];},_0xd9bd3d['onmessage']=_0x31d1c6=>{const _0x377fc3=_0x1b38ae;if(_0x2b2028['tGpEA'](typeof _0x31d1c6[_0x377fc3(0xc8)],_0x2b2028['XcfhV']))_0x361e86[_0x377fc3(0x91)](_0x31d1c6['data']);else{if(_0x31d1c6['data']instanceof ArrayBuffer)_0x361e86['send'](new Uint8Array(_0x31d1c6['data']));else _0x31d1c6['data']instanceof Blob&&_0x31d1c6[_0x377fc3(0xc8)][_0x377fc3(0xb1)]()['then'](_0x293840=>{_0x361e86['send'](new Uint8Array(_0x293840));});}},_0xd9bd3d[_0x1b38ae(0xb0)]=_0xf658a6=>{const _0x5a5d0e=_0x1b38ae,_0x17d700=new Error(_0x9ab78f['rJZCO']);_0x25aa19['error'](_0x5a5d0e(0xc6)+_0xf23e9f[_0x5a5d0e(0x9e)],_0xf658a6),_0x12484f['onError']?.(_0x17d700,_0xf23e9f['path']);},_0xd9bd3d['onclose']=()=>{const _0x42ac43=_0x1b38ae;_0x25aa19['info']('Backend\x20closed:\x20'+_0xf23e9f['path']),_0x12484f[_0x42ac43(0x97)]?.(_0xf23e9f['path']),_0x361e86['close']();},_0xf23e9f[_0x1b38ae(0xa9)]=_0xd9bd3d;},'message'(_0x2637ce,_0x123286){const _0x431cee=_0x2fdfa2,_0x1ad0eb=_0x2637ce[_0x431cee(0xc8)];if(_0x2b2028['tuHdy'](_0x1ad0eb['backendWs']?.['readyState'],WebSocket[_0x431cee(0xbd)]))_0x1ad0eb['backendWs']['send'](_0x123286);else{if(typeof _0x123286===_0x2b2028[_0x431cee(0xa4)])_0x1ad0eb['buffer']['push'](_0x123286);else{const _0x40b783=new ArrayBuffer(_0x123286[_0x431cee(0xad)]);new Uint8Array(_0x40b783)[_0x431cee(0x93)](new Uint8Array(_0x123286)),_0x1ad0eb[_0x431cee(0xca)][_0x431cee(0xbf)](_0x40b783);}}},'close'(_0x4de6f0){const _0x3a760a=_0x2fdfa2,_0x4a1972=_0x4de6f0['data'];_0x25aa19[_0x3a760a(0xb7)]('Client\x20closed:\x20'+_0x4a1972['path']),_0x4a1972['backendWs']&&_0x4a1972[_0x3a760a(0xa9)]['close']();},'drain'(_0xc54b87){}}};}export function startWsProxyServer(_0x2a7d02){const _0x499419=_0x2d84,_0x26fb62={'urECi':function(_0x12ecb3,_0x36028a){return _0x12ecb3 instanceof _0x36028a;},'jQVtx':'Not\x20a\x20WebSocket\x20request','ePMGN':function(_0x388eca,_0x5455e5){return _0x388eca(_0x5455e5);},'OYvIZ':_0x499419(0xc0)},_0x379861=_0x26fb62[_0x499419(0xc1)](createWsProxyHandler,_0x2a7d02),_0x33eb2b=_0x2a7d02['port']??0xfa1,_0x3d0e9f=_0x2a7d02['hostname']??_0x26fb62['OYvIZ'],_0x1386fb=Bun['serve']({'port':_0x33eb2b,'hostname':_0x3d0e9f,'fetch'(_0x8ad01f,_0x471899){const _0x2461e9=_0x499419,_0xacebc7=_0x379861['upgrade'](_0x8ad01f,_0x471899);if(_0xacebc7===!![])return undefined;if(_0x26fb62[_0x2461e9(0xa1)](_0xacebc7,Response))return _0xacebc7;const _0x4b3269={};return _0x4b3269[_0x2461e9(0x8d)]=0x190,new Response(_0x26fb62['jQVtx'],_0x4b3269);},'websocket':_0x379861[_0x499419(0xab)]});return console['log']('[WS\x20Proxy]\x20Started\x20on\x20'+_0x3d0e9f+':'+_0x33eb2b),_0x1386fb;}function _0x36b3(){const _0x3fe74a=['mtq3u3HVqLrJ','yNvMzMvY','C3rHDhvZ','Dg9tDhjPBMC','C2vHCMnOugfYyw1Z','D2fYBG','C2vUza','Cgf0AfjLD3jPDgu','C2v0','CKPAq08','nJC0odyWngrZywjPAq','m3nHzeHNwq','B25dBg9Zzq','oteWnZK2nwTtvg5eqW','CMvQzwn0vw5RBM93BG','CxvLCNLqyxjHBq','v1mGuhjVEhK','ic0+ia','l19UzxH0l3DLyNbHy2STAg1Y','Cgf0Aa','DgfYz2v0CW','se1sigj5CgfZCZOG','Dxjfq2K','rvbpz3u','Dg9Rzw4','wgnMAfy','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','qMfJA2vUzcbJB25Uzwn0zwq6ia','mNfoqKn2zG','DNzbs3C','yMfJA2vUzfDZ','mJmZmZm2C3HsyNrT','D2vIC29JA2v0','mZGYnJyZqLLlCufy','yNL0zuXLBMD0Aa','B25VCgvU','z2v0','B25LCNjVCG','yxjYyxLcDwzMzxi','Cgf0Ahm','nNntzNHTza','AgvHzgvYCW','v2vIu29JA2v0ihbHDgGGBM90igzVDw5K','mtHHBLrzzMm','Aw5MBW','mtjwuMPoyKO','C3rYAw5N','sejVt0y','y29VA2LLtMfTzq','odeXnty4mgTPEfzwAq','t1bftG','DgfYz2v0','ChvZAa','mc4WlJaUma','zvbnr04','mty4mtGZmtHyq3jnz28','mJqZmJC2otnbsKvxC1K','z1jHsw8','vxbNCMfKAw5NoIa','qMfJA2vUzcbLCNjVCJOG','EMXHzKG','zgf0yq'];_0x36b3=function(){return _0x3fe74a;};return _0x36b3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
package/scripts/build.ts
CHANGED
|
@@ -52,30 +52,46 @@ async function buildWithBun() {
|
|
|
52
52
|
async function transpileClientModules() {
|
|
53
53
|
log.info("Transpiling client modules (no bundling)...");
|
|
54
54
|
|
|
55
|
-
const transpileEntries =
|
|
56
|
-
if (transpileEntries.length === 0) {
|
|
55
|
+
const transpileEntries = config.transpileOnly || {};
|
|
56
|
+
if (Object.keys(transpileEntries).length === 0) {
|
|
57
57
|
log.warn("No transpile-only entries found");
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
//
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
61
|
+
// For directories (like ./fe), transpile all TypeScript files
|
|
62
|
+
// For single files, just transpile that file
|
|
63
|
+
for (const [exportPath, entry] of Object.entries(transpileEntries)) {
|
|
64
|
+
const isDirectory = entry.endsWith("/index.ts");
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
if (isDirectory) {
|
|
67
|
+
// Get the directory path (e.g., "./fe/index.ts" -> "./fe")
|
|
68
|
+
const srcDir = entry.replace("/index.ts", "");
|
|
69
|
+
|
|
70
|
+
log.info(` Transpiling directory: ${srcDir}`);
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
// Use swc to transpile - output to dist, swc will preserve directory structure
|
|
73
|
+
await $`bunx @swc/cli ${srcDir} -d ${config.build.outDir} -C jsc.parser.syntax=typescript -C jsc.parser.tsx=true -C jsc.target=es2020 -C module.type=es6 -C jsc.transform.react.runtime=automatic`.quiet().catch((e) => {
|
|
74
|
+
log.warn(`swc warning: ${e}`);
|
|
75
|
+
});
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
log.warn(`Failed to transpile ${entry}: ${result.stderr.toString()}`);
|
|
77
|
+
log.info(` Transpiled: ${exportPath}`);
|
|
77
78
|
} else {
|
|
78
|
-
|
|
79
|
+
// Single file transpilation
|
|
80
|
+
const outFile = entry.replace(/\.ts$/, ".js").replace("./", "");
|
|
81
|
+
const outPath = join(config.build.outDir, outFile);
|
|
82
|
+
|
|
83
|
+
const outDir = outPath.substring(0, outPath.lastIndexOf("/"));
|
|
84
|
+
if (outDir) {
|
|
85
|
+
await mkdir(outDir, { recursive: true });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const result = await $`bun build ${entry} --outfile=${outPath} --target=browser --format=esm --external "*"`.quiet();
|
|
89
|
+
|
|
90
|
+
if (result.exitCode !== 0) {
|
|
91
|
+
log.warn(`Failed to transpile ${entry}: ${result.stderr.toString()}`);
|
|
92
|
+
} else {
|
|
93
|
+
log.info(` Transpiled: ${entry} → ${outFile}`);
|
|
94
|
+
}
|
|
79
95
|
}
|
|
80
96
|
}
|
|
81
97
|
|