GoScrobble/web/node_modules/.cache/babel-loader/a3edd3b3059f1163cf5041c1aa882cab.json

1 line
3.1 KiB
JSON

{"ast":null,"code":"'use strict';\n\nvar slice = Array.prototype.slice;\n\nvar isArgs = require('./isArguments');\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) {\n return origKeys(o);\n} : require('./implementation');\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n if (Object.keys) {\n var keysWorksWithArguments = function () {\n // Safari 5.0 bug\n var args = Object.keys(arguments);\n return args && args.length === arguments.length;\n }(1, 2);\n\n if (!keysWorksWithArguments) {\n Object.keys = function keys(object) {\n // eslint-disable-line func-name-matching\n if (isArgs(object)) {\n return originalKeys(slice.call(object));\n }\n\n return originalKeys(object);\n };\n }\n } else {\n Object.keys = keysShim;\n }\n\n return Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;","map":{"version":3,"sources":["/app/node_modules/object-keys/index.js"],"names":["slice","Array","prototype","isArgs","require","origKeys","Object","keys","keysShim","o","originalKeys","shim","shimObjectKeys","keysWorksWithArguments","args","arguments","length","object","call","module","exports"],"mappings":"AAAA;;AAEA,IAAIA,KAAK,GAAGC,KAAK,CAACC,SAAN,CAAgBF,KAA5B;;AACA,IAAIG,MAAM,GAAGC,OAAO,CAAC,eAAD,CAApB;;AAEA,IAAIC,QAAQ,GAAGC,MAAM,CAACC,IAAtB;AACA,IAAIC,QAAQ,GAAGH,QAAQ,GAAG,SAASE,IAAT,CAAcE,CAAd,EAAiB;AAAE,SAAOJ,QAAQ,CAACI,CAAD,CAAf;AAAqB,CAA3C,GAA8CL,OAAO,CAAC,kBAAD,CAA5E;AAEA,IAAIM,YAAY,GAAGJ,MAAM,CAACC,IAA1B;;AAEAC,QAAQ,CAACG,IAAT,GAAgB,SAASC,cAAT,GAA0B;AACzC,MAAIN,MAAM,CAACC,IAAX,EAAiB;AAChB,QAAIM,sBAAsB,GAAI,YAAY;AACzC;AACA,UAAIC,IAAI,GAAGR,MAAM,CAACC,IAAP,CAAYQ,SAAZ,CAAX;AACA,aAAOD,IAAI,IAAIA,IAAI,CAACE,MAAL,KAAgBD,SAAS,CAACC,MAAzC;AACA,KAJ6B,CAI5B,CAJ4B,EAIzB,CAJyB,CAA9B;;AAKA,QAAI,CAACH,sBAAL,EAA6B;AAC5BP,MAAAA,MAAM,CAACC,IAAP,GAAc,SAASA,IAAT,CAAcU,MAAd,EAAsB;AAAE;AACrC,YAAId,MAAM,CAACc,MAAD,CAAV,EAAoB;AACnB,iBAAOP,YAAY,CAACV,KAAK,CAACkB,IAAN,CAAWD,MAAX,CAAD,CAAnB;AACA;;AACD,eAAOP,YAAY,CAACO,MAAD,CAAnB;AACA,OALD;AAMA;AACD,GAdD,MAcO;AACNX,IAAAA,MAAM,CAACC,IAAP,GAAcC,QAAd;AACA;;AACD,SAAOF,MAAM,CAACC,IAAP,IAAeC,QAAtB;AACA,CAnBD;;AAqBAW,MAAM,CAACC,OAAP,GAAiBZ,QAAjB","sourcesContent":["'use strict';\n\nvar slice = Array.prototype.slice;\nvar isArgs = require('./isArguments');\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation');\n\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\tvar args = Object.keys(arguments);\n\t\t\treturn args && args.length === arguments.length;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t}\n\t\t\t\treturn originalKeys(object);\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n"]},"metadata":{},"sourceType":"script"}