groundmail-cli 0.35.0 → 0.35.1

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/dist/cli.js +8 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2055,7 +2055,7 @@ function trimUrl(value) {
2055
2055
  }
2056
2056
 
2057
2057
  // package.json
2058
- var version = "0.35.0";
2058
+ var version = "0.35.1";
2059
2059
 
2060
2060
  // src/user-agent.ts
2061
2061
  function buildUserAgent(own) {
@@ -2082,6 +2082,12 @@ function fetchWithUserAgent(userAgent) {
2082
2082
 
2083
2083
  // src/client-info.ts
2084
2084
  var CLI_PACKAGE = { name: "groundmail-cli", version };
2085
+ function sdkOptions(baseUrl) {
2086
+ return {
2087
+ ...baseUrl ? { baseUrl } : {},
2088
+ fetch: fetchWithUserAgent(buildUserAgent(CLI_PACKAGE))
2089
+ };
2090
+ }
2085
2091
 
2086
2092
  // src/session/http.ts
2087
2093
  var CliRequestError = class extends Error {
@@ -3133,7 +3139,7 @@ function resolveApiKey8(options, env) {
3133
3139
  }
3134
3140
  async function createTemplatesClient(apiKey, baseUrl) {
3135
3141
  const { Groundmail } = await import("groundmail");
3136
- return new Groundmail(apiKey, baseUrl ? { baseUrl } : void 0);
3142
+ return new Groundmail(apiKey, sdkOptions(baseUrl));
3137
3143
  }
3138
3144
 
3139
3145
  // src/commands/templates/delete.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groundmail-cli",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "Groundmail CLI — send transactional email from the terminal",
5
5
  "license": "MIT",
6
6
  "type": "module",