-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathpackage.json
135 lines (135 loc) · 4.93 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"name": "aws-jwt-verify",
"version": "5.0.0",
"description": "Verify JSON Web Tokens (JWT) from Amazon Cognito and other IDPs",
"license": "Apache-2.0",
"author": {
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"main": "dist/cjs/index.js",
"type": "commonjs",
"types": "index.d.ts",
"module": "dist/esm/index.js",
"files": [
"assert.d.ts",
"cognito-verifier.d.ts",
"dist",
"error.d.ts",
"https-common.d.ts",
"https-node.d.ts",
"https.d.ts",
"index.d.ts",
"jwk.d.ts",
"jwt-model.d.ts",
"jwt-verifier.d.ts",
"jwt.d.ts",
"safe-json-parse.d.ts",
"typing-util.d.ts"
],
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./index.d.ts"
},
"./assert": {
"import": "./dist/esm/assert.js",
"require": "./dist/cjs/assert.js",
"types": "./assert.d.ts"
},
"./cognito-verifier": {
"import": "./dist/esm/cognito-verifier.js",
"require": "./dist/cjs/cognito-verifier.js",
"types": "./cognito-verifier.d.ts"
},
"./error": {
"import": "./dist/esm/error.js",
"require": "./dist/cjs/error.js",
"types": "./error.d.ts"
},
"./https": {
"import": "./dist/esm/https.js",
"require": "./dist/cjs/https.js",
"types": "./https.d.ts"
},
"./jwk": {
"import": "./dist/esm/jwk.js",
"require": "./dist/cjs/jwk.js",
"types": "./jwk.d.ts"
},
"./jwt": {
"import": "./dist/esm/jwt.js",
"require": "./dist/cjs/jwt.js",
"types": "./jwt.d.ts"
},
"./jwt-model": {
"import": "./dist/esm/jwt-model.js",
"require": "./dist/cjs/jwt-model.js",
"types": "./jwt-model.d.ts"
},
"./jwt-verifier": {
"import": "./dist/esm/jwt-verifier.js",
"require": "./dist/cjs/jwt-verifier.js",
"types": "./jwt-verifier.d.ts"
},
"./safe-json-parse": {
"import": "./dist/esm/safe-json-parse.js",
"require": "./dist/cjs/safe-json-parse.js",
"types": "./safe-json-parse.d.ts"
}
},
"devDependencies": {
"@eslint/compat": "^1.2.6",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.19.0",
"@tsconfig/node16": "^16.1.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.9",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"eslint": "^9.19.0",
"eslint-plugin-security": "^3.0.1",
"globals": "^15.14.0",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"nock": "^13.5.4",
"prettier": "^3.3.2",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"typescript": "^5.5.2"
},
"scripts": {
"dist:cjs": "tsc --module CommonJS --moduleResolution node --outDir dist/cjs && node dist-create-package.cjs cjs",
"dist:esm": "tsc --module ES2020 --moduleResolution node --outDir dist/esm && node dist-create-package.cjs esm",
"dist:types": "mkdir -p dist/dts && tsc --outDir dist/dts --declaration --emitDeclarationOnly && mv dist/dts/*.d.ts . && rm -r dist/dts",
"dist": "rm -rf dist && npm run dist:cjs && npm run dist:esm && npm run dist:types",
"lint:check": "eslint . --max-warnings 0",
"lint": "eslint . --fix --max-warnings 0",
"pack-for-tests": "rm -f aws-jwt-verify.tgz 'aws-jwt-verify-?.?.?.tgz' && npm pack && mv aws-jwt-verify-*.tgz aws-jwt-verify.tgz",
"prepack": "npm run dist",
"prettier:check": "prettier --check .",
"prettier": "prettier -w .",
"test:all": "npm run prettier:check && npm run lint && npm run test:unit && npm run test:install && npm run test:import && npm run test:browser && npm run test:cognito && npm run test:speed",
"test:cognito": "cd tests/cognito && npm remove aws-jwt-verify.tgz && npm install --no-save --force --no-package-lock ../../aws-jwt-verify.tgz && npm run test",
"test:import": "cd tests/import-tests && npm remove aws-jwt-verify.tgz && npm install --no-save --force --no-package-lock ../../aws-jwt-verify.tgz && node esm.mjs && node commonjs.cjs && tsc -v && tsc && node typescript.js && tsc -p tsconfig-nodenext.json && node typescript.js && COMPILE_ERRORS=$(2>&1 tsc -p tsconfig-should-not-compile.json || true) && ([ \"$COMPILE_ERRORS\" != \"\" ] || (echo \"Ooops I did compile successfully :(\"; false))",
"test:install": "./tests/installation-and-basic-usage/run-tests.sh",
"test:browser": "cd tests/vite-app && npm remove aws-jwt-verify.tgz && npm install --no-save --force --no-package-lock ../../aws-jwt-verify.tgz && ./run-tests.sh",
"test:speed": "jest -t \"speed\"",
"test:unit": "jest --collect-coverage -t \"unit\" --testMatch '**/*.test.ts' --reporters=\"jest-junit\" --reporters=\"default\"",
"test": "npm run test:unit",
"tsc": "tsc"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": true
},
"repository": {
"type": "git",
"url": "https://github.com/awslabs/aws-jwt-verify.git"
},
"engines": {
"node": ">=18.0.0"
}
}