Skip to content

Commit 1001ecb

Browse files
committed
Update deps
1 parent 5ae1ff1 commit 1001ecb

File tree

8 files changed

+947
-759
lines changed

8 files changed

+947
-759
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

package.json

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,40 @@
3333
"lint": "eslint --cache --ext .js,.ts --fix .",
3434
"prepare": "husky install",
3535
"prepublishOnly": "pinst --disable",
36-
"prepublish": "yarn run clean && yarn run build ",
36+
"prepublish": "yarn run clean && yarn run build",
3737
"postpublish": "pinst --enable",
3838
"release": "np",
3939
"test": "jest --coverage",
4040
"typecheck": "tsc --project tsconfig.json --noEmit"
4141
},
4242
"devDependencies": {
43-
"@paleite/eslint-config": "^1.0.7",
44-
"@paleite/eslint-config-base": "^1.0.7",
45-
"@paleite/eslint-config-typescript": "^1.0.7",
46-
"@paleite/jest-config": "^1.0.7",
47-
"@paleite/prettier-config": "^1.0.7",
48-
"@paleite/tsconfig-node16": "^1.0.7",
49-
"@types/eslint": "^8.4.5",
50-
"@types/jest": "^28.1.6",
51-
"@types/node": "^16.11.26",
52-
"@typescript-eslint/eslint-plugin": "^5.32.0",
53-
"@typescript-eslint/parser": "^5.32.0",
54-
"eslint": "^8.21.0",
55-
"eslint-config-prettier": "^8.5.0",
56-
"eslint-import-resolver-typescript": "^3.4.0",
57-
"eslint-plugin-import": "^2.26.0",
58-
"eslint-plugin-promise": "^6.0.0",
59-
"husky": "^8.0.1",
60-
"jest": "^28.1.3",
61-
"lint-staged": "^13.0.3",
62-
"np": "^7.6.2",
43+
"@paleite/eslint-config": "^1.0.9",
44+
"@paleite/eslint-config-base": "^1.0.9",
45+
"@paleite/eslint-config-typescript": "^1.0.9",
46+
"@paleite/jest-config": "^1.0.9",
47+
"@paleite/prettier-config": "^1.0.9",
48+
"@paleite/tsconfig-node16": "^1.0.9",
49+
"@types/eslint": "^8.4.10",
50+
"@types/jest": "^29.2.6",
51+
"@types/node": "^18.11.18",
52+
"@typescript-eslint/eslint-plugin": "^5.48.2",
53+
"@typescript-eslint/parser": "^5.48.2",
54+
"eslint": "^8.32.0",
55+
"eslint-config-prettier": "^8.6.0",
56+
"eslint-import-resolver-typescript": "^3.5.3",
57+
"eslint-plugin-import": "^2.27.5",
58+
"eslint-plugin-promise": "^6.1.1",
59+
"husky": "^8.0.3",
60+
"jest": "^29.3.1",
61+
"lint-staged": "^13.1.0",
62+
"np": "^7.6.3",
6363
"pinst": "^3.0.0",
64-
"prettier": "^2.7.1",
64+
"prettier": "^2.8.3",
6565
"pretty-quick": "^3.1.3",
66-
"ts-jest": "^28.0.7",
67-
"tsd": "^0.22.0",
68-
"typescript": "^4.7.4"
66+
"ts-jest": "^29.0.5",
67+
"tsd": "^0.25.0",
68+
"typescript": "^4.9.4",
69+
"uuid": "^9.0.0"
6970
},
7071
"peerDependencies": {
7172
"eslint": ">=6.7.0"

src/__snapshots__/git.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`getRangesForDiff should find the ranges of each staged file 1`] = `
4-
Array [
4+
[
55
Range {
66
"exclusiveUpperBound": 1,
77
"inclusiveLowerBound": 0,
@@ -18,7 +18,7 @@ Array [
1818
`;
1919

