mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
3.0 KiB
Plaintext
1 line
3.0 KiB
Plaintext
{"dependencies":[{"name":"../hex/toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":131},"end":{"line":4,"column":45,"index":157}}],"key":"JU5PjKWU+KsNynUzed9rJ1JAYBU=","exportNames":["*"],"imports":1}},{"name":"./toHex.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":178},"end":{"line":5,"column":40,"index":199}}],"key":"2Y4bDeZq+YGqge0FgsBN5qGTeXk=","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.numberToU8a = numberToU8a;\n const toU8a_js_1 = require(_dependencyMap[0], \"../hex/toU8a.js\");\n const toHex_js_1 = require(_dependencyMap[1], \"./toHex.js\");\n /**\n * @name numberToU8a\n * @summary Creates a Uint8Array object from a number.\n * @description\n * `null`/`undefined`/`NaN` inputs returns an empty `Uint8Array` result. `number` input values return the actual bytes value converted to a `Uint8Array`. With `bitLength`, it converts the value to the equivalent size.\n * @example\n * <BR>\n *\n * ```javascript\n * import { numberToU8a } from '@polkadot/util';\n *\n * numberToU8a(0x1234); // => [0x12, 0x34]\n * ```\n */\n function numberToU8a(value, bitLength = -1) {\n return (0, toU8a_js_1.hexToU8a)((0, toHex_js_1.numberToHex)(value, bitLength));\n }\n});","lineCount":27,"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,"numberToU8a"],[7,21,3,19],[7,24,3,22,"numberToU8a"],[7,35,3,33],[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,"toHex_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,60,5,39],[9,61,5,40],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,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,2,20,0],[24,11,20,9,"numberToU8a"],[24,22,20,20,"numberToU8a"],[24,23,20,21,"value"],[24,28,20,26],[24,30,20,28,"bitLength"],[24,39,20,37],[24,42,20,40],[24,43,20,41],[24,44,20,42],[24,46,20,44],[25,4,21,4],[25,11,21,11],[25,12,21,12],[25,13,21,13],[25,15,21,15,"toU8a_js_1"],[25,25,21,25],[25,26,21,26,"hexToU8a"],[25,34,21,34],[25,36,21,36],[25,37,21,37],[25,38,21,38],[25,40,21,40,"toHex_js_1"],[25,50,21,50],[25,51,21,51,"numberToHex"],[25,62,21,62],[25,64,21,64,"value"],[25,69,21,69],[25,71,21,71,"bitLength"],[25,80,21,80],[25,81,21,81],[25,82,21,82],[26,2,22,0],[27,0,22,1],[27,3]],"functionMap":{"names":["<global>","numberToU8a"],"mappings":"AAA;ACmB;CDE"},"hasCjsExports":true},"type":"js/module"}]} |