@kedem/okdb 2.6.4 → 2.7.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.
@@ -1 +1 @@
1
- 'use strict';const _0x2d2eb1=_0x362d;(function(_0x408df2,_0x1b0a38){const _0x166dab=_0x362d,_0x1617d7=_0x408df2();while(!![]){try{const _0x1f2603=-parseInt(_0x166dab(0x91))/0x1*(parseInt(_0x166dab(0xab))/0x2)+parseInt(_0x166dab(0xb3))/0x3+-parseInt(_0x166dab(0x96))/0x4*(-parseInt(_0x166dab(0x93))/0x5)+parseInt(_0x166dab(0x8d))/0x6*(-parseInt(_0x166dab(0xc5))/0x7)+-parseInt(_0x166dab(0xe0))/0x8*(-parseInt(_0x166dab(0xdd))/0x9)+-parseInt(_0x166dab(0x8e))/0xa+-parseInt(_0x166dab(0xa0))/0xb*(-parseInt(_0x166dab(0xce))/0xc);if(_0x1f2603===_0x1b0a38)break;else _0x1617d7['push'](_0x1617d7['shift']());}catch(_0x1d9066){_0x1617d7['push'](_0x1617d7['shift']());}}}(_0x57a4,0x3b896));var require$$0=require(_0x2d2eb1(0x9f)),require$$1=require('./okdb');function getDefaultExportFromCjs(_0x2062e8){const _0x2268de=_0x2d2eb1;return _0x2062e8&&_0x2062e8[_0x2268de(0xc1)]&&Object['prototype'][_0x2268de(0xb9)]['call'](_0x2062e8,_0x2268de(0xd7))?_0x2062e8[_0x2268de(0xd7)]:_0x2062e8;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1464d4=_0x2d2eb1;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x5e18cf={'PUT':_0x1464d4(0xa1),'REMOVE':_0x1464d4(0xdf),'INDEX_DROP':_0x1464d4(0xbe),'INDEX_REGISTER':_0x1464d4(0xa4),'INDEX_RESET':_0x1464d4(0xaf),'TYPE_REGISTER':_0x1464d4(0x9e),'TYPE_DROP':_0x1464d4(0x9d),'FTS_REGISTER':_0x1464d4(0xca),'FTS_DROP':_0x1464d4(0xe5),'FTS_RESET':_0x1464d4(0xaa),'SCHEMA_SET':_0x1464d4(0x94),'SCHEMA_DROP':_0x1464d4(0xd6),'TTL_SET':_0x1464d4(0xa5),'TTL_CLEAR':_0x1464d4(0xb6)},_0x368981={'SYSTEM_READY':_0x1464d4(0xd0),'FIELD_RESOLVER_REGISTERED':_0x1464d4(0xb8),'SYSTEM_STOPPED':_0x1464d4(0xcc),'SYSTEM_CLOCK_CHANGE':_0x1464d4(0xd4),'SYSTEM_POKE':_0x1464d4(0xc8),'SYSTEM_DRAIN':_0x1464d4(0xbb),'SYSTEM_TYPE_DROP':_0x1464d4(0x98),'SYSTEM_PROC':_0x1464d4(0x9a),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x1464d4(0xd2),'ITEM_UPDATE':_0x1464d4(0xd1),'ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x1464d4(0xd5),'INDEX_RESET':'index:reset','INDEX_READY':_0x1464d4(0xe3),'INDEX_PROGRESS':_0x1464d4(0x8b),'VIEW_PROGRESS':_0x1464d4(0x9b),'INDEX_DROP':'index:drop','INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x1464d4(0xe6),'FTS_DROP':_0x1464d4(0x90),'FTS_RESET':_0x1464d4(0xbd),'SCHEMA_SET':_0x1464d4(0xa7),'SCHEMA_DROP':_0x1464d4(0xbf),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x1464d4(0x9c),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x1464d4(0xe4),'SYNC_APPLY':'sync:apply','TXN_START':_0x1464d4(0xb5),'TXN_END':_0x1464d4(0xe9),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x1464d4(0xd3),'TYPE_DROP':_0x1464d4(0xc6),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x1464d4(0xcb),'SYSTEM_ENV_RELEASE':_0x1464d4(0xac),'TTL_EXPIRED':_0x1464d4(0xb1),'TTL_SET':_0x1464d4(0xdb),'TTL_CLEAR':_0x1464d4(0x97),'LICENSE_INVALID':_0x1464d4(0xd9),'LICENSE_ADDED':_0x1464d4(0x89),'LICENSE_ACTIVATED':_0x1464d4(0xad),'LICENSE_REMOVED':_0x1464d4(0xde)},_0x2af33f={'CREATING':_0x1464d4(0xe2),'RESETTING':_0x1464d4(0x95),'READY':_0x1464d4(0xc9),'DROPPING':_0x1464d4(0xa8),'WAITING':_0x1464d4(0xe7),'ERROR':_0x1464d4(0x8a)},_0x35572a={'CREATED':_0x1464d4(0xbc),'STARTING':'starting','STARTED':_0x1464d4(0xba),'STOPPING':_0x1464d4(0xa2),'STOPPED':_0x1464d4(0xd8)},_0x1c6310={'CREATING':_0x1464d4(0xe2),'READY':_0x1464d4(0xc9),'HALTED':_0x1464d4(0xc3),'STOPPED':'stopped','RESETTING':_0x1464d4(0x95)},_0x4437c5=Object[_0x1464d4(0x8c)]({'POKE':_0x1464d4(0x99),'DRAIN':_0x1464d4(0xc2),'TYPE_DROP':_0x1464d4(0x8f),'PROC':_0x1464d4(0xb0),'ENV_RELEASE':'bus:env_release'});return okdbEnums={'BUS_EVENTS':_0x4437c5,'CHANGE_ACTIONS':_0x5e18cf,'EVENTS':_0x368981,'INDEX_STATE':_0x2af33f,'OKDB_STATE':_0x35572a,'VIEW_STATE':_0x1c6310},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function requireOkdbViewsBootstrapWorker(){const _0x521ae4=_0x2d2eb1;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x2e72e0,workerData:_0x2c41ff}=require$$0,_0x4787e1=require$$1,{EVENTS:_0x34897a}=requireOkdbEnums();let _0x528b42=![];_0x2e72e0['on'](_0x521ae4(0xb4),_0xeeae54=>{if(_0xeeae54?.['type']==='cancel')_0x528b42=!![];});let _0x29252a=null;async function _0x4eea5a(){const _0x3c005a=_0x521ae4,_0x34cd01=_0x29252a;_0x29252a=null;if(!_0x34cd01)return;try{await Promise[_0x3c005a(0xa6)]([_0x34cd01['close'](),new Promise(_0x137502=>setTimeout(_0x137502,0x1388)['unref']())]);}catch{}}async function _0x7421c4(){const _0x3c2ee9=_0x521ae4,{rootPath:_0x306d80,envName:_0x2cbd90,viewName:_0x264422,definition:_0x62715,startClock:_0x401900}=_0x2c41ff;_0x29252a=new _0x4787e1(_0x306d80,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]}),await _0x29252a[_0x3c2ee9(0xb7)]();if(_0x528b42)return _0x3c2ee9(0xe8);const _0x494468=_0x29252a[_0x3c2ee9(0xcf)](_0x2cbd90);return _0x494468[_0x3c2ee9(0xa3)][_0x3c2ee9(0xb2)]=()=>_0x528b42,_0x494468['events']['on'](_0x34897a['VIEW_PROGRESS'],_0x48b35e=>{const _0x17349c=_0x3c2ee9;if(_0x48b35e?.[_0x17349c(0xae)]!==_0x264422)return;try{_0x2e72e0[_0x17349c(0xcd)]({'type':'progress','event':_0x48b35e});}catch{}}),await _0x494468[_0x3c2ee9(0xa3)][_0x3c2ee9(0x92)](_0x62715),await _0x494468[_0x3c2ee9(0xa3)][_0x3c2ee9(0xe1)](_0x264422,_0x62715),await _0x494468[_0x3c2ee9(0xa3)][_0x3c2ee9(0xa9)](_0x264422,_0x62715,{'startClock':_0x401900}),_0x3c2ee9(0xea);}return _0x7421c4()[_0x521ae4(0xc7)](async _0x5dc4f4=>{const _0x1edf23=_0x521ae4;await _0x4eea5a();try{_0x2e72e0[_0x1edf23(0xcd)]({'type':_0x5dc4f4});}catch{}process['exit'](0x0);},async _0x5a0a4b=>{const _0x49a5b8=_0x521ae4;await _0x4eea5a();const _0x180cf3=_0x5a0a4b?.[_0x49a5b8(0xda)]==='VIEW_BOOTSTRAP_CANCELLED';try{_0x2e72e0[_0x49a5b8(0xcd)](_0x180cf3?{'type':_0x49a5b8(0xe8)}:{'type':_0x49a5b8(0x8a),'error':_0x5a0a4b?.['message']??String(_0x5a0a4b),'stack':_0x5a0a4b?.[_0x49a5b8(0xc4)]});}catch{}process[_0x49a5b8(0xdc)](_0x180cf3?0x0:0x1);}),okdbViewsBootstrapWorker$1;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);function _0x362d(_0x52fa3b,_0x206936){_0x52fa3b=_0x52fa3b-0x89;const _0x57a468=_0x57a4();let _0x362d98=_0x57a468[_0x52fa3b];return _0x362d98;}function _0x57a4(){const _0x2ed1df=['name','resetIndex','bus:proc','ttl:expired','_bootstrapCancelRequested','280749TWqYzt','message','txn:start','clearTtl','open','field:resolver_registered','hasOwnProperty','started','system:drain','created','fts:reset','dropIndex','schema:drop','exports','__esModule','bus:drain','halted','stack','4872etishN','type:drop','then','system:poke','ready','registerFts','env:removed','system:stopped','postMessage','265332LTAada','env','system:ready','item:update','item:create','type:registered','system:clock_change','item:pending','dropSchema','default','stopped','license:invalid','code','ttl:set','exit','52740PUIbaa','license:removed','remove','344ccVlqF','_activateViewStorage','creating','index:ready','ref:violation_resolved','dropFts','fts:registered','waiting','cancelled','txn:end','done','license:added','error','index:progress','freeze','2538vkQXkf','932740IubOqh','bus:type_drop','fts:drop','26335bHPQnk','_prepareViewDict','603355tQqEpw','setSchema','resetting','12oeBkvC','ttl:clear','system:type_drop','bus:poke','system:proc','view:progress','unique:violation_resolved','dropType','registerType','worker_threads','198WsxWFW','put','stopping','views','registerIndex','setTtl','race','schema:set','dropping','_runBootstrapScanPhases','resetFts','36JSyDMu','system:env_release','license:activated'];_0x57a4=function(){return _0x2ed1df;};return _0x57a4();}module[_0x2d2eb1(0xc0)]=okdbViewsBootstrapWorker;
1
+ 'use strict';const _0x545c77=_0x4d52;(function(_0x49b7a8,_0x532c08){const _0x5902fb=_0x4d52,_0x493ad9=_0x49b7a8();while(!![]){try{const _0x4901cc=-parseInt(_0x5902fb(0x1f9))/0x1+-parseInt(_0x5902fb(0x200))/0x2*(parseInt(_0x5902fb(0x23d))/0x3)+-parseInt(_0x5902fb(0x1fe))/0x4+parseInt(_0x5902fb(0x246))/0x5*(-parseInt(_0x5902fb(0x229))/0x6)+-parseInt(_0x5902fb(0x232))/0x7+-parseInt(_0x5902fb(0x1fb))/0x8+parseInt(_0x5902fb(0x21d))/0x9*(parseInt(_0x5902fb(0x216))/0xa);if(_0x4901cc===_0x532c08)break;else _0x493ad9['push'](_0x493ad9['shift']());}catch(_0x376621){_0x493ad9['push'](_0x493ad9['shift']());}}}(_0x3b04,0x278d5));function _0x3b04(){const _0x146ad3=['system:poke','starting','message','index:reset','registerType','open','unique:violation_resolved','bus:drain','12EctdIw','system:ready','done','env:opened','stopped','ttl:set','type','system:drain','license:activated','1975246wKANXC','unref','system:env_release','worker_threads','started','then','_runBootstrapScanPhases','dropIndex','__esModule','freeze','prototype','457854GLrFyj','type:drop','halted','./okdb','_prepareViewDict','ready','ttl:expired','item:remove','fts:reset','274305aDTIhW','dropping','item:update','system:clock_change','txn:rollback','stack','item:create','name','index:drop','error','schema:drop','registerIndex','type:registered','view:progress','env:removed','exports','ref:violation_resolved','index:registered','call','field:resolver_registered','237005AicuxX','bus:proc','173544VgJWur','put','setSchema','237824RWZtLw','ttl:clear','4aWHKEY','ref:violation','unique:violation','resetFts','exit','system:type_drop','registerFts','resetting','clearTtl','progress','views','bus:type_drop','dropFts','system:proc','sync:apply','stopping','events','bus:env_release','schema:set','txn:start','bus:poke','txn:end','350UoMcLO','cancelled','postMessage','default','_activateViewStorage','index:ready','created','302733JfHGTu','system:stopped','fts:registered','hasOwnProperty'];_0x3b04=function(){return _0x146ad3;};return _0x3b04();}var require$$0=require(_0x545c77(0x235)),require$$1=require(_0x545c77(0x240));function getDefaultExportFromCjs(_0x58965a){const _0x13920c=_0x545c77;return _0x58965a&&_0x58965a[_0x13920c(0x23a)]&&Object[_0x13920c(0x23c)][_0x13920c(0x220)][_0x13920c(0x1f7)](_0x58965a,_0x13920c(0x219))?_0x58965a['default']:_0x58965a;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function _0x4d52(_0x2ec19b,_0x4e7fbc){_0x2ec19b=_0x2ec19b-0x1ef;const _0x3b04cb=_0x3b04();let _0x4d522e=_0x3b04cb[_0x2ec19b];return _0x4d522e;}function requireOkdbEnums(){const _0x1e0bbf=_0x545c77;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x4155c1={'PUT':_0x1e0bbf(0x1fc),'REMOVE':'remove','INDEX_DROP':_0x1e0bbf(0x239),'INDEX_REGISTER':_0x1e0bbf(0x1f0),'INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x1e0bbf(0x225),'TYPE_DROP':'dropType','FTS_REGISTER':_0x1e0bbf(0x206),'FTS_DROP':_0x1e0bbf(0x20c),'FTS_RESET':_0x1e0bbf(0x203),'SCHEMA_SET':_0x1e0bbf(0x1fd),'SCHEMA_DROP':'dropSchema','TTL_SET':'setTtl','TTL_CLEAR':_0x1e0bbf(0x208)},_0xcdcfe8={'SYSTEM_READY':_0x1e0bbf(0x22a),'FIELD_RESOLVER_REGISTERED':_0x1e0bbf(0x1f8),'SYSTEM_STOPPED':_0x1e0bbf(0x21e),'SYSTEM_CLOCK_CHANGE':_0x1e0bbf(0x249),'SYSTEM_POKE':_0x1e0bbf(0x221),'SYSTEM_DRAIN':_0x1e0bbf(0x230),'SYSTEM_TYPE_DROP':_0x1e0bbf(0x205),'SYSTEM_PROC':_0x1e0bbf(0x20d),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x1e0bbf(0x24c),'ITEM_UPDATE':_0x1e0bbf(0x248),'ITEM_REMOVE':_0x1e0bbf(0x244),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x1e0bbf(0x224),'INDEX_READY':_0x1e0bbf(0x21b),'INDEX_PROGRESS':'index:progress','VIEW_PROGRESS':_0x1e0bbf(0x1f2),'INDEX_DROP':_0x1e0bbf(0x24e),'INDEX_REGISTERED':_0x1e0bbf(0x1f6),'FTS_REGISTERED':_0x1e0bbf(0x21f),'FTS_DROP':'fts:drop','FTS_RESET':_0x1e0bbf(0x245),'SCHEMA_SET':_0x1e0bbf(0x212),'SCHEMA_DROP':_0x1e0bbf(0x1ef),'UNIQUE_VIOLATION':_0x1e0bbf(0x202),'UNIQUE_VIOLATION_RESOLVED':_0x1e0bbf(0x227),'REF_VIOLATION':_0x1e0bbf(0x201),'REF_VIOLATION_RESOLVED':_0x1e0bbf(0x1f5),'SYNC_APPLY':_0x1e0bbf(0x20e),'TXN_START':_0x1e0bbf(0x213),'TXN_END':_0x1e0bbf(0x215),'TXN_ROLLBACK':_0x1e0bbf(0x24a),'TYPE_REGISTERED':_0x1e0bbf(0x1f1),'TYPE_DROP':_0x1e0bbf(0x23e),'ENV_OPENED':_0x1e0bbf(0x22c),'ENV_REMOVED':_0x1e0bbf(0x1f3),'SYSTEM_ENV_RELEASE':_0x1e0bbf(0x234),'TTL_EXPIRED':_0x1e0bbf(0x243),'TTL_SET':_0x1e0bbf(0x22e),'TTL_CLEAR':_0x1e0bbf(0x1ff),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x1e0bbf(0x231),'LICENSE_REMOVED':'license:removed'},_0x58c5d6={'CREATING':'creating','RESETTING':_0x1e0bbf(0x207),'READY':_0x1e0bbf(0x242),'DROPPING':_0x1e0bbf(0x247),'WAITING':'waiting','ERROR':_0x1e0bbf(0x24f)},_0x5314c6={'CREATED':_0x1e0bbf(0x21c),'STARTING':_0x1e0bbf(0x222),'STARTED':_0x1e0bbf(0x236),'STOPPING':_0x1e0bbf(0x20f),'STOPPED':_0x1e0bbf(0x22d)},_0x582496={'CREATING':'creating','READY':_0x1e0bbf(0x242),'HALTED':_0x1e0bbf(0x23f),'STOPPED':'stopped','RESETTING':_0x1e0bbf(0x207)},_0x12d3d2=Object[_0x1e0bbf(0x23b)]({'POKE':_0x1e0bbf(0x214),'DRAIN':_0x1e0bbf(0x228),'TYPE_DROP':_0x1e0bbf(0x20b),'PROC':_0x1e0bbf(0x1fa),'ENV_RELEASE':_0x1e0bbf(0x211)});return okdbEnums={'BUS_EVENTS':_0x12d3d2,'CHANGE_ACTIONS':_0x4155c1,'EVENTS':_0xcdcfe8,'INDEX_STATE':_0x58c5d6,'OKDB_STATE':_0x5314c6,'VIEW_STATE':_0x582496},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function requireOkdbViewsBootstrapWorker(){const _0x103010=_0x545c77;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0xd947e3,workerData:_0x274c57}=require$$0,_0x3e5674=require$$1,{EVENTS:_0x916717}=requireOkdbEnums();let _0x2efc93=![];_0xd947e3['on'](_0x103010(0x223),_0x143972=>{const _0x50f17e=_0x103010;if(_0x143972?.[_0x50f17e(0x22f)]==='cancel')_0x2efc93=!![];});let _0x259112=null;async function _0x56757d(){const _0x4be86c=_0x103010,_0x4fbbaa=_0x259112;_0x259112=null;if(!_0x4fbbaa)return;try{await Promise['race']([_0x4fbbaa['close'](),new Promise(_0x57725c=>setTimeout(_0x57725c,0x1388)[_0x4be86c(0x233)]())]);}catch{}}async function _0x5d2848(){const _0x2382ff=_0x103010,{rootPath:_0xaac9eb,envName:_0xb22241,viewName:_0xfe1f8,definition:_0x5e854d,startClock:_0x3d43f2}=_0x274c57;_0x259112=new _0x3e5674(_0xaac9eb,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]}),await _0x259112[_0x2382ff(0x226)]();if(_0x2efc93)return _0x2382ff(0x217);const _0x4ea950=_0x259112['env'](_0xb22241);return _0x4ea950[_0x2382ff(0x20a)]['_bootstrapCancelRequested']=()=>_0x2efc93,_0x4ea950[_0x2382ff(0x210)]['on'](_0x916717['VIEW_PROGRESS'],_0x2e9d00=>{const _0x354f55=_0x2382ff;if(_0x2e9d00?.[_0x354f55(0x24d)]!==_0xfe1f8)return;try{_0xd947e3[_0x354f55(0x218)]({'type':_0x354f55(0x209),'event':_0x2e9d00});}catch{}}),await _0x4ea950[_0x2382ff(0x20a)][_0x2382ff(0x241)](_0x5e854d),await _0x4ea950['views'][_0x2382ff(0x21a)](_0xfe1f8,_0x5e854d),await _0x4ea950['views'][_0x2382ff(0x238)](_0xfe1f8,_0x5e854d,{'startClock':_0x3d43f2}),_0x2382ff(0x22b);}return _0x5d2848()[_0x103010(0x237)](async _0x40e04c=>{const _0x4d7b04=_0x103010;await _0x56757d();try{_0xd947e3['postMessage']({'type':_0x40e04c});}catch{}process[_0x4d7b04(0x204)](0x0);},async _0x5c8fa4=>{const _0x5e2344=_0x103010;await _0x56757d();const _0x18cb22=_0x5c8fa4?.['code']==='VIEW_BOOTSTRAP_CANCELLED';try{_0xd947e3[_0x5e2344(0x218)](_0x18cb22?{'type':_0x5e2344(0x217)}:{'type':_0x5e2344(0x24f),'error':_0x5c8fa4?.['message']??String(_0x5c8fa4),'stack':_0x5c8fa4?.[_0x5e2344(0x24b)]});}catch{}process[_0x5e2344(0x204)](_0x18cb22?0x0:0x1);}),okdbViewsBootstrapWorker$1;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x545c77(0x1f4)]=okdbViewsBootstrapWorker;