@seamapi/nextlove-sdk-generator 1.12.0 → 1.13.0

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.
@@ -23,11 +23,11 @@ class SeamClient
23
23
  public string $ltsVersion = LTS_VERSION;
24
24
 
25
25
  public function __construct(
26
- $api_key,
26
+ $api_key = null,
27
27
  $endpoint = "https://connect.getseam.com",
28
28
  $throw_http_errors = false
29
29
  ) {
30
- $this->api_key = $api_key;
30
+ $this->api_key = $api_key ?: (getenv('SEAM_API_KEY') ?: null);
31
31
  $seam_sdk_version = PackageVersion::get();
32
32
  $this->client = new HTTPClient([
33
33
  "base_uri" => $endpoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/nextlove-sdk-generator",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Utilities for building NextLove SDK Generators",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -36,11 +36,11 @@ class SeamClient
36
36
  public string $ltsVersion = LTS_VERSION;
37
37
 
38
38
  public function __construct(
39
- $api_key,
39
+ $api_key = null,
40
40
  $endpoint = "https://connect.getseam.com",
41
41
  $throw_http_errors = false
42
42
  ) {
43
- $this->api_key = $api_key;
43
+ $this->api_key = $api_key ?: (getenv('SEAM_API_KEY') ?: null);
44
44
  $seam_sdk_version = PackageVersion::get();
45
45
  $this->client = new HTTPClient([
46
46
  "base_uri" => $endpoint,