@forge/cli-shared

9.3.1-next.2-experimental-f258a6d9.4.0-next.3
out/service/statsig-service.js
~out/service/statsig-service.jsModified
+4−2
Index: package/out/service/statsig-service.js
===================================================================
--- package/out/service/statsig-service.js
+++ package/out/service/statsig-service.js
@@ -1,8 +1,10 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.StatsigService = exports.StatsigReader = void 0;
 exports.cacheStatsigResult = cacheStatsigResult;
+const tslib_1 = require("tslib");
+const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
 const index_1 = require("../index");
 class StatsigReader {
     async testForgeCliTestGate() {
         return (await this.checkGate('forge-cli-test-gate')) ?? false;
@@ -128,9 +130,9 @@
         try {
             const baseURL = this.getEnvironmentFn(BASE_FEATURE_FLAG_SERVICE_URL);
             const apiKey = this.getEnvironmentFn(STATSIG_API_KEYS);
             const context = await this.context();
-            const response = await fetch(`${baseURL}/frontend/gates`, {
+            const response = await (0, node_fetch_1.default)(`${baseURL}/frontend/gates`, {
                 headers: {
                     'x-api-key': apiKey,
                     'Content-Type': 'application/json'
                 },
@@ -160,9 +162,9 @@
         try {
             const baseURL = this.getEnvironmentFn(BASE_FEATURE_FLAG_SERVICE_URL);
             const apiKey = this.getEnvironmentFn(STATSIG_API_KEYS);
             const context = await this.context();
-            const response = await fetch(`${baseURL}/configurations`, {
+            const response = await (0, node_fetch_1.default)(`${baseURL}/configurations`, {
                 headers: {
                     'x-api-key': apiKey,
                     'Content-Type': 'application/json'
                 },