Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flag

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flag - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

build/with-flags.d.ts

2

build/connected-flags-provider.js

@@ -40,6 +40,6 @@ "use strict";

};
ConnectedFlagsProvider.contextTypes = { store: function () { return null; } };
return ConnectedFlagsProvider;
}(React.Component));
ConnectedFlagsProvider.contextTypes = { store: function () { return null; } };
exports.ConnectedFlagsProvider = ConnectedFlagsProvider;
//# sourceMappingURL=connected-flags-provider.js.map

@@ -70,7 +70,7 @@ "use strict";

};
Flag.contextTypes = (_a = {}, _a[key_1.key] = function () { return null; }, _a);
return Flag;
}(React.Component));
Flag.contextTypes = (_a = {}, _a[key_1.key] = function () { return null; }, _a);
exports.Flag = Flag;
var _a;
//# sourceMappingURL=flag.js.map

@@ -40,7 +40,7 @@ "use strict";

};
FlagsProvider.childContextTypes = (_a = {}, _a[key_1.key] = function () { return null; }, _a);
return FlagsProvider;
}(React.PureComponent));
FlagsProvider.childContextTypes = (_a = {}, _a[key_1.key] = function () { return null; }, _a);
exports.FlagsProvider = FlagsProvider;
var _a;
//# sourceMappingURL=flags-provider.js.map

@@ -7,1 +7,2 @@ export { Flag } from './flag';

export * from './types';
export { withFlags } from './with-flags';

@@ -13,2 +13,4 @@ "use strict";

exports.setFlagsAction = set_flags_action_1.setFlagsAction;
var with_flags_1 = require("./with-flags");
exports.withFlags = with_flags_1.withFlags;
//# sourceMappingURL=index.js.map

@@ -9,7 +9,5 @@ export declare type Value = string | number | boolean | Flags | ((flags: ResolvedFlags) => Value);

}
export declare type FlagChildProps<P, F = {
[key: string]: any;
}> = P & {
export declare type FlagChildProps<P, F = ResolvedFlags> = P & {
flags: F;
};
export declare type Renderer = (props: FlagChildProps<any>) => React.ReactNode;
{
"name": "flag",
"version": "2.0.3",
"version": "2.0.4",
"description": "Feature flagging made easy for React and Redux",

@@ -16,3 +16,4 @@ "main": "./build/index.js",

"dependencies": {
"deep-computed": "^0.0.6"
"deep-computed": "^0.0.6",
"hoist-non-react-statics": "^2.3.0"
},

@@ -25,11 +26,11 @@ "peerDependencies": {

"react-dom": "^15.6.1",
"react-redux": "^5.0.5",
"redux": "^3.7.1"
"react-redux": "^5.0.6",
"redux": "^3.7.2"
},
"devDependencies": {
"@types/jest": "^20.0.2",
"@types/lodash": "^4.14.66",
"@types/react": "^15.0.31",
"@types/react-redux": "^4.4.45",
"@types/redux": "^3.6.0",
"@types/jest": "^20.0.7",
"@types/lodash": "^4.14.73",
"@types/node": "^8.0.24",
"@types/react": "15.6.1",
"@types/react-redux": "^5.0.4",
"enzyme": "^2.9.1",

@@ -40,4 +41,4 @@ "jest": "^20.0.4",

"react-test-renderer": "^15.6.1",
"ts-jest": "^20.0.6",
"typescript": "^2.3.4"
"ts-jest": "^20.0.10",
"typescript": "^2.4.2"
},

@@ -44,0 +45,0 @@ "jest": {

@@ -101,2 +101,14 @@ # Flag

Given that we have full components to be rendered in each path, we could also use `component` and `fallbackComponent`.
```jsx
import { Flag } from 'flag';
<Flag
name="features.useMyCoolNewThing"
component={RevisedFeature}
fallbackComponent={ExistingFeature}
/>
```
### Use with `react`

@@ -103,0 +115,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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