mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
2.4 KiB
Plaintext
1 line
2.4 KiB
Plaintext
{"dependencies":[{"name":"./hasPrefix.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"OXUEjaaOOEeWe4PR4mb9hsG8LSE=","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 var _hasPrefixJs = 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, _hasPrefixJs.hexHasPrefix)(value) ? value : `0x${value && value.length % 2 === 1 ? '0' : ''}${value || ''}`;\n }\n});","lineCount":26,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"hexAddPrefix"],[7,22,16,0],[7,25,16,0,"hexAddPrefix"],[7,37,16,0],[8,2,1,0],[8,6,1,0,"_hasPrefixJs"],[8,18,1,0],[8,21,1,0,"require"],[8,28,1,0],[8,29,1,0,"_dependencyMap"],[8,43,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,2,16,7],[23,11,16,16,"hexAddPrefix"],[23,23,16,28,"hexAddPrefix"],[23,24,16,29,"value"],[23,29,16,34],[23,31,16,36],[24,4,17,4],[24,11,17,11,"value"],[24,16,17,16],[24,20,17,20],[24,24,17,20,"hexHasPrefix"],[24,36,17,32],[24,37,17,32,"hexHasPrefix"],[24,49,17,32],[24,51,17,33,"value"],[24,56,17,38],[24,57,17,39],[24,60,18,10,"value"],[24,65,18,15],[24,68,19,10],[24,73,19,15,"value"],[24,78,19,20],[24,82,19,24,"value"],[24,87,19,29],[24,88,19,30,"length"],[24,94,19,36],[24,97,19,39],[24,98,19,40],[24,103,19,45],[24,104,19,46],[24,107,19,49],[24,110,19,52],[24,113,19,55],[24,115,19,57],[24,118,19,60,"value"],[24,123,19,65],[24,127,19,69],[24,129,19,71],[24,131,19,73],[25,2,20,0],[26,0,20,1],[26,3]],"functionMap":{"names":["<global>","hexAddPrefix"],"mappings":"AAA;OCe;CDI"},"hasCjsExports":false},"type":"js/module"}]} |