sim 2.1.6-dev.87.1 → 2.1.6-dev.88.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/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2334,6 +2334,7 @@ function embeddedProfile() {
2334
2334
  apiKey: ctx.identity.apiKey,
2335
2335
  workspaceId: ctx.identity.workspaceId ?? null,
2336
2336
  output: "json",
2337
+ ...ctx.identity.transport ? { transport: ctx.identity.transport } : {},
2337
2338
  sources: { endpoint: "flag", apiKey: "flag", workspaceId: "flag", output: "flag" }
2338
2339
  };
2339
2340
  }
@@ -3001,7 +3002,7 @@ class SimClient {
3001
3002
  const startedAt = performance.now();
3002
3003
  let response;
3003
3004
  try {
3004
- response = await fetch(url, {
3005
+ response = await (this.profile.transport ?? fetch)(url, {
3005
3006
  method,
3006
3007
  headers: {
3007
3008
  ...apiKey ? { "x-api-key": apiKey } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.6-dev.87.1",
3
+ "version": "2.1.6-dev.88.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {