Skip to content

Commit 7884a29

Browse files
authored
chore: bump version (#198)
1 parent ca7c622 commit 7884a29

File tree

3 files changed

+271
-603
lines changed

3 files changed

+271
-603
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"dependencies": {
6262
"@emotion/react": "^11.10.5",
6363
"@emotion/styled": "^11.10.5",
64-
"@mui/material": "^5.11.4",
64+
"@mui/material": "^5.11.5",
6565
"copy-to-clipboard": "^3.3.3",
6666
"zustand": "^4.1.5"
6767
},
@@ -80,21 +80,21 @@
8080
"@rollup/plugin-commonjs": "^24.0.0",
8181
"@rollup/plugin-node-resolve": "^15.0.1",
8282
"@rollup/plugin-replace": "^5.0.2",
83-
"@swc/core": "^1.3.26",
83+
"@swc/core": "^1.3.27",
8484
"@testing-library/react": "^13.4.0",
8585
"@types/node": "^18.11.18",
86-
"@types/react": "^18.0.26",
86+
"@types/react": "^18.0.27",
8787
"@types/react-dom": "^18.0.10",
88-
"@types/web": "^0.0.87",
89-
"@typescript-eslint/eslint-plugin": "^5.48.1",
88+
"@types/web": "^0.0.88",
89+
"@typescript-eslint/eslint-plugin": "^5.48.2",
9090
"@typescript-eslint/parser": "^5.48.2",
91-
"@vitejs/plugin-react": "^2.2.0",
92-
"@vitest/coverage-c8": "^0.27.1",
93-
"@vitest/ui": "^0.27.1",
91+
"@vitejs/plugin-react": "^3.0.1",
92+
"@vitest/coverage-c8": "^0.27.2",
93+
"@vitest/ui": "^0.27.2",
9494
"eslint": "^8.32.0",
9595
"eslint-config-standard": "^17.0.0",
9696
"eslint-plugin-cypress": "^2.12.1",
97-
"eslint-plugin-import": "^2.27.4",
97+
"eslint-plugin-import": "^2.27.5",
9898
"eslint-plugin-n": "^15.6.1",
9999
"eslint-plugin-promise": "^6.1.1",
100100
"eslint-plugin-react": "^7.32.1",
@@ -114,8 +114,8 @@
114114
"rollup-plugin-swc3": "^0.8.0",
115115
"ts-node": "^10.9.1",
116116
"typescript": "^4.9.4",
117-
"vite": "^3.2.5",
118-
"vitest": "^0.27.1"
117+
"vite": "^4.0.4",
118+
"vitest": "^0.27.2"
119119
},
120120
"packageManager": "[email protected]",
121121
"workspaces": [

tests/index.test.tsx

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ describe('test functions', () => {
307307
},
308308
'(...args) {',
309309
`
310-
console.log(args);
311-
return "333";
312-
`
310+
console.log(args);
311+
return "333";
312+
`
313313
],
314314
[
315315
func1,
@@ -328,69 +328,63 @@ describe('test functions', () => {
328328
`
329329
],
330330
[
331-
(...args:any) => console.log('555'),
331+
// eslint-disable-next-line unused-imports/no-unused-vars
332+
(...args: any) => console.log('555'),
332333
'(...args) => {',
333334
' console.log("555")'
334335
],
335336
[
336-
(...args:any) => {
337+
(...args: any) => {
337338
console.log(args)
338339
return '666'
339340
},
340341
'(...args) => {',
341342
` {
342-
console.log(args);
343-
return "666";
344-
}`
343+
console.log(args);
344+
return "666";
345+
}`
345346
],
346347
[
348+
// eslint-disable-next-line unused-imports/no-unused-vars
347349
function (a: number, b: number) {
348350
throw Error('Be careful to use the function just as value in useState() hook')
349351
},
350352
'(a, b) {',
351353
`
352-
throw Error("Be careful to use the function just as value in useState() hook");
353-
`
354+
throw Error("Be careful to use the function just as value in useState() hook");
355+
`
354356
],
355357
[
356-
({ prop1, prop2, ...other }:any) => {
358+
({ prop1, prop2, ...other }: any) => {
357359
console.log(prop1, prop2, other)
358360
return '777'
359361
},
360-
`({
361-
prop1,
362-
prop2,
363-
...other
364-
}) => {`,
362+
'({ prop1, prop2, ...other }) => {',
365363
` {
366-
console.log(prop1, prop2, other);
367-
return "777";
368-
}`
364+
console.log(prop1, prop2, other);
365+
return "777";
366+
}`
369367
],
370368
[
371369
{
372-
func: ({ prop1, prop2, ...other }:any) => {
370+
func: ({ prop1, prop2, ...other }: any) => {
373371
console.log(prop1, prop2, other)
374-
return '777'
372+
return '888'
375373
}
376374
},
377-
`({
378-
prop1,
379-
prop2,
380-
...other
381-
}) => {`,
375+
'({ prop1, prop2, ...other }) => {',
382376
` {
383-
console.log(prop1, prop2, other);
384-
return "777";
385-
}`
377+
console.log(prop1, prop2, other);
378+
return "888";
379+
}`
386380
],
387381
[
388382
// @ts-ignore
389383
function (e, n) { return e + n },
390384
'(e, n) {',
391385
`
392-
return e + n;
393-
`
386+
return e + n;
387+
`
394388
]
395389
]
396390
for (const iteration of dataProvider) {
@@ -418,7 +412,7 @@ describe('Expand function by click on dots', () => {
418412
const { container, rerender } = render(
419413
<JsonViewer
420414
rootName={false}
421-
value={(e:any) => console.log('it works')}
415+
value={(e: any) => console.log('it works')}
422416
defaultInspectDepth={0}
423417
/>
424418
)
@@ -431,7 +425,7 @@ describe('Expand function by click on dots', () => {
431425
rerender(
432426
<JsonViewer
433427
rootName={false}
434-
value={(e:any) => console.log('it works')}
428+
value={(e: any) => console.log('it works')}
435429
defaultInspectDepth={0}
436430
/>
437431
)

0 commit comments

Comments
 (0)