mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
2.7 KiB
Plaintext
1 line
2.7 KiB
Plaintext
{"dependencies":[{"name":"./hasPrefix.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":23,"index":137},"end":{"line":4,"column":48,"index":162}}],"key":"7yfWMkdW9OtDgrx40hT4Nyi6w5U=","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.hexAddPrefix = hexAddPrefix;\n const hasPrefix_js_1 = require(_dependencyMap[0], \"./hasPrefix.js\");\n /**\n * @name hexAddPrefix\n * @summary Adds the `0x` prefix to string values.\n * @description\n * Returns a `0x` prefixed string from the input value. If the input is already prefixed, it is returned unchanged.\n * @example\n * <BR>\n *\n * ```javascript\n * import { hexAddPrefix } from '@polkadot/util';\n *\n * console.log('With prefix', hexAddPrefix('0a0b12')); // => 0x0a0b12\n * ```\n */\n function hexAddPrefix(value) {\n return value && (0, hasPrefix_js_1.hexHasPrefix)(value) ? value : `0x${value && value.length % 2 === 1 ? '0' : ''}${value || ''}`;\n }\n});","lineCount":26,"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,"hexAddPrefix"],[7,22,3,20],[7,25,3,23,"hexAddPrefix"],[7,37,3,35],[8,2,4,0],[8,8,4,6,"hasPrefix_js_1"],[8,22,4,20],[8,25,4,23,"require"],[8,32,4,30],[8,33,4,30,"_dependencyMap"],[8,47,4,30],[8,68,4,47],[8,69,4,48],[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,2,19,0],[23,11,19,9,"hexAddPrefix"],[23,23,19,21,"hexAddPrefix"],[23,24,19,22,"value"],[23,29,19,27],[23,31,19,29],[24,4,20,4],[24,11,20,11,"value"],[24,16,20,16],[24,20,20,20],[24,21,20,21],[24,22,20,22],[24,24,20,24,"hasPrefix_js_1"],[24,38,20,38],[24,39,20,39,"hexHasPrefix"],[24,51,20,51],[24,53,20,53,"value"],[24,58,20,58],[24,59,20,59],[24,62,21,10,"value"],[24,67,21,15],[24,70,22,10],[24,75,22,15,"value"],[24,80,22,20],[24,84,22,24,"value"],[24,89,22,29],[24,90,22,30,"length"],[24,96,22,36],[24,99,22,39],[24,100,22,40],[24,105,22,45],[24,106,22,46],[24,109,22,49],[24,112,22,52],[24,115,22,55],[24,117,22,57],[24,120,22,60,"value"],[24,125,22,65],[24,129,22,69],[24,131,22,71],[24,133,22,73],[25,2,23,0],[26,0,23,1],[26,3]],"functionMap":{"names":["<global>","hexAddPrefix"],"mappings":"AAA;ACkB;CDI"},"hasCjsExports":true},"type":"js/module"}]} |