@forge/cli-shared
8.11.1-next.3-experimental-90651458.11.1-next.5
out/service/statsig-service.jsout/service/statsig-service.js+2−4
Index: package/out/service/statsig-service.js
===================================================================
--- package/out/service/statsig-service.js
+++ package/out/service/statsig-service.js
@@ -1,9 +1,7 @@
"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;
@@ -118,9 +116,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 (0, node_fetch_1.default)(`${baseURL}/frontend/gates`, {
+ const response = await fetch(`${baseURL}/frontend/gates`, {
headers: {
'x-api-key': apiKey,
'Content-Type': 'application/json'
},
@@ -150,9 +148,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 (0, node_fetch_1.default)(`${baseURL}/configurations`, {
+ const response = await fetch(`${baseURL}/configurations`, {
headers: {
'x-api-key': apiKey,
'Content-Type': 'application/json'
},