@splitsoftware/splitio-react
Version:
A React library to easily integrate and use Split JS SDK
18 lines (17 loc) • 1.02 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.WARN_NAMES_AND_FLAGSETS = exports.EXCEPTION_NO_SFP = exports.WARN_SF_CONFIG_AND_FACTORY = exports.CONTROL_WITH_CONFIG = exports.CONTROL = exports.OFF = exports.ON = exports.VERSION = void 0;
// The string below is a marker and will be replaced by the real version number. DO NOT CHANGE
exports.VERSION = 'react-' + '2.5.0';
// Treatments
exports.ON = 'on';
exports.OFF = 'off';
exports.CONTROL = 'control'; // SplitIO default value
exports.CONTROL_WITH_CONFIG = {
treatment: 'control',
config: null,
};
// Warning and error messages
exports.WARN_SF_CONFIG_AND_FACTORY = '[WARN] Both a config and factory props were provided to SplitFactoryProvider. Config prop will be ignored.';
exports.EXCEPTION_NO_SFP = 'No SplitContext was set. Please ensure the component is wrapped in a SplitFactoryProvider.';
exports.WARN_NAMES_AND_FLAGSETS = '[WARN] Both names and flagSets properties were provided. flagSets will be ignored.';
;