Path: blob/master/node_modules/axios/lib/helpers/deprecatedMethod.js
1126 views
'use strict';12/*eslint no-console:0*/34/**5* Supply a warning to the developer that a method they are using6* has been deprecated.7*8* @param {string} method The name of the deprecated method9* @param {string} [instead] The alternate method to use if applicable10* @param {string} [docs] The documentation URL to get further details11*/12module.exports = function deprecatedMethod(method, instead, docs) {13try {14console.warn(15'DEPRECATED method `' + method + '`.' +16(instead ? ' Use `' + instead + '` instead.' : '') +17' This method will be removed in a future release.');1819if (docs) {20console.warn('For more information about usage see ' + docs);21}22} catch (e) { /* Ignore */ }23};242526