From 5ff502988b8d231a1c9a9899dd4a7176f477c184 Mon Sep 17 00:00:00 2001 From: Richard Rodger Date: Mon, 10 Jun 2024 16:03:31 +0100 Subject: [PATCH] v26.0.1 --- coverage/lcov.info | 179 +++++++++++++++++++++--------------------- dist/lib/store.js.map | 2 +- package.json | 2 +- src/lib/store.ts | 15 ++-- test/entity.test.js | 6 +- 5 files changed, 103 insertions(+), 101 deletions(-) diff --git a/coverage/lcov.info b/coverage/lcov.info index 3a6d691..e674ea1 100644 --- a/coverage/lcov.info +++ b/coverage/lcov.info @@ -1544,8 +1544,8 @@ SF:src/lib/store.ts FN:5,Store FN:8,make_tag FN:19,init -FN:142,reify_entity_wrap -FN:149,outfunc +FN:143,reify_entity_wrap +FN:150,outfunc FNF:5 FNH:5 FNDA:51,Store @@ -1576,17 +1576,17 @@ DA:20,56 DA:21,56 DA:22,56 DA:23,56 -DA:24,4 -DA:25,5 +DA:24,56 +DA:25,4 DA:26,5 DA:27,5 DA:28,5 DA:29,5 DA:30,5 -DA:31,56 -DA:32,52 +DA:31,5 +DA:32,56 DA:33,52 -DA:34,56 +DA:34,52 DA:35,56 DA:36,56 DA:37,56 @@ -1601,7 +1601,7 @@ DA:45,56 DA:46,56 DA:47,56 DA:48,56 -DA:49,57 +DA:49,56 DA:50,57 DA:51,57 DA:52,57 @@ -1612,16 +1612,16 @@ DA:56,57 DA:57,57 DA:58,57 DA:59,57 -DA:60,56 +DA:60,57 DA:61,56 DA:62,56 -DA:63,57 -DA:64,0 +DA:63,56 +DA:64,57 DA:65,0 -DA:66,1 +DA:66,0 DA:67,1 DA:68,1 -DA:69,57 +DA:69,1 DA:70,57 DA:71,57 DA:72,57 @@ -1632,17 +1632,17 @@ DA:76,57 DA:77,57 DA:78,57 DA:79,57 -DA:80,342 +DA:80,57 DA:81,342 DA:82,342 DA:83,342 DA:84,342 -DA:85,0 +DA:85,342 DA:86,0 DA:87,0 DA:88,0 DA:89,0 -DA:90,342 +DA:90,0 DA:91,342 DA:92,342 DA:93,342 @@ -1650,70 +1650,70 @@ DA:94,342 DA:95,342 DA:96,342 DA:97,342 -DA:98,0 +DA:98,342 DA:99,0 -DA:100,342 +DA:100,0 DA:101,342 -DA:102,285 -DA:103,342 -DA:104,57 +DA:102,342 +DA:103,285 +DA:104,342 DA:105,57 DA:106,57 -DA:107,94 +DA:107,57 DA:108,94 DA:109,94 -DA:110,54 +DA:110,94 DA:111,54 DA:112,54 DA:113,54 DA:114,54 DA:115,54 -DA:116,94 -DA:117,40 +DA:116,54 +DA:117,94 DA:118,40 -DA:119,57 +DA:119,40 DA:120,57 DA:121,57 DA:122,57 DA:123,57 DA:124,57 DA:125,57 -DA:126,56 -DA:127,0 -DA:128,56 +DA:126,57 +DA:127,56 +DA:128,0 DA:129,56 DA:130,56 DA:131,56 DA:132,56 DA:133,56 -DA:134,51 +DA:134,56 DA:135,51 DA:136,51 DA:137,51 DA:138,51 -DA:139,1 +DA:139,51 DA:140,1 DA:141,1 DA:142,1 -DA:143,344 +DA:143,1 DA:144,344 DA:145,344 DA:146,344 DA:147,344 DA:148,344 DA:149,344 -DA:150,158 -DA:151,103 -DA:152,71 +DA:150,344 +DA:151,158 +DA:152,103 DA:153,71 DA:154,71 -DA:155,4 +DA:155,71 DA:156,4 DA:157,4 -DA:158,71 -DA:159,103 +DA:158,4 +DA:159,71 DA:160,103 -DA:161,63 +DA:161,103 DA:162,63 DA:163,63 DA:164,63 @@ -1721,10 +1721,10 @@ DA:165,63 DA:166,63 DA:167,63 DA:168,63 -DA:169,103 -DA:170,158 +DA:169,63 +DA:170,103 DA:171,158 -DA:172,3 +DA:172,158 DA:173,3 DA:174,3 DA:175,3 @@ -1732,10 +1732,10 @@ DA:176,3 DA:177,3 DA:178,3 DA:179,3 -DA:180,158 +DA:180,3 DA:181,158 DA:182,158 -DA:183,344 +DA:183,158 DA:184,344 DA:185,344 DA:186,344 @@ -1746,58 +1746,59 @@ DA:190,344 DA:191,344 DA:192,344 DA:193,344 -DA:194,1 +DA:194,344 DA:195,1 DA:196,1 DA:197,1 -LF:197 -LH:187 +DA:198,1 +LF:198 +LH:188 BRDA:5,0,0,51 BRDA:8,1,0,56 BRDA:9,2,0,52 BRDA:19,3,0,56 -BRDA:21,4,0,4 -BRDA:23,5,0,4 -BRDA:24,6,0,5 -BRDA:31,7,0,52 -BRDA:42,8,0,0 -BRDA:44,9,0,0 -BRDA:48,10,0,57 -BRDA:59,11,0,56 -BRDA:63,12,0,1 -BRDA:63,13,0,0 -BRDA:70,14,0,56 -BRDA:70,15,0,1 -BRDA:71,16,0,56 -BRDA:71,17,0,1 -BRDA:72,18,0,52 -BRDA:72,19,0,5 -BRDA:75,20,0,5 -BRDA:76,21,0,0 -BRDA:77,22,0,0 -BRDA:126,23,0,0 -BRDA:79,24,0,342 -BRDA:84,25,0,0 -BRDA:97,26,0,0 -BRDA:101,27,0,285 -BRDA:103,28,0,57 -BRDA:106,29,0,94 -BRDA:109,30,0,54 -BRDA:116,31,0,40 -BRDA:110,32,0,54 -BRDA:111,33,0,0 -BRDA:142,34,0,344 -BRDA:188,35,0,0 -BRDA:189,36,0,0 -BRDA:190,37,0,314 -BRDA:190,38,0,30 -BRDA:149,39,0,158 -BRDA:150,40,0,103 -BRDA:151,41,0,71 -BRDA:154,42,0,4 -BRDA:160,43,0,63 -BRDA:171,44,0,95 -BRDA:171,45,0,3 +BRDA:22,4,0,4 +BRDA:24,5,0,4 +BRDA:25,6,0,5 +BRDA:32,7,0,52 +BRDA:43,8,0,0 +BRDA:45,9,0,0 +BRDA:49,10,0,57 +BRDA:60,11,0,56 +BRDA:64,12,0,1 +BRDA:64,13,0,0 +BRDA:71,14,0,56 +BRDA:71,15,0,1 +BRDA:72,16,0,56 +BRDA:72,17,0,1 +BRDA:73,18,0,52 +BRDA:73,19,0,5 +BRDA:76,20,0,5 +BRDA:77,21,0,0 +BRDA:78,22,0,0 +BRDA:127,23,0,0 +BRDA:80,24,0,342 +BRDA:85,25,0,0 +BRDA:98,26,0,0 +BRDA:102,27,0,285 +BRDA:104,28,0,57 +BRDA:107,29,0,94 +BRDA:110,30,0,54 +BRDA:117,31,0,40 +BRDA:111,32,0,54 +BRDA:112,33,0,0 +BRDA:143,34,0,344 +BRDA:189,35,0,0 +BRDA:190,36,0,0 +BRDA:191,37,0,314 +BRDA:191,38,0,30 +BRDA:150,39,0,158 +BRDA:151,40,0,103 +BRDA:152,41,0,71 +BRDA:155,42,0,4 +BRDA:161,43,0,63 +BRDA:172,44,0,95 +BRDA:172,45,0,3 BRF:46 BRH:35 end_of_record diff --git a/dist/lib/store.js.map b/dist/lib/store.js.map index 6a74954..1011db8 100644 --- a/dist/lib/store.js.map +++ b/dist/lib/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/lib/store.ts"],"names":[],"mappings":";AAAA,gFAAgF;;;AAEhF,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;AAErE,SAAS,KAAK,CAAC,WAAgB;IAC7B,MAAM,aAAa,GAAQ,EAAE,CAAA;IAE7B,SAAS,QAAQ,CAAC,UAAe;QAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;QAChE,OAAO,aAAa,CAAC,UAAU,CAAC,CAAA;IAClC,CAAC;IAED,6DAA6D;IAC7D,MAAM,KAAK,GAAG;QACZ,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAEtB,+BAA+B;QAC/B,iFAAiF;QACjF,IAAI,EAAE,UAAS,QAAa,EAAE,UAAe,EAAE,KAAU,EAAE,EAAO;YAChE,MAAM,QAAQ,GAAG,EAAE,CAAA;YACnB,MAAM,eAAe,GAAG,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,M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AAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACnB,CAAC;YAED,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;QAC7C,CAAC,CAAA;QAED,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;YACrC,KAAK,EACH,SAAS;gBACT,GAAG;gBACH,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC;gBAChC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC;gBAChC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SAC7B,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAA;AAEQ,wBAAM"} \ No newline at end of file diff --git a/package.json b/package.json index 1f5a4c9..6345658 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "seneca-entity", "main": "dist/entity.js", - "version": "26.0.0", + "version": "26.0.1", "type": "commonjs", "types": "dist/entity.d.ts", "description": "Entity plugin for seneca", diff --git a/src/lib/store.ts b/src/lib/store.ts index 599fc96..c3e9445 100644 --- a/src/lib/store.ts +++ b/src/lib/store.ts @@ -16,9 +16,10 @@ function Store(plugin_opts: any) { // opts.map = { canon: [cmds] } // canon is in string format zone/base/name, with empty or - indicating undefined - init: function(instance: any, store_opts: any, store: any, cb: any) { + init: function (instance: any, store_opts: any, store: any, cb: any) { const entspecs = [] - const hasCanonMapping = store_opts.map && 0 < Object.keys(store_opts.map).length + const hasCanonMapping = + store_opts.map && 0 < Object.keys(store_opts.map).length if (hasCanonMapping) { for (const canon in store_opts.map) { @@ -76,7 +77,7 @@ function Store(plugin_opts: any) { if (void 0 !== base) entargs.base = base if (void 0 !== zone) entargs.zone = zone - entspec.cmds.forEach(function(cmd: string) { + entspec.cmds.forEach(function (cmd: string) { const args = { ...entargs, cmd: cmd, ...plugin_opts.pattern_fix } const orig_cmdfunc = store[cmd] let cmdfunc = orig_cmdfunc @@ -103,11 +104,11 @@ function Store(plugin_opts: any) { } else if (cmd === 'close') { instance.add( 'sys:seneca,cmd:close', - function(this: any, close_args: any, done: any) { + function (this: any, close_args: any, done: any) { const closer = this if (!store.closed$) { - cmdfunc.call(closer, close_args, function(err: any) { + cmdfunc.call(closer, close_args, function (err: any) { if (err) closer.log.error('close-error', close_args, err) store.closed$ = true @@ -139,14 +140,14 @@ function Store(plugin_opts: any) { const Intern: any = { // Ensure entity objects are instantiated - reify_entity_wrap: function( + reify_entity_wrap: function ( cmdfunc: any, cmd: string, zone?: string, base?: string, name?: string, ) { - const outfunc = function(this: any, msg: any, reply: any, meta: any) { + const outfunc = function (this: any, msg: any, reply: any, meta: any) { if ('save' !== msg.cmd) { if (null == msg.q) { msg.q = {} diff --git a/test/entity.test.js b/test/entity.test.js index 8491dda..77c3c39 100644 --- a/test/entity.test.js +++ b/test/entity.test.js @@ -24,9 +24,9 @@ function SenecaInstance() { }, plugins: [Entity], }) - .test() - .use('promisify') - + .test() + .use('promisify') + return seneca }