Upgrade Server Deps (#12328)

* upgrade uuid

* upgrade gulp-imagemin

* upgrade bcrypt

* upgrade validator.js

* fix uuid import

* upgrade got

* upgrade sinon

* upgrade passport-google-oauth2

* fix unit test
This commit is contained in:
Matteo Pagliazzi
2020-06-22 11:51:52 +02:00
committed by GitHub
parent fa7448c41d
commit ba16fa6854
7 changed files with 762 additions and 329 deletions

View File

@@ -1,5 +1,5 @@
import express from 'express';
import uuid from 'uuid';
import { v4 as uuid } from 'uuid';
import bodyParser from 'body-parser';
const app = express();
@@ -30,7 +30,7 @@ app.post('/webhooks/:id', (req, res) => {
// See http://stackoverflow.com/a/37054753/2601552
const sockets = {};
server.on('connection', socket => {
const id = uuid.v4();
const id = uuid();
sockets[id] = socket;
socket.once('close', () => {