@smartcrab/react-native 0.2.0-next-20261003073132 → 0.2.0-next-20261003140204

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.
@@ -7,12 +7,10 @@ describe("base64UrlEncodeBytes / base64UrlDecodeToBytes", () => {
7
7
  const encoded = base64UrlEncodeBytes(bytes);
8
8
  expect(encoded).not.toMatch(/[+/=]/);
9
9
  expect(base64UrlDecodeToBytes(encoded)).toEqual(bytes);
10
+ if (length === 32)
11
+ expect(encoded).toHaveLength(43);
10
12
  }
11
13
  });
12
- test("32 random bytes encode to exactly 43 base64url characters (RFC 7636 verifier length)", () => {
13
- const bytes = new Uint8Array(32).fill(1);
14
- expect(base64UrlEncodeBytes(bytes)).toHaveLength(43);
15
- });
16
14
  });
17
15
  describe("base64UrlDecodeToUtf8String", () => {
18
16
  test("decodes ASCII", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartcrab/react-native",
3
- "version": "0.2.0-next-20261003073132",
3
+ "version": "0.2.0-next-20261003140204",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@smartcrab/contracts-public": "0.2.0-next-20261003073132"
37
+ "@smartcrab/contracts-public": "0.2.0-next-20261003140204"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=19",
@@ -13,13 +13,9 @@ describe("base64UrlEncodeBytes / base64UrlDecodeToBytes", () => {
13
13
  const encoded = base64UrlEncodeBytes(bytes);
14
14
  expect(encoded).not.toMatch(/[+/=]/);
15
15
  expect(base64UrlDecodeToBytes(encoded)).toEqual(bytes);
16
+ if (length === 32) expect(encoded).toHaveLength(43);
16
17
  }
17
18
  });
18
-
19
- test("32 random bytes encode to exactly 43 base64url characters (RFC 7636 verifier length)", () => {
20
- const bytes = new Uint8Array(32).fill(1);
21
- expect(base64UrlEncodeBytes(bytes)).toHaveLength(43);
22
- });
23
19
  });
24
20
 
25
21
  describe("base64UrlDecodeToUtf8String", () => {