2020
exports[`getRangesForDiff should work for hunks which include only-removal-ranges 1`] = `
21-
Array [
21+
[
2222
Range {
2323
"exclusiveUpperBound": 4,
2424
"inclusiveLowerBound": 2,

src/__snapshots__/index.test.ts.snap

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`plugin should match expected export 1`] = `
4-
Object {
5-
"ci": Object {
6-
"overrides": Array [
7-
Object {
8-
"files": Array [
4+
{
5+
"ci": {
6+
"overrides": [
7+
{
8+
"files": [
99
"*",
1010
],
1111
"processor": "diff/ci",
1212
},
1313
],
14-
"plugins": Array [
14+
"plugins": [
1515
"diff",
1616
],
1717
},
18-
"diff": Object {
19-
"overrides": Array [
20-
Object {
21-
"files": Array [
18+
"diff": {
19+
"overrides": [
20+
{
21+
"files": [
2222
"*",
2323
],
2424
"processor": "diff/diff",
2525
},
2626
],
27-
"plugins": Array [
27+
"plugins": [
2828
"diff",
2929
],
3030
},
31-
"staged": Object {
32-
"overrides": Array [
33-
Object {
34-
"files": Array [
31+
"staged": {
32+
"overrides": [
33+
{
34+
"files": [
3535
"*",
3636
],
3737
"processor": "diff/staged",
3838
},
3939
],
40-
"plugins": Array [
40+
"plugins": [
4141
"diff",
4242
],
4343
},
4444
}
4545
`;
4646

4747
exports[`plugin should match expected export 2`] = `
48-
Object {
49-
"ci": Object {
48+
{
49+
"ci": {
5050
"postprocess": [Function],
5151
"preprocess": [Function],
5252
"supportsAutofix": true,
5353
},
54-
"diff": Object {
54+
"diff": {
5555
"postprocess": [Function],
5656
"preprocess": [Function],
5757
"supportsAutofix": true,
5858
},
59-
"staged": Object {
59+
"staged": {
6060
"postprocess": [Function],
6161
"preprocess": [Function],
6262
"supportsAutofix": true,

src/__snapshots__/processors.test.ts.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`configs diff 1`] = `
4-
Object {
5-
"overrides": Array [
6-
Object {
7-
"files": Array [
4+
{
5+
"overrides": [
6+
{
7+
"files": [
88
"*",
99
],
1010
"processor": "diff/diff",
1111
},
1212
],
13-
"plugins": Array [
13+
"plugins": [
1414
"diff",
1515
],
1616
}
1717
`;
1818

1919
exports[`configs staged 1`] = `
20-
Object {
21-
"overrides": Array [
22-
Object {
23-
"files": Array [
20+
{
21+
"overrides": [
22+
{
23+
"files": [
2424
"*",
2525
],
2626
"processor": "diff/staged",
2727
},
2828
],
29-
"plugins": Array [
29+
"plugins": [
3030
"diff",
3131
],
3232
}
3333
`;
3434

3535
exports[`processors diff postprocess 1`] = `
36-
Array [
37-
Object {
36+
[
37+
{
3838
"column": 1,
3939
"line": 2,
4040
"message": "Expected { after 'if' condition.",
@@ -43,7 +43,7 @@ Array [
4343
"ruleId": "curly",
4444
"severity": 1,
4545
},
46-
Object {
46+
{
4747
"column": 1,
4848
"line": 3,
4949
"message": "Expected { after 'if' condition.",
@@ -56,8 +56,8 @@ Array [
5656
`;
5757

5858
exports[`processors staged postprocess 1`] = `
59-
Array [
60-
Object {
59+
[
60+
{
6161
"column": 1,
6262
"line": 2,
6363
"message": "Expected { after 'if' condition.",

src/git.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515

1616
jest.mock("child_process");
1717

18-
const mockedChildProcess = jest.mocked(child_process, true);
18+
const mockedChildProcess = jest.mocked(child_process, { shallow: true });
1919

2020
const OLD_ENV = process.env;
2121

src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ process.env.CI = "true";
22
import * as child_process from "child_process";
33

44
jest.mock("child_process");
5-
const mockedChildProcess = jest.mocked(child_process, true);
5+
const mockedChildProcess = jest.mocked(child_process, { shallow: true });
66
mockedChildProcess.execFileSync.mockReturnValue(
77
Buffer.from("line1\nline2\nline3")
88
);

0 commit comments

Comments
 (0)