1 |
- {"ast":null,"code":"'use strict';\n\nvar hasBigInts = require('has-bigints')();\nif (hasBigInts) {\n var bigIntValueOf = BigInt.prototype.valueOf;\n /** @type {(value: object) => value is BigInt} */\n var tryBigInt = function tryBigIntObject(value) {\n try {\n bigIntValueOf.call(value);\n return true;\n } catch (e) {}\n return false;\n };\n\n /** @type {import('.')} */\n module.exports = function isBigInt(value) {\n if (value === null || typeof value === 'undefined' || typeof value === 'boolean' || typeof value === 'string' || typeof value === 'number' || typeof value === 'symbol' || typeof value === 'function') {\n return false;\n }\n if (typeof value === 'bigint') {\n return true;\n }\n return tryBigInt(value);\n };\n} else {\n /** @type {import('.')} */\n module.exports = function isBigInt(value) {\n return false && value;\n };\n}","map":{"version":3,"names":["hasBigInts","require","bigIntValueOf","BigInt","prototype","valueOf","tryBigInt","tryBigIntObject","value","call","e","module","exports","isBigInt"],"sources":["/Users/max_liu/max_liu/company/tools_auto_pt/node_modules/is-bigint/index.js"],"sourcesContent":["'use strict';\n\nvar hasBigInts = require('has-bigints')();\n\nif (hasBigInts) {\n\tvar bigIntValueOf = BigInt.prototype.valueOf;\n\t/** @type {(value: object) => value is BigInt} */\n\tvar tryBigInt = function tryBigIntObject(value) {\n\t\ttry {\n\t\t\tbigIntValueOf.call(value);\n\t\t\treturn true;\n\t\t} catch (e) {\n\t\t}\n\t\treturn false;\n\t};\n\n\t/** @type {import('.')} */\n\tmodule.exports = function isBigInt(value) {\n\t\tif (\n\t\t\tvalue === null\n\t\t\t|| typeof value === 'undefined'\n\t\t\t|| typeof value === 'boolean'\n\t\t\t|| typeof value === 'string'\n\t\t\t|| typeof value === 'number'\n\t\t\t|| typeof value === 'symbol'\n\t\t\t|| typeof value === 'function'\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\tif (typeof value === 'bigint') {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn tryBigInt(value);\n\t};\n} else {\n\t/** @type {import('.')} */\n\tmodule.exports = function isBigInt(value) {\n\t\treturn false && value;\n\t};\n}\n"],"mappings":"AAAA,YAAY;;AAEZ,IAAIA,UAAU,GAAGC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAEzC,IAAID,UAAU,EAAE;EACf,IAAIE,aAAa,GAAGC,MAAM,CAACC,SAAS,CAACC,OAAO;EAC5C;EACA,IAAIC,SAAS,GAAG,SAASC,eAAeA,CAACC,KAAK,EAAE;IAC/C,IAAI;MACHN,aAAa,CAACO,IAAI,CAACD,KAAK,CAAC;MACzB,OAAO,IAAI;IACZ,CAAC,CAAC,OAAOE,CAAC,EAAE,CACZ;IACA,OAAO,KAAK;EACb,CAAC;;EAED;EACAC,MAAM,CAACC,OAAO,GAAG,SAASC,QAAQA,CAACL,KAAK,EAAE;IACzC,IACCA,KAAK,KAAK,IAAI,IACX,OAAOA,KAAK,KAAK,WAAW,IAC5B,OAAOA,KAAK,KAAK,SAAS,IAC1B,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,EAC7B;MACD,OAAO,KAAK;IACb;IACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MAC9B,OAAO,IAAI;IACZ;IAEA,OAAOF,SAAS,CAACE,KAAK,CAAC;EACxB,CAAC;AACF,CAAC,MAAM;EACN;EACAG,MAAM,CAACC,OAAO,GAAG,SAASC,QAAQA,CAACL,KAAK,EAAE;IACzC,OAAO,KAAK,IAAIA,KAAK;EACtB,CAAC;AACF","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|