qauMaWeb/node_modules/.cache/babel-loader/7f1711a17edfd91a4fcc94d007e...

1 line
7.7 KiB
JSON
Raw Normal View History

2024-10-13 18:02:27 +08:00
{"ast":null,"code":"'use strict';\n\nvar _typeof = require(\"D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/ElectronicMallVue/node_modules/@babel/runtime/helpers/typeof.js\").default;\n\nrequire(\"core-js/modules/es.object.to-string.js\");\n\nrequire(\"core-js/modules/es.error.cause.js\");\n\nrequire(\"core-js/modules/es.object.keys.js\");\n\nvar VERSION = require('../env/data').version;\n\nvar validators = {}; // eslint-disable-next-line func-names\n\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {\n validators[type] = function validator(thing) {\n return _typeof(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\nvar deprecatedWarnings = {};\n/**\n * Transitional option validator\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n * @returns {function}\n */\n\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n } // eslint-disable-next-line func-names\n\n\n return function (value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true; // eslint-disable-next-line no-console\n\n console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (_typeof(options) !== 'object') {\n throw new TypeError('options must be an object');\n }\n\n var keys = Object.keys(options);\n var i = keys.length;\n\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n\n continue;\n }\n\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n assertOptions: assertOptions,\n validators: validators\n};","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/ElectronicMallVue/node_modules/axios/lib/helpers/validator.js"],"names":["VERSION","require","version","validators","forEach","type","i","validator","thing","deprecatedWarnings","transitional","message","formatMessage","opt","desc","value","opts","Error","console","warn","assertOptions","options","schema","allowUnknown","TypeError","keys","Object","length","result","undefined","module","exports"],"mappings":"AAAA;;;;;;;;;;AAEA,IAAIA,OAAO,GAAGC,OAAO,CAAC,aAAD,CAAP,CAAuBC,OAArC;;AAEA,IAAIC,UAAU,GAAG,EAAjB,C,CAEA;;AACA,CAAC,QAAD,EAAW,SAAX,EAAsB,QAAtB,EAAgC,UAAhC,EAA4C,QAA5C,EAAsD,QAAtD,EAAgEC,OAAhE,CAAwE,UAASC,IAAT,EAAeC,CAAf,EAAkB;AACxFH,EAAAA,UAAU,CAACE,IAAD,CAAV,GAAmB,SAASE,SAAT,CAAmBC,KAAnB,EAA0B;AAC3C,WAAO,QAAOA,KAAP,MAAiBH,IAAjB,IAAyB,OAAOC,CAAC,GAAG,CAAJ,GAAQ,IAAR,GAAe,GAAtB,IAA6BD,IAA7D;AACD,GAFD;AAGD,CAJD;AAMA,IAAII,kBAAkB,GAAG,EAAzB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACAN,UAAU,CAACO,YAAX,GAA0B,SAASA,YAAT,CAAsBH,SAAtB,EAAiCL,OAAjC,EAA0CS,OAA1C,EAAmD;AAC3E,WAASC,aAAT,CAAuBC,GAAvB,EAA4BC,IAA5B,EAAkC;AAChC,WAAO,aAAad,OAAb,GAAuB,0BAAvB,GAAoDa,GAApD,GAA0D,IAA1D,GAAiEC,IAAjE,IAAyEH,OAAO,GAAG,OAAOA,OAAV,GAAoB,EAApG,CAAP;AACD,GAH0E,CAK3E;;;AACA,SAAO,UAASI,KAAT,EAAgBF,GAAhB,EAAqBG,IAArB,EAA2B;AAChC,QAAIT,SAAS,KAAK,KAAlB,EAAyB;AACvB,YAAM,IAAI