npm package diff
Package: @forge/runtime
Versions: 6.0.0-next.0-experimental-97e4b11 - 6.0.0-next.1
File: package/out/feature-flag.js
Index: package/out/feature-flag.js
===================================================================
--- package/out/feature-flag.js
+++ package/out/feature-flag.js
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.FeatureFlags = exports.XEN_RUNTIME_SHOULD_REPORT_METRICS = exports.XEN_RUNTIME_SHOULD_BLOCK_EXTERNAL_FETCH = exports.XEN_RUNTIME_ENABLE_NETWORK_LIMITS = exports.XEN_RUNTIME_EGRESS_DISCLOSURE_ENABLED = exports.XEN_RUNTIME_ENABLE_EGRESS_FILTER = exports.SHOULD_ATTACH_TOKEN_FOR_APP = exports.SHOULD_ATTACH_TOKEN_FOR_ATLASSIAN_ACCOUNT = void 0;
-exports.SHOULD_ATTACH_TOKEN_FOR_ATLASSIAN_ACCOUNT = 'should-attach-token-for-atlassian-account';
-exports.SHOULD_ATTACH_TOKEN_FOR_APP = 'should-attach-token-for-app';
-exports.XEN_RUNTIME_ENABLE_EGRESS_FILTER = 'xen-runtime-enable-egress-filter';
-exports.XEN_RUNTIME_EGRESS_DISCLOSURE_ENABLED = 'xen-runtime-egress-disclosure-enabled';
-exports.XEN_RUNTIME_ENABLE_NETWORK_LIMITS = 'xen-runtime-enable-network-limits';
-exports.XEN_RUNTIME_SHOULD_BLOCK_EXTERNAL_FETCH = 'xen-runtime-should-block-external-fetch';
-exports.XEN_RUNTIME_SHOULD_REPORT_METRICS = 'xen-runtime-should-report-metrics';
-class FeatureFlags {
- flags;
- static fromRequestMetaData(metaData) {
- return new FeatureFlags(metaData.featureFlags || []);
- }
- constructor(flags) {
- this.flags = flags;
- }
- isFeatureFlagEnabled(flag) {
- return this.flags.includes(flag);
- }
-}
-exports.FeatureFlags = FeatureFlags;