Comparing version 7.9.2 to 7.9.3-dev.a74555e
@@ -219,36 +219,23 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); | ||
;// CONCATENATED MODULE: ./node_modules/nanoid/index.browser.js | ||
let random = bytes => crypto.getRandomValues(new Uint8Array(bytes)) | ||
let customRandom = (alphabet, defaultSize, getRandom) => { | ||
let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1 | ||
let step = -~((1.6 * mask * defaultSize) / alphabet.length) | ||
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js | ||
let urlAlphabet = | ||
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict' | ||
let customAlphabet = (alphabet, defaultSize = 21) => { | ||
return (size = defaultSize) => { | ||
let id = '' | ||
while (true) { | ||
let bytes = getRandom(step) | ||
let j = step | ||
while (j--) { | ||
id += alphabet[bytes[j] & mask] || '' | ||
if (id.length === size) return id | ||
} | ||
let i = size | ||
while (i--) { | ||
id += alphabet[(Math.random() * alphabet.length) | 0] | ||
} | ||
return id | ||
} | ||
} | ||
let customAlphabet = (alphabet, size = 21) => | ||
customRandom(alphabet, size, random) | ||
let nanoid = (size = 21) => | ||
crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => { | ||
byte &= 63 | ||
if (byte < 36) { | ||
id += byte.toString(36) | ||
} else if (byte < 62) { | ||
id += (byte - 26).toString(36).toUpperCase() | ||
} else if (byte > 62) { | ||
id += '-' | ||
} else { | ||
id += '_' | ||
} | ||
return id | ||
}, '') | ||
let nanoid = (size = 21) => { | ||
let id = '' | ||
let i = size | ||
while (i--) { | ||
id += urlAlphabet[(Math.random() * 64) | 0] | ||
} | ||
return id | ||
} | ||
@@ -255,0 +242,0 @@ ;// CONCATENATED MODULE: ./src/core/Logo/component.jsx |
@@ -403,3 +403,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}, "Support & FAQs"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", { | ||
href: "http://status.ably.com/", | ||
href: "https://status.ably.com/", | ||
className: "group ui-meganav-media py-12" | ||
@@ -406,0 +406,0 @@ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { |
{ | ||
"name": "@ably/ui", | ||
"version": "7.9.2", | ||
"version": "7.9.3-dev.a74555e", | ||
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", | ||
@@ -5,0 +5,0 @@ "repository": { |
import React, { useMemo } from "react"; | ||
import T from "prop-types"; | ||
import { nanoid } from "nanoid"; | ||
import { nanoid } from "nanoid/non-secure"; | ||
@@ -5,0 +5,0 @@ const Logo = ({ dataId, href = "/" }) => { |
@@ -77,3 +77,3 @@ import React from "react"; | ||
<li> | ||
<a href="http://status.ably.com/" className="group ui-meganav-media py-12"> | ||
<a href="https://status.ably.com/" className="group ui-meganav-media py-12"> | ||
<p className="ui-meganav-media-heading"> | ||
@@ -80,0 +80,0 @@ Status |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5187157
418
33324
3