mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
4.2 KiB
Plaintext
1 line
4.2 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"./extractTypes.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":41},"end":{"line":2,"column":49,"index":90}}],"key":"BhHvfd0yQ8yU4b4Xy0IEBuWt38I=","exportNames":["*"],"imports":1}},{"name":"./flattenUniq.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":91},"end":{"line":3,"column":47,"index":138}}],"key":"REzf+XKYrwlvUY50BcWg+SBmIL0=","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 var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _extractTypesJs = require(_dependencyMap[1], \"./extractTypes.js\");\n var _flattenUniqJs = require(_dependencyMap[2], \"./flattenUniq.js\");\n const l = (0, _polkadotUtil.logger)('metadata');\n /** @internal */\n function validateTypes(registry, throwError, types) {\n const missing = (0, _flattenUniqJs.flattenUniq)((0, _extractTypesJs.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":[[7,2,6,0,"exports"],[7,9,6,0],[7,10,6,0,"validateTypes"],[7,23,6,0],[7,26,6,0,"validateTypes"],[7,39,6,0],[8,2,1,0],[8,6,1,0,"_polkadotUtil"],[8,19,1,0],[8,22,1,0,"require"],[8,29,1,0],[8,30,1,0,"_dependencyMap"],[8,44,1,0],[9,2,2,0],[9,6,2,0,"_extractTypesJs"],[9,21,2,0],[9,24,2,0,"require"],[9,31,2,0],[9,32,2,0,"_dependencyMap"],[9,46,2,0],[10,2,3,0],[10,6,3,0,"_flattenUniqJs"],[10,20,3,0],[10,23,3,0,"require"],[10,30,3,0],[10,31,3,0,"_dependencyMap"],[10,45,3,0],[11,2,4,0],[11,8,4,6,"l"],[11,9,4,7],[11,12,4,10],[11,16,4,10,"logger"],[11,29,4,16],[11,30,4,16,"logger"],[11,36,4,16],[11,38,4,17],[11,48,4,27],[11,49,4,28],[12,2,5,0],[13,2,6,7],[13,11,6,16,"validateTypes"],[13,24,6,29,"validateTypes"],[13,25,6,30,"registry"],[13,33,6,38],[13,35,6,40,"throwError"],[13,45,6,50],[13,47,6,52,"types"],[13,52,6,57],[13,54,6,59],[14,4,7,4],[14,10,7,10,"missing"],[14,17,7,17],[14,20,7,20],[14,24,7,20,"flattenUniq"],[14,38,7,31],[14,39,7,31,"flattenUniq"],[14,50,7,31],[14,52,7,32],[14,56,7,32,"extractTypes"],[14,71,7,44],[14,72,7,44,"extractTypes"],[14,84,7,44],[14,86,7,45,"types"],[14,91,7,50],[14,92,7,51],[14,93,7,52],[14,94,8,9,"filter"],[14,100,8,15],[14,101,8,17,"type"],[14,105,8,21],[14,109,8,26],[14,110,8,27,"registry"],[14,118,8,35],[14,119,8,36,"hasType"],[14,126,8,43],[14,127,8,44,"type"],[14,131,8,48],[14,132,8,49],[14,136,9,8],[14,137,9,9,"registry"],[14,145,9,17],[14,146,9,18,"isLookupType"],[14,158,9,30],[14,159,9,31,"type"],[14,163,9,35],[14,164,9,36],[14,165,9,37],[14,166,10,9,"sort"],[14,170,10,13],[14,171,10,14],[14,172,10,15],[15,4,11,4],[15,8,11,8,"missing"],[15,15,11,15],[15,16,11,16,"length"],[15,22,11,22],[15,27,11,27],[15,28,11,28],[15,30,11,30],[16,6,12,8],[16,12,12,14,"message"],[16,19,12,21],[16,22,12,24],[16,59,12,61,"missing"],[16,66,12,68],[16,67,12,69,"join"],[16,71,12,73],[16,72,12,74],[16,76,12,78],[16,77,12,79],[16,79,12,81],[17,6,13,8],[17,10,13,12,"throwError"],[17,20,13,22],[17,22,13,24],[18,8,14,12],[18,14,14,18],[18,18,14,22,"Error"],[18,23,14,27],[18,24,14,28,"message"],[18,31,14,35],[18,32,14,36],[19,6,15,8],[19,7,15,9],[19,13,16,13],[20,8,17,12,"l"],[20,9,17,13],[20,10,17,14,"warn"],[20,14,17,18],[20,15,17,19,"message"],[20,22,17,26],[20,23,17,27],[21,6,18,8],[22,4,19,4],[23,4,20,4],[23,11,20,11,"types"],[23,16,20,16],[24,2,21,0],[25,0,21,1],[25,3]],"functionMap":{"names":["<global>","validateTypes","flattenUniq.filter$argument_0"],"mappings":"AAA;OCK;gBCE;oCDC;CDY"},"hasCjsExports":false},"type":"js/module"}]} |