@octane-xplat/auth 0.11.0 → 0.11.1
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.
|
@@ -9,7 +9,11 @@ var random = {
|
|
|
9
9
|
const crypto = source();
|
|
10
10
|
if (!crypto) throw new Error("random: crypto.getRandomValues is unavailable");
|
|
11
11
|
const target = new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
|
|
12
|
-
for (let offset = 0; offset < target.length; offset += 65536)
|
|
12
|
+
for (let offset = 0; offset < target.length; offset += 65536) {
|
|
13
|
+
const chunk = new Uint8Array(new ArrayBuffer(Math.min(65536, target.length - offset)));
|
|
14
|
+
crypto.getRandomValues(chunk);
|
|
15
|
+
target.set(chunk, offset);
|
|
16
|
+
}
|
|
13
17
|
return view;
|
|
14
18
|
},
|
|
15
19
|
bytes(length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octane-xplat/auth",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Sign in with Apple + Google Sign-In + hosted-auth sessions for Octane xplat — native SDKs on iOS/Android, platform web SDKs in the browser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@nativescript/apple-sign-in": "2.0.0",
|
|
56
56
|
"@nativescript/google-signin": "2.1.1",
|
|
57
|
-
"@octane-xplat/platform": "0.11.
|
|
58
|
-
"@octane-xplat/secure-storage": "0.11.
|
|
57
|
+
"@octane-xplat/platform": "0.11.1",
|
|
58
|
+
"@octane-xplat/secure-storage": "0.11.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@nativescript-community/octane": "0.2.4",
|
|
62
62
|
"@nativescript/core": "9.1.2",
|
|
63
|
-
"@octane-xplat/macos-renderer": "0.11.
|
|
63
|
+
"@octane-xplat/macos-renderer": "0.11.1",
|
|
64
64
|
"@octanejs/vite-plugin": "0.1.61",
|
|
65
65
|
"@tsrx/typescript-plugin": "0.4.11",
|
|
66
66
|
"octane": "0.6.3",
|