Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getHttpMethodSymbol () {
try {
const rest = require('@feathersjs/express/rest');
/* istanbul ignore else: for @feathers/express versions < 4 */
if (rest.HTTP_METHOD) {
return rest.HTTP_METHOD;
}
} catch (e) {}
/* istanbul ignore next: for @feathers/express versions < 4 */
return null;
}
function getHttpMethodSymbol () {
try {
const rest = require('@feathersjs/express/rest');
/* istanbul ignore else: for @feathers/express versions < 4 */
if (rest.HTTP_METHOD) {
return rest.HTTP_METHOD;
}
} catch (e) {}
/* istanbul ignore next: for @feathers/express versions < 4 */
return null;
}