Skip to content

Commit 4b70e41

Browse files
committed
update yarn.lock
1 parent f15a5ea commit 4b70e41

File tree

5 files changed

+2753
-3411
lines changed

5 files changed

+2753
-3411
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"author": "Todd Treece",
1414
"license": "Apache-2.0",
1515
"devDependencies": {
16-
"@grafana/data": "latest",
17-
"@grafana/runtime": "latest",
18-
"@grafana/toolkit": "latest",
19-
"@grafana/ui": "latest",
16+
"@grafana/data": "next",
17+
"@grafana/runtime": "next",
18+
"@grafana/toolkit": "next",
19+
"@grafana/ui": "next",
2020
"@types/lodash": "latest",
2121
"aedes": "^0.45.0"
2222
},

src/handleEvent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('handlerFactory', () => {
2424
it('calls the formatting function', () => {
2525
const cb = jest.fn();
2626
const handler = handlerFactory({ a: { b: 'c' } }, cb);
27-
handler('a.b', v => v.toUpperCase())(changeEvent);
27+
handler('a.b', (v) => v.toUpperCase())(changeEvent);
2828
expect(cb.mock.calls[0][0]).toMatchInlineSnapshot(`
2929
Object {
3030
"a": Object {

src/handleEvent.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { ChangeEvent } from 'react';
22
import _ from 'lodash';
33

4-
export const handlerFactory = (original: object, onChange: (copy: any) => void) => (
5-
path: string,
6-
format: (value: string) => string | number | boolean | null = value => value
7-
) => (event: ChangeEvent<HTMLInputElement>): void => {
8-
const copy = _.cloneDeep(original);
9-
onChange(_.set(copy, path, format(event.currentTarget.value)));
10-
};
4+
export const handlerFactory =
5+
(original: object, onChange: (copy: any) => void) =>
6+
(path: string, format: (value: string) => string | number | boolean | null = (value) => value) =>
7+
(event: ChangeEvent<HTMLInputElement>): void => {
8+
const copy = _.cloneDeep(original);
9+
onChange(_.set(copy, path, format(event.currentTarget.value)));
10+
};

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"updated": "%TODAY%"
3838
},
3939
"dependencies": {
40-
"grafanaDependency": ">=7.5.0",
40+
"grafanaDependency": ">=8.0.0",
4141
"plugins": []
4242
}
4343
}

0 commit comments

Comments
 (0)