Skip to content

Commit 116eae6

Browse files
authored
Merge pull request #10763 from ethereum/hotfixLambda
Hotfix: switch from googleapis to @googleapis/calendar
2 parents 8219792 + 267ed5b commit 116eae6

File tree

3 files changed

+4
-27
lines changed

3 files changed

+4
-27
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"gatsby-transformer-json": "^5.4.0",
5757
"gatsby-transformer-remark": "^6.4.0",
5858
"gatsby-transformer-sharp": "^5.4.0",
59-
"googleapis": "^118.0.0",
6059
"htmr": "^1.0.2",
6160
"i18next": "^21.9.2",
6261
"is-relative-url": "^3.0.0",

src/lambda/calendarEvents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { google } from "googleapis"
1+
import { calendar as googleCalendar } from "@googleapis/calendar"
22

33
import type { HandlerResponse } from "@netlify/functions"
44

@@ -7,7 +7,7 @@ export const lambda = async (
77
calenderId: string
88
): Promise<HandlerResponse> => {
99
try {
10-
const calendar = google.calendar({ version: "v3", auth: apiKey })
10+
const calendar = await googleCalendar({ version: "v3", auth: apiKey })
1111
const futureEvents = await calendar.events.list({
1212
calendarId: calenderId,
1313
timeMin: new Date().toISOString(),

yarn.lock

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11319,7 +11319,7 @@ google-p12-pem@^4.0.0:
1131911319
dependencies:
1132011320
node-forge "^1.3.1"
1132111321

11322-
googleapis-common@^6.0.0, googleapis-common@^6.0.3:
11322+
googleapis-common@^6.0.3:
1132311323
version "6.0.4"
1132411324
resolved "https://registry.yarnpkg.com/googleapis-common/-/googleapis-common-6.0.4.tgz#bd968bef2a478bcd3db51b27655502a11eaf8bf4"
1132511325
integrity sha512-m4ErxGE8unR1z0VajT6AYk3s6a9gIMM6EkDZfkPnES8joeOlEtFEJeF8IyZkb0tjPXkktUfYrE4b3Li1DNyOwA==
@@ -11331,14 +11331,6 @@ googleapis-common@^6.0.0, googleapis-common@^6.0.3:
1133111331
url-template "^2.0.8"
1133211332
uuid "^9.0.0"
1133311333

11334-
googleapis@^118.0.0:
11335-
version "118.0.0"
11336-
resolved "https://registry.yarnpkg.com/googleapis/-/googleapis-118.0.0.tgz#a8b9f84d283544b85927abeb989252cb2f3ec490"
11337-
integrity sha512-Ny6zJOGn5P/YDT6GQbJU6K0lSzEu4Yuxnsn45ZgBIeSQ1RM0FolEjUToLXquZd89DU9wUfqA5XYHPEctk1TFWg==
11338-
dependencies:
11339-
google-auth-library "^8.0.2"
11340-
googleapis-common "^6.0.0"
11341-
1134211334
gopd@^1.0.1:
1134311335
version "1.0.1"
1134411336
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c"
@@ -15743,14 +15735,7 @@ [email protected]:
1574315735
dependencies:
1574415736
side-channel "^1.0.4"
1574515737

15746-
qs@^6.10.0, qs@^6.11.0:
15747-
version "6.11.2"
15748-
resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.2.tgz#64bea51f12c1f5da1bc01496f48ffcff7c69d7d9"
15749-
integrity sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==
15750-
dependencies:
15751-
side-channel "^1.0.4"
15752-
15753-
qs@^6.7.0:
15738+
qs@^6.10.0, qs@^6.11.0, qs@^6.7.0:
1575415739
version "6.11.2"
1575515740
resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.2.tgz#64bea51f12c1f5da1bc01496f48ffcff7c69d7d9"
1575615741
integrity sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==
@@ -18794,13 +18779,6 @@ url-loader@^4.1.1:
1879418779
mime-types "^2.1.27"
1879518780
schema-utils "^3.0.0"
1879618781

18797-
url-parse-lax@^3.0.0:
18798-
version "3.0.0"
18799-
resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c"
18800-
integrity sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==
18801-
dependencies:
18802-
prepend-http "^2.0.0"
18803-
1880418782
url-template@^2.0.8:
1880518783
version "2.0.8"
1880618784
resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21"

0 commit comments

Comments
 (0)