mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 03:01:04 +00:00
1 line
3.4 KiB
Plaintext
1 line
3.4 KiB
Plaintext
{"dependencies":[{"name":"../hex/fixLength.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":23,"index":135},"end":{"line":4,"column":53,"index":165}}],"key":"JGbq3J3H6loRH/OUC462GTdKGhc=","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.numberToHex = numberToHex;\n var fixLength_js_1 = require(_dependencyMap[0], \"../hex/fixLength.js\");\n /**\n * @name numberToHex\n * @summary Creates a hex value from a number.\n * @description\n * `null`/`undefined`/`NaN` inputs returns an empty `0x` result. `number` input values return the actual bytes value converted to a `hex`. With `bitLength` set, it converts the number to the equivalent size.\n * @example\n * <BR>\n *\n * ```javascript\n * import { numberToHex } from '@polkadot/util';\n *\n * numberToHex(0x1234); // => '0x1234'\n * numberToHex(0x1234, 32); // => 0x00001234\n * ```\n */\n function numberToHex(value) {\n var bitLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;\n var hex = (!value || Number.isNaN(value) ? 0 : value).toString(16);\n return (0, fixLength_js_1.hexFixLength)(hex.length % 2 ? `0${hex}` : hex, bitLength, true);\n }\n});","lineCount":29,"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,"numberToHex"],[7,21,3,19],[7,24,3,22,"numberToHex"],[7,35,3,33],[8,2,4,0],[8,6,4,6,"fixLength_js_1"],[8,20,4,20],[8,23,4,23,"require"],[8,30,4,30],[8,31,4,30,"_dependencyMap"],[8,45,4,30],[8,71,4,52],[8,72,4,53],[9,2,5,0],[10,0,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,"numberToHex"],[24,22,20,20,"numberToHex"],[24,23,20,21,"value"],[24,28,20,26],[24,30,20,44],[25,4,20,44],[25,8,20,28,"bitLength"],[25,17,20,37],[25,20,20,37,"arguments"],[25,29,20,37],[25,30,20,37,"length"],[25,36,20,37],[25,44,20,37,"arguments"],[25,53,20,37],[25,61,20,37,"undefined"],[25,70,20,37],[25,73,20,37,"arguments"],[25,82,20,37],[25,88,20,40],[25,89,20,41],[25,90,20,42],[26,4,21,4],[26,8,21,10,"hex"],[26,11,21,13],[26,14,21,16],[26,15,21,17],[26,16,21,18,"value"],[26,21,21,23],[26,25,21,27,"Number"],[26,31,21,33],[26,32,21,34,"isNaN"],[26,37,21,39],[26,38,21,40,"value"],[26,43,21,45],[26,44,21,46],[26,47,21,49],[26,48,21,50],[26,51,21,53,"value"],[26,56,21,58],[26,58,21,60,"toString"],[26,66,21,68],[26,67,21,69],[26,69,21,71],[26,70,21,72],[27,4,22,4],[27,11,22,11],[27,12,22,12],[27,13,22,13],[27,15,22,15,"fixLength_js_1"],[27,29,22,29],[27,30,22,30,"hexFixLength"],[27,42,22,42],[27,44,22,44,"hex"],[27,47,22,47],[27,48,22,48,"length"],[27,54,22,54],[27,57,22,57],[27,58,22,58],[27,61,22,61],[27,65,22,65,"hex"],[27,68,22,68],[27,70,22,70],[27,73,22,73,"hex"],[27,76,22,76],[27,78,22,78,"bitLength"],[27,87,22,87],[27,89,22,89],[27,93,22,93],[27,94,22,94],[28,2,23,0],[29,0,23,1],[29,3]],"functionMap":{"names":["<global>","numberToHex"],"mappings":"AAA;ACmB;CDG"},"hasCjsExports":true},"type":"js/module"}]} |