Skip to content

Commit

Permalink
chore(deps): loopback version updates (#172)
Browse files Browse the repository at this point in the history
loopback version updates

GH-171
  • Loading branch information
Surbhi-sharma1 authored Jan 18, 2024
1 parent a578d32 commit 3290a15
Show file tree
Hide file tree
Showing 7 changed files with 1,162 additions and 836 deletions.
1,959 changes: 1,140 additions & 819 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,25 @@
"!*/__tests__"
],
"dependencies": {
"@loopback/boot": "^6.1.3",
"@loopback/context": "^6.1.3",
"@loopback/core": "^5.1.3",
"@loopback/rest": "^13.1.3",
"tslib": "^2.6.1"
"@loopback/boot": "^6.1.5",
"@loopback/context": "^6.1.5",
"@loopback/core": "^5.1.5",
"@loopback/rest": "^13.1.5",
"tslib": "^2.6.2"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@loopback/build": "^10.1.3",
"@loopback/eslint-config": "^14.0.4",
"@loopback/testlab": "^6.1.3",
"@loopback/build": "^10.1.5",
"@loopback/eslint-config": "^14.0.5",
"@loopback/testlab": "^6.1.5",
"@parse/node-apn": "^5.1.3",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/node": "^16.18.50",
"@types/node": "^18.11.9",
"@types/nodemailer": "^6.4.4",
"@types/proxyquire": "^1.3.28",
"@types/pubnub": "^4.29.7",
Expand All @@ -134,7 +134,7 @@
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^6.3.0",
"cz-customizable-ghooks": "^2.0.0",
"eslint": "^8.48.0",
"eslint": "^8.51.0",
"firebase-admin": "^11.4.1",
"git-release-notes": "^5.0.0",
"husky": "^7.0.4",
Expand All @@ -155,7 +155,8 @@
"jsonwebtoken": "9.0.0"
},
"twilio": {
"jsonwebtoken": "9.0.0"
"jsonwebtoken": "9.0.0",
"axios":"1.6.5"
},
"body-parser": {
"debug": "^4.3.4"
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/mock-sdk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// eslint-disable-next-line @typescript-eslint/naming-convention
import AWS from 'aws-sdk';
// eslint-disable-next-line @typescript-eslint/naming-convention
import Pubnub from 'pubnub';
import twilio, {Twilio} from 'twilio';
import {TwilioAuthConfig, TwilioMessage} from '../providers';
Expand Down
6 changes: 3 additions & 3 deletions src/providers/email/ses/ses.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class SesProvider implements Provider<SESNotification> {
return {
publish: async (message: SESMessage) => {
const fromEmail =
message.options?.fromEmail || this.config?.senderEmail;
message.options?.fromEmail ?? this.config?.senderEmail;

if (!fromEmail) {
throw new HttpErrors.BadRequest(
Expand All @@ -50,7 +50,7 @@ export class SesProvider implements Provider<SESNotification> {
if (this.config?.sendToMultipleReceivers) {
const receivers = message.receiver.to.map(receiver => receiver.id);
const emailReq: SES.SendEmailRequest = {
Source: fromEmail || '',
Source: fromEmail ?? '',
Destination: {
ToAddresses: receivers,
},
Expand All @@ -69,7 +69,7 @@ export class SesProvider implements Provider<SESNotification> {
} else {
const publishes = message.receiver.to.map(receiver => {
const emailReq: SES.SendEmailRequest = {
Source: fromEmail || '',
Source: fromEmail ?? '',
Destination: {
ToAddresses: [receiver.id],
},
Expand Down
5 changes: 3 additions & 2 deletions src/providers/push/pubnub/pubnub.provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {inject, Provider} from '@loopback/core';
import {HttpErrors} from '@loopback/rest';
// eslint-disable-next-line @typescript-eslint/naming-convention
import Pubnub from 'pubnub';
import {Aps, MessageConfig, PnApns, TargetsType} from '.';
import {Config} from '../../../types';
Expand Down Expand Up @@ -99,8 +100,8 @@ export class PubNubProvider implements Provider<PubNubNotification> {
const publishConfig: Pubnub.GrantParameters = {
authKeys: [config.options.token],
channels: config.receiver.to.map(receiver => receiver.id),
read: config.options.allowRead || true,
write: config.options.allowWrite || false,
read: config.options.allowRead ?? true,
write: config.options.allowWrite ?? false,
ttl: config.options.ttl,
};
await this.pubnubService.grant(publishConfig);
Expand Down
1 change: 1 addition & 0 deletions src/providers/push/pubnub/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/naming-convention
import Pubnub from 'pubnub';
import {Config} from '../../../types';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/providers/push/socketio/socketio.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class SocketIOProvider implements Provider<SocketNotification> {
);
}
this.socketService.emit(
message.options?.path || this.socketConfig.defaultPath,
message.options?.path ?? this.socketConfig.defaultPath,
JSON.stringify(message),
);
} else {
Expand Down

0 comments on commit 3290a15

Please sign in to comment.