Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 21 additions & 19 deletions firestore-counter/clients/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion firestore-counter/clients/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"firebase-admin": "^13.0.0"
},
"dependencies": {
"uuid": "^8.3.2"
"uuid": "^11.1.0"
}
}
22 changes: 10 additions & 12 deletions firestore-counter/clients/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions firestore-counter/clients/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"license": "Apache-2.0",
"description": "Web SDK to access sharded counters.",
"dependencies": {
"@types/uuid": "^3.4.4",
"uuid": "^3.3.2"
"uuid": "^11.1.0"
},
"devDependencies": {
"firebase": "^12.0.0",
Expand Down
23 changes: 14 additions & 9 deletions firestore-counter/functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion firestore-counter/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"deep-equal": "^1.0.1",
"firebase-admin": "^12.1.0",
"firebase-functions": "^4.9.0",
"uuid": "^3.3.2",
"uuid": "^11.1.0",
"rimraf": "^2.6.3",
"typescript": "^4.9.4",
"@types/express-serve-static-core": "4.19.8"
Expand Down
35 changes: 8 additions & 27 deletions storage-resize-images/functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions storage-resize-images/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"sharp": "^0.34.5",
"shx": "^0.4.0",
"typescript": "^5.7.3",
"uuid": "^11.0.5",
"uuidv4": "^6.1.0"
"uuid": "^11.1.0"
},
"devDependencies": {
"@types/jest": "^29.5.14",
Expand Down
6 changes: 3 additions & 3 deletions storage-resize-images/functions/src/resize-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as path from "path";
import * as fs from "fs";

import { Bucket } from "@google-cloud/storage";
import { uuid } from "uuidv4";
import { v4 as uuidv4 } from "uuid";

import { config } from "./config";
import * as logs from "./logs";
Expand Down Expand Up @@ -103,7 +103,7 @@ export const modifyImage = async ({
let modifiedFile: string;

try {
modifiedFile = path.join(os.tmpdir(), uuid());
modifiedFile = path.join(os.tmpdir(), uuidv4());

// filename\*=utf-8'' selects any string match the filename notation.
// [^;\s]+ searches any following string until either a space or semi-colon.
Expand Down Expand Up @@ -203,7 +203,7 @@ export const constructMetadata = (
config.regenerateToken &&
metadata.metadata.firebaseStorageDownloadTokens
) {
metadata.metadata.firebaseStorageDownloadTokens = uuid();
metadata.metadata.firebaseStorageDownloadTokens = uuidv4();
}
return metadata;
};
Expand Down
Loading