@liflig/cdk-cloudfront-auth 1.8.41 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/check-auth/index.js +27 -2
- package/dist/generate-secret/index.js +1 -1
- package/dist/http-headers/index.js +21 -1
- package/dist/parse-auth/index.js +44 -2
- package/dist/refresh-auth/index.js +44 -2
- package/dist/sign-out/index.js +27 -2
- package/package.json +12 -18
- package/dist/check-auth/index.js.LICENSE.txt +0 -1
- package/dist/parse-auth/index.js.LICENSE.txt +0 -15
- package/dist/refresh-auth/index.js.LICENSE.txt +0 -15
- package/dist/sign-out/index.js.LICENSE.txt +0 -1
- package/lib/handlers/check-auth.d.ts +0 -7
- package/lib/handlers/generate-secret.d.ts +0 -9
- package/lib/handlers/http-headers.d.ts +0 -1
- package/lib/handlers/parse-auth.d.ts +0 -1
- package/lib/handlers/refresh-auth.d.ts +0 -1
- package/lib/handlers/sign-out.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liflig/cdk-cloudfront-auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "CDK Constructs for adding authentication for a CloudFront Distribution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"url": "https://github.com/capralifecycle/cdk-cloudfront-auth"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "
|
|
11
|
+
"build": "bun run build.ts && tsc",
|
|
12
12
|
"watch": "tsc -w",
|
|
13
13
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
14
14
|
"check": "biome ci",
|
|
15
15
|
"fix": "biome check --write",
|
|
16
|
-
"prepare": "
|
|
16
|
+
"prepare": "bun run build && bunx husky",
|
|
17
17
|
"semantic-release": "semantic-release",
|
|
18
|
-
"clean": "rm -rf dist",
|
|
18
|
+
"clean": "rm -rf dist lib",
|
|
19
19
|
"upgrade-deps": "ncu --upgrade --install=always --format group --reject @types/node"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
@@ -35,36 +35,30 @@
|
|
|
35
35
|
"provenance": true
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@commitlint/
|
|
41
|
-
"@commitlint/config-conventional": "20.4.2",
|
|
38
|
+
"@biomejs/biome": "2.4.5",
|
|
39
|
+
"@commitlint/cli": "20.4.3",
|
|
40
|
+
"@commitlint/config-conventional": "20.4.3",
|
|
42
41
|
"@types/aws-lambda": "8.10.161",
|
|
43
42
|
"@types/jest": "30.0.0",
|
|
44
43
|
"@types/jsonwebtoken": "9.0.10",
|
|
45
|
-
"@types/node": "24.
|
|
46
|
-
"aws-cdk-lib": "2.
|
|
44
|
+
"@types/node": "24.11.0",
|
|
45
|
+
"aws-cdk-lib": "2.241.0",
|
|
47
46
|
"axios": "1.13.6",
|
|
48
47
|
"constructs": "10.5.1",
|
|
49
48
|
"cookie": "1.1.1",
|
|
50
|
-
"html-loader": "5.1.0",
|
|
51
49
|
"husky": "9.1.7",
|
|
52
50
|
"jest": "30.2.0",
|
|
53
51
|
"jest-cdk-snapshot": "2.3.6",
|
|
54
52
|
"jsonwebtoken": "9.0.3",
|
|
55
53
|
"jwks-rsa": "3.2.2",
|
|
56
|
-
"npm-check-updates": "19.
|
|
54
|
+
"npm-check-updates": "19.6.3",
|
|
57
55
|
"semantic-release": "25.0.3",
|
|
58
56
|
"ts-jest": "29.4.6",
|
|
59
|
-
"
|
|
60
|
-
"tsx": "4.21.0",
|
|
61
|
-
"typescript": "5.9.3",
|
|
62
|
-
"webpack": "5.105.3",
|
|
63
|
-
"webpack-cli": "6.0.1"
|
|
57
|
+
"typescript": "5.9.3"
|
|
64
58
|
},
|
|
65
59
|
"dependencies": {
|
|
66
60
|
"@henrist/cdk-cross-region-params": "^2.0.1",
|
|
67
|
-
"@liflig/cdk-lambda-config": "1.7.
|
|
61
|
+
"@liflig/cdk-lambda-config": "1.7.36"
|
|
68
62
|
},
|
|
69
63
|
"peerDependencies": {
|
|
70
64
|
"aws-cdk-lib": "^2.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* mime-db
|
|
3
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
4
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*!
|
|
9
|
-
* mime-types
|
|
10
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
11
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
12
|
-
* MIT Licensed
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* mime-db
|
|
3
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
4
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*!
|
|
9
|
-
* mime-types
|
|
10
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
11
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
12
|
-
* MIT Licensed
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Config } from "./util/config";
|
|
2
|
-
import { type IdTokenPayload } from "./util/jwt";
|
|
3
|
-
export declare const handler: import("aws-lambda").CloudFrontRequestHandler;
|
|
4
|
-
/**
|
|
5
|
-
* Check if the user is authorized to access the resource.
|
|
6
|
-
*/
|
|
7
|
-
export declare function isAuthorized(config: Config, idToken: IdTokenPayload): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handler: import("aws-lambda").CloudFrontResponseHandler;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handler: import("aws-lambda").CloudFrontRequestHandler;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handler: import("aws-lambda").CloudFrontRequestHandler;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handler: import("aws-lambda").CloudFrontRequestHandler;
|