GoScrobble/web/node_modules/.cache/babel-loader/9cfdf7263eba3fc9ae7288eee2a965d3.json

1 line
2.0 KiB
JSON
Raw Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"'use strict';\n\nvar getDay = Date.prototype.getDay;\n\nvar tryDateObject = function tryDateGetDayCall(value) {\n try {\n getDay.call(value);\n return true;\n } catch (e) {\n return false;\n }\n};\n\nvar toStr = Object.prototype.toString;\nvar dateClass = '[object Date]';\n\nvar hasToStringTag = require('has-tostringtag/shams')();\n\nmodule.exports = function isDateObject(value) {\n if (typeof value !== 'object' || value === null) {\n return false;\n }\n\n return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;\n};","map":{"version":3,"sources":["/app/node_modules/is-date-object/index.js"],"names":["getDay","Date","prototype","tryDateObject","tryDateGetDayCall","value","call","e","toStr","Object","toString","dateClass","hasToStringTag","require","module","exports","isDateObject"],"mappings":"AAAA;;AAEA,IAAIA,MAAM,GAAGC,IAAI,CAACC,SAAL,CAAeF,MAA5B;;AACA,IAAIG,aAAa,GAAG,SAASC,iBAAT,CAA2BC,KAA3B,EAAkC;AACrD,MAAI;AACHL,IAAAA,MAAM,CAACM,IAAP,CAAYD,KAAZ;AACA,WAAO,IAAP;AACA,GAHD,CAGE,OAAOE,CAAP,EAAU;AACX,WAAO,KAAP;AACA;AACD,CAPD;;AASA,IAAIC,KAAK,GAAGC,MAAM,CAACP,SAAP,CAAiBQ,QAA7B;AACA,IAAIC,SAAS,GAAG,eAAhB;;AACA,IAAIC,cAAc,GAAGC,OAAO,CAAC,uBAAD,CAAP,EAArB;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,YAAT,CAAsBX,KAAtB,EAA6B;AAC7C,MAAI,OAAOA,KAAP,KAAiB,QAAjB,IAA6BA,KAAK,KAAK,IAA3C,EAAiD;AAChD,WAAO,KAAP;AACA;;AACD,SAAOO,cAAc,GAAGT,aAAa,CAACE,KAAD,CAAhB,GAA0BG,KAAK,CAACF,IAAN,CAAWD,KAAX,MAAsBM,SAArE;AACA,CALD","sourcesContent":["'use strict';\n\nvar getDay = Date.prototype.getDay;\nvar tryDateObject = function tryDateGetDayCall(value) {\n\ttry {\n\t\tgetDay.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\nvar toStr = Object.prototype.toString;\nvar dateClass = '[object Date]';\nvar hasToStringTag = require('has-tostringtag/shams')();\n\nmodule.exports = function isDateObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\treturn hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;\n};\n"]},"metadata":{},"sourceType":"script"}