mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
3.0 KiB
Plaintext
1 line
3.0 KiB
Plaintext
{"dependencies":[{"name":"../is/hex.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":70,"index":70}}],"key":"FRvNFhyKsGuWVMufkKejTO9l7S0=","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.hexStripPrefix = hexStripPrefix;\n var _isHexJs = require(_dependencyMap[0], \"../is/hex.js\");\n /**\n * @name hexStripPrefix\n * @summary Strips any leading `0x` prefix.\n * @description\n * Tests for the existence of a `0x` prefix, and returns the value without the prefix. Un-prefixed values are returned as-is.\n * @example\n * <BR>\n *\n * ```javascript\n * import { hexStripPrefix } from '@polkadot/util';\n *\n * console.log('stripped', hexStripPrefix('0x1234')); // => 1234\n * ```\n */\n function hexStripPrefix(value) {\n if (!value || value === '0x') {\n return '';\n } else if (_isHexJs.REGEX_HEX_PREFIXED.test(value)) {\n return value.substring(2);\n } else if (_isHexJs.REGEX_HEX_NOPREFIX.test(value)) {\n return value;\n }\n throw new Error(`Expected hex value to convert, found '${value}'`);\n }\n});","lineCount":33,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"hexStripPrefix"],[7,24,16,0],[7,27,16,0,"hexStripPrefix"],[7,41,16,0],[8,2,1,0],[8,6,1,0,"_isHexJs"],[8,14,1,0],[8,17,1,0,"require"],[8,24,1,0],[8,25,1,0,"_dependencyMap"],[8,39,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,"hexStripPrefix"],[23,25,16,30,"hexStripPrefix"],[23,26,16,31,"value"],[23,31,16,36],[23,33,16,38],[24,4,17,4],[24,8,17,8],[24,9,17,9,"value"],[24,14,17,14],[24,18,17,18,"value"],[24,23,17,23],[24,28,17,28],[24,32,17,32],[24,34,17,34],[25,6,18,8],[25,13,18,15],[25,15,18,17],[26,4,19,4],[26,5,19,5],[26,11,20,9],[26,15,20,13,"REGEX_HEX_PREFIXED"],[26,23,20,31],[26,24,20,31,"REGEX_HEX_PREFIXED"],[26,42,20,31],[26,43,20,32,"test"],[26,47,20,36],[26,48,20,37,"value"],[26,53,20,42],[26,54,20,43],[26,56,20,45],[27,6,21,8],[27,13,21,15,"value"],[27,18,21,20],[27,19,21,21,"substring"],[27,28,21,30],[27,29,21,31],[27,30,21,32],[27,31,21,33],[28,4,22,4],[28,5,22,5],[28,11,23,9],[28,15,23,13,"REGEX_HEX_NOPREFIX"],[28,23,23,31],[28,24,23,31,"REGEX_HEX_NOPREFIX"],[28,42,23,31],[28,43,23,32,"test"],[28,47,23,36],[28,48,23,37,"value"],[28,53,23,42],[28,54,23,43],[28,56,23,45],[29,6,24,8],[29,13,24,15,"value"],[29,18,24,20],[30,4,25,4],[31,4,26,4],[31,10,26,10],[31,14,26,14,"Error"],[31,19,26,19],[31,20,26,20],[31,61,26,61,"value"],[31,66,26,66],[31,69,26,69],[31,70,26,70],[32,2,27,0],[33,0,27,1],[33,3]],"functionMap":{"names":["<global>","hexStripPrefix"],"mappings":"AAA;OCe;CDW"},"hasCjsExports":false},"type":"js/module"}]} |