Socket
Socket
Sign inDemoInstall

@atlaskit/platform-feature-flags

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/platform-feature-flags - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

CHANGELOG.md
# @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 @@

7

dist/cjs/registry.js

@@ -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": {

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