@naturalcycles/dev-lib 20.46.1 → 20.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -458,7 +458,7 @@ export function runTest(opt = {}) {
458
458
  function runVitest(opt) {
459
459
  const { integration, manual } = opt;
460
460
  const processArgs = process.argv.slice(3);
461
- const args = [...processArgs];
461
+ const args = processArgs.slice();
462
462
  const env = {};
463
463
  if (integration) {
464
464
  Object.assign(env, {
@@ -41,7 +41,7 @@ export function validateCommitMessage(input, cfg = {}) {
41
41
  const [, type, scope, _breaking, description] = match;
42
42
  // Step 2: Validate type
43
43
  if (!ALLOWED_TYPES.has(type)) {
44
- errors.push(`Invalid type "${type}". Allowed types: ${[...ALLOWED_TYPES].join(', ')}`);
44
+ errors.push(`Invalid type "${type}". Allowed types: ${Array.from(ALLOWED_TYPES).join(', ')}`);
45
45
  }
46
46
  // Step 3: Validate subject line length
47
47
  if (subjectLine.length > SUBJECT_MAX_LENGTH) {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.46.1",
4
+ "version": "20.48.0",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@naturalcycles/nodejs-lib": "^15",
8
8
  "@vitest/coverage-v8": "^4",
9
9
  "eslint-plugin-oxlint": "^1",
10
10
  "globals": "^17",
11
- "lint-staged": "^16",
11
+ "lint-staged": "^17",
12
12
  "oxfmt": "^0",
13
13
  "oxlint": "^1",
14
14
  "oxlint-tsgolint": "^0",