@codbex/harmonia 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/harmonia.js CHANGED
@@ -9,23 +9,18 @@
9
9
  }
10
10
 
11
11
  // node_modules/uuid/dist/rng.js
12
- var getRandomValues;
13
12
  var rnds8 = new Uint8Array(16);
14
13
  function rng() {
15
- if (!getRandomValues) {
16
- if (typeof crypto === "undefined" || !crypto.getRandomValues) {
17
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
18
- }
19
- getRandomValues = crypto.getRandomValues.bind(crypto);
20
- }
21
- return getRandomValues(rnds8);
14
+ return crypto.getRandomValues(rnds8);
22
15
  }
23
16
 
24
- // node_modules/uuid/dist/native.js
25
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
26
- var native_default = { randomUUID };
27
-
28
17
  // node_modules/uuid/dist/v4.js
18
+ function v4(options, buf, offset4) {
19
+ if (!buf && !options && crypto.randomUUID) {
20
+ return crypto.randomUUID();
21
+ }
22
+ return _v4(options, buf, offset4);
23
+ }
29
24
  function _v4(options, buf, offset4) {
30
25
  options = options || {};
31
26
  const rnds = options.random ?? options.rng?.() ?? rng();
@@ -46,12 +41,6 @@
46
41
  }
47
42
  return unsafeStringify(rnds);
48
43
  }
49
- function v4(options, buf, offset4) {
50
- if (native_default.randomUUID && !buf && !options) {
51
- return native_default.randomUUID();
52
- }
53
- return _v4(options, buf, offset4);
54
- }
55
44
  var v4_default = v4;
56
45
 
57
46
  // src/common/icons.js
@@ -10071,7 +10060,7 @@
10071
10060
  }
10072
10061
 
10073
10062
  // package.json
10074
- var version = "1.5.0";
10063
+ var version = "1.5.2";
10075
10064
 
10076
10065
  // src/index.js
10077
10066
  window.Harmonia = { getBreakpointListener, addColorSchemeListener, getColorScheme, removeColorSchemeListener, setColorScheme, getSystemColorScheme, version };