mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
4.6 KiB
Plaintext
1 line
4.6 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}},{"name":"./extractTypes.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":26,"index":184},"end":{"line":5,"column":54,"index":212}}],"key":"eYLJBmuDhMoi0wv2nJBydvkRnME=","exportNames":["*"],"imports":1}},{"name":"./flattenUniq.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":25,"index":239},"end":{"line":6,"column":52,"index":266}}],"key":"mHfUCwDWSxdK8O1K97gd8YJcBxQ=","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.validateTypes = validateTypes;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const extractTypes_js_1 = require(_dependencyMap[1], \"./extractTypes.js\");\n const flattenUniq_js_1 = require(_dependencyMap[2], \"./flattenUniq.js\");\n const l = (0, util_1.logger)('metadata');\n /** @internal */\n function validateTypes(registry, throwError, types) {\n const missing = (0, flattenUniq_js_1.flattenUniq)((0, extractTypes_js_1.extractTypes)(types)).filter(type => !registry.hasType(type) && !registry.isLookupType(type)).sort();\n if (missing.length !== 0) {\n const message = `Unknown types found, no types for ${missing.join(', ')}`;\n if (throwError) {\n throw new Error(message);\n } else {\n l.warn(message);\n }\n }\n return types;\n }\n});","lineCount":25,"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,"validateTypes"],[7,23,3,21],[7,26,3,24,"validateTypes"],[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,"extractTypes_js_1"],[9,25,5,23],[9,28,5,26,"require"],[9,35,5,33],[9,36,5,33,"_dependencyMap"],[9,50,5,33],[9,74,5,53],[9,75,5,54],[10,2,6,0],[10,8,6,6,"flattenUniq_js_1"],[10,24,6,22],[10,27,6,25,"require"],[10,34,6,32],[10,35,6,32,"_dependencyMap"],[10,49,6,32],[10,72,6,51],[10,73,6,52],[11,2,7,0],[11,8,7,6,"l"],[11,9,7,7],[11,12,7,10],[11,13,7,11],[11,14,7,12],[11,16,7,14,"util_1"],[11,22,7,20],[11,23,7,21,"logger"],[11,29,7,27],[11,31,7,29],[11,41,7,39],[11,42,7,40],[12,2,8,0],[13,2,9,0],[13,11,9,9,"validateTypes"],[13,24,9,22,"validateTypes"],[13,25,9,23,"registry"],[13,33,9,31],[13,35,9,33,"throwError"],[13,45,9,43],[13,47,9,45,"types"],[13,52,9,50],[13,54,9,52],[14,4,10,4],[14,10,10,10,"missing"],[14,17,10,17],[14,20,10,20],[14,21,10,21],[14,22,10,22],[14,24,10,24,"flattenUniq_js_1"],[14,40,10,40],[14,41,10,41,"flattenUniq"],[14,52,10,52],[14,54,10,54],[14,55,10,55],[14,56,10,56],[14,58,10,58,"extractTypes_js_1"],[14,75,10,75],[14,76,10,76,"extractTypes"],[14,88,10,88],[14,90,10,90,"types"],[14,95,10,95],[14,96,10,96],[14,97,10,97],[14,98,11,9,"filter"],[14,104,11,15],[14,105,11,17,"type"],[14,109,11,21],[14,113,11,26],[14,114,11,27,"registry"],[14,122,11,35],[14,123,11,36,"hasType"],[14,130,11,43],[14,131,11,44,"type"],[14,135,11,48],[14,136,11,49],[14,140,12,8],[14,141,12,9,"registry"],[14,149,12,17],[14,150,12,18,"isLookupType"],[14,162,12,30],[14,163,12,31,"type"],[14,167,12,35],[14,168,12,36],[14,169,12,37],[14,170,13,9,"sort"],[14,174,13,13],[14,175,13,14],[14,176,13,15],[15,4,14,4],[15,8,14,8,"missing"],[15,15,14,15],[15,16,14,16,"length"],[15,22,14,22],[15,27,14,27],[15,28,14,28],[15,30,14,30],[16,6,15,8],[16,12,15,14,"message"],[16,19,15,21],[16,22,15,24],[16,59,15,61,"missing"],[16,66,15,68],[16,67,15,69,"join"],[16,71,15,73],[16,72,15,74],[16,76,15,78],[16,77,15,79],[16,79,15,81],[17,6,16,8],[17,10,16,12,"throwError"],[17,20,16,22],[17,22,16,24],[18,8,17,12],[18,14,17,18],[18,18,17,22,"Error"],[18,23,17,27],[18,24,17,28,"message"],[18,31,17,35],[18,32,17,36],[19,6,18,8],[19,7,18,9],[19,13,19,13],[20,8,20,12,"l"],[20,9,20,13],[20,10,20,14,"warn"],[20,14,20,18],[20,15,20,19,"message"],[20,22,20,26],[20,23,20,27],[21,6,21,8],[22,4,22,4],[23,4,23,4],[23,11,23,11,"types"],[23,16,23,16],[24,2,24,0],[25,0,24,1],[25,3]],"functionMap":{"names":["<global>","validateTypes","filter$argument_0"],"mappings":"AAA;ACQ;gBCE;oCDC;CDY"},"hasCjsExports":true},"type":"js/module"}]} |