Skip to content

Commit d79650a

Browse files
committed
chore: bump to version 2
1 parent aea2668 commit d79650a

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"name": "@sentio/api",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"license": "Apache-2.0",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/sentioxyz/api.git"
88
},
9-
"type": "module",
109
"exports": {
1110
".": "./dist/src/index.js"
1211
},
@@ -21,6 +20,9 @@
2120
"test": "tsx --test test/*.test.ts",
2221
"prepare": "pnpm build"
2322
},
23+
"dependencies": {
24+
"@hey-api/client-fetch": "^0.8.3"
25+
},
2426
"devDependencies": {
2527
"@types/node": "^20.14.1",
2628
"conventional-changelog-conventionalcommits": "^8.0.0",

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

test/simple.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { Configuration, WebApi } from "../src/index.js";
1+
import { WebService } from "../src/index.js";
2+
import { client } from "../src/client.gen.js";
23
import test from "node:test";
34
import assert from "assert";
45

56
test("getProjectList", async () => {
67
const apiKey = process.env.SENTIO_API_KEY;
78
assert(apiKey, "API key can't be found for the test");
89

9-
const config = new Configuration({
10-
apiKey,
10+
client.setConfig({
11+
auth: process.env.SENTIO_API_KEY,
1112
});
12-
const api = new WebApi(config);
13-
const projects = await api.getProjectList();
13+
const projects = await WebService.getProjectList();
1414
console.log(projects);
1515
});

0 commit comments

Comments
 (0)