util.deprecate(function (config) { if (config.timeoutMs != null) { throw new TypeError( 'Both options `timeout` and `timeoutMs` were set -- please just use ' + '`timeoutMs`' ) } config.timeoutMs = config.timeout * 1000 delete config.timeout }, 'rails-erb-loader `timeout` option is deprecated in favor of `timeoutMs`')
util.deprecate((options) => { return { basePath: options, customEndpoints: [] } }, '[express-actuator] Parameter must be an object. Support for string will be removed in the next major release.')
// JSTP RemoteError constructor // code - error code // message - optional error message // constructor(code, message, info = null) { super(); if (Error.captureStackTrace) { Error.captureStackTrace(this, RemoteError); } else { this.stack = new Error(message).stack; } this.message = message || defaultMessages[code] || code.toString(); this.code = code; if (this.toJstpArray !== toJstpArrayMethod) { this.toJstpArray = deprecate( this.toJstpArray, 'toJstpArray() method is deprecated, implement toJSTP() instead' ); } this.info = info; }