Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/f1c35b11c5ce15b74b03497b13eb7e74.json

1 line
740 B
JSON
Raw Normal View History

2020-12-31 16:18:50 -04:00
{"ast":null,"code":"'use strict';\n\nvar createError = require('./createError');\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\n\n\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));\n }\n};","map":null,"metadata":{},"sourceType":"script"}