@nibssplc/cams-sdk-react 1.0.0-rc.26 → 1.0.0-rc.28
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/index.cjs.js +5 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -76,7 +76,11 @@ if (typeof window !== 'undefined') {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
// Polyfill crypto.subtle with SHA-256 (handles both undefined and null in non-HTTPS contexts)
|
|
79
|
-
|
|
79
|
+
var needsSubtlePolyfill = window.crypto && (!window.crypto.subtle ||
|
|
80
|
+
window.location.protocol === 'http:' ||
|
|
81
|
+
window.location.hostname === 'localhost' ||
|
|
82
|
+
window.location.hostname === '127.0.0.1');
|
|
83
|
+
if (needsSubtlePolyfill) {
|
|
80
84
|
var sha256_1 = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
85
|
var bytes, hash, k, ml, msg, i, w, j, j, s0, s1, a, b, c, d, e, f, g, h, j, S1, ch, temp1, S0, maj, temp2, result, i;
|
|
82
86
|
return __generator(this, function (_a) {
|