mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 01:51:03 +00:00
1 line
3.4 KiB
Plaintext
1 line
3.4 KiB
Plaintext
{"dependencies":[{"name":"../stringify.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":23,"index":137},"end":{"line":4,"column":49,"index":163}}],"key":"c7J+5OC/FhgscMnKu+PvVcdj6nc=","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.isJsonObject = isJsonObject;\n var stringify_js_1 = require(_dependencyMap[0], \"../stringify.js\");\n /**\n * @name isJsonObject\n * @summary Tests for a valid JSON `object`.\n * @description\n * Checks to see if the input value is a valid JSON object.\n * It returns false if the input is JSON parsable, but not an Javascript object.\n * @example\n * <BR>\n *\n * ```javascript\n * import { isJsonObject } from '@polkadot/util';\n *\n * isJsonObject({}); // => true\n * isJsonObject({\n * \"Test\": \"1234\",\n * \"NestedTest\": {\n * \"Test\": \"5678\"\n * }\n * }); // => true\n * isJsonObject(1234); // JSON parsable, but not an object => false\n * isJsonObject(null); // JSON parsable, but not an object => false\n * isJsonObject('not an object'); // => false\n * ```\n */\n function isJsonObject(value) {\n var str = typeof value !== 'string' ? (0, stringify_js_1.stringify)(value) : value;\n try {\n var obj = JSON.parse(str);\n return typeof obj === 'object' && obj !== null;\n } catch {\n return false;\n }\n }\n});","lineCount":42,"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,"isJsonObject"],[7,22,3,20],[7,25,3,23,"isJsonObject"],[7,37,3,35],[8,2,4,0],[8,6,4,6,"stringify_js_1"],[8,20,4,20],[8,23,4,23,"require"],[8,30,4,30],[8,31,4,30,"_dependencyMap"],[8,45,4,30],[8,67,4,48],[8,68,4,49],[9,2,5,0],[10,0,6,0],[11,0,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,0,23,0],[28,0,24,0],[29,0,25,0],[30,0,26,0],[31,0,27,0],[32,0,28,0],[33,2,29,0],[33,11,29,9,"isJsonObject"],[33,23,29,21,"isJsonObject"],[33,24,29,22,"value"],[33,29,29,27],[33,31,29,29],[34,4,30,4],[34,8,30,10,"str"],[34,11,30,13],[34,14,30,16],[34,21,30,23,"value"],[34,26,30,28],[34,31,30,33],[34,39,30,41],[34,42,31,10],[34,43,31,11],[34,44,31,12],[34,46,31,14,"stringify_js_1"],[34,60,31,28],[34,61,31,29,"stringify"],[34,70,31,38],[34,72,31,40,"value"],[34,77,31,45],[34,78,31,46],[34,81,32,10,"value"],[34,86,32,15],[35,4,33,4],[35,8,33,8],[36,6,34,8],[36,10,34,14,"obj"],[36,13,34,17],[36,16,34,20,"JSON"],[36,20,34,24],[36,21,34,25,"parse"],[36,26,34,30],[36,27,34,31,"str"],[36,30,34,34],[36,31,34,35],[37,6,35,8],[37,13,35,15],[37,20,35,22,"obj"],[37,23,35,25],[37,28,35,30],[37,36,35,38],[37,40,35,42,"obj"],[37,43,35,45],[37,48,35,50],[37,52,35,54],[38,4,36,4],[38,5,36,5],[38,6,37,4],[38,12,37,10],[39,6,38,8],[39,13,38,15],[39,18,38,20],[40,4,39,4],[41,2,40,0],[42,0,40,1],[42,3]],"functionMap":{"names":["<global>","isJsonObject"],"mappings":"AAA;AC4B;CDW"},"hasCjsExports":true},"type":"js/module"}]} |