@kedem/okdb 2.3.4 → 2.3.5

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 _0x4af3da=_0x25ed;(function(_0x32b9e3,_0xfcb90b){const _0x371a34=_0x25ed,_0x367317=_0x32b9e3();while(!![]){try{const _0x472fd3=-parseInt(_0x371a34(0x1f7))/0x1+-parseInt(_0x371a34(0x1ea))/0x2*(-parseInt(_0x371a34(0x1e0))/0x3)+-parseInt(_0x371a34(0x210))/0x4+-parseInt(_0x371a34(0x1ce))/0x5+parseInt(_0x371a34(0x1d8))/0x6*(parseInt(_0x371a34(0x20f))/0x7)+parseInt(_0x371a34(0x1ec))/0x8+parseInt(_0x371a34(0x1f8))/0x9*(parseInt(_0x371a34(0x1d4))/0xa);if(_0x472fd3===_0xfcb90b)break;else _0x367317['push'](_0x367317['shift']());}catch(_0x4b2060){_0x367317['push'](_0x367317['shift']());}}}(_0x380f,0xc9ec4));var require$$0=require(_0x4af3da(0x1e1)),require$$1=require(_0x4af3da(0x20e));function getDefaultExportFromCjs(_0x3b447d){const _0x4e929e=_0x4af3da;return _0x3b447d&&_0x3b447d[_0x4e929e(0x1ed)]&&Object[_0x4e929e(0x208)][_0x4e929e(0x20d)][_0x4e929e(0x1db)](_0x3b447d,_0x4e929e(0x207))?_0x3b447d[_0x4e929e(0x207)]:_0x3b447d;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4953db=_0x4af3da;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x29b80f={'PUT':_0x4953db(0x221),'REMOVE':_0x4953db(0x21d),'INDEX_DROP':_0x4953db(0x20a),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x4953db(0x1d5),'TYPE_REGISTER':_0x4953db(0x204),'TYPE_DROP':_0x4953db(0x1dd),'FTS_REGISTER':_0x4953db(0x1d9),'FTS_DROP':_0x4953db(0x1dc),'FTS_RESET':_0x4953db(0x1cd),'SCHEMA_SET':_0x4953db(0x1d7),'SCHEMA_DROP':_0x4953db(0x1ef),'TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x38d3aa={'SYSTEM_READY':_0x4953db(0x1cb),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x4953db(0x20c),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x4953db(0x1fa),'SYSTEM_TYPE_DROP':_0x4953db(0x1d2),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x4953db(0x1f5),'ITEM_UPDATE':_0x4953db(0x1da),'ITEM_REMOVE':_0x4953db(0x219),'INDEX_RESET':_0x4953db(0x1df),'INDEX_READY':_0x4953db(0x1e5),'INDEX_PROGRESS':_0x4953db(0x1ff),'VIEW_PROGRESS':_0x4953db(0x1f0),'INDEX_DROP':'index:drop','INDEX_REGISTERED':_0x4953db(0x1fd),'FTS_REGISTERED':_0x4953db(0x216),'FTS_DROP':'fts:drop','FTS_RESET':_0x4953db(0x209),'SCHEMA_SET':_0x4953db(0x1cc),'SCHEMA_DROP':_0x4953db(0x1de),'UNIQUE_VIOLATION':_0x4953db(0x212),'UNIQUE_VIOLATION_RESOLVED':_0x4953db(0x215),'REF_VIOLATION':_0x4953db(0x1e7),'REF_VIOLATION_RESOLVED':_0x4953db(0x211),'SYNC_APPLY':_0x4953db(0x1c7),'TXN_START':_0x4953db(0x21f),'TXN_END':_0x4953db(0x1ca),'TXN_ROLLBACK':_0x4953db(0x1e2),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x4953db(0x21e),'ENV_OPENED':_0x4953db(0x1fb),'ENV_REMOVED':_0x4953db(0x1f4),'SYSTEM_ENV_RELEASE':_0x4953db(0x1e8),'TTL_EXPIRED':_0x4953db(0x1d1),'TTL_SET':_0x4953db(0x21b),'TTL_CLEAR':_0x4953db(0x20b),'LICENSE_INVALID':_0x4953db(0x1f6),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x4953db(0x1fc),'LICENSE_REMOVED':_0x4953db(0x1f1)},_0x13c600={'CREATING':_0x4953db(0x21c),'RESETTING':'resetting','READY':_0x4953db(0x202),'DROPPING':_0x4953db(0x1eb),'WAITING':_0x4953db(0x201),'ERROR':_0x4953db(0x1f3)},_0x41cc2a={'CREATED':_0x4953db(0x1e6),'STARTING':_0x4953db(0x1cf),'STARTED':_0x4953db(0x214),'STOPPING':_0x4953db(0x200),'STOPPED':_0x4953db(0x206)},_0x55ddfa={'CREATING':_0x4953db(0x21c),'READY':_0x4953db(0x202),'HALTED':_0x4953db(0x1ee),'STOPPED':_0x4953db(0x206),'RESETTING':_0x4953db(0x1d6)},_0x3f67cc=Object['freeze']({'POKE':'bus:poke','DRAIN':'bus:drain','TYPE_DROP':_0x4953db(0x21a),'PROC':_0x4953db(0x205),'ENV_RELEASE':_0x4953db(0x1c9)});return okdbEnums={'BUS_EVENTS':_0x3f67cc,'CHANGE_ACTIONS':_0x29b80f,'EVENTS':_0x38d3aa,'INDEX_STATE':_0x13c600,'OKDB_STATE':_0x41cc2a,'VIEW_STATE':_0x55ddfa},okdbEnums;}function _0x25ed(_0x148ca0,_0x2b4b5d){_0x148ca0=_0x148ca0-0x1c7;const _0x380f54=_0x380f();let _0x25edfd=_0x380f54[_0x148ca0];return _0x25edfd;}var hasRequiredOkdbViewsBootstrapWorker;function requireOkdbViewsBootstrapWorker(){const _0x3967d1=_0x4af3da;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x12b4d9,workerData:_0x2e1a21}=require$$0,_0xdee5b8=require$$1,{EVENTS:_0xbdc9f4}=requireOkdbEnums();async function _0x5949e5(){const _0x15c96f=_0x25ed,{rootPath:_0x4822df,envName:_0x47ef38,viewName:_0x28768d,definition:_0x2e3f25}=_0x2e1a21,_0x5deccb=new _0xdee5b8(_0x4822df,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]});await _0x5deccb[_0x15c96f(0x220)]();const _0x4d6afa=_0x5deccb[_0x15c96f(0x203)](_0x47ef38);_0x4d6afa['events']['on'](_0xbdc9f4['VIEW_PROGRESS'],_0x1005c9=>{const _0x10d701=_0x15c96f;if(_0x1005c9?.[_0x10d701(0x1fe)]!==_0x28768d)return;try{_0x12b4d9['postMessage']({'type':_0x10d701(0x1e3),'event':_0x1005c9});}catch{}}),await _0x4d6afa['views'][_0x15c96f(0x217)](_0x2e3f25),await _0x4d6afa[_0x15c96f(0x213)]['_activateViewStorage'](_0x28768d,_0x2e3f25),await _0x4d6afa[_0x15c96f(0x213)][_0x15c96f(0x1f9)](_0x28768d,_0x2e3f25),_0x12b4d9[_0x15c96f(0x1d0)]({'type':_0x15c96f(0x1c8)}),await _0x5deccb[_0x15c96f(0x1e9)](),process[_0x15c96f(0x1d3)](0x0);}return _0x5949e5()[_0x3967d1(0x218)](_0x3cd8f8=>{const _0x535e09=_0x3967d1;try{_0x12b4d9['postMessage']({'type':_0x535e09(0x1f3),'error':_0x3cd8f8['message']??String(_0x3cd8f8),'stack':_0x3cd8f8[_0x535e09(0x1f2)]});}catch{}process[_0x535e09(0x1d3)](0x1);}),okdbViewsBootstrapWorker$1;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x4af3da(0x1e4)]=okdbViewsBootstrapWorker;function _0x380f(){const _0x4dddec=['progress','exports','index:ready','created','ref:violation','system:env_release','close','2rYAaRm','dropping','8660256dhDGKg','__esModule','halted','dropSchema','view:progress','license:removed','stack','error','env:removed','item:create','license:invalid','47286KadROb','2219652ELQPZu','_runBootstrapScanPhases','system:drain','env:opened','license:activated','index:registered','name','index:progress','stopping','waiting','ready','env','registerType','bus:proc','stopped','default','prototype','fts:reset','dropIndex','ttl:clear','system:stopped','hasOwnProperty','./okdb','649663DUjymw','5754196NHZYML','ref:violation_resolved','unique:violation','views','started','unique:violation_resolved','fts:registered','_prepareViewDict','catch','item:remove','bus:type_drop','ttl:set','creating','remove','type:drop','txn:start','open','put','sync:apply','done','bus:env_release','txn:end','system:ready','schema:set','resetFts','751115CvljEG','starting','postMessage','ttl:expired','system:type_drop','exit','40VrRbBA','resetIndex','resetting','setSchema','6JOvTlY','registerFts','item:update','call','dropFts','dropType','schema:drop','index:reset','903843drtUxf','worker_threads','txn:rollback'];_0x380f=function(){return _0x4dddec;};return _0x380f();}
1
+ 'use strict';const _0x131c2e=_0x543f;function _0x543f(_0x23f6d1,_0x378d83){_0x23f6d1=_0x23f6d1-0xd4;const _0x55053f=_0x5505();let _0x543f68=_0x55053f[_0x23f6d1];return _0x543f68;}(function(_0x2ef663,_0x43de20){const _0x43fe53=_0x543f,_0x48bc86=_0x2ef663();while(!![]){try{const _0x4692ab=parseInt(_0x43fe53(0x122))/0x1+-parseInt(_0x43fe53(0x116))/0x2+-parseInt(_0x43fe53(0xdc))/0x3*(parseInt(_0x43fe53(0x10c))/0x4)+-parseInt(_0x43fe53(0x107))/0x5*(-parseInt(_0x43fe53(0x113))/0x6)+parseInt(_0x43fe53(0x129))/0x7*(-parseInt(_0x43fe53(0x124))/0x8)+parseInt(_0x43fe53(0xf1))/0x9+-parseInt(_0x43fe53(0xe9))/0xa*(-parseInt(_0x43fe53(0x12f))/0xb);if(_0x4692ab===_0x43de20)break;else _0x48bc86['push'](_0x48bc86['shift']());}catch(_0x421b02){_0x48bc86['push'](_0x48bc86['shift']());}}}(_0x5505,0x44499));function _0x5505(){const _0x16c886=['creating','ref:violation_resolved','5RAtSLt','system:env_release','_prepareViewDict','type:registered','index:drop','672564kNFGrq','stopped','call','ttl:clear','events','bus:poke','_runBootstrapScanPhases','2125806udsSzk','prototype','halted','962256UEsfya','clearTtl','license:invalid','registerType','system:stopped','dropping','postMessage','name','started','waiting','starting','./okdb','155115fUBbBn','bus:proc','152HKVYcf','txn:start','put','dropSchema','resetIndex','88291kEqNIu','license:activated','VIEW_PROGRESS','dropType','stack','worker_threads','592713oOaNzj','message','txn:end','resetFts','txn:rollback','done','bus:type_drop','setTtl','system:clock_change','exports','hasOwnProperty','fts:drop','9BrAOEO','schema:set','fts:registered','__esModule','resetting','setSchema','sync:apply','bus:drain','item:update','item:create','item:remove','bus:env_release','freeze','120TpJNcG','system:proc','_activateViewStorage','system:ready','view:progress','system:bus_state_change','ttl:set','default','3140019qHnIok','index:reset','stopping','env:removed','progress','type:drop','exit','registerFts','license:added','unique:violation_resolved','index:progress','error','index:registered','env:opened','dropFts','ref:violation','ready','system:poke','views','license:removed'];_0x5505=function(){return _0x16c886;};return _0x5505();}var require$$0=require(_0x131c2e(0x12e)),require$$1=require(_0x131c2e(0x121));function getDefaultExportFromCjs(_0x26f9f4){const _0x4f2152=_0x131c2e;return _0x26f9f4&&_0x26f9f4[_0x4f2152(0xdf)]&&Object[_0x4f2152(0x114)][_0x4f2152(0xda)][_0x4f2152(0x10e)](_0x26f9f4,_0x4f2152(0xf0))?_0x26f9f4[_0x4f2152(0xf0)]:_0x26f9f4;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x3eddb5=_0x131c2e;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x25a438={'PUT':_0x3eddb5(0x126),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x3eddb5(0x128),'TYPE_REGISTER':_0x3eddb5(0x119),'TYPE_DROP':_0x3eddb5(0x12c),'FTS_REGISTER':_0x3eddb5(0xf8),'FTS_DROP':_0x3eddb5(0xff),'FTS_RESET':_0x3eddb5(0x132),'SCHEMA_SET':_0x3eddb5(0xe1),'SCHEMA_DROP':_0x3eddb5(0x127),'TTL_SET':_0x3eddb5(0xd7),'TTL_CLEAR':_0x3eddb5(0x117)},_0x3bbb05={'SYSTEM_READY':_0x3eddb5(0xec),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x3eddb5(0x11a),'SYSTEM_CLOCK_CHANGE':_0x3eddb5(0xd8),'SYSTEM_POKE':_0x3eddb5(0x102),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x3eddb5(0xea),'SYSTEM_BUS_STATE_CHANGE':_0x3eddb5(0xee),'ITEM_CREATE':_0x3eddb5(0xe5),'ITEM_UPDATE':_0x3eddb5(0xe4),'ITEM_REMOVE':_0x3eddb5(0xe6),'INDEX_RESET':_0x3eddb5(0xf2),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x3eddb5(0xfb),'VIEW_PROGRESS':_0x3eddb5(0xed),'INDEX_DROP':_0x3eddb5(0x10b),'INDEX_REGISTERED':_0x3eddb5(0xfd),'FTS_REGISTERED':_0x3eddb5(0xde),'FTS_DROP':_0x3eddb5(0xdb),'FTS_RESET':'fts:reset','SCHEMA_SET':_0x3eddb5(0xdd),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x3eddb5(0xfa),'REF_VIOLATION':_0x3eddb5(0x100),'REF_VIOLATION_RESOLVED':_0x3eddb5(0x106),'SYNC_APPLY':_0x3eddb5(0xe2),'TXN_START':_0x3eddb5(0x125),'TXN_END':_0x3eddb5(0x131),'TXN_ROLLBACK':_0x3eddb5(0xd4),'TYPE_REGISTERED':_0x3eddb5(0x10a),'TYPE_DROP':_0x3eddb5(0xf6),'ENV_OPENED':_0x3eddb5(0xfe),'ENV_REMOVED':_0x3eddb5(0xf4),'SYSTEM_ENV_RELEASE':_0x3eddb5(0x108),'TTL_EXPIRED':'ttl:expired','TTL_SET':_0x3eddb5(0xef),'TTL_CLEAR':_0x3eddb5(0x10f),'LICENSE_INVALID':_0x3eddb5(0x118),'LICENSE_ADDED':_0x3eddb5(0xf9),'LICENSE_ACTIVATED':_0x3eddb5(0x12a),'LICENSE_REMOVED':_0x3eddb5(0x104)},_0x1b0b6b={'CREATING':_0x3eddb5(0x105),'RESETTING':_0x3eddb5(0xe0),'READY':_0x3eddb5(0x101),'DROPPING':_0x3eddb5(0x11b),'WAITING':_0x3eddb5(0x11f),'ERROR':_0x3eddb5(0xfc)},_0xcc10d6={'CREATED':'created','STARTING':_0x3eddb5(0x120),'STARTED':_0x3eddb5(0x11e),'STOPPING':_0x3eddb5(0xf3),'STOPPED':_0x3eddb5(0x10d)},_0x179b4c={'CREATING':_0x3eddb5(0x105),'READY':_0x3eddb5(0x101),'HALTED':_0x3eddb5(0x115),'STOPPED':'stopped','RESETTING':_0x3eddb5(0xe0)},_0x378511=Object[_0x3eddb5(0xe8)]({'POKE':_0x3eddb5(0x111),'DRAIN':_0x3eddb5(0xe3),'TYPE_DROP':_0x3eddb5(0xd6),'PROC':_0x3eddb5(0x123),'ENV_RELEASE':_0x3eddb5(0xe7)});return okdbEnums={'BUS_EVENTS':_0x378511,'CHANGE_ACTIONS':_0x25a438,'EVENTS':_0x3bbb05,'INDEX_STATE':_0x1b0b6b,'OKDB_STATE':_0xcc10d6,'VIEW_STATE':_0x179b4c},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function requireOkdbViewsBootstrapWorker(){if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x40fe12,workerData:_0x5b8719}=require$$0,_0x565f10=require$$1,{EVENTS:_0x4bd1d9}=requireOkdbEnums();async function _0x3f6672(){const _0x15a5ed=_0x543f,{rootPath:_0x19e708,envName:_0x54b6a1,viewName:_0x57fdc1,definition:_0x2520ed}=_0x5b8719,_0x4b5a85=new _0x565f10(_0x19e708,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]});await _0x4b5a85['open']();const _0x2ad6ba=_0x4b5a85['env'](_0x54b6a1);_0x2ad6ba[_0x15a5ed(0x110)]['on'](_0x4bd1d9[_0x15a5ed(0x12b)],_0x1cc5d1=>{const _0x3160ed=_0x15a5ed;if(_0x1cc5d1?.[_0x3160ed(0x11d)]!==_0x57fdc1)return;try{_0x40fe12['postMessage']({'type':_0x3160ed(0xf5),'event':_0x1cc5d1});}catch{}}),await _0x2ad6ba[_0x15a5ed(0x103)][_0x15a5ed(0x109)](_0x2520ed),await _0x2ad6ba[_0x15a5ed(0x103)][_0x15a5ed(0xeb)](_0x57fdc1,_0x2520ed),await _0x2ad6ba[_0x15a5ed(0x103)][_0x15a5ed(0x112)](_0x57fdc1,_0x2520ed),_0x40fe12['postMessage']({'type':_0x15a5ed(0xd5)}),await _0x4b5a85['close'](),process[_0x15a5ed(0xf7)](0x0);}return _0x3f6672()['catch'](_0x246be5=>{const _0x4f8fad=_0x543f;try{_0x40fe12[_0x4f8fad(0x11c)]({'type':_0x4f8fad(0xfc),'error':_0x246be5[_0x4f8fad(0x130)]??String(_0x246be5),'stack':_0x246be5[_0x4f8fad(0x12d)]});}catch{}process['exit'](0x1);}),okdbViewsBootstrapWorker$1;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x131c2e(0xd9)]=okdbViewsBootstrapWorker;