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

react-cookie-consent

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cookie-consent - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

5

build/index.js

@@ -704,3 +704,4 @@ module.exports =

TOP: "top",
BOTTOM: "bottom"
BOTTOM: "bottom",
NONE: "none"
};

@@ -859,3 +860,3 @@

CookieConsent.propTypes = {
location: _propTypes2.default.oneOf(["top", "bottom"]),
location: _propTypes2.default.oneOf(Object.values(OPTIONS)),
style: _propTypes2.default.object,

@@ -862,0 +863,0 @@ buttonStyle: _propTypes2.default.object,

11

package.json

@@ -7,3 +7,3 @@ {

},
"version": "1.3.0",
"version": "1.4.0",
"description": "A small, simple and customizable cookie consent bar for use in React applications.",

@@ -18,3 +18,6 @@ "main": "build/index.js",

"patch": "npm --no-git-tag-version version patch",
"release": "npm run patch && npm run build && git add -A && git commit -m 'version bump and build' && git push && npm publish"
"minor": "npm --no-git-tag-version version minor",
"release": "npm run build && git add -A && git commit -m 'version bump and build' && git push && npm publish",
"release-patch": "npm run patch && npm run release",
"release-minor": "npm run minor && npm run release"
},

@@ -38,4 +41,4 @@ "repository": {

"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-object-rest-spread": "^6.23.0",

@@ -42,0 +45,0 @@ "babel-plugin-transform-react-jsx": "^6.24.1",

@@ -80,3 +80,3 @@ # :cookie: react-cookie-consent :cookie:

|---------------|:--------------------------------:|---------------|-------------------------------------------------------------------------------------------------------|
| location | string, either "top" or "bottom" | "bottom" | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. |
| location | string, "top", "bottom" or "none"| "bottom" | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. Use "none" to disable. |
| children | string or React component | | Content to appear inside the bar |

@@ -83,0 +83,0 @@ | disableStyles | boolean | false | If enabled the component will have no default style. (you can still supply style through props) |

@@ -7,3 +7,4 @@ import React, { Component } from "react";

TOP: "top",
BOTTOM: "bottom"
BOTTOM: "bottom",
NONE: "none"
};

@@ -135,3 +136,3 @@

CookieConsent.propTypes = {
location: PropTypes.oneOf(["top", "bottom"]),
location: PropTypes.oneOf(Object.values(OPTIONS)),
style: PropTypes.object,

@@ -138,0 +139,0 @@ buttonStyle: PropTypes.object,

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