@kedem/okdb 2.7.0 → 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 _0x3db36c=_0x36ac;(function(_0x66dcad,_0x54f4a7){const _0x5c9a9d=_0x36ac,_0x219b4e=_0x66dcad();while(!![]){try{const _0x41fd3a=-parseInt(_0x5c9a9d(0x182))/0x1*(parseInt(_0x5c9a9d(0x1c2))/0x2)+parseInt(_0x5c9a9d(0x177))/0x3*(-parseInt(_0x5c9a9d(0x1a0))/0x4)+-parseInt(_0x5c9a9d(0x1c5))/0x5+-parseInt(_0x5c9a9d(0x18c))/0x6*(parseInt(_0x5c9a9d(0x1ba))/0x7)+parseInt(_0x5c9a9d(0x1d1))/0x8*(-parseInt(_0x5c9a9d(0x1bc))/0x9)+parseInt(_0x5c9a9d(0x1cd))/0xa+parseInt(_0x5c9a9d(0x1b8))/0xb*(parseInt(_0x5c9a9d(0x1cf))/0xc);if(_0x41fd3a===_0x54f4a7)break;else _0x219b4e['push'](_0x219b4e['shift']());}catch(_0x1b4916){_0x219b4e['push'](_0x219b4e['shift']());}}}(_0x19ee,0x4dc8a));var require$$0=require('worker_threads'),require$$1=require('./okdb');function getDefaultExportFromCjs(_0x3cf64a){const _0x59bc33=_0x36ac;return _0x3cf64a&&_0x3cf64a['__esModule']&&Object[_0x59bc33(0x1a7)]['hasOwnProperty']['call'](_0x3cf64a,_0x59bc33(0x187))?_0x3cf64a[_0x59bc33(0x187)]:_0x3cf64a;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x545f1f=_0x36ac;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x3e56f0={'PUT':_0x545f1f(0x18a),'REMOVE':_0x545f1f(0x192),'INDEX_DROP':_0x545f1f(0x1d0),'INDEX_REGISTER':_0x545f1f(0x19e),'INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x545f1f(0x1c7),'TYPE_DROP':_0x545f1f(0x17d),'FTS_REGISTER':_0x545f1f(0x185),'FTS_DROP':_0x545f1f(0x18d),'FTS_RESET':'resetFts','SCHEMA_SET':_0x545f1f(0x19f),'SCHEMA_DROP':'dropSchema','TTL_SET':_0x545f1f(0x181),'TTL_CLEAR':_0x545f1f(0x17c)},_0x16edee={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':_0x545f1f(0x193),'SYSTEM_STOPPED':_0x545f1f(0x1b5),'SYSTEM_CLOCK_CHANGE':_0x545f1f(0x1b0),'SYSTEM_POKE':_0x545f1f(0x194),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x545f1f(0x18f),'SYSTEM_PROC':_0x545f1f(0x1af),'SYSTEM_BUS_STATE_CHANGE':_0x545f1f(0x1ae),'ITEM_CREATE':_0x545f1f(0x19a),'ITEM_UPDATE':_0x545f1f(0x1b6),'ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x545f1f(0x17a),'INDEX_RESET':_0x545f1f(0x199),'INDEX_READY':_0x545f1f(0x1d2),'INDEX_PROGRESS':_0x545f1f(0x184),'VIEW_PROGRESS':_0x545f1f(0x1bd),'INDEX_DROP':_0x545f1f(0x1c0),'INDEX_REGISTERED':_0x545f1f(0x18b),'FTS_REGISTERED':_0x545f1f(0x198),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x545f1f(0x180),'SCHEMA_DROP':_0x545f1f(0x1cb),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x545f1f(0x189),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x545f1f(0x197),'SYNC_APPLY':_0x545f1f(0x1ca),'TXN_START':_0x545f1f(0x190),'TXN_END':_0x545f1f(0x1bf),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x545f1f(0x1b9),'TYPE_DROP':'type:drop','ENV_OPENED':_0x545f1f(0x1ab),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0x545f1f(0x1a2),'TTL_EXPIRED':_0x545f1f(0x1c6),'TTL_SET':_0x545f1f(0x1ac),'TTL_CLEAR':_0x545f1f(0x18e),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x545f1f(0x1d3),'LICENSE_ACTIVATED':_0x545f1f(0x17f),'LICENSE_REMOVED':_0x545f1f(0x186)},_0x4ee379={'CREATING':_0x545f1f(0x1b3),'RESETTING':_0x545f1f(0x196),'READY':_0x545f1f(0x195),'DROPPING':_0x545f1f(0x1a1),'WAITING':_0x545f1f(0x191),'ERROR':'error'},_0x15f07a={'CREATED':_0x545f1f(0x1d6),'STARTING':_0x545f1f(0x178),'STARTED':_0x545f1f(0x1aa),'STOPPING':_0x545f1f(0x188),'STOPPED':'stopped'},_0x9f7c25={'CREATING':_0x545f1f(0x1b3),'READY':'ready','HALTED':_0x545f1f(0x1c3),'STOPPED':_0x545f1f(0x1a4),'RESETTING':'resetting'},_0x119f51=Object['freeze']({'POKE':_0x545f1f(0x1a6),'DRAIN':_0x545f1f(0x1c8),'TYPE_DROP':_0x545f1f(0x1c1),'PROC':_0x545f1f(0x1a9),'ENV_RELEASE':'bus:env_release'});return okdbEnums={'BUS_EVENTS':_0x119f51,'CHANGE_ACTIONS':_0x3e56f0,'EVENTS':_0x16edee,'INDEX_STATE':_0x4ee379,'OKDB_STATE':_0x15f07a,'VIEW_STATE':_0x9f7c25},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function _0x19ee(){const _0x8f0c5c=['item:update','then','2981CMECSC','type:registered','611723NyuJtn','_runBootstrapScanPhases','9TdMooQ','view:progress','open','txn:end','index:drop','bus:type_drop','2vEenOd','halted','exit','1068715vhoztO','ttl:expired','registerType','bus:drain','_activateViewStorage','sync:apply','schema:drop','env','3797840aYQGUL','VIEW_PROGRESS','57660JKiLkV','dropIndex','196240wyatES','index:ready','license:added','events','exports','created','postMessage','error','9bQCNfo','starting','_bootstrapCancelRequested','item:pending','done','clearTtl','dropType','type','license:activated','schema:set','setTtl','449026khWKcn','cancelled','index:progress','registerFts','license:removed','default','stopping','unique:violation_resolved','put','index:registered','18qZJKog','dropFts','ttl:clear','system:type_drop','txn:start','waiting','remove','field:resolver_registered','system:poke','ready','resetting','ref:violation_resolved','fts:registered','index:reset','item:create','stack','cancel','name','registerIndex','setSchema','551828oLkzad','dropping','system:env_release','views','stopped','VIEW_BOOTSTRAP_CANCELLED','bus:poke','prototype','progress','bus:proc','started','env:opened','ttl:set','close','system:bus_state_change','system:proc','system:clock_change','message','code','creating','race','system:stopped'];_0x19ee=function(){return _0x8f0c5c;};return _0x19ee();}function requireOkdbViewsBootstrapWorker(){const _0x2ac57d=_0x36ac;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x500fb8,workerData:_0x3e3181}=require$$0,_0x10c37a=require$$1,{EVENTS:_0x143215}=requireOkdbEnums();let _0xef8d96=![];_0x500fb8['on'](_0x2ac57d(0x1b1),_0xce11d3=>{const _0x2640c4=_0x2ac57d;if(_0xce11d3?.[_0x2640c4(0x17e)]===_0x2640c4(0x19c))_0xef8d96=!![];});let _0x356116=null;async function _0x29ed0a(){const _0x35b945=_0x2ac57d,_0x293381=_0x356116;_0x356116=null;if(!_0x293381)return;try{await Promise[_0x35b945(0x1b4)]([_0x293381[_0x35b945(0x1ad)](),new Promise(_0x4894bf=>setTimeout(_0x4894bf,0x1388)['unref']())]);}catch{}}async function _0x369b9e(){const _0x3ddfe1=_0x2ac57d,{rootPath:_0x3f2a21,envName:_0x186328,viewName:_0x14f76e,definition:_0x1d3d50,startClock:_0x235874}=_0x3e3181;_0x356116=new _0x10c37a(_0x3f2a21,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]}),await _0x356116[_0x3ddfe1(0x1be)]();if(_0xef8d96)return _0x3ddfe1(0x183);const _0x1bf48a=_0x356116[_0x3ddfe1(0x1cc)](_0x186328);return _0x1bf48a['views'][_0x3ddfe1(0x179)]=()=>_0xef8d96,_0x1bf48a[_0x3ddfe1(0x1d4)]['on'](_0x143215[_0x3ddfe1(0x1ce)],_0x4dde50=>{const _0x20f2b1=_0x3ddfe1;if(_0x4dde50?.[_0x20f2b1(0x19d)]!==_0x14f76e)return;try{_0x500fb8[_0x20f2b1(0x175)]({'type':_0x20f2b1(0x1a8),'event':_0x4dde50});}catch{}}),await _0x1bf48a[_0x3ddfe1(0x1a3)]['_prepareViewDict'](_0x1d3d50),await _0x1bf48a[_0x3ddfe1(0x1a3)][_0x3ddfe1(0x1c9)](_0x14f76e,_0x1d3d50),await _0x1bf48a[_0x3ddfe1(0x1a3)][_0x3ddfe1(0x1bb)](_0x14f76e,_0x1d3d50,{'startClock':_0x235874}),_0x3ddfe1(0x17b);}return _0x369b9e()[_0x2ac57d(0x1b7)](async _0x547c48=>{const _0x479d14=_0x2ac57d;await _0x29ed0a();try{_0x500fb8['postMessage']({'type':_0x547c48});}catch{}process[_0x479d14(0x1c4)](0x0);},async _0x3e8789=>{const _0x57add7=_0x2ac57d;await _0x29ed0a();const _0xddbecf=_0x3e8789?.[_0x57add7(0x1b2)]===_0x57add7(0x1a5);try{_0x500fb8[_0x57add7(0x175)](_0xddbecf?{'type':_0x57add7(0x183)}:{'type':_0x57add7(0x176),'error':_0x3e8789?.[_0x57add7(0x1b1)]??String(_0x3e8789),'stack':_0x3e8789?.[_0x57add7(0x19b)]});}catch{}process[_0x57add7(0x1c4)](_0xddbecf?0x0:0x1);}),okdbViewsBootstrapWorker$1;}function _0x36ac(_0x1d1f22,_0x1940db){_0x1d1f22=_0x1d1f22-0x175;const _0x19ee8e=_0x19ee();let _0x36ac63=_0x19ee8e[_0x1d1f22];return _0x36ac63;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x3db36c(0x1d5)]=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;