Skip to content

Commit c86825a

Browse files
author
Csaba Balázs
committed
chore: deps
1 parent 656eb06 commit c86825a

File tree

4 files changed

+88
-88
lines changed

4 files changed

+88
-88
lines changed

package-lock.json

Lines changed: 78 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@
5353
],
5454
"devDependencies": {
5555
"@types/mime-types": "^2.1.4",
56-
"@types/node": "^20.12.2",
57-
"@typescript-eslint/eslint-plugin": "^7.4.0",
58-
"@typescript-eslint/parser": "^7.4.0",
56+
"@types/node": "^20.12.7",
57+
"@typescript-eslint/eslint-plugin": "^7.6.0",
58+
"@typescript-eslint/parser": "^7.6.0",
5959
"eslint": "^8.57.0",
6060
"eslint-config-prettier": "^9.1.0",
6161
"eslint-plugin-simple-import-sort": "^12.0.0",
62-
"eslint-plugin-sonarjs": "^0.25.0",
63-
"eslint-plugin-unicorn": "^51.0.1",
62+
"eslint-plugin-sonarjs": "^0.25.1",
63+
"eslint-plugin-unicorn": "^52.0.0",
6464
"nodemon": "^3.1.0",
6565
"prettier": "^3.2.5",
6666
"ts-node": "^10.9.2",
67-
"typescript": "^5.4.3"
67+
"typescript": "^5.4.5"
6868
},
6969
"dependencies": {
7070
"glob": "^10.3.12",

src/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { extname } from 'node:path';
1+
import path from 'node:path';
22

33
import { globSync } from 'glob';
44

55
import { cmdLine } from './commandLine';
66

77
export const getFiles = (): string[] =>
88
globSync('**/*', { cwd: cmdLine.sourcepath, nodir: true })
9-
.filter((filename) => !['.gz', '.brottli'].includes(extname(filename)))
9+
.filter((filename) => !['.gz', '.brottli'].includes(path.extname(filename)))
1010
.sort();

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable unicorn/prefer-string-replace-all */
22
import { createHash } from 'node:crypto';
33
import { readFileSync, writeFileSync } from 'node:fs';
4-
import { join } from 'node:path';
4+
import path from 'node:path';
55
import { gzipSync } from 'node:zlib';
66

77
import { lookup } from 'mime-types';
@@ -29,7 +29,7 @@ for (const file of files) {
2929
summary.filecount++;
3030
console.log(`[${file}]`);
3131

32-
const rawContent = readFileSync(join(cmdLine.sourcepath, file), { flag: 'r' });
32+
const rawContent = readFileSync(path.join(cmdLine.sourcepath, file), { flag: 'r' });
3333
const md5 = createHash('md5').update(rawContent).digest('hex');
3434
summary.size += rawContent.length;
3535
if (cmdLine['no-gzip']) {

0 commit comments

Comments
 (0)