@avenlabs/halal-trace-sdk 0.1.2 → 0.1.4

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.
package/README.md CHANGED
@@ -5,13 +5,13 @@ TypeScript SDK for Halal Trace API.
5
5
  ## Install
6
6
 
7
7
  ```
8
- pnpm add @halal-trace/sdk
8
+ pnpm add @avenlabs/halal-trace-sdk
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```ts
14
- import { ApiClient } from "@halal-trace/sdk";
14
+ import { ApiClient } from "@avenlabs/halal-trace-sdk";
15
15
 
16
16
  const client = new ApiClient({
17
17
  baseUrl: "http://localhost:4000",
@@ -97,7 +97,7 @@ const client = new ApiClient({
97
97
  ## Node-only helpers
98
98
 
99
99
  ```ts
100
- import { saveToFile } from "@halal-trace/sdk/node";
100
+ import { saveToFile } from "@avenlabs/halal-trace-sdk/node";
101
101
  ```
102
102
 
103
103
  ## List all relayer jobs
package/dist/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiError, request, requestRaw } from "./http.js";
2
- const sdkVersion = "0.1.0";
2
+ const sdkVersion = "0.1.3";
3
3
  const withDefaults = (client, options = {}) => {
4
4
  return {
5
5
  ...options,
@@ -9,7 +9,7 @@ const withDefaults = (client, options = {}) => {
9
9
  auth: options.auth ?? client.authOptions,
10
10
  onAuthError: options.onAuthError ?? client.onAuthError,
11
11
  sdkHeaders: {
12
- "x-sdk-name": "@halal-trace/sdk",
12
+ "x-sdk-name": "@avenlabs/halal-trace-sdk",
13
13
  "x-sdk-version": sdkVersion,
14
14
  ...(client.clientVersion ? { "x-client-version": client.clientVersion } : {}),
15
15
  ...(client.userAgent ? { "User-Agent": client.userAgent } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avenlabs/halal-trace-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,4 +18,4 @@
18
18
  "typescript": "^5.5.4",
19
19
  "vitest": "^2.0.4"
20
20
  }
21
- }
21
+ }
package/src/client.ts CHANGED
@@ -48,7 +48,7 @@ type RequestConfig = Omit<RequestOptions, "sdkHeaders" | "hooks" | "signingHook"
48
48
  onAuthError?: (error: ApiError) => void | Promise<void>;
49
49
  };
50
50
 
51
- const sdkVersion = "0.1.0";
51
+ const sdkVersion = "0.1.3";
52
52
 
53
53
  const withDefaults = (client: ApiClient, options: RequestConfig = {}): RequestOptions => {
54
54
  return {
@@ -59,7 +59,7 @@ const withDefaults = (client: ApiClient, options: RequestConfig = {}): RequestOp
59
59
  auth: options.auth ?? client.authOptions,
60
60
  onAuthError: options.onAuthError ?? client.onAuthError,
61
61
  sdkHeaders: {
62
- "x-sdk-name": "@halal-trace/sdk",
62
+ "x-sdk-name": "@avenlabs/halal-trace-sdk",
63
63
  "x-sdk-version": sdkVersion,
64
64
  ...(client.clientVersion ? { "x-client-version": client.clientVersion } : {}),
65
65
  ...(client.userAgent ? { "User-Agent": client.userAgent } : {}),