Skip to content

Commit 7a4005d

Browse files
authored
chore(deps): resolve audit issues (#49)
1 parent 9447d9d commit 7a4005d

File tree

6 files changed

+1298
-1488
lines changed

6 files changed

+1298
-1488
lines changed

helm/values/prod.yaml.enc

0 Bytes
Binary file not shown.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"dependencies": {
27-
"@google-cloud/pubsub": "^0.19.0",
27+
"@google-cloud/pubsub": "^1.7.2",
2828
"@google-cloud/trace-agent": "^3.6.1",
2929
"@koa/cors": "2",
3030
"@slack/client": "^4.3.1",
@@ -73,9 +73,9 @@
7373
"eslint-plugin-mocha": "^4.11.0",
7474
"husky": "^1.0.0-rc.14",
7575
"knex-cleaner": "^1.1.4",
76-
"mocha": "^4.0.1",
76+
"mocha": "^6.2.0",
7777
"mocha-junit-reporter": "^1.23.0",
78-
"nock": "^9.4.2",
78+
"nock": "^12.0.3",
7979
"nodemon": "^1.12.1",
8080
"sinon": "^4.0.1",
8181
"sinon-chai": "^2.14.0",

src/routes/publications.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import validator, { object, string } from 'koa-context-validator';
44
import cloudinary from 'cloudinary';
55
import Busboy from 'busboy';
66
import rp from 'request-promise-native';
7-
import PubSub from '@google-cloud/pubsub';
7+
import { PubSub } from '@google-cloud/pubsub';
88
import config from '../config';
99
import publication from '../models/publication';
1010
import pubsRequest from '../models/pubsRequest';
@@ -25,7 +25,10 @@ const notifyPubRequest = (type, req) => {
2525

2626
const uploadLogo = (name, stream) =>
2727
new Promise((resolve, reject) => {
28-
const outStream = cloudinary.v2.uploader.upload_stream({ public_id: name, folder: 'logos' }, (err) => {
28+
const outStream = cloudinary.v2.uploader.upload_stream({
29+
public_id: name,
30+
folder: 'logos',
31+
}, (err) => {
2932
if (err) {
3033
reject(err);
3134
} else {

src/workers/newPosts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import PubSub from '@google-cloud/pubsub';
1+
import { PubSub } from '@google-cloud/pubsub';
22
import _ from 'lodash';
33
import config from '../config';
44
import logger from '../logger';

src/workers/newViewEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import PubSub from '@google-cloud/pubsub';
1+
import { PubSub } from '@google-cloud/pubsub';
22
import config from '../config';
33
import logger from '../logger';
44
import event from '../models/event';

0 commit comments

Comments
 (0)