mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
3.1 KiB
Plaintext
1 line
3.1 KiB
Plaintext
{"dependencies":[{"name":"../stringify.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}}],"key":"2zgFGs9gb8CDQZBLm+ivBNJ2Ky0=","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 _stringifyJs = 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, _stringifyJs.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":[[7,2,26,0,"exports"],[7,9,26,0],[7,10,26,0,"isJsonObject"],[7,22,26,0],[7,25,26,0,"isJsonObject"],[7,37,26,0],[8,2,1,0],[8,6,1,0,"_stringifyJs"],[8,18,1,0],[8,21,1,0,"require"],[8,28,1,0],[8,29,1,0,"_dependencyMap"],[8,43,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,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,0,23,0],[31,0,24,0],[32,0,25,0],[33,2,26,7],[33,11,26,16,"isJsonObject"],[33,23,26,28,"isJsonObject"],[33,24,26,29,"value"],[33,29,26,34],[33,31,26,36],[34,4,27,4],[34,10,27,10,"str"],[34,13,27,13],[34,16,27,16],[34,23,27,23,"value"],[34,28,27,28],[34,33,27,33],[34,41,27,41],[34,44,28,10],[34,48,28,10,"stringify"],[34,60,28,19],[34,61,28,19,"stringify"],[34,70,28,19],[34,72,28,20,"value"],[34,77,28,25],[34,78,28,26],[34,81,29,10,"value"],[34,86,29,15],[35,4,30,4],[35,8,30,8],[36,6,31,8],[36,12,31,14,"obj"],[36,15,31,17],[36,18,31,20,"JSON"],[36,22,31,24],[36,23,31,25,"parse"],[36,28,31,30],[36,29,31,31,"str"],[36,32,31,34],[36,33,31,35],[37,6,32,8],[37,13,32,15],[37,20,32,22,"obj"],[37,23,32,25],[37,28,32,30],[37,36,32,38],[37,40,32,42,"obj"],[37,43,32,45],[37,48,32,50],[37,52,32,54],[38,4,33,4],[38,5,33,5],[38,6,34,4],[38,12,34,10],[39,6,35,8],[39,13,35,15],[39,18,35,20],[40,4,36,4],[41,2,37,0],[42,0,37,1],[42,3]],"functionMap":{"names":["<global>","isJsonObject"],"mappings":"AAA;OCyB;CDW"},"hasCjsExports":false},"type":"js/module"}]} |