UNPKG

js-pkce

Version:

A package that makes using the OAuth2 PKCE flow easier

54 lines (53 loc) 1.61 kB
{ "name": "js-pkce", "version": "2.0.0", "description": "A package that makes using the OAuth2 PKCE flow easier", "main": "dist/PKCE.js", "types": "dist/PKCE.d.ts", "repository": { "type": "git", "url": "git+https://github.com/bpedroza/js-pkce.git" }, "scripts": { "build": "tsc", "coverage": "jest --coverage", "format": "prettier --write \"src/**/*.ts\"", "lint": "tslint -p tsconfig.json", "test": "jest ./tests", "bundle": "npm run format && npm run lint && npm run test && npm run build && npm run browserify && npm run minify", "browserify": "npm run build; browserify --standalone PKCE -r ./dist/PKCE.js:PKCE |sed 's/\\(exports.default = PKCE;\\)/\\1 module.exports = PKCE;/g' > dist/browser.js && npm run minify", "minify": "cat dist/browser.js | terser --compress --mangle > dist/browser.min.js" }, "keywords": [ "oauth", "oauth2", "pkce" ], "author": "Bryan Pedroza", "license": "MIT", "devDependencies": { "@types/crypto-js": "^3.1.47", "@types/jest": "^25.2.3", "@types/node": "^20.3.2", "browserify": "^17.0.0", "jest": "^29.7.0", "jest-fetch-mock": "^3.0.3", "jest-localstorage-mock": "^2.4.3", "prettier": "^2.1.2", "terser": "^5.15.1", "ts-jest": "^29.2.5", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "typescript": "^4.2.0" }, "dependencies": { "crypto-js": "^4.0.0" }, "bugs": { "url": "https://github.com/bpedroza/js-pkce/issues" }, "homepage": "https://github.com/bpedroza/js-pkce/#readme", "files": [ "dist/**/*" ] }