@hotmeshio/hotmesh 0.3.24 → 0.3.26
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/README.md +1 -1
- package/build/modules/enums.d.ts +1 -0
- package/build/modules/enums.js +2 -1
- package/build/modules/key.js +1 -1
- package/build/modules/utils.d.ts +0 -1
- package/build/modules/utils.js +1 -1
- package/build/package.json +2 -2
- package/build/services/activities/activity.js +1 -1
- package/build/services/activities/await.js +1 -1
- package/build/services/activities/cycle.js +1 -1
- package/build/services/activities/hook.js +1 -1
- package/build/services/activities/index.js +1 -1
- package/build/services/activities/interrupt.js +1 -1
- package/build/services/activities/signal.js +1 -1
- package/build/services/activities/trigger.js +1 -1
- package/build/services/activities/worker.js +1 -1
- package/build/services/collator/index.js +1 -1
- package/build/services/compiler/deployer.js +1 -1
- package/build/services/compiler/index.js +1 -1
- package/build/services/compiler/validator.js +1 -1
- package/build/services/connector/providers/nats.js +1 -1
- package/build/services/connector/providers/postgres.js +1 -1
- package/build/services/engine/index.js +1 -1
- package/build/services/exporter/index.js +1 -1
- package/build/services/logger/index.d.ts +0 -1
- package/build/services/logger/index.js +21 -39
- package/build/services/mapper/index.js +1 -1
- package/build/services/meshcall/index.js +2 -2
- package/build/services/meshflow/client.js +3 -3
- package/build/services/meshflow/exporter.js +1 -1
- package/build/services/meshflow/search.js +4 -4
- package/build/services/pipe/functions/array.js +1 -1
- package/build/services/pipe/functions/bitwise.js +1 -1
- package/build/services/pipe/functions/conditional.js +1 -1
- package/build/services/pipe/functions/cron.js +1 -1
- package/build/services/pipe/functions/date.js +1 -1
- package/build/services/pipe/functions/index.js +1 -1
- package/build/services/pipe/functions/json.js +1 -1
- package/build/services/pipe/functions/logical.js +1 -1
- package/build/services/pipe/functions/math.js +1 -1
- package/build/services/pipe/functions/number.js +1 -1
- package/build/services/pipe/functions/object.js +1 -1
- package/build/services/pipe/functions/string.js +1 -1
- package/build/services/pipe/functions/symbol.js +1 -1
- package/build/services/pipe/functions/unary.js +1 -1
- package/build/services/pipe/index.js +1 -1
- package/build/services/quorum/index.js +1 -1
- package/build/services/reporter/index.js +1 -1
- package/build/services/router/index.js +1 -1
- package/build/services/search/providers/postgres/postgres.js +1 -1
- package/build/services/search/providers/redis/ioredis.js +1 -1
- package/build/services/search/providers/redis/redis.js +1 -1
- package/build/services/serializer/index.js +1 -1
- package/build/services/store/providers/postgres/kvsql.js +1 -1
- package/build/services/store/providers/postgres/kvtables.js +1 -1
- package/build/services/store/providers/postgres/kvtransaction.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
- package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
- package/build/services/store/providers/postgres/postgres.js +1 -1
- package/build/services/store/providers/redis/_base.js +1 -1
- package/build/services/store/providers/redis/ioredis.js +1 -1
- package/build/services/store/providers/redis/redis.js +1 -1
- package/build/services/store/providers/store-initializable.js +1 -1
- package/build/services/stream/providers/nats/nats.js +1 -1
- package/build/services/stream/providers/postgres/postgres.js +1 -1
- package/build/services/stream/providers/redis/ioredis.js +1 -1
- package/build/services/stream/providers/redis/redis.js +1 -1
- package/build/services/stream/providers/stream-initializable.js +1 -1
- package/build/services/sub/providers/nats/nats.js +1 -1
- package/build/services/sub/providers/postgres/postgres.js +1 -1
- package/build/services/sub/providers/redis/ioredis.js +1 -1
- package/build/services/sub/providers/redis/redis.js +1 -1
- package/build/services/task/index.js +1 -1
- package/build/services/telemetry/index.d.ts +2 -0
- package/build/services/telemetry/index.js +1 -1
- package/build/services/worker/index.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=parseInt(l(0x170))/0x1+-parseInt(l(0x172))/0x2*(parseInt(l(0x15a))/0x3)+parseInt(l(0x15d))/0x4*(-parseInt(l(0x169))/0x5)+parseInt(l(0x17f))/0x6*(-parseInt(l(0x183))/0x7)+-parseInt(l(0x16a))/0x8+parseInt(l(0x16e))/0x9*(parseInt(l(0x15f))/0xa)+parseInt(l(0x18a))/0xb*(parseInt(l(0x165))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x59fc9));Object[m(0x168)](exports,'__esModule',{'value':!![]}),exports[m(0x184)]=void 0x0;function a(){const z=['217908BAhsdS','eventClient','570uUfekN','get','appId','subscriptions','set','stringify','18461868vOZcVb','nats-subscribe-error\x20','mintKey','defineProperty','45eCLRyK','3877624JbSrBt','nats-punsubscribe\x20','subject','data','99063jGSPbm','../../../../modules/key','20527YRpawb','nats-unsubscribe-error\x20','802052Fhzysf','punsubscribe','subscribe','nats-punsubscribe-error\x20','nats-subscribe\x20','replace','transact','unsubscribe','toString','psubscribe','nats-subscribe-message-parse-error:\x20','warn','nats-psubscribe\x20','48Rmnkvf','catch','../../index','KeyService','386582wAtoVU','NatsSubService','nats-unsubscribe\x20','debug','nats-pattern-psubscription-error\x20','engineId','storeClient','11ZlCEvr','logger','publish','error','delete','HMNS','SubService','namespace','3mKDHhC','namespace\x20not\x20set','nats-publish\x20'];a=function(){return z;};return a();}const key_1=require(m(0x16f)),index_1=require(m(0x181));class NatsSubService extends index_1[m(0x158)]{constructor(c,d){const n=m;super(c,d),this[n(0x162)]=new Map();}async['init'](c=key_1[m(0x157)],d,e,f){const o=m;this[o(0x159)]=c,this[o(0x18b)]=f,this[o(0x161)]=d,this[o(0x188)]=e;}[m(0x178)](){return{};}[m(0x167)](c,d){const p=m;if(!this[p(0x159)])throw new Error(p(0x15b));return key_1[p(0x182)][p(0x167)](this[p(0x159)],c,d)[p(0x177)](/:/g,'.')['replace'](/\.$/g,'.X');}async[m(0x174)](c,d,e,f){const q=m,g=this[q(0x167)](c,{'appId':e,'engineId':f}),h=this['eventClient']['subscribe'](g);this[q(0x162)]['set'](g,h),this[q(0x18b)][q(0x186)](q(0x176)+g),(async()=>{const r=q;for await(const i of h){try{const j=JSON['parse'](i[r(0x16d)][r(0x17a)]());d(g,j);}catch(k){this[r(0x18b)][r(0x18d)](r(0x17c)+i['data'][r(0x17a)](),k);}}})()[q(0x180)](i=>{const s=q;this[s(0x18b)][s(0x18d)](s(0x166)+g,i);});}async[m(0x179)](c,d,e){const t=m,f=this[t(0x167)](c,{'appId':d,'engineId':e}),g=this[t(0x162)][t(0x160)](f);g?(g[t(0x179)](),this[t(0x162)]['delete'](f),this[t(0x18b)][t(0x186)](t(0x185)+f)):this[t(0x18b)][t(0x17d)](t(0x171)+f);}async[m(0x17b)](c,d,e,f){const u=m,g=this[u(0x167)](c,{'appId':e,'engineId':f}),h=this[u(0x15e)][u(0x174)](g);this['subscriptions'][u(0x163)](g,h),this['logger'][u(0x186)](u(0x17e)+g),(async()=>{const v=u;for await(const i of h){try{const j=JSON['parse'](i['data'][v(0x17a)]());d(i[v(0x16c)],j);}catch(k){this[v(0x18b)][v(0x18d)]('nats-parse-psubscription-message-error\x20'+i['data'][v(0x17a)](),k);}}})()[u(0x180)](i=>{const w=u;this[w(0x18b)]['error'](w(0x187)+g,i);});}async[m(0x173)](c,d,e){const x=m,f=this[x(0x167)](c,{'appId':d,'engineId':e}),g=this[x(0x162)]['get'](f);g?(g[x(0x179)](),this[x(0x162)][x(0x18e)](f),this['logger']['debug'](x(0x16b)+f)):this[x(0x18b)][x(0x17d)](x(0x175)+f);}async[m(0x18c)](c,d,e,f){const y=m,g=this[y(0x167)](c,{'appId':e,'engineId':f});try{return this[y(0x189)][y(0x18c)](g,JSON[y(0x164)](d)),this[y(0x18b)][y(0x186)](y(0x15c)+g),!![];}catch(h){return this[y(0x18b)][y(0x18d)]('nats-publish-error\x20'+g,h),![];}}}function b(c,d){const e=a();return b=function(f,g){f=f-0x157;let h=e[f];return h;},b(c,d);}exports['NatsSubService']=NatsSubService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x9c))/0x1*(-parseInt(l(0xac))/0x2)+-parseInt(l(0x9d))/0x3+parseInt(l(0xb0))/0x4+parseInt(l(0xae))/0x5+-parseInt(l(0x85))/0x6+parseInt(l(0xa9))/0x7+parseInt(l(0xb1))/0x8*(-parseInt(l(0x96))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x59544));var __importDefault=this&&this[m(0xa1)]||function(c){const n=m;return c&&c[n(0xa4)]?c:{'default':c};};Object[m(0x97)](exports,'__esModule',{'value':!![]}),exports['PostgresSubService']=void 0x0;const crypto_1=__importDefault(require(m(0x8f))),key_1=require(m(0x8a)),index_1=require(m(0x9e));function b(c,d){const e=a();return b=function(f,g){f=f-0x84;let h=e[f];return h;},b(c,d);}function a(){const y=['notification','length','SubService','parse','2999129OyezXn','HMNS','storeClient','178RyXWGa','query','2338040IDPins','KeyService','2109968sXQokd','86824DKUYRX','subscribe','2945712bgJmMW','sha256','namespace','createHash','logger','../../../../modules/key','LISTEN\x20\x22','Error\x20parsing\x20message\x20for\x20topic\x20','mintSafeKey','engineId','crypto','debug','mintKey','UNLISTEN\x20\x22','init','Transactions\x20are\x20not\x20supported\x20in\x20lightweight\x20pub/sub','punsubscribe','396npprqb','defineProperty','Namespace\x20not\x20set','psubscribe','postgres-subscribe','Pattern\x20subscriptions\x20are\x20not\x20supported\x20in\x20PostgreSQL','1542BUpRPS','679227OKrsbn','../../index','digest','replace','__importDefault','appId','\x22,\x20\x27','__esModule'];a=function(){return y;};return a();}class PostgresSubService extends index_1[m(0xa7)]{constructor(c,d){super(c,d);}async[m(0x93)](c=key_1[m(0xaa)],d,e,f){const o=m;this['namespace']=c,this[o(0x89)]=f,this[o(0xa2)]=d,this[o(0x8e)]=e;}['transact'](){const p=m;throw new Error(p(0x94));}[m(0x91)](c,d){const q=m;if(!this[q(0x87)])throw new Error(q(0x98));return key_1[q(0xaf)][q(0x91)](this[q(0x87)],c,d);}[m(0x8d)](c,d){const r=m,e=this['mintKey'](c,d);if(e['length']<=0x3f)return[e,e];const {appId:appId='',engineId:engineId=''}=d,f=this['namespace']+':'+appId+':'+c,g=0x3f-f[r(0xa6)]-0x1,h=crypto_1['default'][r(0x88)](r(0x86))['update'](engineId)[r(0x9f)]('hex')['substring'](0x0,g),i=f+':'+h;return[e,i];}async[m(0x84)](c,d,e,f){const s=m,[g,h]=this['mintSafeKey'](c,{'appId':e,'engineId':f});await this['eventClient'][s(0xad)](s(0x8b)+h+'\x22'),this[s(0x89)][s(0x90)](s(0x9a),{'originalKey':g,'safeKey':h}),this['eventClient']['on'](s(0xa5),i=>{const t=s;if(i['channel']===h)try{const j=JSON[t(0xa8)](i['payload']||'{}');d(h,j);}catch(k){this[t(0x89)]['error'](t(0x8c)+h+':',k);}});}async['unsubscribe'](c,d,e){const u=m,[f,g]=this[u(0x8d)](c,{'appId':d,'engineId':e});await this['eventClient'][u(0xad)](u(0x92)+g+'\x22'),this[u(0x89)][u(0x90)]('postgres-subscribe',{'originalKey':f,'safeKey':g});}async['publish'](c,d,e,f){const v=m,[g,h]=this['mintSafeKey'](c,{'appId':e,'engineId':f}),i=JSON['stringify'](d)[v(0xa0)](/'/g,'\x27\x27');return await this[v(0xab)]['query']('NOTIFY\x20\x22'+h+v(0xa3)+i+'\x27'),this['logger'][v(0x90)]('postgres-publish',{'originalKey':g,'safeKey':h}),!![];}async[m(0x99)](){const w=m;throw new Error(w(0x9b));}async[m(0x95)](){const x=m;throw new Error(x(0x9b));}}exports['PostgresSubService']=PostgresSubService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const o=b;function b(c,d){const e=a();return b=function(f,g){f=f-0x133;let h=e[f];return h;},b(c,d);}(function(c,d){const n=b,e=c();while(!![]){try{const f=-parseInt(n(0x134))/0x1*(-parseInt(n(0x151))/0x2)+parseInt(n(0x13e))/0x3*(parseInt(n(0x144))/0x4)+-parseInt(n(0x13f))/0x5+parseInt(n(0x148))/0x6+parseInt(n(0x140))/0x7+-parseInt(n(0x133))/0x8+-parseInt(n(0x14f))/0x9*(parseInt(n(0x135))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x905ac));Object['defineProperty'](exports,o(0x136),{'value':!![]}),exports['IORedisSubService']=void 0x0;function a(){const B=['61044IgMlVj','889655wDcsFA','2130877YIjSXQ','../../../../modules/key','subscribe','HMNS','8VVFRxU','punsubscribe','publish','init','3681654QBvREq','engineId','unsubscribe','Error\x20parsing\x20message:\x20','SubService','transact','error','9RiyOeZ','Error\x20subscribing\x20to:\x20','408922qJtgoP','message','psubscribe','logger','7778736AfkgAR','4wXxGWj','350110grsakn','__esModule','namespace\x20not\x20set','eventClient','parse','KeyService','multi','namespace','mintKey'];a=function(){return B;};return a();}const key_1=require(o(0x141)),index_1=require('../../index');class IORedisSubService extends index_1[o(0x14c)]{constructor(c,d){super(c,d);}async[o(0x147)](c=key_1[o(0x143)],d,e,f){const p=o;this[p(0x13c)]=c,this[p(0x154)]=f,this['appId']=d,this[p(0x149)]=e;}[o(0x14d)](){const q=o;return this['eventClient'][q(0x13b)]();}[o(0x13d)](c,d){const r=o;if(!this[r(0x13c)])throw new Error(r(0x137));return key_1[r(0x13a)][r(0x13d)](this['namespace'],c,d);}async['subscribe'](c,d,e,f){const s=o,g=this,h=this['mintKey'](c,{'appId':e,'engineId':f});await this['eventClient'][s(0x142)](h,i=>{const t=s;i&&g[t(0x154)]['error'](t(0x150)+h,i);}),this[s(0x138)]['on'](s(0x152),(i,j)=>{const u=s;if(i===h)try{const k=JSON[u(0x139)](j);d(h,k);}catch(l){g['logger'][u(0x14e)](u(0x14b)+j,l);}});}async[o(0x14a)](c,d,e){const v=o,f=this['mintKey'](c,{'appId':d,'engineId':e});await this['eventClient'][v(0x14a)](f);}async[o(0x153)](c,d,e,f){const w=o,g=this,h=this['mintKey'](c,{'appId':e,'engineId':f});await this[w(0x138)]['psubscribe'](h,i=>{const x=w;i&&g[x(0x154)]['error'](x(0x150)+h,i);}),this[w(0x138)]['on']('pmessage',(i,j,k)=>{const y=w;if(i===h)try{const l=JSON[y(0x139)](k);d(j,l);}catch(m){g[y(0x154)]['error']('Error\x20parsing\x20message:\x20'+k,m);}});}async['punsubscribe'](c,d,e){const z=o,f=this[z(0x13d)](c,{'appId':d,'engineId':e});await this['eventClient'][z(0x145)](f);}async[o(0x146)](c,d,e,f){const A=o,g=this[A(0x13d)](c,{'appId':e,'engineId':f}),h=await this['storeClient'][A(0x146)](g,JSON['stringify'](d));return h===0x1;}}exports['IORedisSubService']=IORedisSubService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function a(){const y=['engineId','init','publish','punsubscribe','42SzqBAP','pUnsubscribe','1225805FXjtlP','KeyService','8JUnuQj','parse','stringify','296317Dulxvr','Error\x20parsing\x20message:\x20','217543ocqOOC','multi','RedisSubService','3GkFxqG','2AKmOHE','namespace','../../index','1052760qJveyw','transact','55ixoATm','821295EgJbwA','psubscribe','logger','error','929172ezlAdW','eventClient','__esModule','9276tDGxxp','storeClient','subscribe','mintKey','unsubscribe','SubService','pSubscribe'];a=function(){return y;};return a();}const n=b;(function(c,d){const m=b,e=c();while(!![]){try{const f=-parseInt(m(0x1c6))/0x1*(parseInt(m(0x1ca))/0x2)+parseInt(m(0x1c9))/0x3*(-parseInt(m(0x1d7))/0x4)+-parseInt(m(0x1e4))/0x5+-parseInt(m(0x1e2))/0x6*(-parseInt(m(0x1c4))/0x7)+-parseInt(m(0x1c1))/0x8*(-parseInt(m(0x1d0))/0x9)+-parseInt(m(0x1cd))/0xa+parseInt(m(0x1cf))/0xb*(parseInt(m(0x1d4))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x31e8c));Object['defineProperty'](exports,n(0x1d6),{'value':!![]}),exports[n(0x1c8)]=void 0x0;const key_1=require('../../../../modules/key'),index_1=require(n(0x1cc));function b(c,d){const e=a();return b=function(f,g){f=f-0x1c1;let h=e[f];return h;},b(c,d);}class RedisSubService extends index_1[n(0x1dc)]{constructor(c,d){super(c,d);}async[n(0x1df)](c=key_1['HMNS'],d,e,f){const o=n;this[o(0x1cb)]=c,this[o(0x1d2)]=f,this['appId']=d,this[o(0x1de)]=e;}[n(0x1ce)](){const p=n,c=this[p(0x1d5)][p(0x1c7)]();return c;}['mintKey'](c,d){const q=n;if(!this['namespace'])throw new Error('namespace\x20not\x20set');return key_1[q(0x1e5)]['mintKey'](this['namespace'],c,d);}async[n(0x1d9)](c,d,e,f){const r=n;if(this[r(0x1d5)]){const g=this,h=this[r(0x1da)](c,{'appId':e,'engineId':f});await this[r(0x1d5)][r(0x1d9)](h,i=>{const s=r;try{const j=JSON[s(0x1c2)](i);d(h,j);}catch(k){g[s(0x1d2)]['error'](s(0x1c5)+i,k);}});}}async[n(0x1db)](c,d,e){const t=n,f=this[t(0x1da)](c,{'appId':d,'engineId':e});await this['eventClient']['unsubscribe'](f);}async[n(0x1d1)](c,d,e,f){const u=n;if(this['eventClient']){const g=this,h=this['mintKey'](c,{'appId':e,'engineId':f});await this['eventClient'][u(0x1dd)](h,(i,j)=>{const v=u;try{const k=JSON[v(0x1c2)](i);d(j,k);}catch(l){g[v(0x1d2)][v(0x1d3)](v(0x1c5)+i,l);}});}}async[n(0x1e1)](c,d,e){const w=n,f=this['mintKey'](c,{'appId':d,'engineId':e});await this['eventClient'][w(0x1e3)](f);}async[n(0x1e0)](c,d,e,f){const x=n,g=this[x(0x1da)](c,{'appId':e,'engineId':f}),h=await this[x(0x1d8)][x(0x1e0)](g,JSON[x(0x1c3)](d));return h>0x0;}}exports[n(0x1c8)]=RedisSubService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x12d;let h=e[f];return h;},b(c,d);}const q=b;(function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(0x153))/0x1*(-parseInt(p(0x12e))/0x2)+-parseInt(p(0x170))/0x3*(-parseInt(p(0x167))/0x4)+-parseInt(p(0x168))/0x5+parseInt(p(0x139))/0x6*(parseInt(p(0x162))/0x7)+-parseInt(p(0x14b))/0x8+-parseInt(p(0x160))/0x9+-parseInt(p(0x161))/0xa*(parseInt(p(0x143))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xe1065));Object[q(0x14e)](exports,q(0x147),{'value':!![]}),exports['TaskService']=void 0x0;const enums_1=require(q(0x158)),utils_1=require(q(0x172)),pipe_1=require('../pipe'),hotmesh_1=require(q(0x166)),key_1=require(q(0x16b));class TaskService{constructor(c,d){const r=q;this['cleanupTimeout']=null,this[r(0x15b)]=![],this[r(0x13f)]=0x0,this[r(0x130)]=d,this[r(0x12d)]=c;}async['processWebHooks'](c){const s=q,d=await this[s(0x12d)]['getActiveTaskQueue']();if(d){const [e,f,g,...h]=d[s(0x163)](key_1['WEBSEP']),i=JSON[s(0x14d)](h[s(0x150)](key_1[s(0x16e)])),j=f+s(0x157),k=await this[s(0x12d)]['processTaskQueue'](f,j);k?await c(e,{...i,'id':k}):await this[s(0x12d)][s(0x151)](d,f,j,g===s(0x173)),setImmediate(()=>this['processWebHooks'](c));}}async[q(0x132)](c){const t=q;await this[t(0x12d)]['addTaskQueues'](c);}async[q(0x15d)](c,d=enums_1[q(0x16d)],e){const u=q;d>0x0&&await this[u(0x12d)][u(0x15e)](c,d);}async[q(0x131)](c,d,e,f,g=enums_1[q(0x145)],h,i){const v=q,j=Date['now']()+g*0x3e8,k=enums_1[v(0x145)]*0x3e8,l=Math['floor'](j/k)*k;await this['store']['registerTimeHook'](c,d,e,f,l,h,i);}async['shouldScout'](){const w=q,c=this[w(0x15b)],d=c||(this[w(0x15b)]=await this[w(0x12d)][w(0x152)](w(0x156)));if(d)return!c&&setTimeout(()=>{this['isScout']=![];},enums_1['HMSH_SCOUT_INTERVAL_SECONDS']*0x3e8),!![];return![];}async[q(0x15a)](c,d){const x=q;if(await this[x(0x16a)]())try{const e=await this[x(0x12d)][x(0x13a)](d);if(Array[x(0x138)](e)){const [f,g,h,i,j]=e;if(j===x(0x165)){}else{if(j===x(0x164)){const k=this[x(0x12d)][x(0x12f)](hotmesh_1[x(0x142)][x(0x14c)],{'appId':this['store'][x(0x13d)]});await this[x(0x12d)][x(0x133)](k,g);}else await c(g,h,i,j);}await(0x0,utils_1[x(0x171)])(0x0),this[x(0x13f)]=0x0,this[x(0x15a)](c,f);}else{if(e)await(0x0,utils_1[x(0x171)])(0x0),this[x(0x13f)]=0x0,this['processTimeHooks'](c);else{const l=(0x0,utils_1[x(0x174)])(enums_1[x(0x145)]*0x3e8);this['cleanupTimeout']=l[x(0x155)],await l[x(0x15c)],this[x(0x13f)]=0x0,this[x(0x15a)](c);}}}catch(m){this[x(0x130)][x(0x16f)](x(0x137),m),await(0x0,utils_1['sleepFor'])(0x3e8*this[x(0x13f)]++),this[x(0x13f)]<0x5&&this[x(0x15a)](c);}else{const n=(0x0,utils_1[x(0x174)])(enums_1[x(0x159)]*0x3e8*0x2*Math[x(0x13c)]());this[x(0x136)]=n[x(0x155)],await n[x(0x15c)],this['processTimeHooks'](c);}}['cancelCleanup'](){const y=q;this[y(0x136)]!==undefined&&(clearTimeout(this[y(0x136)]),this['cleanupTimeout']=undefined);}async[q(0x135)](c){const z=q,d=await this[z(0x12d)][z(0x13e)]();return d?.[c]?.[0x0];}async[q(0x148)](c,d,e,f,g){const A=q,h=await this[A(0x135)](c);if(h){const i=h['conditions'][A(0x149)][0x0][A(0x13b)],j=pipe_1[A(0x140)][A(0x146)](i,d),k=d[A(0x154)][A(0x15f)],l=d[A(0x154)][A(0x16c)],m=h['to'],n=[m,e,l,k]['join'](key_1[A(0x16e)]),o={'topic':c,'resolved':j,'jobId':n,'expire':f};return await this['store'][A(0x144)](o,g),k;}else throw new Error(A(0x141));}async[q(0x14f)](c,d){const B=q,e=await this[B(0x135)](c);if(e){const f={'$self':{'hook':{'data':d}},'$hook':{'data':d}},g=e['conditions'][B(0x149)][0x0][B(0x14a)],h=pipe_1[B(0x140)][B(0x146)](g,f),i=await this[B(0x12d)][B(0x175)](c,h);if(!i)return undefined;const [j,k,l,...m]=i[B(0x163)](key_1[B(0x16e)]);return[m[B(0x150)](key_1['WEBSEP']),e['to'],k,l];}else throw new Error(B(0x169));}async['deleteWebHookSignal'](c,d){const C=q,e=await this[C(0x135)](c);if(e){const f={'$self':{'hook':{'data':d}},'$hook':{'data':d}},g=e[C(0x176)][C(0x149)][0x0]['actual'],h=pipe_1[C(0x140)][C(0x146)](g,f);return await this['store']['deleteHookSignal'](c,h);}else throw new Error(C(0x134));}}exports['TaskService']=TaskService;function a(){const D=['XSleepFor','getHookSignal','conditions','store','2muGqLC','mintKey','logger','registerTimeHook','enqueueWorkItems','delistSignalKey','signaler.process:error:\x20hook\x20rule\x20not\x20found','getHookRule','cleanupTimeout','task-process-timehooks-error','isArray','42rvFyLk','getNextTask','expected','random','appId','getHookRules','errorCount','Pipe','signaler.registerWebHook:error:\x20hook\x20rule\x20not\x20found','KeyType','1331vIJSXf','setHookSignal','HMSH_FIDELITY_SECONDS','resolve','__esModule','registerWebHook','match','actual','2870680kVcNPs','SIGNALS','parse','defineProperty','processWebHookSignal','join','deleteProcessedTaskQueue','reserveScoutRole','707131bMAHps','metadata','timerId','time',':processed','../../modules/enums','HMSH_SCOUT_INTERVAL_SECONDS','processTimeHooks','isScout','promise','registerJobForCleanup','expireJob','jid','2599146sAlhaN','111540heLZal','1817599FpJTFp','split','delist','child','../../types/hotmesh','204DXTnZd','6428785gIHygw','signal-not-found','shouldScout','../../modules/key','gid','HMSH_EXPIRE_DURATION','WEBSEP','warn','98823WZcFxN','sleepFor','../../modules/utils','true'];a=function(){return D;};return a();}
|
|
@@ -14,6 +14,8 @@ declare class TelemetryService {
|
|
|
14
14
|
context: JobState;
|
|
15
15
|
leg: number;
|
|
16
16
|
constructor(appId: string, config?: ActivityType, metadata?: ActivityMetadata, context?: JobState);
|
|
17
|
+
private shouldCreateSpan;
|
|
18
|
+
private static createNoopSpan;
|
|
17
19
|
getJobParentSpanId(): string | undefined;
|
|
18
20
|
getActivityParentSpanId(leg: number): string | undefined;
|
|
19
21
|
getTraceId(): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const o=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=-parseInt(n(0x13f))/0x1+-parseInt(n(0x148))/0x2*(-parseInt(n(0x17a))/0x3)+parseInt(n(0x129))/0x4*(-parseInt(n(0x173))/0x5)+parseInt(n(0x174))/0x6*(parseInt(n(0x184))/0x7)+-parseInt(n(0x126))/0x8+parseInt(n(0x153))/0x9+-parseInt(n(0x187))/0xa*(parseInt(n(0x16a))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x43905));function a(){const V=['leg','807DaRxaU','__importDefault','getActivityParentSpanId','spanId','__esModule','addTargetTelemetryPaths','TRACE/','mapActivityAttributes','traceActivity','bindActivityTelemetryToState','178430GVQcah','/output/metadata/','setStreamError','1077660UYPTLj','app.stream.','default','startJobSpan','end','StreamRole','version','telemetry','../../types/stream','161376TvmKnp','getTraceId','aid','394172YmbuSS','endJobSpan','endStreamSpan','shouldCreateSpan','traceId','info','setSpanContext','l2s','string','app.activity.data.','SpanKind','WORKER','bindJobTelemetryToState','metadata/trc','span','../../types/telemetry','ERROR','worker','RESULT','output','trace','with','532664sREKoR','topic','FANIN','appId','getParentSpanContext','mapRules','spn','endSpan','signal','3764iEKWcD','app.activity.','RESPONSE','getStreamSpanAttrs','endActivitySpan','CLIENT','number','MapperService','createNoopSpan','keys','reduce','4414230EKHQdm','startSpan','/output/metadata/l1s','trc','trigger','getTracer','metadata','TelemetryService','env','config','$self','type','jobSpan','EXECUTE','getJobParentSpanId','/output/metadata/l2s','setActivityAttributes','spanContext','subscribes','../../package.json','setStreamAttributes','parent','hook','11prDDWE','StreamDataType','getSpanAttrs','name','context','setStatus','includes','l1s','setActivityError','25MiSBxh','102EqlbFa','push','active','setAttributes','startStreamSpan'];a=function(){return V;};return a();}var __importDefault=this&&this[o(0x17b)]||function(c){const p=o;return c&&c[p(0x17e)]?c:{'default':c};};Object['defineProperty'](exports,o(0x17e),{'value':!![]}),exports[o(0x15a)]=void 0x0;const package_json_1=__importDefault(require(o(0x166))),mapper_1=require('../mapper'),stream_1=require(o(0x125)),telemetry_1=require(o(0x138)),enums_1=require('../../modules/enums');class TelemetryService{constructor(c,d,e,f){const q=o;this[q(0x179)]=0x1,this['appId']=c,this['config']=d,this[q(0x159)]=e,this['context']=f;}[o(0x12c)](){const r=o;if(enums_1['HMSH_TELEMETRY']!==r(0x12e))return!![];return this[r(0x15c)]?.['type']==='worker'||this['config']?.[r(0x15e)]===r(0x157);}static[o(0x150)](c,d){return{'spanContext'(){return{'traceId':c,'spanId':d,'isRemote':!![],'traceFlags':0x1};},'addEvent'(e,f,g){return this;},'setAttribute'(e,f){return this;},'setAttributes'(e){return this;},'setStatus'(e){return this;},'updateName'(e){return this;},'end'(e){},'isRecording'(){return![];},'recordException'(e,f){}};}[o(0x161)](){const s=o;return this[s(0x16e)][s(0x159)][s(0x145)];}['getActivityParentSpanId'](c){const t=o;return c===0x1?this[t(0x16e)][this['config']['parent']][t(0x13c)]?.[t(0x159)]?.[t(0x130)]:this[t(0x16e)][t(0x15d)][t(0x13c)]?.[t(0x159)]?.[t(0x171)];}[o(0x127)](){const u=o;return this[u(0x16e)][u(0x159)][u(0x156)];}[o(0x120)](){const v=o,c='JOB/'+this[v(0x142)]+'/'+this[v(0x15c)][v(0x165)]+'/1',d=this[v(0x127)](),e=this['getJobParentSpanId'](),f=this[v(0x16c)](0x1),g=this[v(0x154)](d,e,c,f);return this['jobSpan']=g,this['setTelemetryContext'](g,0x1),this;}static async[o(0x182)](c,d,e,f,g,h=0x0){const w=o,i=w(0x180)+c+'/'+e+'/'+h,j=telemetry_1['trace'][w(0x158)](package_json_1[w(0x11f)][w(0x16d)],package_json_1[w(0x11f)][w(0x123)]),k={'traceId':f,'spanId':g,'isRemote':!![],'traceFlags':0x1},l=telemetry_1['trace'][w(0x12f)](telemetry_1[w(0x16e)]['active'](),k);return telemetry_1[w(0x16e)][w(0x13e)](l,()=>{const x=w,m=j[x(0x154)](i,{'kind':telemetry_1['SpanKind'][x(0x14d)],'attributes':d});return m[x(0x177)](d),m[x(0x121)](),!![];});}['startActivitySpan'](c=this[o(0x179)]){const y=o,d=this['config'][y(0x15e)]['toUpperCase']()+'/'+this[y(0x142)]+'/'+this['metadata'][y(0x128)]+'/'+c,e=this[y(0x127)](),f=this[y(0x17c)](c),g=this[y(0x16c)](c),h=this[y(0x154)](e,f,d,g);return this[y(0x137)]=h,this['setTelemetryContext'](h,c),this;}[o(0x178)](c,d){const z=o;let e;if(d===stream_1[z(0x122)]['SYSTEM'])e='SYSTEM';else{if(d===stream_1[z(0x122)][z(0x134)])e=z(0x160);else c[z(0x15e)]===stream_1[z(0x16b)][z(0x13b)]||c['type']===stream_1[z(0x16b)][z(0x14a)]?e=z(0x141):e='FANOUT';}const f=c['metadata'][z(0x140)]?'/'+c[z(0x159)][z(0x140)]:'',g=e+'/'+this['appId']+'/'+c[z(0x159)][z(0x128)]+f,h=this['getStreamSpanAttrs'](c),i=this['config']?.[z(0x15e)],j=process[z(0x15b)]['HMSH_TELEMETRY']!==z(0x12e)||i===z(0x13a)||i===z(0x157),k=c[z(0x159)][z(0x156)],l=c['metadata']['spn'];return!j?(this['traceId']=k,this[z(0x17d)]=l,this[z(0x137)]=TelemetryService['createNoopSpan'](k,l)):this[z(0x137)]=this[z(0x154)](k,l,g,h),this;}['startSpan'](c,d,e,f){const A=o;this[A(0x12d)]=c,this[A(0x17d)]=d;if(!this['shouldCreateSpan']())return TelemetryService[A(0x150)](c,d);const g=telemetry_1[A(0x13d)][A(0x158)](package_json_1['default'][A(0x16d)],package_json_1['default'][A(0x123)]),h=this[A(0x143)](),i=g[A(0x154)](e,{'kind':telemetry_1[A(0x133)][A(0x14d)],'attributes':f,'root':!h},h);return i;}[o(0x181)](){const B=o;if(this[B(0x15c)][B(0x124)]&&this[B(0x137)]){const c=new mapper_1[(B(0x14f))](this[B(0x15c)]['telemetry'],this[B(0x16e)])[B(0x144)](),d={...Object[B(0x151)](c)['reduce']((e,f)=>{const C=B;return[C(0x131),'boolean',C(0x14e)][C(0x170)](typeof c[f])&&(e[C(0x132)+f]=c[f]),e;},{})};this[B(0x137)][B(0x177)](d);}}[o(0x163)](c){const D=o;this[D(0x137)]?.[D(0x177)](c);}[o(0x167)](c){this['span']?.['setAttributes'](c);}['setJobAttributes'](c){const E=o;this[E(0x15f)]?.[E(0x177)](c);}[o(0x12a)](){const F=o;this['endSpan'](this[F(0x15f)]);}[o(0x14c)](){const G=o;this[G(0x146)](this[G(0x137)]);}[o(0x12b)](){const H=o;this['endSpan'](this[H(0x137)]);}[o(0x146)](c){const I=o;c&&c[I(0x121)]();}['getParentSpanContext'](){const J=o;if(this[J(0x12d)]&&this[J(0x17d)]){const c={'traceId':this[J(0x12d)],'spanId':this[J(0x17d)],'isRemote':!![],'traceFlags':0x1},d=telemetry_1[J(0x13d)]['setSpanContext'](telemetry_1['context'][J(0x176)](),c);return d;}}[o(0x16c)](c){const K=o;return{...Object[K(0x151)](this['context']['metadata'])[K(0x152)]((d,e)=>{const L=K;return e!==L(0x156)&&(d['app.job.'+e]=this[L(0x16e)][L(0x159)][e]),d;},{}),...Object[K(0x151)](this[K(0x159)])[K(0x152)]((d,e)=>{const M=K;return d[M(0x149)+e]=this[M(0x159)][e],d;},{}),'app.activity.leg':c};}[o(0x14b)](c){const N=o;return{...Object[N(0x151)](c['metadata'])[N(0x152)]((d,e)=>{const O=N;return e!=='trc'&&e!=='spn'&&(d[O(0x188)+e]=c[O(0x159)][e]),d;},{})};}['setTelemetryContext'](c,d){const P=o;!this[P(0x16e)][P(0x159)][P(0x156)]&&(this[P(0x16e)][P(0x159)]['trc']=c[P(0x164)]()['traceId']),!this['context'][P(0x15d)][P(0x13c)][P(0x159)]&&(this[P(0x16e)]['$self'][P(0x13c)]['metadata']={}),d===0x1?this[P(0x16e)][P(0x15d)][P(0x13c)][P(0x159)][P(0x171)]=c[P(0x164)]()[P(0x17d)]:this[P(0x16e)][P(0x15d)]['output']['metadata'][P(0x130)]=c['spanContext']()[P(0x17d)];}[o(0x172)](c){const Q=o;this[Q(0x137)]?.[Q(0x16f)]({'code':telemetry_1['SpanStatusCode']['ERROR'],'message':c});}[o(0x186)](c){const R=o;this[R(0x137)]?.['setStatus']({'code':telemetry_1['SpanStatusCode'][R(0x139)],'message':c});}static[o(0x17f)](c,d,e,f){const S=o;f===0x1?(!(d[S(0x168)]in c)&&(c[d[S(0x168)]]=[]),c[d['parent']][S(0x175)](d[S(0x168)]+'/output/metadata/l2s')):(!(e[S(0x128)]in c)&&(c[e[S(0x128)]]=[]),c[e['aid']]['push'](e[S(0x128)]+S(0x155)));}static[o(0x135)](c,d,e){const T=o;d[T(0x15e)]===T(0x157)&&(c[T(0x136)]=e['metadata'][T(0x156)]);}static[o(0x183)](c,d,e,f,g){const U=o;if(d[U(0x15e)]===U(0x157))c[e[U(0x128)]+U(0x155)]=f[U(0x15d)][U(0x13c)][U(0x159)][U(0x171)],c[e[U(0x128)]+U(0x162)]=f[U(0x15d)][U(0x13c)][U(0x159)]['l2s'];else{if(d[U(0x15e)]===U(0x169)&&g===0x1)c[e[U(0x128)]+'/output/metadata/l1s']=f[U(0x15d)][U(0x13c)]['metadata'][U(0x171)],c[e['aid']+'/output/metadata/l2s']=f[U(0x15d)][U(0x13c)][U(0x159)][U(0x171)];else{if(d[U(0x15e)]===U(0x147)&&g===0x1)c[e[U(0x128)]+U(0x155)]=f['$self'][U(0x13c)][U(0x159)][U(0x171)],c[e[U(0x128)]+'/output/metadata/l2s']=f[U(0x15d)][U(0x13c)][U(0x159)][U(0x171)];else{const h='l'+g+'s';c[e[U(0x128)]+U(0x185)+h]=f[U(0x15d)][U(0x13c)][U(0x159)][h];}}}}}function b(c,d){const e=a();return b=function(f,g){f=f-0x11f;let h=e[f];return h;},b(c,d);}exports[o(0x15a)]=TelemetryService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const m=b;function a(){const z=['init','logger','worker-event-received','toString','initRouter','reclaimCount','rollCallInterval','defineProperty','49689765GafHFD','verifyWorkerFields','worker\x20must\x20include\x20`store`,\x20`stream`,\x20and\x20`sub`\x20fields\x20along\x20with\x20a\x20callback\x20function\x20and\x20topic.','signature','KeyType','7676185qgTGda','WORKER','interval','sub','3825438KmxExg','store','consumeMessages','118227uikNbV','ping','cancelRollCall','getThrottleRate','WorkerService','max','initSubChannel','namespace','StreamServiceFactory','../connector/factory','inited','140sXnfbD','mintKey','identifyProvider','545043rUrYKR','../../modules/key','type','topic','getSystemHealth','reclaimDelay','../store/factory','../../types/stream','subscribe','initStreamChannel','../sub/factory','QUORUM','setThrottle','isArray','ceil','sayPong','push','stream','subscriptionHandler','workers','guid','../router','throttle','appId','formatISODate','535542FDZbgN','20FEvymE','ConnectorService','router','pub','config','619720YumeyF','HMSH_QUORUM_ROLLCALL_CYCLES','Router','random','initStoreChannel','callback','stop','initClients'];a=function(){return z;};return a();}(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x1b8))/0x1+-parseInt(l(0x1d1))/0x2+parseInt(l(0x1aa))/0x3*(-parseInt(l(0x1d2))/0x4)+-parseInt(l(0x1a3))/0x5+-parseInt(l(0x1a7))/0x6+-parseInt(l(0x1b5))/0x7*(parseInt(l(0x1d7))/0x8)+parseInt(l(0x19e))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc0a7c));Object[m(0x19d)](exports,'__esModule',{'value':!![]}),exports[m(0x1ae)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x19b;let h=e[f];return h;},b(c,d);}const key_1=require(m(0x1b9)),utils_1=require('../../modules/utils'),factory_1=require(m(0x1b3)),router_1=require(m(0x1cd)),stream_1=require(m(0x1bf)),enums_1=require('../../modules/enums'),factory_2=require('../stream/factory'),factory_3=require(m(0x1c2)),factory_4=require(m(0x1be));class WorkerService{constructor(){this['reporting']=![];}static async[m(0x1df)](c,d,e,f,g){const n=m,h=[];if(Array[n(0x1c5)](f[n(0x1cb)]))for(const i of f[n(0x1cb)]){await factory_1[n(0x1d3)][n(0x1de)](i);const j=new WorkerService();j['verifyWorkerFields'](i),j[n(0x1b1)]=c,j[n(0x1cf)]=d,j[n(0x1cc)]=e,j[n(0x1dc)]=i[n(0x1dc)],j[n(0x1bb)]=i[n(0x1bb)],j[n(0x1d6)]=f,j['logger']=g,await j[n(0x1db)](j,i[n(0x1a8)]),await j[n(0x1b0)](j,i[n(0x1a6)],i[n(0x1d5)]??i[n(0x1a8)]),await j['subscribe']['subscribe'](key_1['KeyType']['QUORUM'],j[n(0x1ca)](),d),await j[n(0x1c0)][n(0x1c0)](key_1[n(0x1a2)][n(0x1c3)],j[n(0x1ca)](),d,j['topic']),await j[n(0x1c0)][n(0x1c0)](key_1[n(0x1a2)][n(0x1c3)],j[n(0x1ca)](),d,j[n(0x1cc)]),await j[n(0x1c1)](j,i[n(0x1c9)],i[n(0x1a8)]),j['router']=await j[n(0x1e3)](i,g);const k=j[n(0x1a8)][n(0x1b6)](key_1[n(0x1a2)]['STREAMS'],{'appId':j[n(0x1cf)],'topic':i[n(0x1bb)]});await j[n(0x1d4)][n(0x1a9)](k,n(0x1a4),j['guid'],i[n(0x1dc)]),j['inited']=(0x0,utils_1[n(0x1d0)])(new Date()),h[n(0x1c8)](j);}return h;}[m(0x19f)](c){const o=m;if(!(0x0,utils_1[o(0x1b7)])(c[o(0x1a8)])||!(0x0,utils_1[o(0x1b7)])(c[o(0x1c9)])||!(0x0,utils_1['identifyProvider'])(c[o(0x1a6)])||!(c[o(0x1bb)]&&c[o(0x1dc)]))throw new Error(o(0x1a0));}async[m(0x1db)](c,d){const p=m;c[p(0x1a8)]=await factory_4['StoreServiceFactory'][p(0x1df)](d,c['namespace'],c[p(0x1cf)],c[p(0x1e0)]);}async['initSubChannel'](c,d,e){const q=m;c[q(0x1c0)]=await factory_3['SubServiceFactory'][q(0x1df)](d,e,c[q(0x1b1)],c['appId'],c[q(0x1cc)],c[q(0x1e0)]);}async[m(0x1c1)](c,d,e){const r=m;c['stream']=await factory_2[r(0x1b2)][r(0x1df)](d,e,c[r(0x1b1)],c['appId'],c[r(0x1e0)]);}async['initRouter'](c,d){const s=m,e=await this[s(0x1a8)][s(0x1ad)](c[s(0x1bb)]);return new router_1[(s(0x1d9))]({'namespace':this[s(0x1b1)],'appId':this['appId'],'guid':this[s(0x1cc)],'role':stream_1['StreamRole'][s(0x1a4)],'topic':c[s(0x1bb)],'reclaimDelay':c['reclaimDelay'],'reclaimCount':c[s(0x19b)],'throttle':e},this[s(0x1c9)],d);}[m(0x1ca)](){const c=this;return async(d,e)=>{const t=b;c['logger']['debug'](t(0x1e1),{'topic':d,'type':e[t(0x1ba)]});if(e[t(0x1ba)]===t(0x1ce))e['topic']!==null&&c[t(0x1ce)](e[t(0x1ce)]);else{if(e[t(0x1ba)]===t(0x1ab))c[t(0x1c7)](c[t(0x1cf)],c[t(0x1cc)],e['originator'],e['details']);else e[t(0x1ba)]==='rollcall'&&(e['topic']!==null&&c['doRollCall'](e));}};}async['doRollCall'](c){const u=m;let d=0x0;const e=!isNaN(c[u(0x1af)])?c[u(0x1af)]:enums_1[u(0x1d8)];if(this[u(0x19c)])clearTimeout(this['rollCallInterval']);const f=c[u(0x1a5)]/0x2,g=f+Math[u(0x1c6)](Math[u(0x1da)]()*f);do{await(0x0,utils_1['sleepFor'])(Math['ceil'](Math[u(0x1da)]()*0x3e8)),await this['sayPong'](this[u(0x1cf)],this[u(0x1cc)],null,!![],c[u(0x1a1)]);if(!c[u(0x1a5)])return;const {promise:h,timerId:i}=(0x0,utils_1['XSleepFor'])(g*0x3e8);this['rollCallInterval']=i,await h;}while(this[u(0x19c)]&&d++<e-0x1);}[m(0x1ac)](){const v=m;this[v(0x19c)]&&(clearTimeout(this['rollCallInterval']),delete this['rollCallInterval']);}[m(0x1dd)](){const w=m;this[w(0x1ac)]();}async[m(0x1c7)](c,d,e,f=![],g=![]){const x=m;let h;if(f){const i={'appId':this['appId'],'topic':this[x(0x1bb)]};h={'engine_id':this[x(0x1cc)],'namespace':this['namespace'],'app_id':this[x(0x1cf)],'worker_topic':this[x(0x1bb)],'stream':this[x(0x1a8)][x(0x1b6)](key_1['KeyType']['STREAMS'],i),'counts':this[x(0x1d4)]?.['counts'],'timestamp':(0x0,utils_1[x(0x1d0)])(new Date()),'inited':this[x(0x1b4)],'throttle':this[x(0x1d4)]?.[x(0x1ce)],'reclaimDelay':this[x(0x1d4)]?.[x(0x1bd)],'reclaimCount':this['router']?.[x(0x19b)],'system':await(0x0,utils_1[x(0x1bc)])(),'signature':g?this['callback'][x(0x1e2)]():undefined};}this[x(0x1c0)]['publish'](key_1[x(0x1a2)][x(0x1c3)],{'type':'pong','guid':d,'originator':e,'profile':h},c);}async[m(0x1ce)](c){const y=m;this[y(0x1d4)]?.[y(0x1c4)](c);}}exports[m(0x1ae)]=WorkerService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotmeshio/hotmesh",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "Serverless Workflow",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test:meshflow:collision": "NODE_ENV=test jest ./tests/meshflow/collision/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
32
32
|
"test:meshflow:fatal": "NODE_ENV=test jest ./tests/meshflow/fatal/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
33
33
|
"test:meshflow:goodbye": "NODE_ENV=test jest ./tests/meshflow/goodbye/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
34
|
-
"test:meshflow:hello": "HMSH_LOGLEVEL=debug HMSH_IS_CLUSTER=true NODE_ENV=test jest ./tests/meshflow/helloworld/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
34
|
+
"test:meshflow:hello": "HMSH_TELEMETRY=debug HMSH_LOGLEVEL=debug HMSH_IS_CLUSTER=true NODE_ENV=test jest ./tests/meshflow/helloworld/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
35
35
|
"test:meshflow:hook": "NODE_ENV=test jest ./tests/meshflow/hook/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
36
36
|
"test:meshflow:interrupt": "NODE_ENV=test jest ./tests/meshflow/interrupt/*.test.ts --detectOpenHandles --forceExit --verbose",
|
|
37
37
|
"test:meshflow:loopactivity": "NODE_ENV=test jest ./tests/meshflow/loopactivity/*.test.ts --detectOpenHandles --forceExit --verbose",
|