From b8a1c5f2c013f660cbcdd5f866429417e80b4c23 Mon Sep 17 00:00:00 2001 From: David Beitey Date: Tue, 14 Nov 2023 09:12:16 +1000 Subject: [PATCH 1/2] Update SAM example to v119; fix readme link --- examples/aws-sam/README.md | 2 +- examples/aws-sam/functions/exampleFunction/package.json | 6 +++--- examples/aws-sam/layers/chromium/package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/aws-sam/README.md b/examples/aws-sam/README.md index fd77149..a004b5f 100644 --- a/examples/aws-sam/README.md +++ b/examples/aws-sam/README.md @@ -16,4 +16,4 @@ sam local invoke ExampleFunction ``` - This example connects to https://www.example.com and outputs the page's title as the function result. See the source code in [`app.mjs`](app.mjs) for more details. + This example connects to https://www.example.com and outputs the page's title as the function result. See the source code in [`app.mjs`](functions/exampleFunction/app.mjs) for more details. diff --git a/examples/aws-sam/functions/exampleFunction/package.json b/examples/aws-sam/functions/exampleFunction/package.json index 8157b06..3e8b18d 100644 --- a/examples/aws-sam/functions/exampleFunction/package.json +++ b/examples/aws-sam/functions/exampleFunction/package.json @@ -2,12 +2,12 @@ "name": "ExampleFunction", "private": true, "version": "0.1.0", - "description": "AWS Lambda Function that loads Chromium", + "description": "AWS Lambda Function that loads Chromium. Refer to https://github.com/Sparticuz/chromium#install for compatible versions.", "main": "app.mjs", "devDependencies": { - "@sparticuz/chromium": "^118.0.0" + "@sparticuz/chromium": "^119.0.0" }, "dependencies": { - "puppeteer-core": "^21.4.0" + "puppeteer-core": "^21.5.1" } } diff --git a/examples/aws-sam/layers/chromium/package.json b/examples/aws-sam/layers/chromium/package.json index 942a69e..2923fde 100644 --- a/examples/aws-sam/layers/chromium/package.json +++ b/examples/aws-sam/layers/chromium/package.json @@ -4,6 +4,6 @@ "version": "1.0.0", "description": "Chromium layer for AWS Lambda", "dependencies": { - "@sparticuz/chromium": "^118.0.0" + "@sparticuz/chromium": "^119.0.0" } } From b5766d628b95d65954a6ff185d113f52cafd631f Mon Sep 17 00:00:00 2001 From: Atsuo Fukaya Date: Mon, 8 Jan 2024 11:47:20 +0900 Subject: [PATCH 2/2] Update font layer description on README for v119.0.2+ Use fonts instead of .fonts for v119.0.2+ --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af7245f..b8035a2 100644 --- a/README.md +++ b/README.md @@ -232,10 +232,10 @@ This method should be invoked _before_ launching Chromium. Alternatively, it's also possible to provision fonts via AWS Lambda Layers. -Simply create a directory named `.fonts` and place any font faces you want there: +Simply create a directory named `fonts` and place any font faces you want there: ``` -.fonts +fonts ├── NotoColorEmoji.ttf └── Roboto.ttf ``` @@ -243,7 +243,7 @@ Simply create a directory named `.fonts` and place any font faces you want there Afterwards, you just need to ZIP the directory and upload it as a AWS Lambda Layer: ```shell -zip -9 --filesync --move --recurse-paths .fonts.zip .fonts/ +zip -9 --filesync --move --recurse-paths fonts.zip fonts/ ``` ## Graphics