UNPKG

cognito-srp-helper

Version:
92 lines (91 loc) 3.13 kB
{ "name": "cognito-srp-helper", "version": "2.3.4", "description": "A helper for SRP authentication in AWS Cognito", "author": "Simon McAllister", "license": "Apache-2.0", "private": false, "repository": "https://github.com/simonmcallister0210/cognito-srp-helper", "homepage": "https://github.com/simonmcallister0210/cognito-srp-helper", "keywords": [ "aws", "aws-cognito", "cognito", "helper", "srp", "typescript" ], "bugs": { "url": "https://github.com/simonmcallister0210/cognito-srp-helper/issues" }, "type": "module", "files": [ "dist/**" ], "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/types/index.d.ts", "exports": { ".": { "require": "./dist/cjs/index.js", "import": "./dist/esm/index.js", "types": "./dist/types/index.d.ts" } }, "scripts": { "build": "npm run build:cjs && npm run build:esm && npm run build:types", "build:cjs": "esbuild src/index.ts --bundle --packages=external --minify --format=cjs --outfile=dist/cjs/index.js && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json", "build:esm": "esbuild src/index.ts --bundle --packages=external --minify --format=esm --outfile=dist/esm/index.js && echo '{ \"type\": \"module\" }' > dist/esm/package.json", "build:types": "tsc --emitDeclarationOnly --declaration src/index.ts --esModuleInterop --outFile dist/types/index.d.ts", "format": "npm run format:eslint && npm run format:prettier", "format:eslint": "eslint -c .eslintrc.cjs --fix src/**", "format:prettier": "prettier -c .prettierrc.cjs --write src/**", "lint": "npm run lint:ts && npm run lint:eslint", "lint:eslint": "eslint -c .eslintrc.cjs src/**", "lint:ts": "tsc --noEmit -p .tsconfig.json", "test": "jest -c .jestrc.cjs", "test:clear": "jest --clear-cache", "test:integration": "jest -c .jestrc.cjs src/__tests__/integration", "test:unit": "jest -c .jestrc.cjs src/__tests__/unit" }, "lint-staged": { "*.{js,ts}": [ "npm run format", "npm run lint" ] }, "devDependencies": { "@faker-js/faker": "^7.6.0", "@types/jest": "^29.2.0", "@types/lodash.clonedeep": "^4.5.7", "@types/lodash.omit": "^4.5.7", "@typescript-eslint/eslint-plugin": "^5.40.0", "@typescript-eslint/parser": "^5.40.0", "aws-sdk": "^2.1248.0", "dotenv": "^16.0.3", "esbuild": "^0.25.0", "eslint": "^8.25.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-simple-import-sort": "^10.0.0", "husky": "^8.0.0", "jest": "^29.2.1", "lint-staged": "^13.0.3", "lodash.omit": "^4.5.0", "prettier": "^3.0.2", "randexp": "^0.5.3", "ts-jest": "^29.0.3", "typescript": "^4.8.4", "totp-generator": "^1.0.0" }, "dependencies": { "@aws-sdk/client-cognito-identity-provider": "^3.433.0", "@types/crypto-js": "3.1.47", "@types/jsbn": "1.2.30", "@types/node": "^18.11.11", "buffer": "^6.0.3", "crypto-js": "4.2.0", "jsbn": "1.1.0" } }