Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit 50d5180

Browse files
committed
update plugin.json
1 parent 3ca2271 commit 50d5180

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This file is needed because it is used by vscode and other tools that
2+
// call `jest` directly. However, unless you are doing anything special
3+
// do not edit this file
4+
5+
const standard = require('@grafana/toolkit/src/config/jest.plugin.config');
6+
7+
// This process will use the same config that `yarn test` is using
8+
module.exports = standard.jestConfig();

src/datasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
9898
message: response.statusText ? response.statusText : defaultErrorMessage,
9999
};
100100
}
101-
} catch (err:any) {
101+
} catch (err) {
102102
if (_.isString(err)) {
103103
return {
104104
status: 'error',

src/plugin.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22
"$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
33
"type": "datasource",
44
"name": "Node Graph API Plugin",
5-
"id": "hamedkarbasi93-nodegraph-api-plugin",
5+
"id": "hamedkarbasi93-nodegraphapi-datasource",
66
"metrics": true,
77
"info": {
8-
"description": "",
8+
"description": "A datasource that provides data for nodegraph panel via api",
99
"author": {
10-
"name": "karbasi",
11-
"url": ""
10+
"name": "Hamed Karbasi",
11+
"url": "https://grafana.com/orgs/hamedkarbasi93"
1212
},
13-
"keywords": [],
13+
"keywords": ["nodegraph", "datasource", "api"],
1414
"logos": {
1515
"small": "img/logo.svg",
1616
"large": "img/logo.svg"
1717
},
1818
"links": [
1919
{
2020
"name": "Website",
21-
"url": "https://github.com/grafana/grafana-starter-datasource"
21+
"url": "https://github.com/exaco/nodegraph-api-plugin"
2222
},
2323
{
2424
"name": "License",
25-
"url": "https://github.com/grafana/grafana-starter-datasource/blob/master/LICENSE"
25+
"url": "https://github.com/exaco/nodegraph-api-plugin/blob/master/LICENSE"
2626
}
2727
],
2828
"screenshots": [],
29-
"version": "%VERSION%",
29+
"version": "0.1.0",
3030
"updated": "%TODAY%"
3131
},
3232
"dependencies": {
33-
"grafanaDependency": ">=7.0.0",
33+
"grafanaDependency": ">=7.5.0",
3434
"plugins": []
3535
}
3636
}

0 commit comments

Comments
 (0)