Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/b1/83e4e4b5eb32ead953bc2671074c3c5345cdc384936ad4174f8aa212456fb675b278e7
T
2025-10-24 02:50:33 +00:00

1 line
4.4 KiB
Plaintext

{"dependencies":[{"name":"./is/function.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":208},"end":{"line":6,"column":49,"index":235}}],"key":"YmbBRL1YhgoT4Vh9u+SoNqZY8I0=","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.assert = assert;\n exports.assertReturn = assertReturn;\n exports.assertUnreachable = assertUnreachable;\n const function_js_1 = require(_dependencyMap[0], \"./is/function.js\");\n /**\n * @name assert\n * @summary Checks for a valid test, if not Error is thrown.\n * @description\n * Checks that `test` is a truthy value. If value is falsy (`null`, `undefined`, `false`, ...), it throws an Error with the supplied `message`. When `test` passes, `true` is returned.\n * @example\n * <BR>\n *\n * ```javascript\n * const { assert } from '@polkadot/util';\n *\n * assert(true, 'True should be true'); // passes\n * assert(false, 'False should not be true'); // Error thrown\n * assert(false, () => 'message'); // Error with 'message'\n * ```\n */\n function assert(condition, message) {\n if (!condition) {\n throw new Error((0, function_js_1.isFunction)(message) ? message() : message);\n }\n }\n /**\n * @name assertReturn\n * @description Returns when the value is not undefined/null, otherwise throws assertion error\n */\n function assertReturn(value, message) {\n assert(value !== undefined && value !== null, message);\n return value;\n }\n /**\n * @name assertUnreachable\n * @description An assertion helper that ensures all codepaths are followed\n */\n function assertUnreachable(x) {\n throw new Error(`This codepath should be unreachable. Unhandled input: ${x}`);\n }\n});","lineCount":47,"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,"assert"],[7,16,3,14],[7,19,3,17,"assert"],[7,25,3,23],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"assertReturn"],[8,22,4,20],[8,25,4,23,"assertReturn"],[8,37,4,35],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"assertUnreachable"],[9,27,5,25],[9,30,5,28,"assertUnreachable"],[9,47,5,45],[10,2,6,0],[10,8,6,6,"function_js_1"],[10,21,6,19],[10,24,6,22,"require"],[10,31,6,29],[10,32,6,29,"_dependencyMap"],[10,46,6,29],[10,69,6,48],[10,70,6,49],[11,2,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,0,20,0],[25,0,21,0],[26,0,22,0],[27,2,23,0],[27,11,23,9,"assert"],[27,17,23,15,"assert"],[27,18,23,16,"condition"],[27,27,23,25],[27,29,23,27,"message"],[27,36,23,34],[27,38,23,36],[28,4,24,4],[28,8,24,8],[28,9,24,9,"condition"],[28,18,24,18],[28,20,24,20],[29,6,25,8],[29,12,25,14],[29,16,25,18,"Error"],[29,21,25,23],[29,22,25,24],[29,23,25,25],[29,24,25,26],[29,26,25,28,"function_js_1"],[29,39,25,41],[29,40,25,42,"isFunction"],[29,50,25,52],[29,52,25,54,"message"],[29,59,25,61],[29,60,25,62],[29,63,26,14,"message"],[29,70,26,21],[29,71,26,22],[29,72,26,23],[29,75,27,14,"message"],[29,82,27,21],[29,83,27,22],[30,4,28,4],[31,2,29,0],[32,2,30,0],[33,0,31,0],[34,0,32,0],[35,0,33,0],[36,2,34,0],[36,11,34,9,"assertReturn"],[36,23,34,21,"assertReturn"],[36,24,34,22,"value"],[36,29,34,27],[36,31,34,29,"message"],[36,38,34,36],[36,40,34,38],[37,4,35,4,"assert"],[37,10,35,10],[37,11,35,11,"value"],[37,16,35,16],[37,21,35,21,"undefined"],[37,30,35,30],[37,34,35,34,"value"],[37,39,35,39],[37,44,35,44],[37,48,35,48],[37,50,35,50,"message"],[37,57,35,57],[37,58,35,58],[38,4,36,4],[38,11,36,11,"value"],[38,16,36,16],[39,2,37,0],[40,2,38,0],[41,0,39,0],[42,0,40,0],[43,0,41,0],[44,2,42,0],[44,11,42,9,"assertUnreachable"],[44,28,42,26,"assertUnreachable"],[44,29,42,27,"x"],[44,30,42,28],[44,32,42,30],[45,4,43,4],[45,10,43,10],[45,14,43,14,"Error"],[45,19,43,19],[45,20,43,20],[45,77,43,77,"x"],[45,78,43,78],[45,80,43,80],[45,81,43,81],[46,2,44,0],[47,0,44,1],[47,3]],"functionMap":{"names":["<global>","assert","assertReturn","assertUnreachable"],"mappings":"AAA;ACsB;CDM;AEK;CFG;AGK;CHE"},"hasCjsExports":true},"type":"js/module"}]}