diff --git a/lib/logger.js b/lib/logger.js index 266d38597..ff29a5ad4 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -131,7 +131,7 @@ function print(type, msg, obj, colors) { } if (typeof(str) === 'string') { - if (!colors || str.contains('\n')) { + if (!colors || str.includes('\n')) { return str } else if (is_error) { return '\033[31m' + str + '\033[39m' diff --git a/package.yaml b/package.yaml index fd500bbd3..6dab0b125 100644 --- a/package.yaml +++ b/package.yaml @@ -30,7 +30,7 @@ dependencies: cookies: '>=0.5.0 <1.0.0-0' request: '>=2.31.0 <3.0.0-0' async: '>=0.9.0 <1.0.0-0' - es6-shim: '>=0.20 <1.0.0-0' + es6-shim: '0.21.x' # 2.x and 3.x have the same interface semver: '>=2.2.1 <4.0.0-0'