go-scheduler-node-sdk 1.0.3 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,7 +23,7 @@ const client = new SchedulerClient({
23
23
  baseURL: "http://localhost:8080",
24
24
  timeout: 30000,
25
25
  headers: {
26
- "Authorization": "Bearer your-token-here"
26
+ "api-key": "your-token-here"
27
27
  }
28
28
  });
29
29
 
@@ -396,10 +396,10 @@ You can set custom headers after initializing the client:
396
396
 
397
397
  ```typescript
398
398
  // Set a header
399
- client.setHeader("Authorization", "Bearer new-token");
399
+ client.setHeader("api-key", "new-token");
400
400
 
401
401
  // Remove a header
402
- client.removeHeader("Authorization");
402
+ client.removeHeader("api-key");
403
403
  ```
404
404
 
405
405
  ## Recurring Events
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "go-scheduler-node-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "TypeScript SDK for interacting with go-scheduler REST API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",