mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +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 const 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 const str = typeof value !== 'string' ? (0, stringify_js_1.stringify)(value) : value;\n try {\n const 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,8,4,6,"stringify_js_1"],[8,22,4,20],[8,25,4,23,"require"],[8,32,4,30],[8,33,4,30,"_dependencyMap"],[8,47,4,30],[8,69,4,48],[8,70,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,10,30,10,"str"],[34,13,30,13],[34,16,30,16],[34,23,30,23,"value"],[34,28,30,28],[34,33,30,33],[34,41,30,41],[34,44,31,10],[34,45,31,11],[34,46,31,12],[34,48,31,14,"stringify_js_1"],[34,62,31,28],[34,63,31,29,"stringify"],[34,72,31,38],[34,74,31,40,"value"],[34,79,31,45],[34,80,31,46],[34,83,32,10,"value"],[34,88,32,15],[35,4,33,4],[35,8,33,8],[36,6,34,8],[36,12,34,14,"obj"],[36,15,34,17],[36,18,34,20,"JSON"],[36,22,34,24],[36,23,34,25,"parse"],[36,28,34,30],[36,29,34,31,"str"],[36,32,34,34],[36,33,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"}]} |