@spooled/sdk 1.0.17 → 1.0.18

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
@@ -362,11 +362,14 @@ For high-throughput workers, use the native gRPC API with the included gRPC clie
362
362
  ```typescript
363
363
  import { SpooledGrpcClient } from '@spooled/sdk';
364
364
 
365
- // Connect to gRPC server
366
- const grpcClient = new SpooledGrpcClient(
367
- 'grpc.spooled.cloud:443',
368
- 'sk_live_your_key'
369
- );
365
+ // Connect to gRPC server (Optimized for Cloudflare Tunnel)
366
+ // useTls: true if connecting to grpc.spooled.cloud:443 (Cloudflare terminates TLS)
367
+ // useTls: false if connecting to localhost or direct backend
368
+ const grpcClient = new SpooledGrpcClient({
369
+ address: 'grpc.spooled.cloud:443',
370
+ apiKey: 'sk_live_your_key',
371
+ useTls: true
372
+ });
370
373
 
371
374
  // Register worker
372
375
  const { workerId } = await grpcClient.workers.register({
@@ -107,11 +107,11 @@ declare const DEFAULT_CONFIG: {
107
107
  successThreshold: number;
108
108
  timeout: number;
109
109
  };
110
- readonly userAgent: "@spooled/sdk-nodejs/1.0.15";
110
+ readonly userAgent: "@spooled/sdk-nodejs/1.0.18";
111
111
  readonly autoRefreshToken: true;
112
112
  };
113
113
  /** SDK version */
114
- declare const SDK_VERSION = "1.0.15";
114
+ declare const SDK_VERSION = "1.0.18";
115
115
  /** API version prefix */
116
116
  declare const API_VERSION = "v1";
117
117
  /**
@@ -107,11 +107,11 @@ declare const DEFAULT_CONFIG: {
107
107
  successThreshold: number;
108
108
  timeout: number;
109
109
  };
110
- readonly userAgent: "@spooled/sdk-nodejs/1.0.15";
110
+ readonly userAgent: "@spooled/sdk-nodejs/1.0.18";
111
111
  readonly autoRefreshToken: true;
112
112
  };
113
113
  /** SDK version */
114
- declare const SDK_VERSION = "1.0.15";
114
+ declare const SDK_VERSION = "1.0.18";
115
115
  /** API version prefix */
116
116
  declare const API_VERSION = "v1";
117
117
  /**
package/dist/index.cjs CHANGED
@@ -56,10 +56,10 @@ var DEFAULT_CONFIG = {
56
56
  successThreshold: 3,
57
57
  timeout: 3e4
58
58
  },
59
- userAgent: "@spooled/sdk-nodejs/1.0.15",
59
+ userAgent: "@spooled/sdk-nodejs/1.0.18",
60
60
  autoRefreshToken: true
61
61
  };
62
- var SDK_VERSION = "1.0.15";
62
+ var SDK_VERSION = "1.0.18";
63
63
  var API_VERSION = "v1";
64
64
  var API_BASE_PATH = `/api/${API_VERSION}`;
65
65
  function resolveConfig(options) {
@@ -3033,7 +3033,7 @@ var SpooledWorker = class {
3033
3033
  ...DEFAULT_OPTIONS,
3034
3034
  hostname: os.hostname(),
3035
3035
  workerType: "nodejs",
3036
- version: "1.0.15",
3036
+ version: "1.0.18",
3037
3037
  metadata: {},
3038
3038
  ...options
3039
3039
  };