mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
6.3 KiB
Plaintext
1 line
6.3 KiB
Plaintext
{"dependencies":[{"name":"../hex/toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":125},"end":{"line":4,"column":45,"index":151}}],"key":"JU5PjKWU+KsNynUzed9rJ1JAYBU=","exportNames":["*"],"imports":1}},{"name":"../is/buffer.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":20,"index":173},"end":{"line":5,"column":46,"index":199}}],"key":"fZgHv2PkSuZrGCfaqwfbXd16clw=","exportNames":["*"],"imports":1}},{"name":"../is/hex.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":17,"index":218},"end":{"line":6,"column":40,"index":241}}],"key":"r5O71s8renrGaZ4UUjfk0oVB7TM=","exportNames":["*"],"imports":1}},{"name":"../is/u8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":17,"index":260},"end":{"line":7,"column":40,"index":283}}],"key":"chQ1VRITcTl3BbP4mjktBKuBPjQ=","exportNames":["*"],"imports":1}},{"name":"../string/toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":19,"index":304},"end":{"line":8,"column":48,"index":333}}],"key":"oVsS7izWAbwjE30Y0gvV7lPJjTs=","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.u8aToU8a = u8aToU8a;\n const toU8a_js_1 = require(_dependencyMap[0], \"../hex/toU8a.js\");\n const buffer_js_1 = require(_dependencyMap[1], \"../is/buffer.js\");\n const hex_js_1 = require(_dependencyMap[2], \"../is/hex.js\");\n const u8a_js_1 = require(_dependencyMap[3], \"../is/u8a.js\");\n const toU8a_js_2 = require(_dependencyMap[4], \"../string/toU8a.js\");\n /**\n * @name u8aToU8a\n * @summary Creates a Uint8Array value from a Uint8Array, Buffer, string or hex input.\n * @description\n * `null` or `undefined` inputs returns a `[]` result, Uint8Array values returns the value, hex strings returns a Uint8Array representation.\n * If `strict` is true, `null` or `undefined` will throw an error instead of returning an empty array.\n * Supports input types: Uint8Array, Buffer, hex string, string, or number array.\n * @example\n * <BR>\n *\n * ```javascript\n * import { u8aToU8a } from '@polkadot/util';\n *\n * u8aToU8a(new Uint8Array([0x12, 0x34]); // => Uint8Array([0x12, 0x34])\n * u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])\n * ```\n */\n function u8aToU8a(value, strict = false) {\n if (strict && (value === null || value === undefined)) {\n throw new Error('u8aToU8a: Expected non-null, non-undefined value');\n }\n return (0, u8a_js_1.isU8a)(value)\n // NOTE isBuffer needs to go here since it actually extends\n // Uint8Array on Node.js environments, so all Buffer are Uint8Array,\n // but Uint8Array is not Buffer\n ? (0, buffer_js_1.isBuffer)(value) ? new Uint8Array(value) : value : (0, hex_js_1.isHex)(value) ? (0, toU8a_js_1.hexToU8a)(value) : Array.isArray(value) ? new Uint8Array(value) : (0, toU8a_js_2.stringToU8a)(value);\n }\n});","lineCount":40,"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,"u8aToU8a"],[7,18,3,16],[7,21,3,19,"u8aToU8a"],[7,29,3,27],[8,2,4,0],[8,8,4,6,"toU8a_js_1"],[8,18,4,16],[8,21,4,19,"require"],[8,28,4,26],[8,29,4,26,"_dependencyMap"],[8,43,4,26],[8,65,4,44],[8,66,4,45],[9,2,5,0],[9,8,5,6,"buffer_js_1"],[9,19,5,17],[9,22,5,20,"require"],[9,29,5,27],[9,30,5,27,"_dependencyMap"],[9,44,5,27],[9,66,5,45],[9,67,5,46],[10,2,6,0],[10,8,6,6,"hex_js_1"],[10,16,6,14],[10,19,6,17,"require"],[10,26,6,24],[10,27,6,24,"_dependencyMap"],[10,41,6,24],[10,60,6,39],[10,61,6,40],[11,2,7,0],[11,8,7,6,"u8a_js_1"],[11,16,7,14],[11,19,7,17,"require"],[11,26,7,24],[11,27,7,24,"_dependencyMap"],[11,41,7,24],[11,60,7,39],[11,61,7,40],[12,2,8,0],[12,8,8,6,"toU8a_js_2"],[12,18,8,16],[12,21,8,19,"require"],[12,28,8,26],[12,29,8,26,"_dependencyMap"],[12,43,8,26],[12,68,8,47],[12,69,8,48],[13,2,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,0,23,0],[28,0,24,0],[29,0,25,0],[30,2,26,0],[30,11,26,9,"u8aToU8a"],[30,19,26,17,"u8aToU8a"],[30,20,26,18,"value"],[30,25,26,23],[30,27,26,25,"strict"],[30,33,26,31],[30,36,26,34],[30,41,26,39],[30,43,26,41],[31,4,27,4],[31,8,27,8,"strict"],[31,14,27,14],[31,19,27,19,"value"],[31,24,27,24],[31,29,27,29],[31,33,27,33],[31,37,27,37,"value"],[31,42,27,42],[31,47,27,47,"undefined"],[31,56,27,56],[31,57,27,57],[31,59,27,59],[32,6,28,8],[32,12,28,14],[32,16,28,18,"Error"],[32,21,28,23],[32,22,28,24],[32,72,28,74],[32,73,28,75],[33,4,29,4],[34,4,30,4],[34,11,30,11],[34,12,30,12],[34,13,30,13],[34,15,30,15,"u8a_js_1"],[34,23,30,23],[34,24,30,24,"isU8a"],[34,29,30,29],[34,31,30,31,"value"],[34,36,30,36],[35,4,31,8],[36,4,32,8],[37,4,33,8],[38,4,33,8],[38,6,34,10],[38,7,34,11],[38,8,34,12],[38,10,34,14,"buffer_js_1"],[38,21,34,25],[38,22,34,26,"isBuffer"],[38,30,34,34],[38,32,34,36,"value"],[38,37,34,41],[38,38,34,42],[38,41,35,14],[38,45,35,18,"Uint8Array"],[38,55,35,28],[38,56,35,29,"value"],[38,61,35,34],[38,62,35,35],[38,65,36,14,"value"],[38,70,36,19],[38,73,37,10],[38,74,37,11],[38,75,37,12],[38,77,37,14,"hex_js_1"],[38,85,37,22],[38,86,37,23,"isHex"],[38,91,37,28],[38,93,37,30,"value"],[38,98,37,35],[38,99,37,36],[38,102,38,14],[38,103,38,15],[38,104,38,16],[38,106,38,18,"toU8a_js_1"],[38,116,38,28],[38,117,38,29,"hexToU8a"],[38,125,38,37],[38,127,38,39,"value"],[38,132,38,44],[38,133,38,45],[38,136,39,14,"Array"],[38,141,39,19],[38,142,39,20,"isArray"],[38,149,39,27],[38,150,39,28,"value"],[38,155,39,33],[38,156,39,34],[38,159,40,18],[38,163,40,22,"Uint8Array"],[38,173,40,32],[38,174,40,33,"value"],[38,179,40,38],[38,180,40,39],[38,183,41,18],[38,184,41,19],[38,185,41,20],[38,187,41,22,"toU8a_js_2"],[38,197,41,32],[38,198,41,33,"stringToU8a"],[38,209,41,44],[38,211,41,46,"value"],[38,216,41,51],[38,217,41,52],[39,2,42,0],[40,0,42,1],[40,3]],"functionMap":{"names":["<global>","u8aToU8a"],"mappings":"AAA;ACyB;CDgB"},"hasCjsExports":true},"type":"js/module"}]} |