@atlaskit/platform-feature-flags
Advanced tools
Comparing version 0.0.1 to 0.0.2
# @atlaskit/platform-feature-flags | ||
## 0.0.2 | ||
### Patch Changes | ||
- [`f9705321c00`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9705321c00) - Update logs content | ||
## 0.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -10,2 +10,3 @@ "use strict"; | ||
var pkgName = '@atlaskit/platform-feature-flags'; | ||
var registry = {}; | ||
@@ -15,3 +16,3 @@ var store = new Proxy(registry, { | ||
if (typeof key !== 'string' || typeof value !== 'boolean') { | ||
(0, _debug.debug)('[@atlassian/feature-flag]: Cannot set the flag "%s". The registry only accepts string keys and boolean values.', key, value); | ||
(0, _debug.debug)('[%s]: Cannot set the feature flag "%s" to "%s". The registry only accepts string keys and boolean values.', pkgName, key, value); | ||
return true; | ||
@@ -22,3 +23,3 @@ } // Forbid overriding pre-defined flags | ||
if (target[key] === false) { | ||
(0, _debug.debug)('[@atlassian/feature-flag]: The feature flag "%s" was already disabled. The overrides are not allowed', key, value); | ||
(0, _debug.debug)('[%s]: The feature flag "%s" was already disabled. The overrides are not allowed', pkgName, key, value); | ||
return true; | ||
@@ -29,3 +30,3 @@ } // Set the flag | ||
target[key] = value; | ||
(0, _debug.debug)('[@atlassian/feature-flag]: Feature flag "%s" was set to "%s"', key, value); | ||
(0, _debug.debug)('[%s]: Feature flag "%s" was set to "%s"', pkgName, key, value); | ||
return true; | ||
@@ -32,0 +33,0 @@ } |
{ | ||
"name": "@atlaskit/platform-feature-flags", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"sideEffects": false | ||
} |
import { debug } from './debug'; | ||
const pkgName = '@atlaskit/platform-feature-flags'; | ||
const registry = {}; | ||
@@ -6,3 +7,3 @@ const store = new Proxy(registry, { | ||
if (typeof key !== 'string' || typeof value !== 'boolean') { | ||
debug('[@atlassian/feature-flag]: Cannot set the flag "%s". The registry only accepts string keys and boolean values.', key, value); | ||
debug('[%s]: Cannot set the feature flag "%s" to "%s". The registry only accepts string keys and boolean values.', pkgName, key, value); | ||
return true; | ||
@@ -13,3 +14,3 @@ } // Forbid overriding pre-defined flags | ||
if (target[key] === false) { | ||
debug('[@atlassian/feature-flag]: The feature flag "%s" was already disabled. The overrides are not allowed', key, value); | ||
debug('[%s]: The feature flag "%s" was already disabled. The overrides are not allowed', pkgName, key, value); | ||
return true; | ||
@@ -20,3 +21,3 @@ } // Set the flag | ||
target[key] = value; | ||
debug('[@atlassian/feature-flag]: Feature flag "%s" was set to "%s"', key, value); | ||
debug('[%s]: Feature flag "%s" was set to "%s"', pkgName, key, value); | ||
return true; | ||
@@ -23,0 +24,0 @@ } |
{ | ||
"name": "@atlaskit/platform-feature-flags", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"sideEffects": false | ||
} |
import { debug } from './debug'; | ||
var pkgName = '@atlaskit/platform-feature-flags'; | ||
var registry = {}; | ||
@@ -6,3 +7,3 @@ var store = new Proxy(registry, { | ||
if (typeof key !== 'string' || typeof value !== 'boolean') { | ||
debug('[@atlassian/feature-flag]: Cannot set the flag "%s". The registry only accepts string keys and boolean values.', key, value); | ||
debug('[%s]: Cannot set the feature flag "%s" to "%s". The registry only accepts string keys and boolean values.', pkgName, key, value); | ||
return true; | ||
@@ -13,3 +14,3 @@ } // Forbid overriding pre-defined flags | ||
if (target[key] === false) { | ||
debug('[@atlassian/feature-flag]: The feature flag "%s" was already disabled. The overrides are not allowed', key, value); | ||
debug('[%s]: The feature flag "%s" was already disabled. The overrides are not allowed', pkgName, key, value); | ||
return true; | ||
@@ -20,3 +21,3 @@ } // Set the flag | ||
target[key] = value; | ||
debug('[@atlassian/feature-flag]: Feature flag "%s" was set to "%s"', key, value); | ||
debug('[%s]: Feature flag "%s" was set to "%s"', pkgName, key, value); | ||
return true; | ||
@@ -23,0 +24,0 @@ } |
{ | ||
"name": "@atlaskit/platform-feature-flags", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/platform-feature-flags", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "DO NOT USE", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10263
209