mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":131},"end":{"line":4,"column":40,"index":156}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.augmentObject = augmentObject;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const l = (0, util_1.logger)('api/augment');\n function logLength(type, values, and = []) {\n return values.length ? ` ${values.length} ${type}${and.length ? ' and' : ''}` : '';\n }\n function logValues(type, values) {\n return values.length ? `\\n\\t${type.padStart(7)}: ${values.sort().join(', ')}` : '';\n }\n function warn(prefix, type, [added, removed]) {\n if (added.length || removed.length) {\n l.warn(`api.${prefix}: Found${logLength('added', added, removed)}${logLength('removed', removed)} ${type}:${logValues('added', added)}${logValues('removed', removed)}`);\n }\n }\n function findSectionExcludes(a, b) {\n return a.filter(s => !b.includes(s));\n }\n function findSectionIncludes(a, b) {\n return a.filter(s => b.includes(s));\n }\n function extractSections(src, dst) {\n const srcSections = Object.keys(src);\n const dstSections = Object.keys(dst);\n return [findSectionExcludes(srcSections, dstSections), findSectionExcludes(dstSections, srcSections)];\n }\n function findMethodExcludes(src, dst) {\n const srcSections = Object.keys(src);\n const dstSections = findSectionIncludes(Object.keys(dst), srcSections);\n const excludes = [];\n for (let s = 0, scount = dstSections.length; s < scount; s++) {\n const section = dstSections[s];\n const srcMethods = Object.keys(src[section]);\n const dstMethods = Object.keys(dst[section]);\n for (let d = 0, mcount = dstMethods.length; d < mcount; d++) {\n const method = dstMethods[d];\n if (!srcMethods.includes(method)) {\n excludes.push(`${section}.${method}`);\n }\n }\n }\n return excludes;\n }\n function extractMethods(src, dst) {\n return [findMethodExcludes(dst, src), findMethodExcludes(src, dst)];\n }\n /**\n * @description Takes a decorated api section (e.g. api.tx) and augment it with the details. It does not override what is\n * already available, but rather just adds new missing items into the result object.\n * @internal\n */\n function augmentObject(prefix, src, dst, fromEmpty = false) {\n fromEmpty && (0, util_1.objectClear)(dst);\n // NOTE: This part is slightly problematic since it will get the\n // values for at least all the sections and the names of the methods\n // (Since methods won't be decorated before lazy, this _may_ be ok)\n if (prefix && Object.keys(dst).length) {\n warn(prefix, 'modules', extractSections(src, dst));\n warn(prefix, 'calls', extractMethods(src, dst));\n }\n const sections = Object.keys(src);\n for (let i = 0, count = sections.length; i < count; i++) {\n const section = sections[i];\n const methods = src[section];\n // We don't set here with a lazy interface, we decorate based\n // on the top-level structure (this bypasses adding lazy onto lazy)\n if (!dst[section]) {\n dst[section] = {};\n }\n (0, util_1.lazyMethods)(dst[section], Object.keys(methods), m => methods[m]);\n }\n return dst;\n }\n});","lineCount":79,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"augmentObject"],[7,23,3,21],[7,26,3,24,"augmentObject"],[7,39,3,37],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[9,8,5,6,"l"],[9,9,5,7],[9,12,5,10],[9,13,5,11],[9,14,5,12],[9,16,5,14,"util_1"],[9,22,5,20],[9,23,5,21,"logger"],[9,29,5,27],[9,31,5,29],[9,44,5,42],[9,45,5,43],[10,2,6,0],[10,11,6,9,"logLength"],[10,20,6,18,"logLength"],[10,21,6,19,"type"],[10,25,6,23],[10,27,6,25,"values"],[10,33,6,31],[10,35,6,33,"and"],[10,38,6,36],[10,41,6,39],[10,43,6,41],[10,45,6,43],[11,4,7,4],[11,11,7,11,"values"],[11,17,7,17],[11,18,7,18,"length"],[11,24,7,24],[11,27,8,10],[11,31,8,14,"values"],[11,37,8,20],[11,38,8,21,"length"],[11,44,8,27],[11,48,8,31,"type"],[11,52,8,35],[11,55,8,38,"and"],[11,58,8,41],[11,59,8,42,"length"],[11,65,8,48],[11,68,8,51],[11,74,8,57],[11,77,8,60],[11,79,8,62],[11,81,8,64],[11,84,9,10],[11,86,9,12],[12,2,10,0],[13,2,11,0],[13,11,11,9,"logValues"],[13,20,11,18,"logValues"],[13,21,11,19,"type"],[13,25,11,23],[13,27,11,25,"values"],[13,33,11,31],[13,35,11,33],[14,4,12,4],[14,11,12,11,"values"],[14,17,12,17],[14,18,12,18,"length"],[14,24,12,24],[14,27,13,10],[14,34,13,17,"type"],[14,38,13,21],[14,39,13,22,"padStart"],[14,47,13,30],[14,48,13,31],[14,49,13,32],[14,50,13,33],[14,55,13,38,"values"],[14,61,13,44],[14,62,13,45,"sort"],[14,66,13,49],[14,67,13,50],[14,68,13,51],[14,69,13,52,"join"],[14,73,13,56],[14,74,13,57],[14,78,13,61],[14,79,13,62],[14,81,13,64],[14,84,14,10],[14,86,14,12],[15,2,15,0],[16,2,16,0],[16,11,16,9,"warn"],[16,15,16,13,"warn"],[16,16,16,14,"prefix"],[16,22,16,20],[16,24,16,22,"type"],[16,28,16,26],[16,30,16,28],[16,31,16,29,"added"],[16,36,16,34],[16,38,16,36,"removed"],[16,45,16,43],[16,46,16,44],[16,48,16,46],[17,4,17,4],[17,8,17,8,"added"],[17,13,17,13],[17,14,17,14,"length"],[17,20,17,20],[17,24,17,24,"removed"],[17,31,17,31],[17,32,17,32,"length"],[17,38,17,38],[17,40,17,40],[18,6,18,8,"l"],[18,7,18,9],[18,8,18,10,"warn"],[18,12,18,14],[18,13,18,15],[18,20,18,22,"prefix"],[18,26,18,28],[18,36,18,38,"logLength"],[18,45,18,47],[18,46,18,48],[18,53,18,55],[18,55,18,57,"added"],[18,60,18,62],[18,62,18,64,"removed"],[18,69,18,71],[18,70,18,72],[18,73,18,75,"logLength"],[18,82,18,84],[18,83,18,85],[18,92,18,94],[18,94,18,96,"removed"],[18,101,18,103],[18,102,18,104],[18,106,18,108,"type"],[18,110,18,112],[18,114,18,116,"logValues"],[18,123,18,125],[18,124,18,126],[18,131,18,133],[18,133,18,135,"added"],[18,138,18,140],[18,139,18,141],[18,142,18,144,"logValues"],[18,151,18,153],[18,152,18,154],[18,161,18,163],[18,163,18,165,"removed"],[18,170,18,172],[18,171,18,173],[18,173,18,175],[18,174,18,176],[19,4,19,4],[20,2,20,0],[21,2,21,0],[21,11,21,9,"findSectionExcludes"],[21,30,21,28,"findSectionExcludes"],[21,31,21,29,"a"],[21,32,21,30],[21,34,21,32,"b"],[21,35,21,33],[21,37,21,35],[22,4,22,4],[22,11,22,11,"a"],[22,12,22,12],[22,13,22,13,"filter"],[22,19,22,19],[22,20,22,21,"s"],[22,21,22,22],[22,25,22,27],[22,26,22,28,"b"],[22,27,22,29],[22,28,22,30,"includes"],[22,36,22,38],[22,37,22,39,"s"],[22,38,22,40],[22,39,22,41],[22,40,22,42],[23,2,23,0],[24,2,24,0],[24,11,24,9,"findSectionIncludes"],[24,30,24,28,"findSectionIncludes"],[24,31,24,29,"a"],[24,32,24,30],[24,34,24,32,"b"],[24,35,24,33],[24,37,24,35],[25,4,25,4],[25,11,25,11,"a"],[25,12,25,12],[25,13,25,13,"filter"],[25,19,25,19],[25,20,25,21,"s"],[25,21,25,22],[25,25,25,27,"b"],[25,26,25,28],[25,27,25,29,"includes"],[25,35,25,37],[25,36,25,38,"s"],[25,37,25,39],[25,38,25,40],[25,39,25,41],[26,2,26,0],[27,2,27,0],[27,11,27,9,"extractSections"],[27,26,27,24,"extractSections"],[27,27,27,25,"src"],[27,30,27,28],[27,32,27,30,"dst"],[27,35,27,33],[27,37,27,35],[28,4,28,4],[28,10,28,10,"srcSections"],[28,21,28,21],[28,24,28,24,"Object"],[28,30,28,30],[28,31,28,31,"keys"],[28,35,28,35],[28,36,28,36,"src"],[28,39,28,39],[28,40,28,40],[29,4,29,4],[29,10,29,10,"dstSections"],[29,21,29,21],[29,24,29,24,"Object"],[29,30,29,30],[29,31,29,31,"keys"],[29,35,29,35],[29,36,29,36,"dst"],[29,39,29,39],[29,40,29,40],[30,4,30,4],[30,11,30,11],[30,12,31,8,"findSectionExcludes"],[30,31,31,27],[30,32,31,28,"srcSections"],[30,43,31,39],[30,45,31,41,"dstSections"],[30,56,31,52],[30,57,31,53],[30,59,32,8,"findSectionExcludes"],[30,78,32,27],[30,79,32,28,"dstSections"],[30,90,32,39],[30,92,32,41,"srcSections"],[30,103,32,52],[30,104,32,53],[30,105,33,5],[31,2,34,0],[32,2,35,0],[32,11,35,9,"findMethodExcludes"],[32,29,35,27,"findMethodExcludes"],[32,30,35,28,"src"],[32,33,35,31],[32,35,35,33,"dst"],[32,38,35,36],[32,40,35,38],[33,4,36,4],[33,10,36,10,"srcSections"],[33,21,36,21],[33,24,36,24,"Object"],[33,30,36,30],[33,31,36,31,"keys"],[33,35,36,35],[33,36,36,36,"src"],[33,39,36,39],[33,40,36,40],[34,4,37,4],[34,10,37,10,"dstSections"],[34,21,37,21],[34,24,37,24,"findSectionIncludes"],[34,43,37,43],[34,44,37,44,"Object"],[34,50,37,50],[34,51,37,51,"keys"],[34,55,37,55],[34,56,37,56,"dst"],[34,59,37,59],[34,60,37,60],[34,62,37,62,"srcSections"],[34,73,37,73],[34,74,37,74],[35,4,38,4],[35,10,38,10,"excludes"],[35,18,38,18],[35,21,38,21],[35,23,38,23],[36,4,39,4],[36,9,39,9],[36,13,39,13,"s"],[36,14,39,14],[36,17,39,17],[36,18,39,18],[36,20,39,20,"scount"],[36,26,39,26],[36,29,39,29,"dstSections"],[36,40,39,40],[36,41,39,41,"length"],[36,47,39,47],[36,49,39,49,"s"],[36,50,39,50],[36,53,39,53,"scount"],[36,59,39,59],[36,61,39,61,"s"],[36,62,39,62],[36,64,39,64],[36,66,39,66],[37,6,40,8],[37,12,40,14,"section"],[37,19,40,21],[37,22,40,24,"dstSections"],[37,33,40,35],[37,34,40,36,"s"],[37,35,40,37],[37,36,40,38],[38,6,41,8],[38,12,41,14,"srcMethods"],[38,22,41,24],[38,25,41,27,"Object"],[38,31,41,33],[38,32,41,34,"keys"],[38,36,41,38],[38,37,41,39,"src"],[38,40,41,42],[38,41,41,43,"section"],[38,48,41,50],[38,49,41,51],[38,50,41,52],[39,6,42,8],[39,12,42,14,"dstMethods"],[39,22,42,24],[39,25,42,27,"Object"],[39,31,42,33],[39,32,42,34,"keys"],[39,36,42,38],[39,37,42,39,"dst"],[39,40,42,42],[39,41,42,43,"section"],[39,48,42,50],[39,49,42,51],[39,50,42,52],[40,6,43,8],[40,11,43,13],[40,15,43,17,"d"],[40,16,43,18],[40,19,43,21],[40,20,43,22],[40,22,43,24,"mcount"],[40,28,43,30],[40,31,43,33,"dstMethods"],[40,41,43,43],[40,42,43,44,"length"],[40,48,43,50],[40,50,43,52,"d"],[40,51,43,53],[40,54,43,56,"mcount"],[40,60,43,62],[40,62,43,64,"d"],[40,63,43,65],[40,65,43,67],[40,67,43,69],[41,8,44,12],[41,14,44,18,"method"],[41,20,44,24],[41,23,44,27,"dstMethods"],[41,33,44,37],[41,34,44,38,"d"],[41,35,44,39],[41,36,44,40],[42,8,45,12],[42,12,45,16],[42,13,45,17,"srcMethods"],[42,23,45,27],[42,24,45,28,"includes"],[42,32,45,36],[42,33,45,37,"method"],[42,39,45,43],[42,40,45,44],[42,42,45,46],[43,10,46,16,"excludes"],[43,18,46,24],[43,19,46,25,"push"],[43,23,46,29],[43,24,46,30],[43,27,46,33,"section"],[43,34,46,40],[43,38,46,44,"method"],[43,44,46,50],[43,46,46,52],[43,47,46,53],[44,8,47,12],[45,6,48,8],[46,4,49,4],[47,4,50,4],[47,11,50,11,"excludes"],[47,19,50,19],[48,2,51,0],[49,2,52,0],[49,11,52,9,"extractMethods"],[49,25,52,23,"extractMethods"],[49,26,52,24,"src"],[49,29,52,27],[49,31,52,29,"dst"],[49,34,52,32],[49,36,52,34],[50,4,53,4],[50,11,53,11],[50,12,54,8,"findMethodExcludes"],[50,30,54,26],[50,31,54,27,"dst"],[50,34,54,30],[50,36,54,32,"src"],[50,39,54,35],[50,40,54,36],[50,42,55,8,"findMethodExcludes"],[50,60,55,26],[50,61,55,27,"src"],[50,64,55,30],[50,66,55,32,"dst"],[50,69,55,35],[50,70,55,36],[50,71,56,5],[51,2,57,0],[52,2,58,0],[53,0,59,0],[54,0,60,0],[55,0,61,0],[56,0,62,0],[57,2,63,0],[57,11,63,9,"augmentObject"],[57,24,63,22,"augmentObject"],[57,25,63,23,"prefix"],[57,31,63,29],[57,33,63,31,"src"],[57,36,63,34],[57,38,63,36,"dst"],[57,41,63,39],[57,43,63,41,"fromEmpty"],[57,52,63,50],[57,55,63,53],[57,60,63,58],[57,62,63,60],[58,4,64,4,"fromEmpty"],[58,13,64,13],[58,17,64,17],[58,18,64,18],[58,19,64,19],[58,21,64,21,"util_1"],[58,27,64,27],[58,28,64,28,"objectClear"],[58,39,64,39],[58,41,64,41,"dst"],[58,44,64,44],[58,45,64,45],[59,4,65,4],[60,4,66,4],[61,4,67,4],[62,4,68,4],[62,8,68,8,"prefix"],[62,14,68,14],[62,18,68,18,"Object"],[62,24,68,24],[62,25,68,25,"keys"],[62,29,68,29],[62,30,68,30,"dst"],[62,33,68,33],[62,34,68,34],[62,35,68,35,"length"],[62,41,68,41],[62,43,68,43],[63,6,69,8,"warn"],[63,10,69,12],[63,11,69,13,"prefix"],[63,17,69,19],[63,19,69,21],[63,28,69,30],[63,30,69,32,"extractSections"],[63,45,69,47],[63,46,69,48,"src"],[63,49,69,51],[63,51,69,53,"dst"],[63,54,69,56],[63,55,69,57],[63,56,69,58],[64,6,70,8,"warn"],[64,10,70,12],[64,11,70,13,"prefix"],[64,17,70,19],[64,19,70,21],[64,26,70,28],[64,28,70,30,"extractMethods"],[64,42,70,44],[64,43,70,45,"src"],[64,46,70,48],[64,48,70,50,"dst"],[64,51,70,53],[64,52,70,54],[64,53,70,55],[65,4,71,4],[66,4,72,4],[66,10,72,10,"sections"],[66,18,72,18],[66,21,72,21,"Object"],[66,27,72,27],[66,28,72,28,"keys"],[66,32,72,32],[66,33,72,33,"src"],[66,36,72,36],[66,37,72,37],[67,4,73,4],[67,9,73,9],[67,13,73,13,"i"],[67,14,73,14],[67,17,73,17],[67,18,73,18],[67,20,73,20,"count"],[67,25,73,25],[67,28,73,28,"sections"],[67,36,73,36],[67,37,73,37,"length"],[67,43,73,43],[67,45,73,45,"i"],[67,46,73,46],[67,49,73,49,"count"],[67,54,73,54],[67,56,73,56,"i"],[67,57,73,57],[67,59,73,59],[67,61,73,61],[68,6,74,8],[68,12,74,14,"section"],[68,19,74,21],[68,22,74,24,"sections"],[68,30,74,32],[68,31,74,33,"i"],[68,32,74,34],[68,33,74,35],[69,6,75,8],[69,12,75,14,"methods"],[69,19,75,21],[69,22,75,24,"src"],[69,25,75,27],[69,26,75,28,"section"],[69,33,75,35],[69,34,75,36],[70,6,76,8],[71,6,77,8],[72,6,78,8],[72,10,78,12],[72,11,78,13,"dst"],[72,14,78,16],[72,15,78,17,"section"],[72,22,78,24],[72,23,78,25],[72,25,78,27],[73,8,79,12,"dst"],[73,11,79,15],[73,12,79,16,"section"],[73,19,79,23],[73,20,79,24],[73,23,79,27],[73,24,79,28],[73,25,79,29],[74,6,80,8],[75,6,81,8],[75,7,81,9],[75,8,81,10],[75,10,81,12,"util_1"],[75,16,81,18],[75,17,81,19,"lazyMethods"],[75,28,81,30],[75,30,81,32,"dst"],[75,33,81,35],[75,34,81,36,"section"],[75,41,81,43],[75,42,81,44],[75,44,81,46,"Object"],[75,50,81,52],[75,51,81,53,"keys"],[75,55,81,57],[75,56,81,58,"methods"],[75,63,81,65],[75,64,81,66],[75,66,81,69,"m"],[75,67,81,70],[75,71,81,75,"methods"],[75,78,81,82],[75,79,81,83,"m"],[75,80,81,84],[75,81,81,85],[75,82,81,86],[76,4,82,4],[77,4,83,4],[77,11,83,11,"dst"],[77,14,83,14],[78,2,84,0],[79,0,84,1],[79,3]],"functionMap":{"names":["<global>","logLength","logValues","warn","findSectionExcludes","a.filter$argument_0","findSectionIncludes","extractSections","findMethodExcludes","extractMethods","augmentObject","<anonymous>"],"mappings":"AAA;ACK;CDI;AEC;CFI;AGC;CHI;AIC;oBCC,qBD;CJC;AMC;oBDC,oBC;CNC;AOC;CPO;AQC;CRgB;ASC;CTK;AUM;oECkB,iBD;CVG"},"hasCjsExports":true},"type":"js/module"}]} |