@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liflig/cdk-cloudfront-auth",
3
- "version": "1.8.41",
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": "rm -rf dist && NODE_OPTIONS=--import=tsx webpack && tsc",
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": "npm run build && husky",
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
- "@aws-cdk/assert": "2.68.0",
39
- "@biomejs/biome": "2.4.4",
40
- "@commitlint/cli": "20.4.2",
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.10.15",
46
- "aws-cdk-lib": "2.240.0",
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.5.0",
54
+ "npm-check-updates": "19.6.3",
57
55
  "semantic-release": "25.0.3",
58
56
  "ts-jest": "29.4.6",
59
- "ts-loader": "9.5.4",
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.35"
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,9 +0,0 @@
1
- type OnEventHandler = (event: {
2
- PhysicalResourceId?: string;
3
- RequestType: "Create" | "Update" | "Delete";
4
- }) => Promise<{
5
- PhysicalResourceId?: string;
6
- Data?: Record<string, string>;
7
- }>;
8
- export declare const handler: OnEventHandler;
9
- export {};
@@ -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;