@silvana-one/api 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { client } from "./client/sdk.gen.js";
1
+ import { client } from "./client/client.gen.js";
2
2
  export function config({ apiKey, chain, throwOnError, }) {
3
3
  client.setConfig({
4
4
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,UAAU,MAAM,CAAC,EACrB,MAAM,EACN,KAAK,EACL,YAAY,GAKb;IACC,MAAM,CAAC,SAAS,CAAC;QACf,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EACL,KAAK,KAAK,MAAM;YACd,CAAC,CAAC,gCAAgC;YAClC,CAAC,CAAC,KAAK,KAAK,QAAQ;gBACpB,CAAC,CAAC,uCAAuC;gBACzC,CAAC,CAAC,gCAAgC;QACtC,YAAY,EAAE,YAAY,IAAI,IAAI;KACnC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,UAAU,MAAM,CAAC,EACrB,MAAM,EACN,KAAK,EACL,YAAY,GAKb;IACC,MAAM,CAAC,SAAS,CAAC;QACf,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EACL,KAAK,KAAK,MAAM;YACd,CAAC,CAAC,gCAAgC;YAClC,CAAC,CAAC,KAAK,KAAK,QAAQ;gBACpB,CAAC,CAAC,uCAAuC;gBACzC,CAAC,CAAC,gCAAgC;QACtC,YAAY,EAAE,YAAY,IAAI,IAAI;KACnC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@silvana-one/api",
3
3
  "description": "Silvana API",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "author": "DFST",
6
6
  "bugs": "https://github.com/SilvanaOne/silvana-lib/issues",
7
7
  "dependencies": {
8
- "@hey-api/client-fetch": "^0.5.6"
8
+ "@hey-api/client-fetch": "^0.8.1"
9
9
  },
10
10
  "devDependencies": {
11
- "@hey-api/openapi-ts": "^0.60.0",
11
+ "@hey-api/openapi-ts": "^0.64.4",
12
12
  "@types/node": "^22.10.2",
13
- "esbuild": "^0.24.0",
13
+ "esbuild": "^0.25.0",
14
14
  "typescript": "^5.7.2"
15
15
  },
16
16
  "engines": {
@@ -45,7 +45,6 @@
45
45
  ],
46
46
  "license": "Apache-2.0",
47
47
  "main": "dist/web/index.js",
48
- "peerDependencies": {},
49
48
  "publishConfig": {
50
49
  "access": "public"
51
50
  },
@@ -0,0 +1,18 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import type { ClientOptions } from './types.gen.js';
4
+ import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from '@hey-api/client-fetch';
5
+
6
+ /**
7
+ * The `createClientConfig()` function will be called on client initialization
8
+ * and the returned object will become the client's initial configuration.
9
+ *
10
+ * You may want to initialize your client this way instead of calling
11
+ * `setConfig()`. This is useful for example if you're using Next.js
12
+ * to ensure your client always has the correct values.
13
+ */
14
+ export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
15
+
16
+ export const client = createClient(createConfig<ClientOptions>({
17
+ baseUrl: 'https://minatokens.com/api/v1/'
18
+ }));