@forge/cli-shared
9.4.0-next.39.4.0-next.4
out/service/statsig-service.js~
out/service/statsig-service.jsModified+2−4
Index: package/out/service/statsig-service.js
===================================================================
--- package/out/service/statsig-service.js
+++ package/out/service/statsig-service.js
@@ -1,10 +1,8 @@
"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;
@@ -130,9 +128,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'
},
@@ -162,9 +160,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'
},