mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
5.7 KiB
Plaintext
1 line
5.7 KiB
Plaintext
{"dependencies":[{"name":"../hex/toU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}}],"key":"+4cLSDrTfGaFuXGIJ+ri9ymsHCg=","exportNames":["*"],"imports":1}},{"name":"../is/buffer.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":44},"end":{"line":2,"column":43,"index":87}}],"key":"ej4bDh7vX+QzajbDoA3zKlKG3qI=","exportNames":["*"],"imports":1}},{"name":"../is/hex.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":88},"end":{"line":3,"column":37,"index":125}}],"key":"FRvNFhyKsGuWVMufkKejTO9l7S0=","exportNames":["*"],"imports":1}},{"name":"../is/u8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":126},"end":{"line":4,"column":37,"index":163}}],"key":"cFWdUvT2MfBkLaAtMxMRIz9vfDk=","exportNames":["*"],"imports":1}},{"name":"../string/toU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":164},"end":{"line":5,"column":49,"index":213}}],"key":"m1BA2oD/olT3I0fxxOJk7h6nzRQ=","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.u8aToU8a = u8aToU8a;\n var _hexToU8aJs = require(_dependencyMap[0], \"../hex/toU8a.js\");\n var _isBufferJs = require(_dependencyMap[1], \"../is/buffer.js\");\n var _isHexJs = require(_dependencyMap[2], \"../is/hex.js\");\n var _isU8aJs = require(_dependencyMap[3], \"../is/u8a.js\");\n var _stringToU8aJs = require(_dependencyMap[4], \"../string/toU8a.js\");\n /**\n * @name u8aToU8a\n * @summary Creates a Uint8Array value from a Uint8Array, Buffer, string or hex input.\n * @description\n * `null` or `undefined` inputs returns a `[]` result, Uint8Array values returns the value, hex strings returns a Uint8Array representation.\n * If `strict` is true, `null` or `undefined` will throw an error instead of returning an empty array.\n * Supports input types: Uint8Array, Buffer, hex string, string, or number array.\n * @example\n * <BR>\n *\n * ```javascript\n * import { u8aToU8a } from '@polkadot/util';\n *\n * u8aToU8a(new Uint8Array([0x12, 0x34]); // => Uint8Array([0x12, 0x34])\n * u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])\n * ```\n */\n function u8aToU8a(value, strict = false) {\n if (strict && (value === null || value === undefined)) {\n throw new Error('u8aToU8a: Expected non-null, non-undefined value');\n }\n return (0, _isU8aJs.isU8a)(value)\n // NOTE isBuffer needs to go here since it actually extends\n // Uint8Array on Node.js environments, so all Buffer are Uint8Array,\n // but Uint8Array is not Buffer\n ? (0, _isBufferJs.isBuffer)(value) ? new Uint8Array(value) : value : (0, _isHexJs.isHex)(value) ? (0, _hexToU8aJs.hexToU8a)(value) : Array.isArray(value) ? new Uint8Array(value) : (0, _stringToU8aJs.stringToU8a)(value);\n }\n});","lineCount":40,"map":[[7,2,23,0,"exports"],[7,9,23,0],[7,10,23,0,"u8aToU8a"],[7,18,23,0],[7,21,23,0,"u8aToU8a"],[7,29,23,0],[8,2,1,0],[8,6,1,0,"_hexToU8aJs"],[8,17,1,0],[8,20,1,0,"require"],[8,27,1,0],[8,28,1,0,"_dependencyMap"],[8,42,1,0],[9,2,2,0],[9,6,2,0,"_isBufferJs"],[9,17,2,0],[9,20,2,0,"require"],[9,27,2,0],[9,28,2,0,"_dependencyMap"],[9,42,2,0],[10,2,3,0],[10,6,3,0,"_isHexJs"],[10,14,3,0],[10,17,3,0,"require"],[10,24,3,0],[10,25,3,0,"_dependencyMap"],[10,39,3,0],[11,2,4,0],[11,6,4,0,"_isU8aJs"],[11,14,4,0],[11,17,4,0,"require"],[11,24,4,0],[11,25,4,0,"_dependencyMap"],[11,39,4,0],[12,2,5,0],[12,6,5,0,"_stringToU8aJs"],[12,20,5,0],[12,23,5,0,"require"],[12,30,5,0],[12,31,5,0,"_dependencyMap"],[12,45,5,0],[13,2,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,0,16,0],[24,0,17,0],[25,0,18,0],[26,0,19,0],[27,0,20,0],[28,0,21,0],[29,0,22,0],[30,2,23,7],[30,11,23,16,"u8aToU8a"],[30,19,23,24,"u8aToU8a"],[30,20,23,25,"value"],[30,25,23,30],[30,27,23,32,"strict"],[30,33,23,38],[30,36,23,41],[30,41,23,46],[30,43,23,48],[31,4,24,4],[31,8,24,8,"strict"],[31,14,24,14],[31,19,24,19,"value"],[31,24,24,24],[31,29,24,29],[31,33,24,33],[31,37,24,37,"value"],[31,42,24,42],[31,47,24,47,"undefined"],[31,56,24,56],[31,57,24,57],[31,59,24,59],[32,6,25,8],[32,12,25,14],[32,16,25,18,"Error"],[32,21,25,23],[32,22,25,24],[32,72,25,74],[32,73,25,75],[33,4,26,4],[34,4,27,4],[34,11,27,11],[34,15,27,11,"isU8a"],[34,23,27,16],[34,24,27,16,"isU8a"],[34,29,27,16],[34,31,27,17,"value"],[34,36,27,22],[35,4,28,8],[36,4,29,8],[37,4,30,8],[38,4,30,8],[38,6,31,10],[38,10,31,10,"isBuffer"],[38,21,31,18],[38,22,31,18,"isBuffer"],[38,30,31,18],[38,32,31,19,"value"],[38,37,31,24],[38,38,31,25],[38,41,32,14],[38,45,32,18,"Uint8Array"],[38,55,32,28],[38,56,32,29,"value"],[38,61,32,34],[38,62,32,35],[38,65,33,14,"value"],[38,70,33,19],[38,73,34,10],[38,77,34,10,"isHex"],[38,85,34,15],[38,86,34,15,"isHex"],[38,91,34,15],[38,93,34,16,"value"],[38,98,34,21],[38,99,34,22],[38,102,35,14],[38,106,35,14,"hexToU8a"],[38,117,35,22],[38,118,35,22,"hexToU8a"],[38,126,35,22],[38,128,35,23,"value"],[38,133,35,28],[38,134,35,29],[38,137,36,14,"Array"],[38,142,36,19],[38,143,36,20,"isArray"],[38,150,36,27],[38,151,36,28,"value"],[38,156,36,33],[38,157,36,34],[38,160,37,18],[38,164,37,22,"Uint8Array"],[38,174,37,32],[38,175,37,33,"value"],[38,180,37,38],[38,181,37,39],[38,184,38,18],[38,188,38,18,"stringToU8a"],[38,202,38,29],[38,203,38,29,"stringToU8a"],[38,214,38,29],[38,216,38,30,"value"],[38,221,38,35],[38,222,38,36],[39,2,39,0],[40,0,39,1],[40,3]],"functionMap":{"names":["<global>","u8aToU8a"],"mappings":"AAA;OCsB;CDgB"},"hasCjsExports":false},"type":"js/module"}]} |