mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-08-23 09:35:04 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
814202780b | ||
|
d01995e3b4 | ||
56de263dce | |||
|
0228e7f32c | ||
50216eec3c |
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [[6.2.3](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.3)]
|
||||||
|
|
||||||
|
- Added support for IE11, the webpack generated runtime-code should not use arrow functions
|
||||||
|
|
||||||
## [[6.2.2](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.2)]
|
## [[6.2.2](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.2)]
|
||||||
|
|
||||||
- Fixed the return type of getCookieConsentValue in the dts file.
|
- Fixed the return type of getCookieConsentValue in the dts file.
|
||||||
|
2
build/index.d.ts
vendored
2
build/index.d.ts
vendored
@@ -49,6 +49,6 @@ export default class CookieConsent extends React.Component<CookieConsentProps, {
|
|||||||
* to: https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients
|
* to: https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients
|
||||||
* @param {*} name optional name of the cookie
|
* @param {*} name optional name of the cookie
|
||||||
*/
|
*/
|
||||||
export function getCookieConsentValue(name?: string);
|
export function getCookieConsentValue(name?: string): string;
|
||||||
|
|
||||||
export { Cookies };
|
export { Cookies };
|
||||||
|
@@ -1,15 +1,25 @@
|
|||||||
/*! For license information please see index.js.LICENSE.txt */
|
/*! For license information please see index.js.LICENSE.txt */
|
||||||
module.exports = (() => {
|
module.exports = (function () {
|
||||||
var e = {
|
var e = {
|
||||||
866: (e, t, n) => {
|
866: function (e, t, n) {
|
||||||
"use strict";
|
"use strict";
|
||||||
n.r(t),
|
n.r(t),
|
||||||
n.d(t, {
|
n.d(t, {
|
||||||
Cookies: () => s(),
|
Cookies: function () {
|
||||||
OPTIONS: () => h,
|
return s();
|
||||||
SAME_SITE_OPTIONS: () => m,
|
},
|
||||||
default: () => j,
|
OPTIONS: function () {
|
||||||
getCookieConsentValue: () => g,
|
return h;
|
||||||
|
},
|
||||||
|
SAME_SITE_OPTIONS: function () {
|
||||||
|
return m;
|
||||||
|
},
|
||||||
|
default: function () {
|
||||||
|
return j;
|
||||||
|
},
|
||||||
|
getCookieConsentValue: function () {
|
||||||
|
return g;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const o = require("react");
|
const o = require("react");
|
||||||
var r = n.n(o),
|
var r = n.n(o),
|
||||||
@@ -509,7 +519,7 @@ module.exports = (() => {
|
|||||||
});
|
});
|
||||||
const j = x;
|
const j = x;
|
||||||
},
|
},
|
||||||
808: (e, t, n) => {
|
808: function (e, t, n) {
|
||||||
var o, r, i;
|
var o, r, i;
|
||||||
void 0 ===
|
void 0 ===
|
||||||
(r =
|
(r =
|
||||||
@@ -594,7 +604,7 @@ module.exports = (() => {
|
|||||||
: o) || (e.exports = r),
|
: o) || (e.exports = r),
|
||||||
(e.exports = i());
|
(e.exports = i());
|
||||||
},
|
},
|
||||||
703: (e, t, n) => {
|
703: function (e, t, n) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var o = n(414);
|
var o = n(414);
|
||||||
function r() {}
|
function r() {}
|
||||||
@@ -638,10 +648,10 @@ module.exports = (() => {
|
|||||||
return (n.PropTypes = n), n;
|
return (n.PropTypes = n), n;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
697: (e, t, n) => {
|
697: function (e, t, n) {
|
||||||
e.exports = n(703)();
|
e.exports = n(703)();
|
||||||
},
|
},
|
||||||
414: (e) => {
|
414: function (e) {
|
||||||
"use strict";
|
"use strict";
|
||||||
e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
||||||
},
|
},
|
||||||
@@ -653,16 +663,25 @@ module.exports = (() => {
|
|||||||
return e[o](r, r.exports, n), r.exports;
|
return e[o](r, r.exports, n), r.exports;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
(n.n = (e) => {
|
(n.n = function (e) {
|
||||||
var t = e && e.__esModule ? () => e.default : () => e;
|
var t =
|
||||||
|
e && e.__esModule
|
||||||
|
? function () {
|
||||||
|
return e.default;
|
||||||
|
}
|
||||||
|
: function () {
|
||||||
|
return e;
|
||||||
|
};
|
||||||
return n.d(t, { a: t }), t;
|
return n.d(t, { a: t }), t;
|
||||||
}),
|
}),
|
||||||
(n.d = (e, t) => {
|
(n.d = function (e, t) {
|
||||||
for (var o in t)
|
for (var o in t)
|
||||||
n.o(t, o) && !n.o(e, o) && Object.defineProperty(e, o, { enumerable: !0, get: t[o] });
|
n.o(t, o) && !n.o(e, o) && Object.defineProperty(e, o, { enumerable: !0, get: t[o] });
|
||||||
}),
|
}),
|
||||||
(n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),
|
(n.o = function (e, t) {
|
||||||
(n.r = (e) => {
|
return Object.prototype.hasOwnProperty.call(e, t);
|
||||||
|
}),
|
||||||
|
(n.r = function (e) {
|
||||||
"undefined" != typeof Symbol &&
|
"undefined" != typeof Symbol &&
|
||||||
Symbol.toStringTag &&
|
Symbol.toStringTag &&
|
||||||
Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
|
Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
|
||||||
|
14
package-lock.json
generated
14
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-cookie-consent",
|
"name": "react-cookie-consent",
|
||||||
"version": "6.2.1",
|
"version": "6.2.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4204,9 +4204,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.20",
|
"version": "4.17.21",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||||
"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"log-symbols": {
|
"log-symbols": {
|
||||||
@@ -5655,9 +5655,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ssri": {
|
"ssri": {
|
||||||
"version": "8.0.0",
|
"version": "8.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
|
||||||
"integrity": "sha512-aq/pz989nxVYwn16Tsbj1TqFpD5LLrQxHf5zaHuieFV+R0Bbr4y8qUsOA45hXT/N4/9UNXTarBjnjVmjSOVaAA==",
|
"integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"minipass": "^3.1.1"
|
"minipass": "^3.1.1"
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
"name": "Rick van Lieshout",
|
"name": "Rick van Lieshout",
|
||||||
"email": "info@rickvanlieshout.com"
|
"email": "info@rickvanlieshout.com"
|
||||||
},
|
},
|
||||||
"version": "6.2.1",
|
"version": "6.2.3",
|
||||||
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
|
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
@@ -7,6 +7,9 @@ module.exports = {
|
|||||||
path: path.resolve(__dirname, "build"),
|
path: path.resolve(__dirname, "build"),
|
||||||
filename: "index.js",
|
filename: "index.js",
|
||||||
libraryTarget: "commonjs2", // THIS IS THE MOST IMPORTANT LINE! :mindblow: I wasted more than 2 days until realize this was the line most important in all this guide.
|
libraryTarget: "commonjs2", // THIS IS THE MOST IMPORTANT LINE! :mindblow: I wasted more than 2 days until realize this was the line most important in all this guide.
|
||||||
|
environment: {
|
||||||
|
arrowFunction: false, // the generated runtime-code should not use arrow functions
|
||||||
|
},
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
Reference in New Issue
Block a user