@forge/cli-shared

8.11.1-next.48.11.1-next.3-experimental-9065145
out/service/statsig-service.js
out/service/statsig-service.js
+4−2
Index: package/out/service/statsig-service.js
===================================================================
--- package/out/service/statsig-service.js
+++ package/out/service/statsig-service.js
@@ -1,7 +1,9 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.StatsigService = exports.cacheStatsigResult = exports.StatsigReader = void 0;
+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;
@@ -116,9 +118,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'
                 },
@@ -148,9 +150,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'
                 },