@bb-labs/pkce 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -3
  2. package/package.json +12 -26
package/dist/index.js CHANGED
@@ -27,9 +27,7 @@ export function generateCodeVerifier(getRandomBytes) {
27
27
  // Generate 32 bytes (256 bits) of random data
28
28
  const randomBytes = getRandomBytes(32);
29
29
  // Ensure we have a Uint8Array
30
- const bytes = randomBytes instanceof Uint8Array
31
- ? randomBytes
32
- : new Uint8Array(randomBytes);
30
+ const bytes = randomBytes instanceof Uint8Array ? randomBytes : new Uint8Array(randomBytes);
33
31
  // Convert to base64url encoding (RFC 4648)
34
32
  return uint8ArrayToBase64Url(bytes);
35
33
  }
package/package.json CHANGED
@@ -1,40 +1,26 @@
1
1
  {
2
2
  "name": "@bb-labs/pkce",
3
- "version": "0.0.4",
4
- "description": "Zero-dependency PKCE library using Web Crypto API for Node.js, browsers, React Native, and Expo",
5
- "homepage": "https://github.com/beepbop-labs/pkce",
6
- "keywords": [
7
- "pkce",
8
- "pkce-challenge",
9
- "pkce-verifier",
10
- "oauth",
11
- "oauth2",
12
- "web-crypto",
13
- "react-native",
14
- "expo"
15
- ],
16
- "author": "Beepbop",
17
- "license": "MIT",
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/beepbop-labs/pkce.git"
21
- },
3
+ "version": "0.0.5",
22
4
  "main": "dist/index.js",
23
5
  "files": [
24
- "dist",
25
- "README.md"
6
+ "dist"
26
7
  ],
27
8
  "exports": {
28
9
  ".": "./dist/index.js"
29
10
  },
30
11
  "scripts": {
31
- "clean": "rm -rf dist",
32
- "build": "npm run clean && tsc -p tsconfig.json",
33
- "pack": "npm run build && rm -rf archive && mkdir -p archive && bun pm pack --destination ./archive && find ./archive -name '*.tgz' -exec mv {} ./archive/archive7.tgz \\;"
12
+ "build": "bunx @bb-labs/bldr",
13
+ "dev": "bunx @bb-labs/bldr -w",
14
+ "clean": "rm -rf node_modules bun.lock dist"
15
+ },
16
+ "dependencies": {
17
+ "@bb-labs/bldr": "0.0.0",
18
+ "@bb-labs/tsconfigs": "^0.0.2"
34
19
  },
35
- "dependencies": {},
36
20
  "devDependencies": {
37
- "@types/bun": "latest"
21
+ "@types/bun": "latest",
22
+ "@types/node": "^25.0.10",
23
+ "tsc-alias": "^1.8.16"
38
24
  },
39
25
  "peerDependencies": {
40
26
  "typescript": "^5"