Skip to content

Commit 34fc685

Browse files
committed
Chore(release): Publish version 1.0.2
1 parent 09aa8e6 commit 34fc685

File tree

3 files changed

+45
-40
lines changed

3 files changed

+45
-40
lines changed

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11

2+
<a name="1.0.2"></a>
3+
## [1.0.2](https://github.com/lmc-eu/cookie-consent-manager/compare/1.0.1...1.0.2) (2021-12-14)
4+
5+
### Dependencies
6+
* Update all dev dependencies ([ba55e29](https://github.com/lmc-eu/cookie-consent-manager/commit/ba55e29))
7+
* Update all dev dependencies ([4a23611](https://github.com/lmc-eu/cookie-consent-manager/commit/4a23611))
8+
* Update dependency stylelint-order to v5 ([65db9eb](https://github.com/lmc-eu/cookie-consent-manager/commit/65db9eb))
9+
10+
### Documentation
11+
* Fix links and formatting in readme ([41209fa](https://github.com/lmc-eu/cookie-consent-manager/commit/41209fa))
12+
* Change text color of success state to improve its contrast with background ([b444af2](https://github.com/lmc-eu/cookie-consent-manager/commit/b444af2))
13+
* **lighthouse:** Fix errors reported by Google Lighthouse in examples ([90905fb](https://github.com/lmc-eu/cookie-consent-manager/commit/90905fb))
14+
* Make it clear one need to take care of already existing cookies ([82f2f9a](https://github.com/lmc-eu/cookie-consent-manager/commit/82f2f9a))
15+
16+
### Chores
17+
* Annotate the CommonJS export names for ESM import in Node ([09aa8e6](https://github.com/lmc-eu/cookie-consent-manager/commit/09aa8e6))
18+
* Do not lint build.js in examples ([e5e171b](https://github.com/lmc-eu/cookie-consent-manager/commit/e5e171b))
19+
* Label bugfix pull requests with "bug" label ([6f10f31](https://github.com/lmc-eu/cookie-consent-manager/commit/6f10f31))
20+
* **renovate:** Schedule dependency updates on weekly basis ([b08c018](https://github.com/lmc-eu/cookie-consent-manager/commit/b08c018))
21+
222
<a name="1.0.1"></a>
3-
## [1.0.1](https://github.com/lmc-eu/cookie-consent-manager/compare/0.8.2...1.0.0) (2021-12-06)
23+
## [1.0.1](https://github.com/lmc-eu/cookie-consent-manager/compare/1.0.0...1.0.1) (2021-12-06)
424

525
### Chores
626
* Version bump for npm publish. No code change.

dist/LmcCookieConsentManager.cjs

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
var __create = Object.create;
21
var __defProp = Object.defineProperty;
3-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4-
var __getOwnPropNames = Object.getOwnPropertyNames;
52
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6-
var __getProtoOf = Object.getPrototypeOf;
73
var __hasOwnProp = Object.prototype.hasOwnProperty;
84
var __propIsEnum = Object.prototype.propertyIsEnumerable;
95
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -24,17 +20,6 @@ var __export = (target, all) => {
2420
for (var name in all)
2521
__defProp(target, name, { get: all[name], enumerable: true });
2622
};
27-
var __reExport = (target, module2, desc) => {
28-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
29-
for (let key of __getOwnPropNames(module2))
30-
if (!__hasOwnProp.call(target, key) && key !== "default")
31-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
32-
}
33-
return target;
34-
};
35-
var __toModule = (module2) => {
36-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
37-
};
3823
var __async = (__this, __arguments, generator) => {
3924
return new Promise((resolve, reject) => {
4025
var fulfilled = (value) => {
@@ -655,32 +640,32 @@ __export(exports, {
655640
typeof window.initCookieConsent !== "function" && (window.initCookieConsent = Ta);
656641
})();
657642

658-
// node_modules/nanoid/index.js
659-
var import_crypto = __toModule(require("crypto"));
660-
661-
// node_modules/nanoid/url-alphabet/index.js
662-
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
663-
664-
// node_modules/nanoid/index.js
665-
var POOL_SIZE_MULTIPLIER = 128;
666-
var pool;
667-
var poolOffset;
668-
var fillPool = (bytes) => {
669-
if (!pool || pool.length < bytes) {
670-
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
671-
import_crypto.default.randomFillSync(pool);
672-
poolOffset = 0;
673-
} else if (poolOffset + bytes > pool.length) {
674-
import_crypto.default.randomFillSync(pool);
675-
poolOffset = 0;
643+
// node_modules/nanoid/index.prod.js
644+
if (false) {
645+
if (typeof navigator !== "undefined" && navigator.product === "ReactNative" && typeof crypto === "undefined") {
646+
throw new Error("React Native does not have a built-in secure random generator. If you don\u2019t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");
676647
}
677-
poolOffset += bytes;
678-
};
648+
if (typeof msCrypto !== "undefined" && typeof crypto === "undefined") {
649+
throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");
650+
}
651+
if (typeof crypto === "undefined") {
652+
throw new Error("Your browser does not have secure random generator. If you don\u2019t need unpredictable IDs, you can use nanoid/non-secure.");
653+
}
654+
}
679655
var nanoid = (size = 21) => {
680-
fillPool(size);
681656
let id = "";
682-
for (let i = poolOffset - size; i < poolOffset; i++) {
683-
id += urlAlphabet[pool[i] & 63];
657+
let bytes = crypto.getRandomValues(new Uint8Array(size));
658+
while (size--) {
659+
let byte = bytes[size] & 63;
660+
if (byte < 36) {
661+
id += byte.toString(36);
662+
} else if (byte < 62) {
663+
id += (byte - 26).toString(36).toUpperCase();
664+
} else if (byte < 63) {
665+
id += "_";
666+
} else {
667+
id += "-";
668+
}
684669
}
685670
return id;
686671
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lmc-eu/cookie-consent-manager",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "LMC Cookie Consent Manager",
55
"keywords": [
66
"lmc-eu",

0 commit comments

Comments
 (0)