pkce-challenge
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -5,3 +5,3 @@ /** Generate a PKCE code challenge from a code verifier | ||
*/ | ||
export function generateChallenge(code_verifier: string): string; | ||
export declare function generateChallenge(code_verifier: string): Promise<string>; | ||
/** Generate a PKCE challenge pair | ||
@@ -11,6 +11,6 @@ * @param length Length of the verifer (between 43-128). Defaults to 43. | ||
*/ | ||
export default function pkceChallenge(length?: number): { | ||
export default function pkceChallenge(length?: number): Promise<{ | ||
code_verifier: string; | ||
code_challenge: string; | ||
}; | ||
}>; | ||
/** Verify that a code_verifier produces the expected code challenge | ||
@@ -21,2 +21,2 @@ * @param code_verifier | ||
*/ | ||
export function verifyChallenge(code_verifier: string, expectedChallenge: string): boolean; | ||
export declare function verifyChallenge(code_verifier: string, expectedChallenge: string): Promise<boolean>; |
{ | ||
"name": "pkce-challenge", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"description": "Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair", | ||
"source": "src/index.ts", | ||
"main": "dist/main.js", | ||
"module": "dist/module.js", | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"types": "dist/index.d.ts", | ||
@@ -13,5 +13,5 @@ "files": [ | ||
"scripts": { | ||
"watch": "parcel watch", | ||
"build": "parcel build --no-source-maps", | ||
"test": "jest" | ||
"watch": "tsc --watch --declaration", | ||
"build": "tsc --declaration", | ||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js" | ||
}, | ||
@@ -32,17 +32,8 @@ "repository": { | ||
"homepage": "https://github.com/crouchcd/pkce-challenge#readme", | ||
"dependencies": { | ||
"crypto-js": "^4.1.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.3", | ||
"@babel/preset-env": "^7.20.2", | ||
"@parcel/packager-ts": "^2.4.0", | ||
"@parcel/transformer-typescript-types": "^2.4.0", | ||
"@types/crypto-js": "^4.1.1", | ||
"@types/jest": "^29.5.0", | ||
"@types/node": "^12.20.47", | ||
"@types/node": "^18.15.11", | ||
"jest": "^29.5.0", | ||
"parcel": "^2.4.0", | ||
"typescript": "^4.6.3" | ||
"typescript": "^5.0.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
4
Yes
6706
5
92
1
- Removedcrypto-js@^4.1.1
- Removedcrypto-js@4.2.0(transitive)