Skip to content

Commit b52a93a

Browse files
committed
chore(image-processing-api): fix vulnerabilities
1 parent 81bedbc commit b52a93a

File tree

4 files changed

+7448
-4599
lines changed

4 files changed

+7448
-4599
lines changed

extensions/image-processing-api/functions/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "image-processing-api-functions",
33
"version": "0.0.1",
44
"scripts": {
5+
"prepare": "npm run build",
56
"build": "tsc",
67
"copy-types": "tsc --emitDeclarationOnly --declaration --allowJs --outDir ../lib/src/types",
78
"build:watch": "tsc --watch",

extensions/image-processing-api/functions/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import a2a from 'a2a';
1919
import cors from 'cors';
2020
import express, { Request, Response } from 'express';
2121
import * as firebase from 'firebase-admin';
22-
import * as functions from 'firebase-functions';
22+
import * as functions from 'firebase-functions/v1';
2323
import helmet from 'helmet';
2424
import { StructError } from 'superstruct';
2525

@@ -210,5 +210,5 @@ if (process.env.EXPRESS_SERVER === 'true') {
210210
);
211211
} else {
212212
firebase.initializeApp();
213-
exports.handler = functions.handler.https.onRequest(app);
213+
exports.handler = functions.https.onRequest(app);
214214
}

0 commit comments

Comments
 (0)