New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlaspack/feature-flags

Package Overview
Dependencies
Maintainers
0
Versions
302
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/feature-flags - npm Package Compare versions

Comparing version 2.13.2-canary.3646 to 2.13.2-canary.3647

7

lib/index.js

@@ -8,2 +8,3 @@ "use strict";

exports.getFeatureFlag = getFeatureFlag;
exports.getFeatureFlagValue = getFeatureFlagValue;
exports.runWithConsistencyCheck = runWithConsistencyCheck;

@@ -21,3 +22,4 @@ exports.setFeatureFlags = setFeatureFlags;

useLmdbJsLite: false,
conditionalBundlingApi: false
conditionalBundlingApi: false,
vcsMode: 'OLD'
};

@@ -34,2 +36,5 @@ let featureFlagValues = {

}
function getFeatureFlagValue(flagName) {
return featureFlagValues[flagName];
}
/**

@@ -36,0 +41,0 @@ * Run a function with a consistency check.

@@ -37,3 +37,11 @@ export type FeatureFlags = {

conditionalBundlingApi: boolean;
/**
* Enable VCS mode. Expected values are:
* - OLD - default value, return watchman result
* - NEW_AND_CHECK - Return VCS result but still call watchman
* - NEW: Return VCS result, but don't call watchman
*/
vcsMode: ConsistencyCheckFeatureFlagValue;
};
export type ConsistencyCheckFeatureFlagValue = "NEW" | "OLD" | "NEW_AND_CHECK" | "OLD_AND_CHECK";

4

package.json
{
"name": "@atlaspack/feature-flags",
"version": "2.13.2-canary.3646+cbcb43679",
"version": "2.13.2-canary.3647+e962cd735",
"description": "Provides internal feature-flags for the atlaspack codebase.",

@@ -23,3 +23,3 @@ "license": "(MIT OR Apache-2.0)",

},
"gitHead": "cbcb436799252b963fbb88618e95859e4740bb3d"
"gitHead": "e962cd735877f7f16163e60868d70d9c10054ebe"
}

@@ -17,2 +17,3 @@ // @flow strict

conditionalBundlingApi: false,
vcsMode: 'OLD',
};

@@ -31,2 +32,8 @@

export function getFeatureFlagValue(
flagName: $Keys<FeatureFlags>,
): boolean | string | number {
return featureFlagValues[flagName];
}
export type DiffResult<CustomDiagnostic> = {|

@@ -33,0 +40,0 @@ isDifferent: boolean,

@@ -33,2 +33,9 @@ // @flow strict

conditionalBundlingApi: boolean,
/**
* Enable VCS mode. Expected values are:
* - OLD - default value, return watchman result
* - NEW_AND_CHECK - Return VCS result but still call watchman
* - NEW: Return VCS result, but don't call watchman
*/
vcsMode: ConsistencyCheckFeatureFlagValue,
|};

@@ -35,0 +42,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc