Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 4, 2021
1 parent 28dc55d commit 997305c
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 33 deletions.
11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules
.*
!.editorconfig
!.eslintignore
!.eslintrc
!.eslintrc.js
!.flowconfig
!.github
!.gitignore
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,32 @@
"roarr": "dist/src/bin/index.js"
},
"dependencies": {
"chalk": "^4.1.2",
"chalk": "^5.0.0",
"es6-error": "^4.1.1",
"liqe": "^1.13.0",
"prettyjson": "^1.2.1",
"roarr": "^7.7.0",
"socket.io-client": "^4.3.2",
"roarr": "^7.8.0",
"socket.io-client": "^4.4.0",
"split2": "^4.1.0",
"throttle-debounce": "^3.0.1",
"uuid": "^8.3.2",
"yargs": "^17.2.1"
"yargs": "^17.3.0"
},
"description": "A CLI program for Roarr logger.",
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/split2": "^3.2.1",
"@types/yargs": "^17.0.5",
"@types/yargs": "^17.0.7",
"ava": "^3.15.0",
"coveralls": "^3.1.1",
"del-cli": "^4.0.1",
"eslint": "^7.26.0",
"eslint-config-canonical": "^26.2.3",
"eslint": "^8.4.0",
"eslint-config-canonical": "^32.43.2",
"husky": "^7.0.4",
"nyc": "^15.1.0",
"semantic-release": "^18.0.0",
"semantic-release": "^18.0.1",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
"typescript": "^4.5.2"
},
"engines": {
"node": ">=14"
Expand Down
4 changes: 0 additions & 4 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// @flow

/* eslint-disable fp/no-class */

import ExtendableError from 'es6-error';

export class RoarrError extends ExtendableError {}
2 changes: 1 addition & 1 deletion src/factories/createLogFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const createLogFilter = (configuration: LogFilterConfigurationType) => {

try {
return filterLog(line);
} catch (error: any) {
} catch (error) {
return formatInvalidInputMessage(
configuration.chalk,
error,
Expand Down
4 changes: 2 additions & 2 deletions src/factories/createLogFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '../utilities';

export const createLogFormatter = (configuration: LogFormatterConfigurationType) => {
const chalk = configuration.chalk;
const {chalk} = configuration;

const logLevelColorMap = {
debug: chalk.gray,
Expand Down Expand Up @@ -85,7 +85,7 @@ export const createLogFormatter = (configuration: LogFormatterConfigurationType)

try {
return formatMessage(JSON.parse(line));
} catch (error: any) {
} catch (error) {
return formatInvalidInputMessage(chalk, error, line);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/factories/createRemoteStream.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os from 'os';
import os from 'node:os';
import {
io,
} from 'socket.io-client';
Expand Down
5 changes: 3 additions & 2 deletions src/utilities/findNearestRoarrConfigurationPath.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* eslint-disable node/no-sync */

import fs from 'fs';
import path from 'path';
import fs from 'node:fs';
import path from 'node:path';
import {
RoarrError,
} from '../errors';

export const findNearestRoarrConfigurationPath = (startPath: string = process.cwd()): string | null => {
let currentPath = startPath;

// eslint-disable-next-line no-constant-condition
while (true) {
const roarrConfigurationPath = path.join(currentPath, '.roarr.js');

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"outDir": "dist",
"skipLibCheck": true,
"strict": true,
"target": "es2020"
"target": "es2020",
"useUnknownInCatchVariables": false
},
"exclude": [
"dist",
Expand Down

0 comments on commit 997305c

Please sign in to comment.