Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/af/c4e50dfc668e50049b552d384935b67acd9fc3a40d0377afdcdf0d0b3958d450f3af0e
T
2025-10-24 02:46:57 +00:00

1 line
4.1 KiB
Plaintext

{"dependencies":[{"name":"./is/function.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"zFzQbG/5AVUER6wk5cSYtPcSudE=","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 var _isFunctionJs = 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, _isFunctionJs.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":[[7,2,18,0,"exports"],[7,9,18,0],[7,10,18,0,"assert"],[7,16,18,0],[7,19,18,0,"assert"],[7,25,18,0],[8,2,29,0,"exports"],[8,9,29,0],[8,10,29,0,"assertReturn"],[8,22,29,0],[8,25,29,0,"assertReturn"],[8,37,29,0],[9,2,37,0,"exports"],[9,9,37,0],[9,10,37,0,"assertUnreachable"],[9,27,37,0],[9,30,37,0,"assertUnreachable"],[9,47,37,0],[10,2,1,0],[10,6,1,0,"_isFunctionJs"],[10,19,1,0],[10,22,1,0,"require"],[10,29,1,0],[10,30,1,0,"_dependencyMap"],[10,44,1,0],[11,2,2,0],[12,0,3,0],[13,0,4,0],[14,0,5,0],[15,0,6,0],[16,0,7,0],[17,0,8,0],[18,0,9,0],[19,0,10,0],[20,0,11,0],[21,0,12,0],[22,0,13,0],[23,0,14,0],[24,0,15,0],[25,0,16,0],[26,0,17,0],[27,2,18,7],[27,11,18,16,"assert"],[27,17,18,22,"assert"],[27,18,18,23,"condition"],[27,27,18,32],[27,29,18,34,"message"],[27,36,18,41],[27,38,18,43],[28,4,19,4],[28,8,19,8],[28,9,19,9,"condition"],[28,18,19,18],[28,20,19,20],[29,6,20,8],[29,12,20,14],[29,16,20,18,"Error"],[29,21,20,23],[29,22,20,24],[29,26,20,24,"isFunction"],[29,39,20,34],[29,40,20,34,"isFunction"],[29,50,20,34],[29,52,20,35,"message"],[29,59,20,42],[29,60,20,43],[29,63,21,14,"message"],[29,70,21,21],[29,71,21,22],[29,72,21,23],[29,75,22,14,"message"],[29,82,22,21],[29,83,22,22],[30,4,23,4],[31,2,24,0],[32,2,25,0],[33,0,26,0],[34,0,27,0],[35,0,28,0],[36,2,29,7],[36,11,29,16,"assertReturn"],[36,23,29,28,"assertReturn"],[36,24,29,29,"value"],[36,29,29,34],[36,31,29,36,"message"],[36,38,29,43],[36,40,29,45],[37,4,30,4,"assert"],[37,10,30,10],[37,11,30,11,"value"],[37,16,30,16],[37,21,30,21,"undefined"],[37,30,30,30],[37,34,30,34,"value"],[37,39,30,39],[37,44,30,44],[37,48,30,48],[37,50,30,50,"message"],[37,57,30,57],[37,58,30,58],[38,4,31,4],[38,11,31,11,"value"],[38,16,31,16],[39,2,32,0],[40,2,33,0],[41,0,34,0],[42,0,35,0],[43,0,36,0],[44,2,37,7],[44,11,37,16,"assertUnreachable"],[44,28,37,33,"assertUnreachable"],[44,29,37,34,"x"],[44,30,37,35],[44,32,37,37],[45,4,38,4],[45,10,38,10],[45,14,38,14,"Error"],[45,19,38,19],[45,20,38,20],[45,77,38,77,"x"],[45,78,38,78],[45,80,38,80],[45,81,38,81],[46,2,39,0],[47,0,39,1],[47,3]],"functionMap":{"names":["<global>","assert","assertReturn","assertUnreachable"],"mappings":"AAA;OCiB;CDM;OEK;CFG;OGK;CHE"},"hasCjsExports":false},"type":"js/module"}]}