|
1 | 1 | {
|
2 | 2 | "name": "cloudfront-authorization-at-edge",
|
3 |
| - "version": "2.0.18", |
| 3 | + "version": "2.2.1", |
4 | 4 | "description": "Protect downloads of your content hosted on CloudFront with Cognito authentication using Lambda@Edge",
|
5 | 5 | "main": "index.js",
|
6 | 6 | "scripts": {
|
7 | 7 | "test": "echo \"Sorry, there aren't any tests\"; exit 1",
|
8 |
| - "tsc": "npx tsc -b", |
9 | 8 | "webpack": "webpack --progress",
|
10 | 9 | "analyze": "webpack --profile --json > stats.json && webpack-bundle-analyzer ./stats.json",
|
11 |
| - "build": "npm run tsc && npm run webpack", |
12 |
| - "update-dependencies": "for DIR in . $(ls -d src/cfn-custom-resources/*) $(ls -d src/lambda-edge/*) src/cfn-custom-resources/react-app/react-app/; do [ ! -f ${DIR}/package.json ] || (cd ${DIR} && echo \"Updating ${DIR} ...\" && rm -rf node_modules package-lock.json && npm install --prune); done;", |
13 |
| - "postinstall": "for DIR in $(ls -d src/cfn-custom-resources/*) $(ls -d src/lambda-edge/*); do [ ! -f ${DIR}/package.json ] || (cd ${DIR} && echo \"Updating ${DIR} ...\" && npm install --prune --ignore-scripts); done", |
14 |
| - "audit-fix": "for DIR in . $(ls -d src/cfn-custom-resources/*) $(ls -d src/lambda-edge/*) src/cfn-custom-resources/react-app/react-app/; do [ ! -f ${DIR}/package.json ] || (cd ${DIR} && echo \"Updating ${DIR} ...\" && npm audit fix); done" |
| 10 | + "build": "npm run remove-webpack-output && npm run webpack", |
| 11 | + "remove-webpack-output": "find src -type f \\( -name 'bundle.js' -o -name '*.bundle.js' \\) -exec rm {} +" |
15 | 12 | },
|
16 | 13 | "keywords": [],
|
17 | 14 | "author": "",
|
18 | 15 | "devDependencies": {
|
19 |
| - "@tsconfig/node16": "^1.0.4", |
20 | 16 | "@types/adm-zip": "^0.4.34",
|
21 | 17 | "@types/aws-lambda": "^8.10.92",
|
22 | 18 | "@types/cookie": "^0.4.1",
|
23 | 19 | "@types/fs-extra": "^9.0.13",
|
| 20 | + "@types/ncp": "^2.0.8", |
24 | 21 | "@types/node": "^20.2.5",
|
25 |
| - "aws-sdk": "^2.1354.0", |
26 | 22 | "html-loader": "^3.1.0",
|
27 | 23 | "prettier": "^2.5.1",
|
28 | 24 | "terser-webpack-plugin": "^5.3.1",
|
|
33 | 29 | "webpack-cli": "^4.9.2"
|
34 | 30 | },
|
35 | 31 | "dependencies": {
|
36 |
| - "adm-zip": "^0.5.9", |
| 32 | + "@tsconfig/node20": "^20.1.2", |
| 33 | + "adm-zip": "^0.5.10", |
37 | 34 | "aws-jwt-verify": "^2.1.3",
|
38 |
| - "cookie": "^0.4.1" |
| 35 | + "aws-sdk": "^2.1571.0", |
| 36 | + "cookie": "^0.4.1", |
| 37 | + "ncp": "^2.0.0", |
| 38 | + "s3-spa-upload": "^2.1.5" |
39 | 39 | },
|
40 | 40 | "prettier": {
|
41 | 41 | "trailingComma": "es5",
|
|
0 commit comments