-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
91 lines (91 loc) · 3.06 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "cognito-srp-helper",
"version": "2.3.2",
"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.19.5",
"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"
}
}