@opengis/fcore 0.0.1-beta.2 → 0.0.1-beta.3
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/config.js +1 -1
- package/dist/context.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/fastify.js +1 -1
- package/dist/fcore.js +1 -1
- package/dist/index.js +1 -1
- package/dist/migrations/cli.js +1 -1
- package/dist/migrations/runner.js +1 -1
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/auth/route.js +1 -1
- package/dist/modules/auth/schema.js +1 -1
- package/dist/modules/auth/services/get-current-user.js +1 -1
- package/dist/modules/auth/services/login.js +1 -1
- package/dist/modules/auth/services/logout.js +1 -1
- package/dist/modules/auth/services/verify-two-factor.js +1 -1
- package/dist/modules/auth/services/verifyPassword.js +1 -1
- package/dist/modules/file/index.js +1 -1
- package/dist/modules/file/route.js +1 -1
- package/dist/modules/file/schema.js +1 -1
- package/dist/modules/file/services/get-file.js +1 -1
- package/dist/modules/file/services/resize-file.js +1 -1
- package/dist/modules/file/services/upload-file.js +1 -1
- package/dist/modules/resource/index.js +1 -1
- package/dist/modules/resource/route.js +1 -1
- package/dist/modules/resource/schema.js +1 -1
- package/dist/modules/resource/services/add-note.js +1 -1
- package/dist/modules/resource/services/add-resource-file.js +1 -1
- package/dist/modules/resource/services/create-resource-relation.js +1 -1
- package/dist/modules/resource/services/create-resource.js +1 -1
- package/dist/modules/resource/services/delete-resource-relation.js +1 -1
- package/dist/modules/resource/services/delete-resource.js +1 -1
- package/dist/modules/resource/services/export-resource.js +1 -1
- package/dist/modules/resource/services/get-resource.js +1 -1
- package/dist/modules/resource/services/list-children.js +1 -1
- package/dist/modules/resource/services/list-resource-relation.js +1 -1
- package/dist/modules/resource/services/list-resources.js +1 -1
- package/dist/modules/resource/services/search-resource.js +1 -1
- package/dist/modules/resource/services/suggest-resource.js +1 -1
- package/dist/modules/resource/services/update-resource.js +1 -1
- package/dist/modules/resource/services/upload-resource-file.js +1 -1
- package/dist/modules/system/index.js +1 -1
- package/dist/modules/system/route.js +1 -1
- package/dist/modules/system/schema.js +1 -1
- package/dist/modules/system/services/check-system.js +1 -1
- package/dist/modules/system/services/get-api-list.js +1 -1
- package/dist/modules/system/services/get-audit-log.js +1 -1
- package/dist/modules/system/services/get-dictionary.js +1 -1
- package/dist/modules/system/services/get-system-log.js +1 -1
- package/dist/modules/system/services/get-system-settings.js +1 -1
- package/dist/modules/system/services/list-dictionaries.js +1 -1
- package/dist/modules/system/services/update-system-settings.js +1 -1
- package/dist/modules/utils/get-user-permissions.js +1 -1
- package/dist/modules/utils/require-admin.js +1 -1
- package/dist/modules/utils/safe-user.js +1 -1
- package/dist/modules/utils/unsupported.js +1 -1
- package/dist/plugins/audit/audit.js +1 -1
- package/dist/plugins/audit/index.js +1 -1
- package/dist/plugins/audit/services/write-audit.js +1 -1
- package/dist/plugins/auth/index.js +1 -1
- package/dist/plugins/dictionary.js +1 -1
- package/dist/plugins/file.js +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/logger/index.js +1 -1
- package/dist/plugins/logger/transport.js +1 -1
- package/dist/plugins/pg.js +1 -1
- package/dist/plugins/redis.js +1 -1
- package/dist/plugins/resource/index.js +1 -1
- package/dist/plugins/resource/resource.js +1 -1
- package/dist/plugins/resource/resource.registry.js +1 -1
- package/dist/plugins/resource/resource.types.d.ts +8 -0
- package/dist/plugins/resource/resource.types.d.ts.map +1 -1
- package/dist/plugins/resource/services/create.d.ts.map +1 -1
- package/dist/plugins/resource/services/create.js +1 -1
- package/dist/plugins/resource/services/delete.js +1 -1
- package/dist/plugins/resource/services/find-one.js +1 -1
- package/dist/plugins/resource/services/find.d.ts.map +1 -1
- package/dist/plugins/resource/services/find.js +1 -1
- package/dist/plugins/resource/services/update.d.ts.map +1 -1
- package/dist/plugins/resource/services/update.js +1 -1
- package/dist/plugins/resource/utils/fields.d.ts +8 -1
- package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
- package/dist/plugins/resource/utils/fields.js +1 -1
- package/dist/plugins/resource/utils/filters.js +1 -1
- package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
- package/dist/plugins/resource/utils/permissions.js +1 -1
- package/dist/plugins/resource/utils/sort.js +1 -1
- package/dist/plugins/resource/utils/sql.js +1 -1
- package/dist/shared/getIP.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x42c5(_0x4a622c,_0x8b11cc){_0x4a622c=_0x4a622c-0x133;const _0x578e7b=_0x578e();let _0x42c5e9=_0x578e7b[_0x4a622c];return _0x42c5e9;}(function(_0x392b08,_0x446115){const _0x4ecc34=_0x42c5,_0x47f538=_0x392b08();while(!![]){try{const _0x44aed2=-parseInt(_0x4ecc34(0x151))/0x1+parseInt(_0x4ecc34(0x150))/0x2+-parseInt(_0x4ecc34(0x145))/0x3*(-parseInt(_0x4ecc34(0x142))/0x4)+-parseInt(_0x4ecc34(0x144))/0x5+-parseInt(_0x4ecc34(0x13e))/0x6*(parseInt(_0x4ecc34(0x13a))/0x7)+-parseInt(_0x4ecc34(0x138))/0x8+parseInt(_0x4ecc34(0x143))/0x9;if(_0x44aed2===_0x446115)break;else _0x47f538['push'](_0x47f538['shift']());}catch(_0x4f0f22){_0x47f538['push'](_0x47f538['shift']());}}}(_0x578e,0x8ea77));import{ForbiddenError}from'../../../errors.js';import{getContext}from'../../../index.js';function _0x578e(){const _0x5b5e9c=['268UZWgDm','3826404ZHwEdU','43075aWnPCO','20982aQccoZ','access','includes','hbzrf','admin','LMrOy','name','ADlez','\x20is\x20disabled','MtViW','permissions','2099150MTuOuR','444700ojVPrR','permission','type','Admin\x20access\x20required','Missing\x20permission:\x20','HIZxY','2417096QHxBvw','debug','91847knqxdh','lNAZX','config','SDjel','276dgMQBE','public','Authentication\x20required','operations'];_0x578e=function(){return _0x5b5e9c;};return _0x578e();}export function assertOperation(_0x47ffec,_0xe486a7,_0x3ec7bb){const _0xa0c75e=_0x42c5,_0x1a763d={'HIZxY':function(_0x4022d1){return _0x4022d1();},'MtViW':function(_0x113eab,_0x184148){return _0x113eab!==_0x184148;},'SDjel':function(_0x1edc67,_0x3cdfc3){return _0x1edc67===_0x3cdfc3;},'LMrOy':_0xa0c75e(0x140),'lNAZX':_0xa0c75e(0x149),'hbzrf':function(_0x558a95,_0x4ee2af){return _0x558a95!==_0x4ee2af;},'ADlez':_0xa0c75e(0x135)},_0x297444=_0x1a763d[_0xa0c75e(0x137)](getContext)[_0xa0c75e(0x13c)];if(_0x297444[_0xa0c75e(0x139)])return;if(!_0x47ffec[_0xa0c75e(0x141)][_0xa0c75e(0x147)](_0xe486a7))throw new ForbiddenError(_0x47ffec[_0xa0c75e(0x14b)]+'.'+_0xe486a7+_0xa0c75e(0x14d));if(_0x1a763d[_0xa0c75e(0x14e)](_0x47ffec[_0xa0c75e(0x146)],_0xa0c75e(0x13f))&&_0x1a763d[_0xa0c75e(0x13d)](_0x3ec7bb,undefined))throw new ForbiddenError(_0x1a763d[_0xa0c75e(0x14a)]);if(_0x47ffec[_0xa0c75e(0x146)]===_0x1a763d[_0xa0c75e(0x13b)]&&_0x1a763d[_0xa0c75e(0x148)](_0x3ec7bb?.[_0xa0c75e(0x134)],_0x1a763d[_0xa0c75e(0x13b)]))throw new ForbiddenError(_0x1a763d[_0xa0c75e(0x14c)]);if(_0x1a763d[_0xa0c75e(0x14e)](_0x3ec7bb?.[_0xa0c75e(0x134)],_0x1a763d[_0xa0c75e(0x13b)])){const _0x28e466=(_0x47ffec[_0xa0c75e(0x133)]??_0x47ffec[_0xa0c75e(0x14b)])+':'+_0xe486a7;if(!_0x3ec7bb?.[_0xa0c75e(0x14f)]?.[_0xa0c75e(0x147)](_0x28e466))throw new ForbiddenError(_0xa0c75e(0x136)+_0x28e466);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xaf9c61,_0x6c805e){const _0x2ea681=_0x1bab,_0x1404bb=_0xaf9c61();while(!![]){try{const _0x53c709=-parseInt(_0x2ea681(0x181))/0x1+-parseInt(_0x2ea681(0x17b))/0x2+parseInt(_0x2ea681(0x17e))/0x3+parseInt(_0x2ea681(0x16e))/0x4*(parseInt(_0x2ea681(0x16c))/0x5)+-parseInt(_0x2ea681(0x170))/0x6+parseInt(_0x2ea681(0x180))/0x7+-parseInt(_0x2ea681(0x17d))/0x8*(-parseInt(_0x2ea681(0x171))/0x9);if(_0x53c709===_0x6c805e)break;else _0x1404bb['push'](_0x1404bb['shift']());}catch(_0x4b7581){_0x1404bb['push'](_0x1404bb['shift']());}}}(_0x4d56,0x903ed));function _0x4d56(){const _0x341853=['725kfDkpH','slice','28900xCdTMO','SBLSx','1596090EEJemX','9WbTuSX','length','gQXJm','HLZsp','vCIzC','fields','\x20ORDER\x20BY\x20','sortable','Field\x20is\x20not\x20sortable:\x20','map','1027254QUXmrU','startsWith','5504584PMHIsD','2055456elAPbQ','join','560350MqruDh','1130429dtDcJE','sort','DESC','ASC'];_0x4d56=function(){return _0x341853;};return _0x4d56();}import{fieldColumn,qi}from'./sql.js';import{ValidationError}from'../../../errors.js';function _0x1bab(_0x25df85,_0x6eb39b){_0x25df85=_0x25df85-0x16b;const _0x4d56ed=_0x4d56();let _0x1babd0=_0x4d56ed[_0x25df85];return _0x1babd0;}export function buildSort(_0x358d05,_0x1a33e5){const _0x37c9f2=_0x1bab,_0x9f2ebf={'gQXJm':function(_0x3c6950,_0x199438){return _0x3c6950!==_0x199438;},'SBLSx':function(_0x2fcd33,_0x1d2c1c){return _0x2fcd33!==_0x1d2c1c;},'vCIzC':function(_0x21e272,_0x4220f9,_0x277406){return _0x21e272(_0x4220f9,_0x277406);},'HLZsp':_0x37c9f2(0x16b)};if(!_0x1a33e5?.[_0x37c9f2(0x172)])return'';const _0x31a236=_0x1a33e5[_0x37c9f2(0x17a)](_0x31e488=>{const _0x406b8b=_0x37c9f2,_0x3016ab=_0x31e488[_0x406b8b(0x17c)]('-'),_0x6b0f5c=_0x3016ab?_0x31e488[_0x406b8b(0x16d)](0x1):_0x31e488,_0x348d11=_0x358d05[_0x406b8b(0x176)][_0x6b0f5c];if(!_0x348d11||_0x9f2ebf[_0x406b8b(0x173)](_0x348d11[_0x406b8b(0x182)],!![])&&_0x9f2ebf[_0x406b8b(0x16f)](_0x348d11[_0x406b8b(0x178)],!![]))throw new ValidationError(_0x406b8b(0x179)+_0x6b0f5c);return qi(_0x9f2ebf[_0x406b8b(0x175)](fieldColumn,_0x358d05,_0x6b0f5c))+'\x20'+(_0x3016ab?_0x406b8b(0x183):_0x9f2ebf[_0x406b8b(0x174)]);});return _0x37c9f2(0x177)+_0x31a236[_0x37c9f2(0x17f)](',\x20');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x143375=_0x479b;(function(_0x18e2bd,_0x472b69){const _0x1012ee=_0x479b,_0x147ac8=_0x18e2bd();while(!![]){try{const _0x310792=-parseInt(_0x1012ee(0x10d))/0x1*(parseInt(_0x1012ee(0x117))/0x2)+parseInt(_0x1012ee(0x11d))/0x3*(parseInt(_0x1012ee(0x124))/0x4)+-parseInt(_0x1012ee(0x109))/0x5*(parseInt(_0x1012ee(0x115))/0x6)+parseInt(_0x1012ee(0x116))/0x7*(-parseInt(_0x1012ee(0x123))/0x8)+parseInt(_0x1012ee(0x10a))/0x9+parseInt(_0x1012ee(0x100))/0xa*(parseInt(_0x1012ee(0x112))/0xb)+parseInt(_0x1012ee(0x102))/0xc;if(_0x310792===_0x472b69)break;else _0x147ac8['push'](_0x147ac8['shift']());}catch(_0x370374){_0x147ac8['push'](_0x147ac8['shift']());}}}(_0x3023,0x619b8));import{ValidationError}from'../../../errors.js';export const quoteIdentifier=_0x240bb3=>'\x22'+_0x240bb3[_0x143375(0x110)](/"/g,'\x22\x22')+'\x22';function _0x3023(){const _0x465192=['push','WFKaj','952DDwkmQ','4TzMxgG','NsUcr','iSAYK','unshift','250EZspFF','pdMdQ','10868244knzJMd','key','GadoL','dxXda','read','readable','WhNBw','2956365lTqCNy','6530238HWzEiM','map','filter','298731UCUZbd','entries','join','replace','Unknown\x20field:\x20','96140xmGhRi','Field\x20is\x20not\x20writable:\x20','jRYLX','6vhfXCs','23331GpgRmO','4qjUvxO','split','fields','writable','column','aeQxL','406179ehynEx','\x20AS\x20','write','DfPKC'];_0x3023=function(){return _0x465192;};return _0x3023();}export const quoteTable=_0x286f94=>_0x286f94[_0x143375(0x118)]('.')[_0x143375(0x10b)](quoteIdentifier)[_0x143375(0x10f)]('.');function _0x479b(_0x3dd4d9,_0x3b353d){_0x3dd4d9=_0x3dd4d9-0x100;const _0x3023ba=_0x3023();let _0x479bc5=_0x3023ba[_0x3dd4d9];return _0x479bc5;}export function fieldColumn(_0xd70f42,_0x1e3503){const _0x15ce32=_0x143375,_0x323f1d={'GadoL':function(_0x31c690,_0x4f21b1){return _0x31c690(_0x4f21b1);},'dxXda':function(_0x2523c9,_0x4ebd71){return _0x2523c9===_0x4ebd71;},'aeQxL':function(_0x1b5429,_0x305c36){return _0x1b5429!==_0x305c36;},'WFKaj':_0x15ce32(0x114),'NsUcr':_0x15ce32(0x108)};if(_0x323f1d[_0x15ce32(0x105)](_0x1e3503,_0xd70f42[_0x15ce32(0x103)]))return _0xd70f42[_0x15ce32(0x103)];const _0x1b8f5a=_0xd70f42[_0x15ce32(0x119)][_0x1e3503];if(!_0x1b8f5a){if(_0x323f1d[_0x15ce32(0x11c)](_0x323f1d[_0x15ce32(0x122)],_0x323f1d[_0x15ce32(0x125)]))throw new ValidationError(_0x15ce32(0x111)+_0x1e3503);else{const _0x3a5e55=_0x17b860[_0x15ce32(0x10e)](_0x2a127e[_0x15ce32(0x119)])[_0x15ce32(0x10c)](([,_0x51c9de])=>_0x51c9de[_0x15ce32(0x106)]!==![]&&_0x51c9de[_0x15ce32(0x107)]!==![])[_0x15ce32(0x10b)](([_0x486ca6,_0x44200b])=>_0x358ee3(_0x44200b[_0x15ce32(0x11b)]??_0x486ca6)+_0x15ce32(0x11e)+_0x5dcb4f(_0x486ca6));return!_0x5744ca[_0x15ce32(0x119)][_0x31ada3[_0x15ce32(0x103)]]&&_0x3a5e55[_0x15ce32(0x127)](_0x323f1d[_0x15ce32(0x104)](_0x3e7e61,_0x3509bf[_0x15ce32(0x103)])),_0x3a5e55;}}return _0x1b8f5a[_0x15ce32(0x11b)]??_0x1e3503;}export function readableFields(_0x2ded07){const _0x4a1ae0=_0x143375,_0x2bad85={'pdMdQ':function(_0x583fae,_0x4044c2){return _0x583fae(_0x4044c2);}},_0x7bfe07=Object[_0x4a1ae0(0x10e)](_0x2ded07[_0x4a1ae0(0x119)])[_0x4a1ae0(0x10c)](([,_0x33639d])=>_0x33639d[_0x4a1ae0(0x106)]!==![]&&_0x33639d[_0x4a1ae0(0x107)]!==![])[_0x4a1ae0(0x10b)](([_0x50bb84,_0x4abe7f])=>quoteIdentifier(_0x4abe7f[_0x4a1ae0(0x11b)]??_0x50bb84)+_0x4a1ae0(0x11e)+quoteIdentifier(_0x50bb84));return!_0x2ded07[_0x4a1ae0(0x119)][_0x2ded07[_0x4a1ae0(0x103)]]&&_0x7bfe07[_0x4a1ae0(0x127)](_0x2bad85[_0x4a1ae0(0x101)](quoteIdentifier,_0x2ded07[_0x4a1ae0(0x103)])),_0x7bfe07;}export function writableData(_0x249f8a,_0x51e682){const _0xcf856e=_0x143375,_0x1bd721={};_0x1bd721[_0xcf856e(0x120)]=function(_0x2345aa,_0x41c792){return _0x2345aa===_0x41c792;},_0x1bd721[_0xcf856e(0x126)]=function(_0x5a1a61,_0x4dcbe0){return _0x5a1a61===_0x4dcbe0;};const _0x676a04=_0x1bd721,_0x44087b=[];for(const [_0xcd42,_0x29af47]of Object[_0xcf856e(0x10e)](_0x51e682)){const _0x14b5a5=_0x249f8a[_0xcf856e(0x119)][_0xcd42];if(!_0x14b5a5||_0x676a04[_0xcf856e(0x120)](_0x14b5a5[_0xcf856e(0x11f)],![])||_0x676a04[_0xcf856e(0x126)](_0x14b5a5[_0xcf856e(0x11a)],![]))throw new ValidationError(_0xcf856e(0x113)+_0xcd42);_0x44087b[_0xcf856e(0x121)]([_0x14b5a5[_0xcf856e(0x11b)]??_0xcd42,_0x29af47]);}return _0x44087b;}export const qi=quoteIdentifier;export const qt=quoteTable;
|
package/dist/shared/getIP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x534946=_0x53ee;(function(_0x4219e5,_0x38b0f0){const _0x3f3f92=_0x53ee,_0x2726d7=_0x4219e5();while(!![]){try{const _0x59c324=parseInt(_0x3f3f92(0x75))/0x1*(-parseInt(_0x3f3f92(0x80))/0x2)+-parseInt(_0x3f3f92(0x7c))/0x3*(parseInt(_0x3f3f92(0x79))/0x4)+-parseInt(_0x3f3f92(0x7e))/0x5+parseInt(_0x3f3f92(0x71))/0x6+-parseInt(_0x3f3f92(0x7a))/0x7+-parseInt(_0x3f3f92(0x74))/0x8*(parseInt(_0x3f3f92(0x7d))/0x9)+parseInt(_0x3f3f92(0x7b))/0xa*(parseInt(_0x3f3f92(0x77))/0xb);if(_0x59c324===_0x38b0f0)break;else _0x2726d7['push'](_0x2726d7['shift']());}catch(_0x1c182c){_0x2726d7['push'](_0x2726d7['shift']());}}}(_0x5e2d,0x1c26d));const getIP=_0x48df65=>(_0x48df65[_0x534946(0x72)]?.[_0x534946(0x82)]||_0x48df65[_0x534946(0x72)]?.[_0x534946(0x76)]||_0x48df65['ip']||_0x48df65[_0x534946(0x73)]?.[_0x534946(0x78)]||'')[_0x534946(0x7f)](':')[_0x534946(0x81)]();export default getIP;function _0x53ee(_0x11fcc2,_0x2e9efa){_0x11fcc2=_0x11fcc2-0x71;const _0x5e2d9a=_0x5e2d();let _0x53eef7=_0x5e2d9a[_0x11fcc2];return _0x53eef7;}function _0x5e2d(){const _0x10143e=['x-real-ip','1248018hRMufi','headers','connection','692368FPkyFn','3781HOorjX','x-forwarded-for','22dCwDvn','remoteAddress','8CVutEn','1058743wpnPfu','2138440txlGek','12363eGQSTW','9IyxCjE','672240Xgdnlx','split','74AnqVab','pop'];_0x5e2d=function(){return _0x10143e;};return _0x5e2d();}
|