Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pkce-challenge

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkce-challenge - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

dist/index.js

8

dist/index.d.ts

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc