@copart/ops-tool-kit 1.13.0-beta.28 → 1.13.0-beta.29
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/ops-tool-kit.js +22 -2
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -47,7 +47,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
47
47
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
48
48
|
|
|
49
49
|
const name$1 = "@copart/ops-tool-kit";
|
|
50
|
-
const version$3 = "1.13.0-beta.
|
|
50
|
+
const version$3 = "1.13.0-beta.29";
|
|
51
51
|
const main$1 = "dist/ops-tool-kit.js";
|
|
52
52
|
const style = "dist/ops-tool-kit.css";
|
|
53
53
|
const files = [
|
|
@@ -69034,7 +69034,27 @@ var _excluded$1 = ["signal"];
|
|
|
69034
69034
|
var pending = new Map();
|
|
69035
69035
|
var STORAGE_REQUEST_TIMEOUT_MS = 5000;
|
|
69036
69036
|
function requestId() {
|
|
69037
|
-
|
|
69037
|
+
// crypto.randomUUID exists only in a secure context (HTTPS / localhost).
|
|
69038
|
+
// QA/other envs served over plain HTTP would throw "crypto.randomUUID is not
|
|
69039
|
+
// a function" and crash bootstrap, so fall back to getRandomValues, then Math.random.
|
|
69040
|
+
// These ids are only used to correlate postMessage RPCs — not for security.
|
|
69041
|
+
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
|
|
69042
|
+
return crypto.randomUUID();
|
|
69043
|
+
}
|
|
69044
|
+
if (typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function') {
|
|
69045
|
+
var bytes = crypto.getRandomValues(new Uint8Array(16));
|
|
69046
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
69047
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
69048
|
+
var hex = Array.from(bytes, function (b) {
|
|
69049
|
+
return b.toString(16).padStart(2, '0');
|
|
69050
|
+
});
|
|
69051
|
+
return "".concat(hex.slice(0, 4).join(''), "-").concat(hex.slice(4, 6).join(''), "-").concat(hex.slice(6, 8).join(''), "-").concat(hex.slice(8, 10).join(''), "-").concat(hex.slice(10, 16).join(''));
|
|
69052
|
+
}
|
|
69053
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
69054
|
+
var r = Math.random() * 16 | 0;
|
|
69055
|
+
var v = c === 'x' ? r : r & 0x3 | 0x8;
|
|
69056
|
+
return v.toString(16);
|
|
69057
|
+
});
|
|
69038
69058
|
}
|
|
69039
69059
|
|
|
69040
69060
|
// The exact origin of the shell that framed us. Learned from the first inbound
|