Comparing version 0.1.12 to 0.1.13
@@ -9,4 +9,7 @@ { | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
"ecmaVersion": 2020 | ||
}, | ||
"globals": { | ||
"BigInt": true | ||
}, | ||
"rules": { | ||
@@ -29,3 +32,2 @@ "indent": [ | ||
], | ||
"no-console": "off", | ||
"no-loop-func": [ | ||
@@ -118,2 +120,5 @@ "error" | ||
], | ||
"no-lonely-if": [ | ||
"error" | ||
], | ||
"no-trailing-spaces": [ | ||
@@ -154,3 +159,3 @@ "error" | ||
{ | ||
"anonymous": "always", | ||
"anonymous": "never", | ||
"named": "never", | ||
@@ -275,2 +280,2 @@ "asyncArrow": "always" | ||
] | ||
} | ||
} |
@@ -77,4 +77,12 @@ #!/usr/bin/env node | ||
const [minLength, maxLength] = test.length || []; | ||
if (targetLength > maxLength) throw new Error('Solution is too long'); | ||
if (targetLength < minLength) throw new Error('Solution is too short'); | ||
if (targetLength > maxLength) { | ||
throw new Error( | ||
`Solution is too long: no more than ${maxLength} characters expected.` | ||
); | ||
} | ||
if (targetLength < minLength) { | ||
throw new Error( | ||
`Solution is too short: at least ${minLength} characters expected.` | ||
); | ||
} | ||
let casesResult = 'No test cases'; | ||
@@ -81,0 +89,0 @@ if (test.cases) { |
{ | ||
"name": "hpw", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -34,9 +34,7 @@ "description": "Labs Auto Checker", | ||
"dependencies": { | ||
"concolor": "^0.1.14", | ||
"metasync": "^0.3.31", | ||
"minimist": "^1.2.5" | ||
"concolor": "^0.1.14" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0" | ||
"eslint": "^7.4.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
14222
1
24
463
- Removedmetasync@^0.3.31
- Removedminimist@^1.2.5
- Removed@metarhia/common@2.2.2(transitive)
- Removedmetasync@0.3.32(transitive)
- Removedminimist@1.2.8(transitive)